text stringlengths 5.8k 28.2k |
|---|
#include <stdio.h> //including relevant header files
#include <stdlib.h>
#include<string.h>
struct trainDetails //structure implementation of trains details.
{
int trainNo; //stores train number
char source[20]; //stores source
char destination[20]; //stores destination
int seatsLeft; //st... |
/*
* AIFF/AIFF-C muxer and demuxer
* Copyright (c) 2006 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, ... |
/* $NetBSD: ims332.c,v 1.7.6.1 1997/11/18 01:22:09 mellon Exp $ */
/*-
* Copyright (c) 1992, 1993, 1995
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
/**
* findMACs -- Discover MAC addresses for IP range using ARP
* Copyright (C) 2014 <NAME>
* http://www.drk.com.ar/findmacs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either versio... |
//
// Created by <NAME> on 2019/9/16.
//
#include "h2o/rangeclient.h"
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <h2o/rangeclient.h>
#include "h2o/memory.h"
#define H2O_RANGECLIENT_NUM_SAMPLE_SKIPPED 0
#define H2O_RANGECLIENT_MIN_RECEIVE_CHUNK 1024 // in bytes; for bandwidth sampler
static h... |
/**
* @file camera.c
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <assert.h>
#include <getopt.h> /* getopt_long() */
#include <fcntl.h> /* low-level i/o */
#include <unistd.h>
#include <errno.h>
#include <malloc.h>
#include... |
/*
*
* Copyright (c) 2014 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This... |
#include <stdio.h>
#include <string.h>
#define MD5_BIG_ENDIAN 0
#include "md5.h"
typedef unsigned int md5_uint32;
#define MAX_MD5_UINT32 ((md5_uint32)4294967295U)
#define MD5_BLOCK_SIZE 64
#define BLOCK_SIZE_MASK (MD5_BLOCK_SIZE - 1)
typedef struct
{
md5_uint32 md_A;
md5_uint32 md_B;
md5_uint32 md_C;
md5_... |
inline int is_less(double pointX, double pointY, double pointZ,
double minX, double minY, double minZ)
{
return (minX > pointX && minY > pointY && minZ > pointZ);
}
inline int is_greater(double pointX, double pointY, double pointZ,
double maxX, double maxY, double maxZ)
{
... |
/*
* menu.c
*
* Copyright (C) <NAME> 2015
*
* This file is part of xwin-xdg-menu
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
... |
// floppy.c
// Very generic driver for a single floppy disk drive based
// upon the Intel 8272A Floppy disk controller
#include <tros/driver.h>
#include <tros/irq.h>
#include <tros/hal/io.h>
#include <tros/hal/dma.h>
#include <tros/tros.h>
// #include <tros/timer.h> //temp sleep location
#include <tros/klib/kstring.h>... |
// Copyright (c) 2004-2020 Microchip Technology Inc. and its subsidiaries.
// SPDX-License-Identifier: MIT
#include <microchip/ethernet/board/api.h>
#include "meba_generic.h"
mesa_ptp_event_type_t meba_generic_ptp_source_to_event(meba_inst_t inst, meba_event_t event_id)
{
switch (event_id) {
case MEBA_E... |
#define _GNU_SOURCE // for qsort_r
#include<assert.h>
#include<bcrandom.h>
#include<commitReveal.h>
#include<gcrypt.h>
#include<obliv_bits.h>
#include<obliv_common.h>
#include<obliv_psi.h>
#include<stdlib.h>
#include<sort_r.h> // from https://github.com/noporpoise/sort_r
#define HASH_ALGO GCRY_MD_SHA1
#define HASH_BI... |
/*-
* Copyright (c) 2014 <NAME> <<EMAIL>>
* All rights reserved.
*
* This software was developed by SRI International and the University of
* Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
* ("CTSRD"), as part of the DARPA CRASH research programme.
*
* Redistribution and use in sourc... |
/* Capstone Disassembler Engine */
/* By <NAME> <<EMAIL>>, 2013-2019 */
#include <stdio.h>
#include <stdlib.h>
#include <capstone/platform.h>
#include <capstone/capstone.h>
static csh handle;
struct platform {
cs_arch arch;
cs_mode mode;
unsigned char *code;
size_t size;
const char *comment;
cs_opt_type opt_t... |
/* *****************************************************************************
* The MIT License
*
* Copyright (c) 2010 LeafLabs LLC.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Softwar... |
#include <stdio.h>
#include <stdlib.h>
#include "pico/stdlib.h"
#include "pico/multicore.h"
#include "hardware/pio.h"
#include "hardware/interp.h"
#include "hardware/dma.h"
#include "hardware/clocks.h"
#include "hardware/regs/rosc.h"
#include "hardware/regs/addressmap.h"
#include "mandelbrot.h"
#include "st7789_lcd.h"... |
/*
* Copyright (c) 2010-2012 Red Hat, Inc.
*
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* This software licensed under BSD license, the text of which follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ... |
/**
******************************************************************************
* @file LCD_Paint/Src/main.c
* @author MCD Application Team
* @brief Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c... |
/*
* Copyright (c) 2013, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): <NAME> <<EMAIL>>
* Georgia Tech Humanoid Robotics Lab
* Under Direction of Prof. <NAME> <<EMAIL>>
*
*
* This file is provided under the following "BSD-style" License:
*
*
* Redistribution and use in source and... |
#include <string.h>
#include <stdlib.h>
#include <proto/launch.h>
#include <kogata/region_alloc.h>
#include <kogata/debug.h>
#include <kogata/gip.h>
#include <kogata/draw.h>
#include <kogata/keyboard.h>
#define NCOLORS 16
const int vga_colors[NCOLORS] = {
0x000000,
0x0000AA,
0x00AA00,
0x00AAAA,
0xAA0000,
0x... |
/* Copyright 2018 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* AES-CMAC-128 implementation according to NIST SP 800-38B, RFC4493 */
#include "console.h"
#include "dcrypto.h"
#define BSIZE 16 /* 16 bytes per... |
#include <string.h>
#include <stdio.h>
#include <emmintrin.h>
#include <tmmintrin.h>
#include <smmintrin.h>
#include "crypto_hash.h"
#include "crypto_uint64.h"
#include "crypto_uint32.h"
#include "crypto_uint8.h"
/* typedef unsigned long long u64; */
/* typedef unsigned int u32; */
/* typedef unsigned char u8; */
typ... |
#include <stdio.h>
#include <string.h>
#include "data.h"
#include "lex.h"
#include "util.h"
void lexer_new(lexer *l, char const *data)
{
l->data = data;
l->pos = 0;
l->line = 1;
l->line_start = 0;
l->line_started = 0;
l->indent_adj = 0;
l->indents = NULL;
l->num_indents = 0;
l->next.type = TK_EOF;
}
void le... |
/**************************************************************************
* FILE: log-hmm.c
* AUTHOR: <NAME>
* CREATE DATE: 1-28-98
* PROJECT: MHMM
* DESCRIPTION: Convert between a normal HMM and a log HMM.
**************************************************************************/
#include <math.h>
#include <s... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... |
/*******************************************************************************
# "uvc_stream" is a command line application to stream JPEG files over an #
# IP-based network from the webcam to a viewer like Firefox, Cambozola, #
# Videolanclient or even to a Windows Mobile device running the TCPMP-Player.... |
/*
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>-<NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
#include<stdio.h>
#include<stdlib.h>
#include<stdint.h>
#include "poly_mul.h"
int32_t glob_i=0;
void print_poly2(int16_t *a, int64_t n, uint64_t p){
printf("-----------------------\n");
int i;
for (i = n - 1; i >= 0; i--){
if (a[i] != 0){
if(i!=0)
printf(" Mod(%d,%lu)*x^%d + ", a[i], p,i);
else
p... |
/* GStreamer
* Copyright (C) 2012 <NAME> <<EMAIL>>
*
* gstv4l2deviceprovider.c: V4l2 device probing and monitoring
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* vers... |
/* Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... |
/*
<NAME> <<EMAIL>>
http://blog.stuffedcow.net/2013/05/measuring-rob-capacity/
2014-10-14
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <malloc.h>
#include <sys/mman.h>
#include <unistd.h>
#include "spec-size.h"
#define ADD_BYTE(val) do{ibuf[... |
/* SPDX-License-Identifier: MIT
* Copyright (c) 2014-2021 <NAME>
*/
#include "../inc/kos_entity.h"
#include "../inc/kos_array.h"
#include "../inc/kos_constants.h"
#include "../inc/kos_error.h"
#include "../inc/kos_memory.h"
#include "../inc/kos_module.h"
#include "../inc/kos_object.h"
#include "../inc/kos_string.h"
... |
/*
* eCTF Collegiate 2020 miPod Example Code
* Linux-side DRM driver
*/
#include "miPod.h"
#include <stdio.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <linux/gpio.h>
#include <string.h>
#include <stdint.h>
volatile cmd_chan... |
/* $OpenBSD: sha2.c,v 1.14 2013/04/15 15:54:17 millert Exp $ */
/*
* FILE: sha2.c
* AUTHOR: <NAME> <<EMAIL>>
*
* Copyright (c) 2000-2001, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
*... |
#pragma once
#include <stdio.h> // file stuff
#include <stdlib.h> // malloc
#include <math.h>
#include "tinyfx.h"
void *demo_read_file(const char *filename) {
FILE *f = fopen(filename, "r");
if (f) {
fseek(f, 0L, SEEK_END);
int bytes = ftell(f);
rewind(f);
char *buf = (char*)malloc(bytes+1);
buf[bytes] =... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007-2008 Advanced Micro Devices, Inc.
* Copyright (C) 2009 <NAME> <<EMAIL>>
* Copyright (C) 2015 <NAME> <<EMAIL>>, Raptor Engineering
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Genera... |
#include "video.h"
#include "actualizer.h"
#include <libavcodec/avcodec.h>
#include <libavutil/opt.h>
#include <libavutil/imgutils.h>
#include <libavformat/avformat.h>
#include <libavutil/mathematics.h>
#include <libavutil/timestamp.h>
#include <libswscale/swscale.h>
#define CRF "23" /* real quality setting for H264 ... |
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/sem.h>
#include <sys/msg.h>
#include <tifb.h>
#include <tifb_api.h>
#include <tifb_global.h>
#include <killmc_api.h>
#include <server_define.h>
#include <server_msgq.h>
#include <msgdef.h>
/************************************************************************... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain ... |
/**
* Copyright (c) 2014, <NAME>. All rights reserved.
* See the file LICENSE for more details.
*/
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <ncursesw/ncurses.h>
#include <fov.h>
#include "constants.h"
#include "in_game.h"
#include "map.h"
#define MAX_KEYS 15
static const char *keyMsg = ... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without restriction,
* including without... |
/* This file contains the device independent block driver interface.
*
* Block drivers support the following requests. Message format m10 is used.
* Field names are prefixed with BDEV_. Separate field names are used for the
* "access", "request", and "user" fields.
*
* m_type MINOR COUNT GRANT ... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* This is script-generated code (for the most part). */
/* See ncArchTimeSeries.h for a description of this API call.*/
#include "ncArchTimeSeries.h"
#include... |
/* FreeTDS - Library of routines accessing Sybase and Microsoft databases
* Copyright (C) 1998, 1999, 2000, 2001 <NAME>
* Copyright (C) 2002, 2003, 2004, 2005 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as pub... |
/** \file
* \brief Motif Base Functions
*
* See Copyright Notice in "iup.h"
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <Xm/Xm.h>
#include <Xm/ScrollBar.h>
#include <Xm/DragDrop.h>
#include <X11/cursorfont.h>
#include "iup.h"
#include "iupkey.h"
#in... |
#include <gst/gst.h>
#include <glib.h>
#include <stdio.h>
#include <cuda_runtime_api.h>
#include "gstnvdsmeta.h"
#define MAX_DISPLAY_LEN 64
#define PGIE_CLASS_ID_VEHICLE 0
#define PGIE_CLASS_ID_PERSON 2
#define MUXER_OUTPUT_WIDTH 1920
#define MUXER_OUTPUT_HEIGHT 1080
#define MUXER_BATCH_TIMEOUT_USEC 40000
gint fram... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "header.h"
#include "tiffReader.h"
#include "tiffTagStorage.h"
#include "tiffImage.h"
#include "tiffReaderHelper.h"
#include "support/array.h"
#define DEBUG
// apparently macros can be define with -D name
bool _tiffReader_isProperHeader(uint16_t id... |
#include "bluenrg_interface.h"
#include "spi.h"
#include "bluenrg_aci_const.h"
#include "bluenrg_gap.h"
#include "bluenrg_gap_aci.h"
#include "bluenrg_gatt_aci.h"
#include "bluenrg_gatt_server.h"
#include "bluenrg_hal_aci.h"
#include "bluenrg_utils.h"
#include "debug.h"
#include "gp_timer.h"
#include "hal.h"
#include ... |
#include "xsgs.h"
#include "demo.h"
extern int verbose;
typedef struct {
int help_flag;
char *client_address;
char *client_port;
char *server_address;
char *server_port;
} CMD_OPT;
typedef struct {
int connfd;
char* server_address;
char* server_port;
struct sockaddr_in proc_addr;
} IPC_THREAD_ARGS;
void pr... |
#pragma once
#include "dl_lib_matrix3d.h"
typedef int16_t qtp_t;
/*
* Matrix for 3d
* @Warning: the sequence of variables is fixed, cannot be modified, otherwise there will be errors in esp_dsp_dot_float
*/
typedef struct
{
/******* fix start *******/
int w; // Width
int h; // Height
int c; // Chan... |
/*
SPDX-License-Identifier: Apache-2.0
Copyright (c) 2021-2022 Nordix Foundation
*/
#include <flow.h>
#include <die.h>
#include <rangeset.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <pthread.h>
#include <limits.h>
#define D(x)
#define Dx(x) x
// Limits
#define MAX_NAME 1024
#define... |
#include<lpc21xx.h>
#include<string.h>
#include<math.h>
#include <stdlib.h>
#include<stdio.h>
void delay(void);
void lcd(unsigned char,int);
char keypad(void);
char k;
int main(void)
{
float n1,n2,n3;
int outs,N1,x1,h1,d1,e1,outl, noNos;
unsigned int i, j, q;
unsigned char chN[]="Enter N:";
unsigned ch... |
/*
* Copyright 2021 FUJIFILM Corporation
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed ... |
/*
* Copyright (c) 1991-2013 Kawahara Lab., Kyoto University
* Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
* Copyright (c) 2005-2013 Julius project team, Nagoya Institute of Technology
* All rights reserved
*/
#include "mkfa.h"
#include "dfa.h"
#include "nfa.h"
void r_makeDFA( F... |
/*
* CAN module object for generic microcontroller.
*
* This file is a template for other microcontrollers.
*
* @file CO_driver.c
* @ingroup CO_driver
* @author <NAME>
* @copyright 2004 - 2020 <NAME>
*
* This file is part of CANopenNode, an opensource CANopen Stack.
* Project home page is <... |
/*
* decoder - CEC message decoding
*
* Copyright (c) 2010-2011 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your... |
/*
** ###################################################################
** Processors: MK22FX512VLH12
** MK22FN1M0VLH12
** MK22FX512VLK12
** MK22FN1M0VLK12
** MK22FX512VLL12
** ... |
/**
* VODSS -- Query the DSS service for an image of a field
*
* Usage: vodss [<opts>] <name> | <ra dec>
*
* Where
* -%%,--test run unit tests
* -h,--nelp this message
* -r,--return return result from method
*
* -s,--size <size> Field size
* ... |
/* s3_pkb.c: System/3 5471 console terminal simulator
Copyright (c) 2001-2005, <NAME>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include <string.h>
#include <linux/stat.h>
#include <linux/types.h>
#include <stdbool.h>
#include <mpi.h>
//OPTIONAL: comment this out for console output
//#define CONSOLE_OUTPUT
#define calcIndex(width, x,y) ((y)*(width) + ... |
#include "lval.h"
/* Lisp values */
char* ltype_name(int t) {
switch(t) {
case LVAL_FUN: return "function";
case LVAL_NUM: return "number";
case LVAL_ERR: return "error";
case LVAL_SYM: return "symbol";
case LVAL_STR: return "string";
case LVAL_SEXPR: return "sexpr";
case LVAL_QEXPR: r... |
/*
* Copyright (c) 2019-2020, Rice University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, th... |
//-------------------------------- description ------------------------------------------------
//simple wrappers for using ncurses through lua.
//hosted at www.github.com/return5/sluacurses
//-------------------------------- license ----------------------------------------------------
/*
Copyright (c) <202... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... |
/*
* This file is part of TISEAN
*
* Copyright (c) 1998-2007 <NAME>, <NAME>, <NAME>
*
* TISEAN is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your... |
/*
* Copyright (c) 2014 by Enea Software AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list ... |
// ShadowMap.c
// OpenGL SuperBible, Chapter 18
// Demonstrates shadow mapping
// Program by <NAME>
#include "../../common/openglsb.h" // System and OpenGL Stuff
#include "../../common/gltools.h" // OpenGL toolkit
#include <math.h>
#include <stdio.h>
#include <unistd.h>
#define GL_DEPTH_TEXTURE_MODE 0x884... |
// Copyright 2015 Silicon Laboratories, Inc.
#include PLATFORM_HEADER
#include CONFIGURATION_HEADER
#include EMBER_AF_API_STACK
#include EMBER_AF_API_HAL
#include EMBER_AF_API_COMMAND_INTERPRETER2
#ifdef EMBER_AF_API_DEBUG_PRINT
#include EMBER_AF_API_DEBUG_PRINT
#endif
#include <arpa/inet.h>
#include <stdio.h>
#inc... |
#define LOG_MODULE "p4ioemu-device"
#include "p4ioemu/device.h"
#include <setupapi.h>
#include <usb100.h>
#include <windows.h>
#include "hook/iohook.h"
#include "util/hex.h"
#include "util/log.h"
#include "util/str.h"
//#define P4IOEMU_DEBUG_DUMP
/* can't seem to #include the requisite DDK headers from usermode co... |
#include <string.h>
#include "esp_system.h"
#include "esp_log.h"
#include "esp_gap_ble_api.h"
#include "esp_gatts_api.h"
#include "uartdev.h"
#include "gatts_table.h"
#define TAG "GATTS"
#define PROFILE_NUM 1
#define PROFILE_APP_IDX 0
#define ESP_APP_ID 0x55
#define SVC_I... |
/*
* <NAME> (<EMAIL>) 1002297
* 06/02/2017
* bow.c
Links to "bow.h" header file
Contains all the functions required for the bag-of-words
*/
#include "bow.h"
#include "mymalloc.h"
/* This function will return a pointer to a newly allocated bag_struct with a bag_size of zero,
and total_words of zero (you... |
/*
* Copyright (c) 1997-1999 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later versio... |
#include <termios.h>
#include <dirent.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
#include <time.h>
#include <errno.h>
#include <paths.h>
#include <sys/wait.h>
#include <sys/reboot.h>
#include <sys/klog.h>
#include <arpa/inet.h>
#include <bcmnvram.h>
#include <rc.h>
#include <shutils.h>
#ifdef LINUX26
#include <sy... |
/*
* Copyright (c) 2008-2012 the MansOS team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this list of con... |
/*
* Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* "Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
* Reserved. This file contains Original Code and/or Modifications of
* Original Code as defined in and that are subject to the Apple Public
* Sour... |
// Options: --no-arrays --no-pointers --no-structs --no-unions --argc --no-bitfields --checksum --comma-operators --compound-assignment --concise --consts --divs --embedded-assigns --pre-incr-operator --pre-decr-operator --post-incr-operator --post-decr-operator --unary-plus-operator --jumps --longlong --int8 --uint8... |
/*
* global_id.c
*
* Copyright (c) 2008-2010 CSIRO, Delft University of Technology.
*
* This file is part of Darjeeling.
*
* Darjeeling is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either... |
/*-------------------------------------------------------------------------
*
* ginvacuum.c
* delete & vacuum routines for the postgres GIN
*
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* ... |
/*
* Copyright (C) 2008 The Android Open Source Project
* Copyright (C) 2014 The Linux Foundation. All rights reserved.
* Copyright (C) 2020 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... |
/**
* FreeRDP: A Remote Desktop Protocol client.
* RemoteFX Codec Library
*
* Copyright 2011 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/lic... |
/*
* MIT License
*
* Copyright (c) [2018] [WangBoJing]
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... |
/*
* simple memory allocator, backed by mmap() so that it hands out memory
* that can be shared across processes and threads
*/
#include <sys/mman.h>
#include <assert.h>
#include <string.h>
#include "fio.h"
#include "fio_sem.h"
#include "os/os.h"
#include "smalloc.h"
#include "log.h"
#define SMALLOC_REDZONE /* de... |
/*
* Copyright (c) The Libre Solar Project Contributors
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "board.h"
#include "bms.h"
#include "registers.h"
#include "interface.h"
#include "helper.h"
#include <stdlib.h> // for abs() function
#include <stdio.h>
#include <time.h>
#include <string.h>
#include ... |
/* A program for calculating linkage disequilibrium stats */
/*
Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2021] EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file... |
/* $OpenBSD: pctr.c,v 1.22 2015/02/08 23:40:34 deraadt Exp $ */
/*
* Copyright (c) 2007 <NAME>, <NAME>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copi... |
/*
FreeRTOS V9.0.0rc2 - Copyright (C) 2016 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 1. Redistributions of source c... |
/*
* flist.c -- list nmh folders containing messages
* -- in a given sequence
*
* originally by
* <NAME>, Xerox-PARC, November, 1992
*
* Copyright (c) 1994 Xerox Corporation.
* Use and copying of this software and preparation of derivative works based
* upon this software are permitted. Any distributio... |
/*
* This file is part of the Chelsio FCoE driver for Linux.
*
* Copyright (c) 2008-2013 Chelsio Communications, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Versio... |
/* crypto/md32_common.h */
/* ====================================================================
* Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... |
/**
* @file main.c
* @author <NAME>, <NAME>, <NAME>
* @date May, 2015
* @brief Main acquire script to read data from the SEAD device.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <unistd.h>
#include <pthread.h>
#include <stdint.h>
#include <ctype.h>
#include <stdboo... |
// XXX try running w/o secondary and compare percent
// with secondary 2.077
// w/o secondary 2.02 velocity = v1
// w/o secondary 2.05 velocity = v2
// XXX try running at higher voltage, and verify the initial step size
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#i... |
/* Definitions of target machine for GNU compiler, for HPs running
HPUX using the 64bit runtime model.
Copyright (C) 1999, 2000, 2001, 2002, 2004, 2005 Free Software Foundation,
Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Pu... |
/*
* raycast_tex.c - test textured raycasting on STM32G4
* 04-12-20 <NAME>
* based on code from https://lodev.org/cgtutor/raycasting.html
*/
#include <math.h>
#include "raycast.h"
#include "gfx.h"
#include "printf.h"
#include "systick.h"
#include "textures.h"
#define screenWidth ST7789_TFTWIDTH
#define screenHeig... |
/************************************************************************
*
* IONSP.H Definitions for I/O Networks Serial Protocol
*
* Copyright (C) 1997-1998 Inside Out Networks, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License... |
#include "lib/utf8proc.h"
#include "lib/mascara.h"
#include "api.h"
#include "utf8.h"
#include "vec.h"
#include "mem.h"
#include "imp.h"
#include <string.h>
#include <assert.h>
static int32_t char_at(const struct gourgandine *gn, size_t tok, size_t pos)
{
return gn->str[gn->tokens[tok].norm_off + pos];
}
/* Tries ... |
/*****************************************************************
Copyright 1989, 1991, 1992 by Carnegie Mellon University
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that ... |
/**
* \file
*
* \brief AVR XMEGA Quadrature Decoder Driver file
*
* Copyright (C) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ... |
/* See LICENSE for licence details. */
#include "yaimg-sixel.h"
#include "../util.h"
#include "../loader.h"
#include "../image.h"
#include "../sixel.h"
#include "parsearg.h"
uint8_t *crop_image_single(struct tty_t *tty, struct image *img, uint8_t *data,
int shift_x, int shift_y, int width, int height)
{
int offse... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.