text
stringlengths
3.12k
18.7k
/*! \file player_db.c * \todo Gut this entire thing and replace it with SQLite. * \note Removed the stupid 'middle' pointer, since it was a cause of no end of woe, and * realistically, how many players are we ever going to get at a time anyway? If this * somehow becomes a problem, we'll just jump ship for SQLite...
/* absread and abswrite services for use with DJGPP GNU C implementation * * <NAME> 94.10.16 * 94.11.18 added bios i/o * 94.11.21 dos i/o for hard disk, bios i/o for floppy * 94.12.19 add retry for bios I/O * 95.01.05 update for generalized abs i/o in flx */ #include <bios.h> #include <dos.h> #include <go...
/*- * 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...
#include "../intervaldb.h" #include "maf2nclist.h" #include <limits.h> int seqnameID_qsort_cmp(const void *void_a,const void *void_b) { return strcmp(((SeqNameID_T *)void_a)->p,((SeqNameID_T *)void_b)->p); } int seqidmap_qsort_cmp(const void *void_a,const void *void_b) { /* SORT IN ORDER OF id */ SeqIDMap *a=(Se...
/* ****************************************************************************** * @file read_data_simple.c * @author Sensor Solutions Software Team * @brief This file show the simplest way to get data from sensor. * ****************************************************************************** * @attenti...
/* * Copyright (c) 2016-2017 Nordic Semiconductor ASA * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <soc.h> #include <drivers/clock_control.h> #include <drivers/clock_control/nrf_clock_control.h> #include <drivers/timer/system_timer.h> #include <sys_clock.h> #include <...
/** * @file HandleControlPacket.c * This file contains the routines to deal with * sending and receiving of control packets. */ #include "headers.h" /** * When a control packet is received, analyze the * "status" and call appropriate response function. * Enqueue the control packet for Application. * @return No...
#include "cmsis_os.h" #include "tasks_init.h" #include "stdio.h" #include "stdbool.h" #include "adc_task.h" #include "compressor_task.h" #include "temperature_task.h" #include "report_task.h" #include "log.h" /*任务句柄*/ osThreadId temperature_task_hdl; /*消息句柄*/ osMessageQId temperature_task_msg_q_id; /**/ static int...
/* vim:expandtab:tw=80:ts=2:sts=2:sw=2 */ /*- * Copyright (c) 2011 <NAME>. 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 code must retain the above copyright n...
/* mbed Microcontroller Library ******************************************************************************* * Copyright (c) 2014, STMicroelectronics * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include "thnets.h" typedef struct { char filename[255]; unsigned char *bitmap; int width, height, cp; } img_t; double t; int loadimage(const char *path, img_t *image); static double seconds() { static double base...
/********************************************************************* * * Very simple code snippets to read/write nifti1 files * This code is placed in the public domain. * * If you are the type who doesn't want to use a file format unless * you can write your own i/o code in less than 30minutes, this * example...
#include <stdio.h> #include <stdlib.h> #include <stdlib.h> #include <stdio.h> #include "mmio.h" /*#include "mkl.h"*/ /* mkl_cspblas_dcsrgemv*/ #include "arch.h" #include "csr_mat.h" #include "wallclock.h" #include <omp.h> #define MAX(a,b) ((a)>(b) ? (a) : (b)) #define LINESIZE 100 #define MAXN 2000000 typedef en...
#include <sys/socket.h> #include <fcntl.h> #include <string.h> #include "tsar.h" #define RETRY_NUM 3 /* swift default port should not changed */ #define HOSTNAME "localhost" #define PORT 82 #define EQUAL "=" #define DEBUG 1 char *swift_balancer_usage = " --swift_balancer Swift L7 balancer infomation...
/* Copyright (c) 1998-2015, <NAME> <<EMAIL>> <NAME> <<EMAIL> <NAME> <<EMAIL>> Permission to use, copy, modify, and/or 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 copies. THE SOFTWARE IS PROVIDED "AS ...
/********************************************************************************************** * * raylib - Advance Game template * * Gameplay Screen Functions Definitions (Init, Update, Draw, Unload) * * Copyright (c) 2014 <NAME> (@raysan5) * * This software is provided "as-is", without any express or implied...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\ * This is GNU Go, a Go program. Contact <EMAIL>, or see * * http://www.gnu.org/software/gnugo/ for more information. * * * * Copyright 1999, 2000, 2001, 2002, 2003...
/************************* (C) COPYRIGHT 2010 ROBOTIS ************************** * File Name : led.c * Author : zerom * Version : V0.0.1 * Date : 2010/08/23 * Description : Contains the functions and defines for the LEDs * Comment : This file has bee...
#include "hdfs.h" #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <malloc.h> #include <sys/types.h> #include <sys/stat.h> #include <time.h> #include <unistd.h> #include <sys/mman.h> #include <fcntl.h> #include <string.h> #include "immintrin.h" // 1GB static const int size = 1024 * 1024 * 1024; lon...
/* * utils.c for libdivsufsort * Copyright (c) 2003-2008 <NAME> 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 * restriction, including without limitati...
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* Copyright(c) 2019-2020 Realtek Corporation */ #include "debug.h" #include "efuse.h" #include "reg.h" enum rtw89_efuse_bank { RTW89_EFUSE_BANK_WIFI, RTW89_EFUSE_BANK_BT, }; static int rtw89_switch_efuse_bank(struct rtw89_dev *rtwdev, enum rtw89_efuse_b...
//No standard libraries. #define WIN32_LEAN_AND_MEAN #define WINVER 0x0400 #include <stdbool.h> //This doesn't really count #include <stdarg.h> //Ditto. #include <windows.h> struct BoostBar{ int min; int max; char text[16]; int *src; int fgcolor; int bgcolor; int iconx; int icony; int texpage; }; extern v...
/* nv2msgt.f -- translated by f2c (version 20031025). 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...
/* The following program solves the second-order nonlinear Van der Pol oscillator equation (see Landau/Paez 14.12, part 1), x"(t) + \mu x'(t) (x(t)^2 - 1) + x(t) = 0 This can be converted into a first order system suitable for use with the library by introducing a separate variable for the velocit...
/* sim-alignment: * simulation testbed for evaluating alignment accuracy. */ #include "p7_config.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "easel.h" #include "esl_alphabet.h" #include "esl_getopts.h" #include "esl_random.h" #include "esl_sq.h" #include "esl_sqio.h" #include "hmmer.h" ...
/* * Copyright (c) 2018 <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 copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
/* * Copyright (c) 1991 <NAME> * * Disclaimer: No guarantees of performance accompany this software, * nor is any responsibility assumed on the part of the authors. All the * software has been tested extensively and every effort has been made to * insure its reliability. */ /* * thresh.c - apply a threshold ...
/* * c-web.c * * Created on: July 7, 2018 * Author: nick-hiebl * * A C webserver using standard libraries. * * * Made using heavy reference to: * https://gist.github.com/Xeoncross/4113893 */ #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <sys/typ...
/** ****************************************************************************** * @file lib_NDEF_SMS.c * @author MMY Application Team * @version $Revision$ * @date $Date$ * @brief This file help to manage NDEF file that represent SMS. ************************************************************...
#include "OLED_GFX.h" #include <stdio.h> #define swap(a, b) { uint16_t t = a; a = b; b = t; } uint8_t Row,Column; FONT_SIZE Font_Size; void OLED_GFX(void) { Row = 0; Column = 0; Font_Size = FONT_5X8; } void Set_FontSize(FONT_SIZE size) { Font_Size = size; } void print_String(uint8_t x, uint8_t y, const...
/* Copyright (C) 2011 the GSS-PROXY contributors, see COPYING for license */ #include "config.h" #include <pthread.h> #include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include "gp_proxy.h" #define DEFAULT_WORKER_THREADS_NUM 5 #define GP_QUERY_IN 0 ...
/* * cr3 Predictable Random Numeric Key Generator (c) <NAME> 5/4/2020 * * LFSR routines derived from A.C./schneier. See page 375 for code, 376 for initial primitive polynomials * * The key is composed of 2 groups of 8 hex digits. Group 1 is the starting count, * group 2 is the starting value. The actual values are d...
/* Copyright 2019, <NAME>. * Copyright 2016, <NAME>. * All rights reserved. * * This file is part sAPI library for microcontrollers. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of sou...
/* --COPYRIGHT--,BSD_EX * Copyright (c) 2014, Texas Instruments Incorporated * 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 c...
/* Audio Overload SDK - main driver. for demonstration only, not user friendly! Copyright (c) 2007-2009 <NAME> and <NAME>. 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 so...
//Parallel random number series generator //October 30th 2019 //<NAME> and <NAME> #include <stdio.h> #include <stdlib.h> #include <mpi.h> #include <sys/time.h> #include <math.h> //Need to have a serial baseline function and a serial matrix function int A = 0, B = 0, P = 0, seed = 0; int **alloc_2d_contig(int rows, in...
#include <allegro.h> #include <stdio.h> #include "dati.h" #include "discovolante.h" #include "esplosione.h" #include "missile.h" DATAFILE *dati,*discovolante,*esplosione,*missil; BITMAP *buf,*scrolling; int alt=1080,larg=1920,xp,yp,velox=10,limx=260,limy=90,molt,xscroll,vel_f=5,xc,yc,xconto,yconto,vel_n=10; int sini...
/* * Copyright (c) 2010 <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 copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
/** ****************************************************************************** * File Name : USART.c * Description : This file provides code for the configuration * of the USART instances. ****************************************************************************** * Thi...
/* * lws-minimal-http-client-attach * * Written in 2010-2019 by <NAME> <<EMAIL>> * * This file is made available under the Creative Commons CC0 1.0 * Universal Public Domain Dedication. * * This demonstrates how to use the lws_system (*attach) api to allow a * different thread to arrange to join an existing lw...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> /* struct for movie information */ struct movie { char *title; int year; char *languages; double rating; struct movie *next; }; /* Parse the current line which is space delimited and create a * movie struct with the da...
#include <stdio.h> #include "twc_design.h" #include "project.h" #include "win_stuff.h" /* Code (.c) and header (.h) files headers */ #define CODE_START T( "#include <windows.h>\n" ) \ T( "#include \"twc.h\"\n" ) \ T( "#include \"interface.h\"\n\n" ) #define HEADER_START T( "#in...
#include <inttypes.h> #include <stdio.h> #include <string.h> #include "simplerandom.h" #include "bitcolumnmatrix.h" static int test_multi(void) { SimpleRandomCong_t cong; SimpleRandomSHR3_t shr3; SimpleRandomMWC1_t mwc1; SimpleRandomMWC2_t mwc2; SimpleRandomKISS_t kiss; ...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> /* Variable Declarations */ int upper = 10; /* Declares the highest value card */ int lower = 1; /* Declares the lowest value card */ int pdeck[10]; /* Declares the player's 'hand' (max 10 cards) */ int psum = 0; /* Declares the play...
/* Segment types */ #define PT_NULL 0 #define PT_LOAD 1 #define PT_DYNAMIC 2 #define PT_INTERP 3 #define PT_NOTE 4 #define PT_SHLIB 5 #define PT_PHDR 6 #define PT_LOOS 0x60000000 #define PT_HIOS 0x6fffffff #define PT_LOPROC 0x70000000 #define PT_HIPROC 0x7fffffff #define PT_GNU_EH_FRAME 0x6474e550 /* Extension, ...
#include <stdlib.h> #include <unistd.h> #include <ctype.h> #include <assert.h> #include <libopticon/util.h> #include <libopticon/var_parse.h> #include <libopticon/ioport_buffer.h> #include <libopticon/var_dump.h> #include "req_context.h" /** Allocate a request argument list */ req_arg *req_arg_alloc (void) { req_a...
#include <svp/testoutput.h> #include <svp/mgsim.h> #include <stdint.h> #include <stddef.h> #include "mtconf.h" #include "gfxlib.h" const char *testconf = "\0PLACES: 1"; // for "make check": this program is single-threaded. int test(void) { sys_detect_devs(); sys_conf_init(); if (!gfx_initialize()) ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #include "lightmqtt/packet.h" #include "lightmqtt/client.h" #include "helpers.h" static lmqtt_client_t client; static char id[256]; static char to[256]; static char msg[256]; s...
/* ----------------------------------------------------------------- */ /* The Speech Signal Processing Toolkit (SPTK) */ /* developed by SPTK Working Group */ /* http://sp-tk.sourceforge.net/ */ /* -----------------------------...
#include <stdlib.h> #include <stdio.h> #include <string.h> /* * 红黑树 * 包含以下性质的扩展二叉树 * 性质: * RB1 : 根节点与外部节点为黑节点 * RB2 : 从根至任意外部节点的路径上红节点不能连续 * RB3 : 从根至任意外部节点的路径上黑节点数目相同 * */ typedef enum color { RED, BLACK } Color; // 元素 typedef struct Node { int data; Color color; struct Node *lef...
// Copyright 2018, <NAME>, Oath Research #include "fm85Merging.h" UG85 * ug85Make (Short lgK) { assert (lgK >= 4); UG85 * self = (UG85 *) malloc (sizeof(UG85)); assert (self != NULL); self->lgK = lgK; // We begin with the accumulator holding an EMPTY sketch object. // As an optimization the accumulator c...
/* ======================================================================== * * Module ............. libbtsystem * File ............... btparser.c * Creation Date ...... 15 Feb 2005 * Author ............. <NAME> * * * ******************...
#include <stdio.h> // standard I/O #include <stdlib.h> // standard Lib #include <string.h> // memory and string #include <qjournal.h> // Journal functions #include <qusptrus.h> // Pointer User Space ...
/* * Copyright (c) 2015-2016 <NAME> (<EMAIL>) * * This is free software: you can redistribute it and/or modify * it under the terms of the Artistic License 2.0 as published by * The Perl Foundation. * * This source is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the i...
/** * Copyright (C) Mellanox Technologies Ltd. 2001-2020. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #include "config.h" #include <xccl_context.h> #include <xccl_progress_queue.h> #include <xccl_ucs.h> #include <ucs/sys/math.h> #include <stdlib.h> #include <string.h> #include <stdio.h> static xccl_statu...
/* phToPsl - Convert from Pattern Hunter to PSL format. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "dystring.h" #include "options.h" #include "psl.h" #include "obscure.h" void usage() /* Explain usage and exit. */ { errAbort( "phToPsl - Convert from Pattern Hunter to PSL format\n" "us...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2018 Rubicon Communications, LLC (Netgate) * * 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 ...
/* * * Copyright 2017 Samsung Electronics 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 * * Unless require...
/* Remote debugging interface for Renesas HMS Monitor Version 1.0 Copyright 1995, 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Contributed by Cygnus Support. Written by <NAME> (<EMAIL>). This file is part of GDB. This program is free software; you can redistribute it and/or modify ...
/* * Copyright (c) 2019-2021, <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or 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 copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT...
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause /* * Copyright (C) 2015-2017 Intel Deutschland GmbH * Copyright (C) 2018-2020 Intel Corporation */ #include <linux/module.h> #include <linux/stringify.h> #include "iwl-config.h" #include "fw/file.h" #include "iwl-prph.h" /* Highest firmware API version supported *...
/* This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary, for any purpose, commercial or non-commercial, and by any * means. * * See LICENSE for c...
typedef struct OCLControl { cl_context ctx; // OpenCL context cl_device_id device; // OpenCL device list cl_program prog; // OpenCL program cl_command_queue queue; // command queue of the targe GPU device } OclControl; typedef struct OCLKernels { cl_...
/* hgLoadPsl - Load up a mySQL database with psl alignment tables. */ /* Copyright (C) 2013 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "options.h" #include "jksql.h" #include "dystring.h" #include "psl.h...
/* $OpenBSD: sio.c,v 1.40 2015/08/15 19:26:00 miod Exp $ */ /* $NetBSD: sio.c,v 1.15 1996/12/05 01:39:36 cgd Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. * All rights reserved. * * Author: <NAME> * * Permission to use, copy, modify and distribute this software and * its documentation is h...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2015 Google, Inc */ #include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> #include <i2c.h> #include <power/pmic.h> #include <power/regulator.h> #include <power/s5m8767.h> static const struct sec_voltage_desc buck_v1 = { .max = 2225000, ....
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" #include "../port/error.h" extern PhysUart i8250physuart; extern PhysUart pciphysuart; extern void* i8250alloc(int, int, int); static Uart *perlehead, *perletail; static Uart* uartpci(int ctlrno, Pcidev* p, int...
/* y = psdinvscale(ud,x,K,transp) Computes y = D(d^{-1}) x with d in K. !transp then Y = Ld' \ X / Ld transp == 1 then Y = Ud' \ X / Ud % This file is part of SeDuMi 1.1 by <NAME> and <NAME> % Copyright (C) 2005 McMaster University, Hamilton, CANADA (since 1.1) % % Copyright (C) 2001 <NAME> (up t...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2017 <NAME> for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to d...
#include <stdbool.h> #include <stdlib.h> #include <math.h> #include <libwdsp.h> #include "filters.h" #define NUMVOICES 20 #define NUMOSCS 4 struct osc { float phase; float freq; float vol; float output; }; struct voice { struct osc oscs[NUMOSCS]; int note; float freq; float output[2]; float env; struct f...
//units.c contains unit data, unit functions, and unit name recognition #include "general.h" //Header info for units.c is in general.h //IMPORTANT: this array must be in alphabetical order (according to ASCII, so that includes case), otherwise the binary search method will not find it. All units are automatically teste...
/* * definition for execv syscall * */ #include <types.h> #include <limits.h> #include <kern/errno.h> #include <proc.h> #include <proc_table.h> #include <thread.h> #include <current.h> #include <syscall.h> #include <vnode.h> #include <vfs.h> #include <addrspace.h> #include <copyinout.h> #include <files_table.h> #d...
/*********************************************************************** * pc_patch_lazperf.c * * PgSQL Pointcloud is free and open source software provided * by the Government of Canada * * Copyright (c) 2016 <NAME>, Oslandia * ***********************************************************************/ #include "pc_api_...
/* * Copyright 2014-2016 High Performance Computing Center, Stuttgart * * 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 re...
/* Copyright, Samsung Corporation 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 conditions and the following disclaimer. ...
/* * This file is part of the OpenMV project. * Copyright (c) 2013/2014 <NAME> <<EMAIL>> * This work is licensed under the MIT license, see the file LICENSE for details. * * main function. * */ #include <stdio.h> #include <stdbool.h> #include <string.h> #include "py/mpconfig.h" #include "py/qstr.h" #include "py...
#include <minix/driver.h> #include <acpi.h> #include <assert.h> #include <minix/acpi.h> #include "acpi_globals.h" #define PCI_MAX_DEVICES 32 #define PCI_MAX_PINS 4 #define IRQ_TABLE_ENTRIES (PCI_MAX_DEVICES * PCI_MAX_PINS) struct pci_bridge { ACPI_HANDLE handle; int irqtable[IRQ_TABLE_ENTRIES]; int primary_...
/*- * SPDX-License-Identifier: BSD-3-Clause * * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved. * Copyright (c) 2008-2012, by <NAME>. All rights reserved. * Copyright (c) 2008-2012, by <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modi...
/* * Licensed to Systerel under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Systerel licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this * file except ...
/* Copyright (C) 2001-2021 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
/* * Copyright (C) <NAME> * Copyright (C) Rap, Inc. */ #include <rap_config.h> #include <rap_core.h> #include <rap_http.h> static char *rap_http_flv(rap_conf_t *cf, rap_command_t *cmd, void *conf); static rap_command_t rap_http_flv_commands[] = { { rap_string("flv"), RAP_HTTP_LOC_CONF|RAP_CONF_NOARG...
/* GStreamer * Copyright (C) 2004 <NAME> <<EMAIL>> * * 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 * version 2 of the License, or (at your option) any later version. * *...
// pio.c #define IO_BANK0_BASE 0x40014000 #define GPIO_20_CTRL (IO_BANK0_BASE+0xA4) #define GPIO_21_CTRL (IO_BANK0_BASE+0xAC) #define GPIO_22_CTRL (IO_BANK0_BASE+0xB4) #define PIO_0_BASE 0x50200000 #define PIO_0_CTRL PIO_0_BASE #define PIO_0_FIFOSTATUS (PIO_0_BASE+0x04) #define PIO_0_FIFOLVL ...
/* * Platform dependent support for SGI SN1 * * Copyright (C) 2000 Silicon Graphics * Copyright (C) 2000 <NAME> (<EMAIL>) * Copyright (C) 2000 <NAME> (<EMAIL>) */ #include <linux/config.h> #include <linux/init.h> #include <linux/sched.h> #include <asm/current.h> #include <linux/irq.h> #include <linux/inter...
#include "obj.h" #include "triangle.h" #include <string.h> #include <stdio.h> #include <stdlib.h> #include <math.h> obj_t* load_obj(obj_t* result, const char* filename) { char buf[1024]; memset(result, 0, sizeof(obj_t)); FILE* fp = fopen(filename, "r"); if (!fp) { result->valid = false; ...
/* * Copyright 2017 Dell Inc. or its subsidiaries. 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 * * Unless req...
/***************************************************************************** Copyright (c) 1993-2000, Div. Medical and Biological Informatics, Deutsches Krebsforschungszentrum, Heidelberg, Germany All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permi...
/* Binaries - 6 kyu * nlantau, 2021-09-04 */ #include <stdio.h> #include <stdlib.h> #include <string.h> char *bin(char c) { int i = 5, k; int first_one = 0; char *s = calloc(6, sizeof(char)), *t; char *x = calloc(6, sizeof(char)), *y; t = s; y = x; for (; i >= 0; i--, *s++) { k = c >> i; if (k & 1) *s = ...
/****************/ /* Others games */ /****************/ /* toaplan1.c & toaplan2.c */ extern struct GameDriver driver_batsugun; extern struct GameDriver driver_batugnsp; extern struct GameDriver driver_demonwld; extern struct GameDriver driver_dogyuun; extern struct GameDriver driver_fireshrk; extern struct GameDriver...
#include <assert.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdint.h> #define LEN_WRD 4 /* bytes per word */ #define LEN_HDR (LEN_WRD * 3) /* bytes per header */ #define LEN_PKT (LEN_WRD * 8) /* bytes per packet...
/* * Copyright (c) 1998,2011,2014 Apple 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...
/* * 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 src/OPENSOLARIS.LICENSE * or http://www.opensolaris.o...
/* AM2301 * Se encarga de comunicarse con el sensor AM2301, organizar los datos de temperatura y humedad * para luego enviarlos por cola */ #include <string.h> #include "AM2301.h" #include "driver/gpio.h" #include "esp_log.h" #include "freertos/FreeRTOS.h" #include "freertos/event_groups.h" #include "freertos/queue.h...
/* * This file is part of the coreboot project. * * Copyright (C) 2014 Sage Electronic Engineering, LLC. * Copyright (C) 2017 Advanced Micro Devices, Inc. * * 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 So...
/* * SysDB - t/integration/mock_plugin.c * Copyright (C) 2014 Sebastian 'tokkee' Harl <<EMAIL>> * 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 code must r...
/* * 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 ...
/* Schrader TPMS protocol * * Copyright (C) 2016 <NAME> * and 2017 <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 optio...
/* * This file is part of the coreboot project. * * Copyright (C) 2011 Advanced Micro Devices, Inc. * * 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; version 2 of the License. * * This ...
/** ****************************************************************************** * File Name : I2C.c * Description : This file provides code for the configuration * of the I2C instances. ****************************************************************************** * ...
/* * Copyright (c) 2014 <NAME> * 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 conditions and ...