text
stringlengths
3.12k
18.7k
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * NaCl Service Runtime. I/O Descriptor / Handle abstraction. Memory * mapping using descriptors. */ #include <errno.h> #include "...
/* * dev_pwm.c * * Copyright 2018 <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 the rights * to use, copy, modify, merge...
/* * Multi2Sim * Copyright (C) 2014 <NAME> (<EMAIL>) * * 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 version. * ...
/* Copyright 2009-2010, Ifcaro, jimmikaelkael & Polo Copyright 2006-2008 Polo Licenced under Academic Free License version 3.0 Review OpenUsbLd README & LICENSE files for further details. Some parts of the code are taken from HD Project by Polo */ #include "ee_core.h" #include "modules.h" #include "modmgr.h...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdint.h> #include <assert.h> #include <limits.h> #include <math.h> #include "bfc.h" #define BFC_VERSION "r181" int bfc_verbose = 3; double bfc_real_time; bfc_kmer_t bfc_kmer_null = {{0,0,0,0}}; void bfc_opt_init(bfc_opt_t *opt)...
/* * Support for parse trees for the compiler. * * Added by Beek (<NAME>) 9/29/94. Only converting expression parsing * to parse trees at this point; the rest of code generation will likely * follow later. * * Note: it did. See ChangeLogs. * */ #define SUPPRESS_COMPILER_INLINES #include "std.h" #inclu...
#include <ctype.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #define DEFAULT_OUTPUT_FILE_PREFIX "hy_out" #define DEFAULT_OUTPUT_FILE_NAME_SQL_SUFFIX "sql" #define DEFAULT_OUTPUT_FILE_NAME_LOAD_SUFFIX "load" #define DEFAULT_PROTEIN_ID ...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (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 * or http://www.opensolar...
/////////////////////////////////////////////////////////////////////////////// // File: gcdkeygen.c // SDK: GameSpy CD Key SDK // // Copyright (c) 2012 GameSpy Technology & IGN Entertainment, Inc. All rights // reserved. This software is made available only pursuant to certain license // terms offered by IGN or it...
/* * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in...
/* $NetBSD: ocryptodev.c,v 1.4 2011/05/16 10:27:49 drochner Exp $ */ /* $FreeBSD: src/sys/opencrypto/cryptodev.c,v 1.4.2.4 2003/06/03 00:09:02 sam Exp $ */ /* $OpenBSD: cryptodev.c,v 1.53 2002/07/10 22:21:30 mickey Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. * All rights reserved. * * This code i...
/* $OpenBSD: log.c,v 1.17 2011/04/12 12:37:22 reyk Exp $ */ /* * Copyright (c) 2003, 2004 <NAME> <<EMAIL>> * * 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 ...
/* C O L O R . C * BRL-CAD * * Copyright (c) 1997-2016 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as p...
// 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 may...
#include <stdio.h> #include <stdlib.h> #include <assert.h> /********** * Structs **********/ typedef struct vNode *vNode; typedef struct eNode *eNode; typedef struct vertex *vertex; typedef struct edge *edge; typedef struct vQueue vQueue; typedef struct vStack vStack; struct vNode { vertex ite...
/* * AWS IoT EduKit - Core2 for AWS IoT EduKit * Factory Firmware v2.1.0 * mpu.c * * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software...
// Copyright (C) 2015 University of Oregon // You may distribute under the terms of either the GNU General Public // License or the Apache License, as specified in the LICENSE file. // For more information, see the LICENSE file. #ifndef LINT #endif /* INADEQUATEAD: carbon-carbon connectivity using double quantum ...
#include "main.h" #define DRIVE_THRESHOLD_FORWARD 15 // Joystick forward threshold #define DRIVE_THRESHOLD_TURN 15 // Joystick turn threshold #define DRIVE_THRESHOLD_STRAFE 15 // Joystick strafe threshold #define INITIAL_DRIVE_POWER 25 // The power that drive with logic will start ...
// // gravity_symboltable.c // gravity // // Created by <NAME> on 12/09/14. // Copyright (c) 2014 CreoLabs. All rights reserved. // #include "gravity_symboltable.h" #include "gravity_macros.h" #include "gravity_array.h" #include "gravity_hash.h" // symbol table implementation using a stack of hash tables typedef ...
/** *********************************************************************************************************************** * Copyright (c) 2020, China Mobile Communications Group Co.,Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the...
/* This file is part of "psdparse" Copyright (C) 2004-2011 <NAME>, <EMAIL> 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 version...
#include "libopusfile.h" #if (WIN32 || _WIN64) #define WIN32_LEAN_AND_MEAN #include <windows.h> #define dynlib_t HMODULE #define OPEN_LIBRARY LoadLibraryA("libopusfile-0.dll") #define dlsym GetProcAddress #else #include <dlfcn.h> #define dynlib_t void* #define OPEN_LIBRARY dlopen("libopusfile.so.0", RTLD_NOW); #endif ...
/*s: networking/ip/imap4d/imap4d.h */ /* * mailbox and message representations * * these structures are allocated with emalloc and must be explicitly freed */ typedef struct Box Box; typedef struct Header Header; typedef struct MAddr MAddr; typedef struct MbLock MbLock; typedef struct MimeHdr MimeHdr; typedef struc...
/* loadbios.c - command to load a bios dump */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2009 Free Software Foundation, Inc. * * GRUB 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, ...
#include <math.h> #include <stdio.h> #include <assert.h> #include "integration.h" #include "fusion.h" #ifndef PI #define PI 3.1415926f #endif /* q is that rotation the change world -> body */ static float mahony_Kp = 2.0F; void mahony_set_gain(float gain) { mahony_Kp = gain; } void mahony_imu_upda...
// SPDX-License-Identifier: GPL-2.0-only /* Copyright (C) 2005 <NAME>, Pengutronix * Copyright (C) 2006 <NAME>, Varma Electronics * Copyright (C) 2008-2009 <NAME> <<EMAIL>> */ #include <linux/can/dev.h> #ifdef CONFIG_CAN_CALC_BITTIMING #define CAN_CALC_MAX_ERROR 50 /* in one-tenth of a percent */ /* Bit-timing ca...
#define _XOPEN_SOURCE #define _XOPEN_SOURCE_EXTENDED #include <errno.h> #include <netdb.h> #include <netdb.h> #include <pstr.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <sys/time.h> #include <sys/types.h> #include "buffer.h" #include "json.h" #inc...
#include "obj_loader.h" #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> const char* strtrim(char *s) { while (isspace(*s)) s++; if (!strlen(s)) return s; char* p = s + strlen(s); while (isspace(*--p)); *(p + 1) = '\0';...
/*************************************************************************** * Copyright (c) 2020-present Bitplane AG Zuerich * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may...
#include <stdbool.h> #include <errno.h> #include <string.h> #include <signal.h> #include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <hw/template_appliance.h> #include "applibs_versions.h" #include <applibs/log.h> #include <applibs/gpio.h> #include <applibs/networking.h> #include <applibs/wificonfig.h...
#include <stdio.h> #include <string.h> #include <stdarg.h> #include <stdlib.h> #include <stdbool.h> #include <ctype.h> #include "ooc.h" #include "util.h" #include "types.h" #include "types.h" #include "microtest.h" /*********** * STRINGS * ***********/ int8 endswith(char *string, char* suffix) { char* loc = str...
#include "bigWig.h" #include <stdio.h> #include <inttypes.h> #include <stdlib.h> #include <assert.h> //Print overly verbose header information void bwPrintHdr(bigWigFile_t *bw) { uint64_t i; printf("Version: %"PRIu16"\n", bw->hdr->version); printf("Levels: %"PRIu16"\n", bw->hdr->nLevels); printf...
/* $XConsortium: Destroy.c,v 1.51 94/05/11 16:02:58 kaleb Exp $ */ /*********************************************************** Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts Copyright 1993 by Sun Microsystems, Inc. Mountain View, CA. All Rights Reserved Permiss...
// Lab13_Timersmain.c // Runs on MSP432 // Student starter code for Timers lab // Daniel and <NAME> // July 11, 2019 // PWM output to motor // Second Periodic interrupt /* This example accompanies the book "Embedded Systems: Introduction to Robotics, <NAME>, ISBN: 9781074544300, copyright (c) 2019 For more inf...
/*! \file beepprofile.c * \brief Implementation of the BEEP Profile Object. * * \author <NAME> <<EMAIL>> * \date 2003-08-04 * * \date 2003-09-04 * begin coding support for multiple client profiles * (the initial design just allowed one). * * Copyright 2002-2014 * <NA...
#include <stdio.h> #include <string.h> #include <sdcard.h> #include <hal.h> #include <memory.h> uint8_t sector_buffer[512]; #define POKE(X,Y) (*(unsigned char*)(X))=Y #define PEEK(X) (*(unsigned char*)(X)) const long sd_sectorbuffer=0xffd6e00L; const uint16_t sd_ctl=0xd680L; const uint16_t sd_addr=0xd681L; const ui...
#include "slow5_misc.h" #include "error.h" #include "cmd.h" #include <slow5/slow5.h> #include <getopt.h> #define USAGE_MSG "Usage: %s [OPTION]... [FILE]...\n" #define HELP_SMALL_MSG "Try '%s --help' for more information.\n" #define HELP_LARGE_MSG \ "View a fast5 or slow5 FILE in another format.\n" \ USAGE_MSG ...
#include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <sys/wait.h> #include <sys/select.h> #include <time.h> #include <string.h> #include <math.h> #include "trialfuncs.h" #define MAX_SOFT_TRIE 5 int function_type = 0; void f_func(int x,int fd[2]); void g_func(int x,int fd[2]); in...
/* External definitions for time-shared computer model. */ #include "simlib.h" /* Required for use of simlib.c. */ #define EVENT_ARRIVAL 1 /* Event type for arrival of job to CPU. */ #define EVENT_END_CPU_1_RUN 2 /* Event type for end of a CPU1 run. */ #define EVENT_END_CPU_2_RUN 3 /* ...
/* CC1050 management * Copyright (c) 2020 by SECKC Software * * This program monitors GPS and the weather and * transmits reports over APRS over AX.25 */ #include "config.h" #include "cc1050.h" #include "delay.h" #include "gpio_def.h" #include "spilib.h" #include <stdio.h> #include <stdint.h> #include "stdio2.h" ...
/*** *qsort.c - quicksort algorithm; qsort() library function for sorting arrays * * Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved. * *Purpose: * To implement the qsort() routine for sorting arrays. * *Revision History: * 06-22-84 RN author * 03-25-85 RN a...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Demonstrate how to trigger EADC by EPWM. * * @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved. **************************************************************************...
/* ddrvrf1.f -- translated by f2c (version 20061008). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end o...
/* * step.c * * Code generation for function 'step' * */ /* Include files */ #include "step.h" #include "addBoundToActiveSetMatrix_.h" #include "eml_int_forloop_overflow_check.h" #include "mwmathutil.h" #include "normal.h" #include "relaxed.h" #include "rt_nonfinite.h" #include "runOpt.h" #include "runOpt_data.h"...
// See PrimeCell Color LCD Controller (PL111) Technical Reference Manual. #include <errno.h> #include <stdint.h> #include <string.h> #include <kernel/drivers/console.h> #include <kernel/mm/memlayout.h> #include <kernel/mm/page.h> #include <kernel/mm/vm.h> #include <kernel/types.h> #include <kernel/drivers/lcd.h> /...
#pragma ident "$Id: glob.c,v 1.3 2016/01/19 23:03:54 dechavez Exp $" /*====================================================================== * * Parse Q330_configuration.global * * The fsdetect field, marked GUESS, was found in a third party XML file. * I have been unable to find any vendor documentation as to wh...
#define thisprog "xe-statsd1" #define TITLE_STRING thisprog"v 12 14.September.2016 [JRH]" #define MAXLINELEN 10000 #define MAXGROUP 8000 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> /* <TAGS>math stats</TAGS> v 12 28.September.2018 [JRH] - fix variable names and change "varcalc" t...
/************************************************************************* * * * Module: readargv * * * * Read set up opti...
/* * spektrum.c * * ----- This is the emulated version using linux joystick instead of spektrum receiver, for offline mode ----- * * * Created on: August, 2013 * Author: felix */ #include "spektrum_satellite.h" #include "hal/common/time_keeper.hpp" #include "util/print_util.hpp" // #include "joy...
// Copyright 2018 Inca Roads LLC. All rights reserved. // Use of this source code is governed by licenses granted by the // copyright holder including that found in the LICENSE file. #include "main.h" #include "nrf.h" #include "nrf_drv_clock.h" #include "nrfx_twi.h" #include "nrf_drv_twi.h" #include "nrf_gpi...
/* Copyright 1999, Be Incorporated. All Rights Reserved. This file may be used under the terms of the Be Sample Code License. */ #include "GlobalData.h" #include "generic.h" #include <sys/ioctl.h> /* Enable/Disable interrupts. Just a wrapper around the ioctl() to the kernel driver. */ static void interrupt_ena...
/*===============================================================* * varproc.c * Copyright (c) 1985 by <NAME> * Copyright (c) 1986-1995 by Applied Logic Systems, Inc. * | -- functions for dealing with variables prior to compilation. | * Author: <NAME> * Creation: 6/16/85 * Revision History: ...
#ifdef __APPLE__ #include "TargetConditionals.h" #if TARGET_OS_IOS #include "SDL.h" #include "SDL_image.h" #include "SDL_ttf.h" #include "SDL_thread.h" #include "SDL_mutex.h" #else #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include <SDL2/SDL_image.h> #include <SDL2/SDL_thread.h> ...
/* The MIT License (MIT) * * Copyright (c) 2019 <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 the rights * to use, copy, mo...
/* See LICENSE for licence details. */ #include "../yaft.h" #include "../conf.h" #include "../util.h" #include "x.h" #include "../terminal.h" #include "../function.h" #include "../osc.h" #include "../dcs.h" #include "../parse.h" void sig_handler(int signo) { if (signo == SIGCHLD) tty.loop_flag = false; } void sig_...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <assert.h> #include "taint_interface/taint.h" #include "taint_interface/taint_creation.h" #include "xray_token.h" #include "maputil.h" #include "uthash.h" #include "taint_nw.h" #include "bitmap.h" #define MAX_INPUT_SYSCALLS 128 //TODO: a mix use of ...
/* ==================================================================== * Copyright (c) 1999-2001 Carnegie Mellon 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: * * 1. Redi...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <sys/time.h> #include <netinet/tcp.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <netdb.h> #include <errno.h> #include "HttpClient.h" #include "http_parser.h" #include "sds.h...
/* * $Id: sha1.c, implementation of sha1 in c, * originally By <NAME> <<EMAIL>> */ #include "sk.h" #include "sha1.h" #include "strasm.h" void SHA1Transform(ulong state[5], uchar buffer[64]) { ulong a, b, c, d, e; typedef union { uchar c[64]; ulong l[16]; } CHAR64LONG16; CHAR64LONG16 *block; #ifdef...
/* ============================================================================ Name : Simple Remote Execution System Linux server Author : Alex Version : 0.9v Copyright : No copyright Description : 2803ICT assignment 1, Ansi-style, CLion + Ubuntu ===============================================...
#include "fmd.h" #include "fmd_priv.h" #include <assert.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sys/types.h> #include <dirent.h> #include <fcntl.h> #include <unistd.h> const char *fmd_filetype[] = { "file", "directory", "media", "audio", "video", "raster", "ve...
#pragma once #include <cbor.h> #include "filter.h" #include "project.h" #include "util/vector.h" // Rates typedef enum { RATE_MODE_SILVERWARE, RATE_MODE_BETAFLIGHT, } rate_modes_t; typedef struct { vec3_t max_rate; vec3_t acro_expo; vec3_t angle_expo; } rate_mode_silverware_t; #define SILVERWARE_RATE_MEM...
//***************************************************************************** // // set_val.c // // There are often times in-game when we will want to change the values of a // field in a character or object; most DIKU muds do this via a "set" command // that simply has a list of all of the fields, and how to handle ...
/* * Author: <NAME> <<EMAIL>> * * Copyright (c) 2008-2013 Plausible Labs Cooperative, Inc. * All rights reserved. * * 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 * restrict...
#include "smpch.h" #include "cglm/quat.h" #include "cglm/vec3.h" #include "cglm/vec4.h" #include "math/smMath.h" #include "core/smCore.h" #include "math/smTransform.h" #include <math.h> void quat_mul_vec3(versor q, vec3 v, vec3 out) { vec3 qv = {q[0], q[1], q[2]}; vec3 s; glm_vec3_scale(qv, 2.0f, s); fl...
#define _GNU_SOURCE #include <assert.h> #include <dirent.h> #include <err.h> #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <unistd.h> #include <twz/_obj.h> #include "common.h" #define MAGIC "TWIZZLER DEVICE" str...
#include <stdio.h> /*---------------------------------------------------------------------------*/ /* Support for Scheme like stuff */ #define CUSTOM_ALLOC 1 int *alloc; #define CAR(pair) *(pair) #define CDR(pair) *((pair)+1) #if CUSTOM_ALLOC int *old_alloc; #define CONS(car,cdr) ( *(--alloc) = cdr, *(--alloc) ...
#include <wiringPi.h> #include <wiringPiSPI.h> #include <stdio.h> #include <sys/socket.h> #include <arpa/inet.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #define CS 3 #define CHANNEL 0 #define SPEED 500000 int readADC(unsigned char ad...
#include <ctype.h> #include <errno.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <termios.h> #include <sys/ioctl.h> #include <sys/types.h> #include "common.h" static char bufout[256]; static Item *curentry; static char cmd; int lines, columns; static void viewsize(int *ln...
void print_VCF_header(FILE* outfile) { //fprintf(outfile,"##source=HapCUT2 phased haplotype blocks\n"); //fprintf(outfile,"##FORMAT=<ID=GT,Number=1,Type=String,Description=\"Genotype\">\n"); fprintf(outfile,"##FORMAT=<ID=PS,Number=1,Type=Integer,Description=\"ID of Phase Set for Variant\">\n");...
#include <pdlib.h> #ifndef FOURCC #define FOURCC(a, b, c, d) ((a)|((b)<<8)|((c)<<16)|((d)<<24)) #endif #define FCC_PNG_LOW FOURCC(0x89, 'P', 'N', 'G') #define FCC_PNG_HIGH FOURCC(0x0D, 0x0A, 0x1A, 0x0A) #define FCC_IHDR FOURCC('I', 'H', 'D', 'R') #define FCC_IEND FOURCC('I', 'E', 'N', 'D') #define FCC_IDAT FOURCC('...
/** * Dump human readable info from /proc/[pid]/pagemap and/or /proc/kpageflags * given a PID and a virtual address OR a physical address. * * NOTE: refer to `man 5 procfs` for the validity of the bits, some of them only * have a meaning under recent Linux versions. */ #define _XOPEN_SOURCE 500 #include <s...
#include "imagecon.h" static void _sham_generateLinePalette(imagecon_image_t* ic, int line); static void _sham_outputCopperLine(imagecon_image_t* ic, FILE* fp, int line); static FILE* _copperFP; static amiga_color_t *combos; static int totalCombinations = 16*16*16; static amiga_color_t _sham_getHamColor(dither_data_...
/* * ssd1306.c * * * \brief SSD1306 display controller driver. * * Created on: May 17, 2017 * Author: beam */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "driver/spi_master.h" #include "soc/gpio_stru...
/******************************************************************** * * Description : Functions to compute auxiliary information about points on a ship. * * Copyright 2014 Leidos, Inc. * There is no charge to use the library, and it may be accessed at: * https://www.leidos.com/maritime/gsf. * This library may ...
/* * keymap - dump keymap of an evdev device or set a new keymap from a file * * Based on keyfuzz by <NAME> <<EMAIL>> * Adapted for udev-extras by <NAME> <<EMAIL>> * * Copyright (C) 2006, <NAME> * Copyright (C) 2009, Canonical Ltd. * * keymap is free software; you can redistribute it and/or modify it * under ...
/* Grammar implementation */ #include "Python.h" #include "pgenheaders.h" #include <ctype.h> #include "token.h" #include "grammar.h" #include "decode.h" #ifdef RISCOS #include <unixlib.h> #endif static const size_t maximum_string_length=20; grammar * newgrammar(int start) { grammar *g; g = (grammar *) P...
#include <limits.h> #include <assert.h> #if ! defined(_WIN32) # include <sys/time.h> # include <time.h> #endif #include "shogi.h" void set_search_limit_time( int turn ) /* [inputs] global variables: sec_limit time limit of a side for an entire game in seconds sec_limit_up time limit for a move ...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "header.h" void dealloc(int ind,int address); // Global variables ASL_box ASL[ASL_MAX]; allocList alloc_SL; // Information variables int num_alloc_request, num_dealloc_request; int num_splits, num_recomb, num_alloc; double sum_request, sum_alloc, curr...
/* * This file is released under the terms of the Artistic License. Please see * the file LICENSE, included in this package, for details. * * Copyright (C) 2007-2010 <NAME> * * Based on TPC-E Standard Specification Revision 1.10.0. */ #include <sys/types.h> #include <unistd.h> #include <postgres.h> #include <f...
/* * Copyright (C) 2014 The Regents of the University of California. * * 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 code must retain the above copyright notice, * this list of...
/* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ #include "FLAME.h" FLA_Error FLA_Tevd_franc...
/** * statsd-traffic-generator: generates traffic for testing of statsd-cluster * (https://github.com/etsy/statsd/). * * Author: <NAME> <<EMAIL>> * * Enjoy :-)! * **/ #pragma GCC diagnostic ignored "-Wstrict-aliasing" #include <stdlib.h> #include <string.h> #include <stdio.h> #include <netinet/in.h> #includ...
/* * This file is part of DroneBridge: https://github.com/seeul8er/DroneBridge * * Copyright 2018 <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.ap...
/******************************************************************************* * PRIMME PReconditioned Iterative MultiMethod Eigensolver * Copyright (C) 2015 College of William & Mary, * <NAME>, <NAME>, <NAME>, <NAME> * * This file is part of PRIMME. * * PRIMME is free software; you can redistribute ...
// =================================================================== // // Copyright (c) 2005, Intel Corp. // 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 ...
/* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ /* Explanation: * This cint includes functions that are required to activate latency measurements between the I...
/* Software License Agreement (BSD License) Copyright (c) 2006, <NAME> (<EMAIL>) All rights reserved. Redistribution and use of this software 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 ...
/** * \file * * \brief IMA/DVI ADPCM functions usage * * Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip products....
/* * BaramInterf.c * * Created on: 2021. 2. 9. * Author: <NAME> (<EMAIL>) */ //#include <Python.h> #include <curl/curl.h> #include <cjson/cJSON.h> //#define HOST_COMMAND_URL "http://localhost:5000/command" #define HOST_COMMAND_URL "http://172.30.1.34:5000/command" #define COMMAND_CAL_MISALIGNMEN...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Mupen64plus - util.c * * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * * Copyright (C) 2012 CasualJames * * Copyrig...
/* $NetBSD: pci_intr_machdep.c,v 1.6 2003/07/15 01:37:40 lukem Exp $ */ /* * Copyright 2002 Wasabi Systems, Inc. * All rights reserved. * * Written by <NAME> for Wasabi Systems, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #include <signal.h> #include <string.h> #include <time.h> #include <math.h> #include <sys/msg.h> #include <sys/ipc.h> #include <sys/ioctl.h> #include <pthread.h> #include "main.h" #include "tower.h" #include "plane.h" #define MAX_ID 999 #...
#include <stdint.h> #include <stdio.h> #include "modtcp.h" int checkModbusFrame(uint8_t *query, uint8_t *fnc, uint16_t *addr, uint16_t *val) { /* sprawdzenie poprawności ramki*/ if (query[2] != 0x00) { if (query[3] != 0x00) { query[7] += 0x80; return -...
/* Generate tesseroid model from a regular grid. */ #include <stdio.h> #include <time.h> #include "version.h" #include "parsers.h" #include "logger.h" #include "geometry.h" /** Print the help message */ void print_help() { printf("Usage: tessmodgen [ARGUMENTS] [OPTIONS]\n\n"); printf("Generate a tesseroid m...
/* * Copyright (c) 2021, INRIA * Copyright (c) 2021, University of Lille * 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 co...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2019 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 ...
/* Kansas City Standard encoder * Encodes standard input to an 8-bit PCM 22,050 Hz WAV on standard output. * This is free and unencumbered software released into the public domain. */ #include <stdio.h> #ifndef BAUD # define BAUD 300 // 300, 600, or 1200 #endif #ifndef STOPBITS # define STOPBITS 2 // 1 or 2 #...
// BLAKE2b test unit in C // Odzhan #include "b2b.h" #include <ctype.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <stdio.h> #include <sys/stat.h> #include <time.h> char *text[] = { "", "a", "abc", "message digest", "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef...
#include <string.h> #include <ctype.h> #include "moloch.h" static char *qclasses[256]; static char *qtypes[256]; /******************************************************************************/ int dns_name_element(BSB *nbsb, BSB *bsb) { int nlen = 0; BSB_IMPORT_u08(*bsb, nlen)...