text stringlengths 7.55k 41.9k |
|---|
/*****************************************************************************
* audio.c: audio decoder using libavcodec library
*****************************************************************************
* Copyright (C) 1999-2003 VLC authors and VideoLAN
* $Id: eec255ae0bd4e6a1f424d5bedd6895882a1ff461 $
*
* Au... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/wait.h>
//Sizes
#define size_char 1
#define size_int 4
//Defines for ... |
/* tparse.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__400 = 400;
/* $Procedure TPARSE ( Parse a UTC time string ) */
/* Subroutine */ int tparse_(char... |
#define _XOPEN_SOURCE
#include "zmq.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <time.h>
#include <math.h>
#include <limits.h>
#include <getopt.h>
#define BUFLEN 256
#define STRLEN 16
#define TSLEN 32
#define BANDNAMES {"160m", "80m", "60m", "40m", "30m", "20m", "17m", "... |
/***************************************************************************
* Copyright (C) 2013 Andes Technology *
* <NAME> <<EMAIL>> *
* *
* This program is free softwar... |
/*
Chaskey-12 reference C implementation
Written in 2015 by <NAME>, based on Chaskey
To the extent possible under law, the author has dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
You sh... |
/* -*- Mode: C; tab-width: 8; -*-
*
* Browser Plugin for Squeak on Unix platforms
*
* Author: <NAME>
*
* Last edited: 2005-03-17 12:15:48 by piumarta on squeak.hpl.hp.com
*
* History:
* Jan 2005 - looking for image and npsqueakrun in system and home dir
* kill squeak window when... |
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include "test.h"
//static int debug = 0;
//extern int debug;
int debug = 0;
void assertChar(char *name, char expect, char actual) {
if (actual == expect) {
if (debug) {
printf("%s: OK, expect: '%c', actual... |
/* hgWiggle - fetch wiggle data from database or .wig file */
#include "common.h"
#include "options.h"
#include "linefile.h"
#include "obscure.h"
#include "hash.h"
#include "cheapcgi.h"
#include "jksql.h"
#include "dystring.h"
#include "wiggle.h"
#include "hdb.h"
#include "portable.h"
#include "memalloc.h"
/* Command... |
/*
* PiFmRds - FM/RDS transmitter for the Raspberry Pi
* Copyright (C) 2014, 2015 <NAME>, F8FTK
* Copyright (C) 2012, 2015 <NAME>
* Copyright (C) 2012 <NAME> and <NAME>
*
* See https://github.com/ChristopheJacquet/PiFmRds
*
* PI-FM-RDS: RaspberryPi FM transmitter, with RDS.
*
* This file contains the VHF FM m... |
/* spkw18.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__15 = 15;
static integer c__2 = 2;
static integer c__6 = 6;
static integer c__1 = 1;
/* $Procedure SPKW... |
/*
* Miniphone: A simple, command line telephone
*
* IAX Support for talking to Asterisk and other Gnophone clients
*
* Copyright (C) 1999, Linux Support Services, Inc.
*
* <NAME> <<EMAIL>>
*
* This program is free software, distributed under the terms of
* the GNU General Public License
*/
#include <stdio.... |
// Options: --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 --no-float --main --math64 --muls --safe-math --no... |
/*
* Copyright (C) 2007 <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 limitation the rights to use, copy, mo... |
/* SCHEME->C */
#include <objects.h>
void scqquote__init();
DEFSTATICTSCP( c2426 );
DEFSTATICTSCP( t2512 );
DEFSTATICTSCP( t2513 );
DEFSTATICTSCP( c2402 );
DEFSTATICTSCP( c2391 );
DEFSTATICTSCP( c2378 );
DEFSTATICTSCP( c2334 );
DEFSTATICTSCP( c2306 );
DEFSTATICTSCP( t2514 );
DEFSTATICTSCP( c2299 );
DEFSTATICTSCP( c2... |
/* --COPYRIGHT--,BSD
* Copyright (c) 2015, 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 copy... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <openssl/evp.h>
#include <openssl/bn.h>
#include <openssl/ec.h>
#include <openssl/obj_mac.h>
#include <openssl/ecdsa.h>
#define MESSAGE_LEN 32
#define BASE58_LEN 35 // maximum bitcoin address length
static const... |
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <linux/sync_file.h>
#include <poll.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <wayland-client.h>
#include <wayland-egl.h>
#include <EGL/eg... |
/*
* Copyright (c) 2015-2016, <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 copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... |
/* asmopcod.h -- include file for microsoft 80x86 assembler
**
** microsoft (r) macro assembler
** copyright (c) microsoft corp 1986. all rights reserved
**
** <NAME>
*/
#define IMUL3 0x69 /* 3 argument integer multiply */
#define ARITHBASE 0xF6 /* base opcode for arithmetic opcodes */
/* base opcode for... |
/*
* *** Fine Offset WH1080/WH3080 Weather Station ***
*
* This module is based on <NAME> ('viraptor' https://github.com/viraptor ) code stub for the Digitech XC0348
* Weather Station, which seems to be a rebranded Fine Offset WH1080 Weather Station.
*
* Some info and code derived from <NAME>'s page:
* http://ww... |
/*
* Copyright (C) 2010 The Chromium OS Authors <<EMAIL>>
*
* Device-Mapper block hash tree interface.
* See Documentation/device-mapper/dm-bht.txt for details.
*
* This file is released under the GPL.
*/
#include <limits.h>
#include <string.h>
#include <asm/page.h>
#include <linux/bitops.h> /* for fls() */
#i... |
// Small bug TO-FIX: First line chopped off when opening file
// Feature test macros
#define _DEFAULT_SOURCE
#define _BSD_SOURCE
#define _GNU_SOURCE
#include <ctype.h>
#include <stdio.h>
#include <stdarg.h>
#include <termios.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <time.h>
#include <str... |
/*
Copyright (c) 1991-1999 <NAME>
"The MIT license"
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, merg... |
/* iv.c
*
* Modified Bessel function of noninteger order
*
*
*
* SYNOPSIS:
*
* double v, x, y, iv();
*
* y = iv( v, x );
*
*
*
* DESCRIPTION:
*
* Returns modified Bessel function of order v of the
* argument. If x is negative, v must be integer v... |
/**
* (C) Copyright 2019-2021 Intel Corporation.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*/
/**
* object server operations
*
* This file contains the object server remote object api.
*/
#define D_LOGFAC DD_FAC(object)
#include <uuid/uuid.h>
#include <abt.h>
#include <daos/rpc.h>
#include <daos_srv/po... |
/*-----------------------------------------------------------------------*/
/* Program: STREAM */
/* Revision: $Id: stream.c,v 5.10 2013/01/17 16:01:06 mccalpin Exp mccalpin $ */
/* Original code developed by <NAME> */
/* Programmers: <NAME... |
/* set ellipsoid parameters a and es */
#include <string.h>
#include <errno.h>
#include <proj.h>
#include "proj_internal.h"
#include "projects.h"
/* Prototypes of the pj_ellipsoid helper functions */
static int ellps_ellps (PJ *P);
static int ellps_size (PJ *P);
static int ellps_shape (PJ *P);
static int ellps_spheri... |
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include <glob.h>
#include <fcntl.h>
#include <math.h>
#include <errno.h>
#include <signal.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
#include <sys/termios.h>
#include "global.h"
#define DEB... |
/*
* Copyright 2013 University of Chicago
*
* 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 a... |
/*
* Copyright 2016 <NAME> <<EMAIL>>
*
* 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, publis... |
/* BSD 3-Clause License
*
* Copyright © 2008-2020, Jice and the libtcod contributors.
* 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 ... |
/*
Copyright (C) 1996-1997 Id Software, 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; either version 2
of the License, or (at your option) any later version.
This program is distributed in th... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "memAPI.h"
#if 0
#include "ctemplate.h"
#include "deviceid.h"
#include "string_mgr_api.h"
#include "printvars_api.h"
#include "oid_api.h"
#include "file_to_pipe_api.h"
#include "internal_page_api.h"
#include "report_manager.h"
#include "report_pag... |
/* emit_gnu.c - emit GNU assembly Author: <NAME>
* 28 Dec 1993
*/
#define nil 0
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <assert.h>
#include "asmconv.h"
#include "token.h"
#include "asm86.h"
#include "languages.h"
typedef struct mnemonic { /* GNU as386 mnemonic... |
// ---------------------------------------------------------------------------
// Copyright <NAME> 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)... |
// i2c.h
//
// These functions let you use I2C (The Broadcom Serial Control bus with the Philips
// I2C bus/interface version 2.1 January 2000.) to interface with an external I2C device.
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <st... |
/* Copyright (C) 1996-2001 Id Software, Inc.
Copyright (C) 2002-2009 <NAME> and others
Copyright (C) 2011-2016 OldTimes Software
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
... |
/**************************************************************************
* *
* This code is developed by <NAME>. This software is an *
* implementation of a part of one or more MPEG-4 Video tools as *
* specified in ... |
/* mol3d_io
Molecule coordinate data file input/output.
clib v1.1
Copyright (C) 1997-1998 <NAME>
5-Apr-1997 optimized PDB file read procedure
28-Jan-1998 rewrite PDB read, added at3d ordinal and related routines
4-Mar-1998 first working PDB write routine
4-May-1998 broken out of mol3d... |
#include <stdio.h>
#include "estr.h"
#include "esp_log.h"
#include "esp_http_client.h"
#include "string.h"
#include "nvs_flash.h"
#include "app.h"
#include "cJSON.h"
extern const uint8_t certificate_pem_start[] asm("_binary_certificate_pem_start");
extern const uint8_t certificate_pem_end[] asm("_binary_ce... |
/*
* Copyright 2021 ByteDance Inc.
*
* 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 ... |
#include "chinnacc.h"
#include <stdlib.h>
// an additional DS to wrap around vars, as we are already using var->next to access all locals/globals
// when iterating through them. It could be possible that we make use of just scopes to then derive locals/globals,
// instead of having 'locals' and 'globals', but they pro... |
#include "CC1101.h"
#include "Core.h"
#include "SPI.h"
#include "GPIO.h"
#include <string.h>
/*
* PRIVATE DEFINITIONS
*/
#ifndef CC1101_AIR_BAUD
#define CC1101_AIR_BAUD 38400
#endif
#ifndef CC1101_FREQ_KHZ
#define CC1101_FREQ_KHZ 915000
#endif
#ifndef CC1101_DEV_KHZ
#define CC1101_DEV_KHZ ... |
/****************************************************************************
* Copyright (C) 2017 by <NAME> *
* *
* This file is all of assignment 2 file *
* ... |
/*** zoneinfo.c -- dst switches as event stream
*
* Copyright (C) 2020 <NAME>
*
* Author: <NAME> <<EMAIL>>
*
* This file is part of echse.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistribu... |
/*
* JFFS2 -- Journalling Flash File System, Version 2.
*
* Copyright (C) 2004 <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>,
* University of Szeged, Hungary
*
* For licensing information, see the file 'LICENCE' in this directory.
*
* $Id... |
/*----------------------------------------------------------------------
*
* 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.
*
* $Copyright: (c) 2014 Broadcom Corporatio... |
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010 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 Found... |
/*D***********************************************************
* modul: API - database select one entry
*
* paras: int table to select from
* int id which entry to select
* char *pointer data pointer for found entry
*
* return: _UNDEF if error or the number of the ... |
/*
* Copyright (C) 2011 <NAME> ( http://www.micode.net )
*
* 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 ap... |
/******************************************************************************
pnmcolormap.c
*******************************************************************************
Create a colormap file (a PPM image containing one pixel of each of a set
of colors). Base the set of colors ... |
/*
* Author: <NAME>
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/time.h>
#include <math.h>
#include <pthread.h>
#include <unistd.h>
#include <signal.h>
#include <limits.h>
#include "my_math.h"
#include "my_list.h"
/* Constants */
#define MIC_TO_MIL 1000
#define MIC_TO_SEC 1000000
... |
// Copyright (C) 2015-2021 <NAME>, Inc.
//
// 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
// notice,... |
/* 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, modify, merge, publish,
* dis... |
/*******************************************************************************
USB Audio Class Function Driver
Company:
Microchip Technology Inc.
File Name:
usb_device_audio_v2_0.c
Summary:
USB audio class function driver.
Description:
USB audio class function driver.
*******************... |
/* A nondeterministic TM simulator implementation */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
/* ---------------------------------------------------------------------- */
typedef struct STRING{
char **tape; //input string;
int length; //... |
// WallFollower.c
// Runs on LM4F120/TM4C123
// Use SysTick interrupts to implement a software PWM to drive
// two DC motors at variable duty cycles.
// Two GP2Y0A21YK0F analog IR distance sensors are used to allow
// the robot to follow a wall. The two IR sensors are mounted
// looking forward to the left and forward... |
/* =========================================================================
zbeacon - LAN discovery and presence
Copyright (c) the Contributors as noted in the AUTHORS file.
This file is part of CZMQ, the high-level C binding for 0MQ:
http://czmq.zeromq.org.
This Source Code Form is subject to t... |
/*
* IMS Open Corpus Workbench (CWB)
* Copyright (C) 1993-2006 by IMS, University of Stuttgart
* Copyright (C) 2007- by the respective contributers (see file AUTHORS)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as publish... |
// Copyright 2015, 2016 <NAME>
// Licensed under the Apache License version 2.0
// You may not use this file except in compliance with this License
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#include <stdio.h>
#include <string.h> // for memcpy
#include "communication.h"
#inc... |
/** @file scalespace.c
** @brief Scale Space - Definition
** @author <NAME>
** @author <NAME>
** @author <NAME>
**/
/*
Copyright (C) 2007-12 <NAME> and <NAME>.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*/
/**
<!-... |
/*
* Copyright (C) 1997 Massachusetts Institute of Technology
*
* This software is being provided by the copyright holders under the
* following license. By obtaining, using and/or copying this software,
* you agree that you have read, understood, and will comply with the
* following terms and conditions:
*
*... |
/*
* Copyright (C) 2002 - 2005 <NAME> <<EMAIL>>
* With enhancements from <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distribute... |
/*
* (C) Copyright 2009
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* (C) Copyright 2008
* Marvell Semiconductor <www.marvell.com>
* Written-by: <NAME> <<EMAIL>>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
*... |
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2017 Cavium, Inc.
*/
#include <linux/bpf.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <assert.h>
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>... |
/**
*
* Copyright (c) 2019-2020. The UMSE Authors. 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 notice, this
* li... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#ifndef _WIN32
# include <strings.h>
#endif
#include "protos.h"
#include "registry.h"
#include "data.h"
#if 0
void
gen_c_unpack( FILE * fp, const node_t * ModName, char * inout, char * inoutlong )
{
char tmp[NAMELEN], tm... |
//
// stdafx.c
// C_test
//
// Created by runo on 17/2/17.
// Copyright © 2017年 com.runo. All rights reserved.
//
#include "stdafx.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavfilter/avfiltergraph.h"
#include "libavcodec/avcodec.h"
#include "libavfilter/buffersink.h"
#includ... |
#include "xmfract.h"
#include "fractype.h"
#include "macros.h"
#include "helpdefs.h"
#include "mpmath.h"
#include "globals.h"
#include "prototyp.h"
#ifndef NO_IDENT
#ident "$Id: select_type.c,v 1.400 1995/06/20 15:39:23 darryl Exp $"
#endif
/* static functions */
static void update_helpmode
(Widget w, XtPointer cl... |
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "libretro.h"
#include "hcdebug.h"
#include "rom.h"
#define CHIPS_IMPL
#include "ay38910.h"
#include "beeper.h"
#include "clk.h"
#include "kbd.h"
#include "mem.h"
#include "z80.h"
#include "zx.h"
#define ZX48K_CLOCK_HZ UINT64_C(3500000)
#define ZX... |
/**
* Copyright 2017 IBM 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... |
/* ANSI-C code produced by gperf version 3.0.4 */
/* Command-line: gperf --output-file=tmp_namealias.c src/string/namealias_c.in */
/* Computed positions: -k'1,14,$' */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
&& (')' =... |
//
// gks_3d_matrix.c
// gks-graphics
//
// Created by <NAME> on 12/1/21.
//
#include <math.h>
#include "gks_3d_matrix.h"
void gks_create_identity_matrix_2(GKSmatrix_2 result)
{
result[0][0] = result[1][1] = result[2][2] = 1.0;
result[0][1] = result[1][0] = result[2][0] = 0.0;
result[0][2] = result[1][... |
#include "util_c.h"
// C-language utility method definitions.
/*
* Draw a horizontal line.
* First, calculate the Y bitmask and byte offset, then just go from x->x.
*/
void oled_draw_h_line(int x, int y, int w, unsigned char color) {
int y_page_offset = y / 8;
y_page_offset *= 128;
int bit_to_set = 0x01 << (... |
/*
Copyright (c) 1993-Present, <NAME>, Acadix Software Systems
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 noti... |
/* sn76489.c - Emulation of the SN76489 chip for sound generation on MCUs
In the BBC micro the SN76489 chip is driven at 4MHz.
This clock is initially divided by 16 to give a 250KHz chip clock
For reasonable audio output, require samples at appox 44.1KHz
Now 250KHz / 44.1KHz = 5.669
This suggests one sample every 6 ch... |
/* FreeTDS - Library of routines accessing Sybase and Microsoft databases
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 <NAME>
* Copyright (C) 2005-2011 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* Licen... |
/* This file performs the MOUNT and UMOUNT system calls.
*
* The entry points into this file are
* do_mount: perform the MOUNT system call
* do_umount: perform the UMOUNT system call
* unmount: unmount a file system
*/
#include "fs.h"
#include <fcntl.h>
#include <string.h>
#include <minix/callnr.h>
#inc... |
/******************************************************************************
* Project Name : PSoC_4_BLE_CapSense_Slider_LED
* File Name : BLEApplications.c
* Version : 1.0
* Device Used : CY8C4248LQI-BL583
* Software Used : PSoC Creator 4.2
* Compiler : ARM GCC 5.4.1
* Related Hardware : CY8CKIT... |
/* Includes */
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include "main.h"
#include "kernels.h"
#include "utils.h"
#include "benzina/bits.h"
/**
* Defines
*/
/**
* Functions.
*/
int strendswith(const char* s, const char* e){
size_t ls = strlen(s), le = strlen(e);
return ls<le ? 0 ... |
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "edefinition.h"
#include "scat_coeff_2D.h"
#include "eutility.h"
int MkScatPattern(bodyparm body, float ** fltpt, double * g0)
{
char tmpc[121];
FILE *tot_file, *pat_file;
float *pp, *ps, *ssl, *ssr, *sins, *coss;
double ... |
/*****************************************************************************
Filename: g2100.c
Description: Driver for the ZeroG Wireless G2100 series devices
*****************************************************************************
Driver for the WiShield 1.0 wireless devices
Copyright(c) 2009 Asy... |
#include <pwd.h>
#include <sys/stat.h>
#include <time.h>
#include <utime.h>
#include <fcntl.h>
#include <signal.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
#include <curses.h>
#include <sys/wait.h> // for wait
#include "conf.h"
#include "maps.h"
#include "yank.h"
#include "cmds.h"
#include "file.h"
#... |
/* ==== DYNAMIC DATA EXCHANGE for Win32 ====
*
* Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
* 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. Redist... |
/*
transformation.c
<NAME>, 1997
Tool for teaching about OpenGL transformations.
*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <GL/glut.h>
#include "glm.h"
typedef struct _cell {
int id;
int x, y;
float min, max;
float v... |
typedef enum { ES, CS, SS, DS } SREGS;
typedef enum { AW, CW, DW, BW, SP, BP, IX, IY } WREGS;
#define NEC_NMI_INT_VECTOR 2
/* Cpu types, steps of 8 to help the cycle count calculation */
#define V33 0
#define V30 8
#define V20 16
#ifndef FALSE
#define FALSE 0
#define TRUE 1
#endif
#ifdef MSB_FIRST
t... |
/*
* Copyright (c) 2008 Texas Instruments. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License
* v. 1.0 which accompanies this distribution. The Eclipse Public License is
* available at h... |
/*------------------------------------------------------------------------------
* Copyright (c) 2019, <NAME>
* <NAME>
* <NAME>
* <NAME>
* <NAME>
* <NAME>
* Contact: milan.radulovic [at] bsc [dot] es
... |
/**
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdio.h>
#include <math.h>
#include <stdint.h>
#include "pico/stdlib.h"
#define DHT_exact_ID 0
#define DHT_8_ID 1
#define DHT_11_ID 2
#define DHT_12_ID 3
#define DHT_16_ID 4
#de... |
/**
* Copyright (c) 2016 Enzien Audio Ltd.
*
* 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 AUTHOR ... |
/*
* open_interface.c
*
* Created on: Mar 11, 2016
* Author: nbergman
* Updated on: Aug 22, 2019
* Author: <NAME>
*/
/*
* Open Interface
*
* Created on: Mar 3, 2016
* Author: <NAME>, <NAME>, dmlarson
*/
#include "open_interface.h"
#define OI_OPCODE_START 128
#define OI_OPCODE_BAUD 129
#def... |
// ASF file parser for DEMUXER v0.3 by A'rpi/ESP-team
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "mp_msg.h"
#include "help_mp.h"
#include "stream/stream.h"
#include "asf.h"
#include "demuxer.h"
#include "libvo/fastmemcpy.h"
#define ASFMIN(a,b) ((a) > (b) ? (b) : (a))
... |
#define __EXTENSIONS__
#include <stdio.h>
#include <stdlib.h>
#include <regex.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <sys/types.h>
#include "gbfp.h"
const char sVer[] = "0.6.1";
const char sNorBase[] = "ACGTRYMKWSBDHVNacgtrymkwsbdhvn";
const char sComBase[] = "TGC... |
// SPDX-License-Identifier: GPL-2.0
/**
* Test XDP bonding support
*
* Sets up two bonded veth pairs between two fresh namespaces
* and verifies that XDP_TX program loaded on a bond device
* are correctly loaded onto the slave devices and XDP_TX'd
* packets are balanced using bonding.
*/
#define _GNU_SOURCE
#i... |
/* Copyright (c) 2007-2008 <NAME>
*
* Released Under the MIT License. See COPYING for details.
*/
#include <math.h>
#include <gmp.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
void leibniz();
void circle();
void wallis();
void ramanujan(unsigned long long times);
void ramanujanNW(int times);
void r... |
/*
* Aliens -- an animated video game
* the original version is from
* Fall 1979 Cambridge <NAME>
*
* Score keeping modified and general terminal handling (termcap routines
* from UCB's ex) added by <NAME>, BTL, June, 1980.
* Changes to use a nodelay pipe with unix... |
/*
// Dao Graphics Engine
// http://www.daovm.net
//
// Copyright (c) 2013, <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 ... |
// Driver for Microchip MRF24J40 802.15.4 radio hardware
// New parts (c) 2010-2012 nerdfever.<EMAIL>
// Originally based on Microchip MiWi DE v.3.1.3, 5/28/2010 (c) Microchip
#include <string.h> // memset()
#include "MRF24J40.h"
#include "radioAddress.h" // addr for radio
#define SPI_CS_PORT_ID PORT_CHANNE... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <error.h>
#include <errno.h>
#include <limits.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include "linux/input.h"
#include <dirent.h>
#include <poll.h>
#include <wait.h>
#define INPUT_DEV... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.