text
stringlengths
3.12k
18.7k
/** * \file * * \brief HX8347A display controller driver Example * * Copyright (c) 2014-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 Microch...
/* 2020 <NAME>. Licensed under CC0 (public domain, see https://creativecommons.org/publicdomain/zero/1.0/). */ #include <stdint.h> #include <stdio.h> #include <string.h> #include "../vincent.h" size_t vincent_data_length = sizeof(vincent_data) / sizeof(*vincent_data); static void _print_charinfo(uint8_t ch) { /* ...
/* * 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...
/* No copyright is claimed in the United States under Title 17, U.S. Code. All Other 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 limitat...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
#pragma once const double A4_PITCH = 440.0; const uint8_t MIDI_CH = 0; const uint16_t SAMPLING_RATE = 31250; const uint16_t FREQUENCY_MAX = 15624; const uint8_t BIT_DEPTH = 8; const uint8_t NOTE_NUMBER_MIN = 0; const uint8_t NOTE_NUMBER_MAX = 120; const uint8_t ...
#include "geodb.h" static geodb_t *geodb = NULL; geodb_t *get_geodb(void) { return geodb; } void geodb_destroy(geodb_t *self) { if (self == NULL) return; if (self->names != NULL) { trie_destroy(self->names); } if (self->features != NULL) { trie_destroy(self->features); } ...
/* htop - Panel.c (C) 2004-2011 <NAME> Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ #include "Panel.h" #include "CRT.h" #include "RichString.h" #include "ListItem.h" #include "StringUtils.h" #include <math.h> #include <stdbool.h> #include <stdlib.h> #include <ctyp...
/** Generated Main Source File Company: Microchip Technology Inc. File Name: main.c Summary: This is the main file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs Description: This header file provides implementations for driver APIs for all modules selected in the GUI. ...
/* libztl: User-space Zone Translation Layer Library * * Copyright 2019 Samsung Electronics * * Written by <NAME> <<EMAIL>> * * 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 * * ht...
/* main.c - Application main entry point */ /* * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #define NET_LOG_LEVEL CONFIG_NET_IF_LOG_LEVEL #include <logging/log.h> LOG_MODULE_REGISTER(net_test, NET_LOG_LEVEL); #include <zephyr/types.h> #include <stdbool.h> #include <stddef.h>...
/* Test case from <NAME> (ROMIO req #835) * Aggregation code was not handling certain access patterns when collective * buffering forced */ #include <unistd.h> #include <stdlib.h> #include <mpi.h> #include <stdio.h> #include <string.h> #define NUM_OBJS 4 #define OBJ_SIZE 1048576 extern char *optarg; extern int opt...
#include "spi_low.h" static MadBool initPort(mSpi_t *port, mSpi_InitData_t *initData); static MadBool initDev (mSpi_t *port, mSpi_InitData_t *initData); inline void mSpiLow_SPI_IRQHandler(mSpi_t *port) { if(RESET != SPI_I2S_GetITStatus(port->spi, SPI_I2S_IT_RXNE)) { port->data = mSpi_READ(port); m...
#include <stdio.h> #include <stdlib.h> #include "p5.h" char buffer0 [] = "hello world"; char buffer1 [1000]; /* one thousand */ char buffer2 [10000]; /* ten thousand */ char buffer3 [100000]; /* a hundred thousand */ char buffer4 [1000000]; /* a million */ char buffer5 [50 * 1024 * 1024]; /* max size, 50MB */ sta...
/* Copyright 2020 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "common.h" #include "accel_cal.h" #include "test_util.h" #include "motion_sense.h" #include <math.h> struct motion_sensor_t motion_sensor...
/*----------------------------------------------------------------- * Programmer(s): <NAME> @ SMU *--------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2022, Lawrence Livermore National Security * and Southern Methodist University. * All rights reserved. ...
#include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdio.h> // blake2s.c // A simple blake2s Reference Implementation. #include "blake2s.h" // Cyclic right rotation. #ifndef ROTR32 #define ROTR32(x, y) (((x) >> (y)) ^ ((x) << (32 - (y)))) #endif // Little-endian byte access. #define B2S_GET32(p) \...
/* * Copyright (c) 2010 <NAME> <<EMAIL>> * Copyright (c) 2012-2013 <NAME> <<EMAIL>> * Copyright (c) 2014 <NAME> <<EMAIL>> * Copyright (c) 2010-2016 <NAME> <<EMAIL>> * Copyright (c) 2016-2018 The strace developers. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * m...
// // Created by 邵尧 on 2020/5/21. // #include <stdio.h> #include <stdlib.h> #include <time.h> #include <winsock2.h> #include <windows.h> #include <pthread.h> #include "include/server.h" #include "include/config.h" int main(int argc, char* argv[]){ // start winsock WSADATA wsaData; WORD wVersionRequested;...
#include "types.h" #include "user.h" #include "printf.h" #include "mutex.h" #include "cv.h" #define PRIO_MAX 10 #define QSIZE 100 #define NULL ((void*)-1) struct myproc { int priority; char * name; }; int head_tail[PRIO_MAX][2]; struct myproc *pqueues[PRIO_MAX][QSIZE]; void init_queue(){ // initialize all pqu...
#include "stdlib.h" #include "linkedlist.h" //@ #include "listex2.gh" struct llnode { void* value; struct llnode *next; }; struct linkedlist { struct llnode* head; int count; }; /*@ predicate llnode(struct llnode *node; struct llnode *next, void* value) = node != 0 &*& mallo...
/* Native support for the SGI Iris running IRIX version 5, for GDB. Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by <NAME>(<EMAIL>) at CMU and by <NAME>(<EMAIL>) at U...
#include <stdio.h> #include <stdlib.h> #include <math.h> #define SQUARE(anything) (anything*anything) #define renderfile "render.txt" #define resultfile "output.ppm" #define circlescale 5 #define ppmscale 25 #define ppmshow 1 #define circleshow 0 #define rectangleshow 0 #define circledetails 0 #define rectangledetail...
/* * 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...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright (c) 1994 by the University of Southern California * * EXPORT OF THIS SOFTWARE from the United States of America may * require a specific license from the United States Government. * It is the responsibility of any person or orga...
/* $OpenBSD: tls_client.c,v 1.16 2015/03/21 15:35:15 sthen Exp $ */ /* * Copyright (c) 2014 <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...
//------------------------------------------------------------------------------ /// \file sensor_variant.c /// \brief Sensor variant algorithm /// \author <NAME> //------------------------------------------------------------------------------ // Copyright 2016 Atmel Corporation. All rights reserved. // // Redistrib...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */ /* * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */ /* * This file contains a simple implementation of the name server routines, * using a file written to a shared file system to communication the * data. ...
/*************************************************************************** Copyright 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 y...
//_____________________________________________________________________________ // // Copyright 2011-2 Time Domain Corporation // // // rcmSampleApp.c // // Sample code showing how to interface to P400 RCM module. // // This code uses the functions in rcm.c to: // - make sure the RCM is awake and 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 usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
/* * * Copyright (c) 2010-2011, Code Aurora Forum. 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...
/** * \file * \brief RCCE library */ /* * Copyright (c) 2009, 2010, 2012, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich....
// SPDX-License-Identifier: GPL-2.0+ /* * CPSW MDIO generic driver for TI AMxx/K2x/EMAC devices. * * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ */ #include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> #include <miiphy.h> #include <wait_bit.h> #include <linux/bitop...
#include <stdio.h> #include <string.h> #include "constants.h" #include <monocypher.h> #include <stdlib.h> #define CHUNK_SIZE 4096 struct metadata { uint8_t sharedInfo[MAX_USERS][48]; // [64-Bytes of Users to share] [32 byte key + room for 16 byte MAC] uint8_t owner_id; // 1-Byte uint8_t region_ids[MAX_REGI...
#include <unistd.h> #include <limits.h> #include <sys/types.h> #include <sys/ioctl.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <stdio.h> #include <errno.h> #include <sys/inotify.h> #include <unistd.h> #include <stdlib.h> #include <signal.h> #include <sched.h> #include <sys/mount.h> #includ...
/****************************************************************************** fat12.cpp -FAT12 Minidriver arthor\ Mike ******************************************************************************/ #include "../DebugDisplay.h" #include "fat12.h" #include "../Include/string.h" #include "flpydsk.h" #include ...
/* * Copyright 2003 <NAME>. * Copyright 2003 <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 r...
#include "client.h" #include "thermistor.h" #include <signal.h> #include <mraa.h> #include <sys/time.h> #include <stdio.h> #include <math.h> #include <mraa/i2c.h> #include "LSM9DS0.h" #include <stdbool.h> static volatile int run_flag = 1; void do_when_interrupted() { run_flag = 0; } int client_handle_connection(int...
#include <errno.h> #include <stdarg.h> #include <stdio.h> #include <string.h> #include "cstr.h" #define INTERNING_POOL_SIZE 1024 #define HASH_START_SIZE 16 /* must be power of 2 */ struct __cstr_node { char buffer[CSTR_INTERNING_SIZE]; struct __cstr_data str; struct __cstr_node *next; }; struct __cstr_...
/* bayes.c implements the Bayes Point Machines 1999 written by <NAME> Technical University Berlin 2001 completed by <NAME> Microsoft Research Cambridge (c) 2001 Microsoft Corporatio...
/*********************************************************************** * Smith–Waterman algorithm * Purpose: Local alignment of nucleotide or protein sequences * Authors: <NAME>, <NAME>, <NAME> ***********************************************************************/ #include <stdio.h> #include <stdlib.h>...
//must define this in build system, otherwise the tests are useless #define JADWAL_DBG #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <assert.h> typedef int jadwal_key_type; typedef int jadwal_value_type; #ifdef JADWAL_DATA_ARG int mydata[] = {213123,2313123,664536,3423424,31231231}; void asse...
/*- * CAM request queue management functions. * * Copyright (c) 1997 <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 co...
//<NAME> //18052 //Programacion de TIVAC para sistema de parqueos //Llamado de Librerias #include <stdint.h> #include <stdbool.h> #include "inc/tm4c123gh6pm.h" #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "inc/hw_ints.h" #include "inc/hw_gpio.h" #include "driverlib/sysctl.h" #include "driverlib/inter...
#include "cfv_bellman.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <assert.h> #include <fcntl.h> #include <sys/time.h> #include <sys/mman.h> #include <time.h> /* OP-TEE TEE client API (built by optee_client) */ #include "tee_client_api.h" /* To the the UUID (found the t...
/* $XFree86: xc/programs/Xserver/hw/xfree86/ddc/interpret_edid.c,v 1.9 2004/12/11 20:38:46 dawes Exp $ */ /* interpret_edid.c: interpret a primary EDID block * * Copyright 1998 by <NAME> <<EMAIL>> */ /* * Copyright (c) 1999-2004 by The XFree86 Project, Inc. * All rights reserved. * * Permission is hereby gran...
// Copyright 2021 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
/* A Bison parser, made by GNU Bison 2.5. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, 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 ...
/* * File :_i2c.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team * * 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 ...
/* qt2410_boot_usb - Ram Loader for Armzone QT2410 Devel Boards * (C) 2006 by <NAME> <<EMAIL>> * * Modified program to be compatible with QQ/Micro/Mini2440 development boards * and added option to specify kernel RAM base. Fixed minor bug where program * would say "Error downloading program" when in fact there was...
#include <sys/time.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <signal.h> #include <termios.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #define BAUDRATE B19200 #define MODEMDEVICE "/dev/t...
/* * ATM connection wrapper * * $Id: connect_bus.c,v 1.2 2001/10/09 22:33:06 paulsch Exp $ * */ #if HAVE_CONFIG_H #include <config.h> #endif /* System includes */ #include <unistd.h> #include <stdio.h> #include <string.h> #include <fcntl.h> #include <sys/ioctl.h> #include <assert.h> #include <sys/socket.h> #incl...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> //create a node for linked list struct node{ char* word; int length; int frequency; struct node* next; struct node* down; }; //free memory allocated for list void Free_List(struct node** head){ struct node* current = *head; struct...
#include <lighttpd/core_lua.h> #include <lighttpd/actions_lua.h> #include <lualib.h> #include <lauxlib.h> typedef struct liSubrequest liSubrequest; struct liSubrequest { liWorker *wrk; liLuaState *LL; int func_notify_ref, func_error_ref; liVRequest *vr; liJobRef *parentvr_ref; liConInfo coninfo; gboolean ...
/*++ Copyright (c) 1991 Microsoft Corporation Module Name: tnetbios.c Abstract: This module contains code which exercises the NetBIOS dll and driver. Author: <NAME> (ColinW) 13-Mar-1991 Environment: Application mode Revision History: <NAME> (DBeaver) 10 August 1991 ...
/* * Copyright 2019 <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>, <NAME> * * This file is part of acados. * * The 2-Clause BSD License * * Redistribution and use in source and binary forms, with or without modification, are permitted provi...
/* Copyright (C) 2006, 2007 The Written Word, Inc. All rights reserved. * Author: <NAME> * Copyright (c) 2004-2006, <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, * with or without modification, are permitted provided * that the following conditions are met: * * Redistributions of so...
/* * (c) 2007, Quest Software, Inc. All rights reserved. * * This file is part of XScreenSaver, * Copyright (c) 1993-2004 <NAME> <<EMAIL>> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above cop...
/* * @mindmaze_header@ */ /* process shared data: child program * * example of child process, to be used by pshared-parent.c example. * * Similar to the multithreaded data write example, this program writes to a * shared text (in shared memory) concurrently to other children of the * parent process. Each child...
#include "reduce.h" #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include <math.h> #define OP(_op) (strcmp(node->op, _op) == 0) #define Lchild (node->lchild) #define Rchild (node->rchild) #define LLchild (Lchild->lchild) #define LRchild (Lchild->rchild) #define RLchild (Rchild->lchild...
/* * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source ...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Mupen64plus - pure_interp.c * * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * * Copyright (C) 2002 Hacktarux * * ...
/* ** 2003 April 6 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************...
/* * Printer Application Framework. * * This is helper code of the server daemon. It is reponsible for detecting * when a device is attached or removed. * * Copyright 2019 by Dheeraj. * * Licensed under Apache License v2.0. See the file "LICENSE" for more * information. */ #include "server.h" #include...
/* $NetBSD: gomoku.h,v 1.10 2004/01/27 20:30:29 jsm Exp $ */ /* * Copyright (c) 1994 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME>. * * Redistribution and use in source and binary forms, with or without * modifica...
#define _LARGEFILE64_SOURCE #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <fcntl.h> #include <assert.h> #include <glib-2.0/glib.h> #include "linkage_common.h" #include "taint_interface/taint_creation.h" #include...
#include <ether/ether.h> static void lexer_destroy(Lexer*); static void lex_identifier(Lexer*); static void lex_number(Lexer*); static void lex_string(Lexer*); static void lex_char(Lexer*); static void lex_comment(Lexer*); static void lex_newline(Lexer*); static void add_token(Lexer*, TokenType); static void add_eof...
#include <stdio.h> #include <stdlib.h> #include "constant.h" #include "utilities.h" #include "game.h" //////////////////////////////////////// //fonctions à la création de la partie// //////////////////////////////////////// void Parametres(Plate *p) { int config = 0; printf("\nVoulez-vous configurer la pa...
/** * \file ommInterface.c * * \brief Functions for interfacing this code with the openMM library * * \authors <NAME> (École des Ponts - ParisTech) \n * <NAME> (École des Ponts - ParisTech) * * \copyright Copyright (c) 2016-2017, <NAME>, <NAME>, and École des Ponts - ParisTech \n * All righ...
/* * Copyright (c) 2019, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source code m...
/* Onion HTTP server library Copyright (C) 2010-2011 <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This...
/*D*********************************************************** * Modul: DBI - booking modul * main entry point * * Copyright: yafra.org, Basel, Switzerland **************************************************************/ #include <mpmain.h> #include <mpsqlsel.h> #include <mpprodbi.h> /* Prototypes f...
/* * * Copyright 2001 MontaVista Software Inc. * Author: <EMAIL> or <EMAIL> * * arch/mips/gt64120/common/gt_irq.c * Interrupt routines for gt64120. Currently it only handles timer irq. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Publ...
/** Copyright (C) 2003-2004 <NAME>, <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, modif...
// <NAME> - <EMAIL> // 10/06/2020 // Print the underlying representation of a float // The float can be supplied as a decimal or a bit-string /* $ dcc explain_float_representation.c -o explain_float_representation $ ./explain_float_representation 0.15625 is represented in IEEE-754 single-precision by these bits: 00...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <inttypes.h> #include <time.h> #include <signal.h> #include <sys/types.h> #include "magic_tables.h" #include "move.h" #include "position.h" #include "movegen.h" #include "perft.h" #include "xboard.h" #include "se...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * massF3.c * * Code generation for function 'massF3' * */ /* Include files */ #include "massF3.h...
#include "cache.h" #include "commit.h" #include "refs.h" #include "diff.h" #include "revision.h" #include "string-list.h" #include "reflog-walk.h" struct complete_reflogs { char *ref; const char *short_ref; struct reflog_info { unsigned char osha1[20], nsha1[20]; char *email; unsigned long timestamp; int tz...
// SPDX-License-Identifier: GPL-2.0+ /* * sgp40.c - Support for Sensirion SGP40 Gas Sensor * * Copyright (C) 2021 <NAME> <<EMAIL>> * * I2C slave address: 0x59 * * Datasheet can be found here: * https://www.sensirion.com/file/datasheet_sgp40 * * There are two functionalities supported: * * 1) read raw logari...
/* * Copyright (c) 2022, <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 * notice, this list of conditio...
/* * Original work Copyright (c) 2015, Danish Geodata Agency <<EMAIL>> * Modified work Copyright (c) 2015-2016 Geoboxers <<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 permiss...
/* * Copyright (C) 2017 Intel Corporation. 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 requir...
//-------------------------------------------------------------------- // Microsoft OLE DB Sample Consumer // (C) Copyright 1991 - 2000 Microsoft Corporation. All Rights Reserved. // // File name: SAMPCLNT.H // // Declaration file for a simple OLE DB consumer. // // See OLE DB SDK Guide for informatio...
#include "stats.h" #include <stdio.h> #include "openFile.h" #include <stdlib.h> #include <string.h> int compteur_ligne(char fichier_ouvert[]) { FILE * fichier = fopen(fichier_ouvert, "r") ; int c; int nLignes = 0; int c2 = '\0'; while((c=fgetc(fichier)) != EOF) { if(c=='\n') nLignes++; c2 = c; } /* c2...
/* * Copyright (c) 2018, Sensirion AG * 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 conditio...
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ /****************************************************************************** * @file csi_sensor_sht20.c * @brief sensor sht20 is using csi to get data * @version V1.0 * @date 05. June 2017 **********************************************...
/** This file is in the public domain. * * Demonstrate the event infrastructure in the context of multiplexed * timer alarms. Tagged events, event flags, and processing within * the handler without wake are all present. * * You should see repeatedly: * @li the red LED blinking at 150 ms without wakeup * @li th...
#include <stdio.h> #include <unistd.h> #include "jitter.h" #include "influx.h" #include "csv.h" #include <time.h> #include <string.h> #include <stdlib.h> #include <sched.h> #include <error.h> #include <errno.h> #include <numa.h> #include <sys/mman.h> #include <sys/io.h> #define NANOS_IN_SEC 1000000000ul long double c...
#ifndef lint static const char RCSid[] = "$Id: expand.c,v 1.4 2003/11/15 02:13:36 schorsch Exp $"; #endif /* * Expansion routine for command implementation * on simple drivers */ #include <string.h> #include "meta.h" /* vector characters file */ #define VINPUT "vchars.mta" #define FIRSTCHAR ' ' /...
/* * Glide64 - Glide video plugin for Nintendo 64 emulators. * Copyright (c) 2002 Dave2001 * Copyright (c) 2003-2009 Sergey '<NAME> * * 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 ver...
/** @file my_dpdk_listen.c * Demonstrates intilizing a port with DPDK, launching a listening thread on it. * * Usage: * ./my_dpdk_listen -l 0-1 **/ #include <stdio.h> #include <string.h> #include <stdint.h> #include <errno.h> #include <sys/queue.h> #include <signal.h> #include <rte_memory.h> #include <rte_...
/* * Kernel proxy for usb ethernet device */ #include "u.h" #include "../port/lib.h" #include "../port/error.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" #include "../port/netif.h" #include "etherif.h" #include "../ip/ip.h" #define GET4(p) ((p)[3]<<24 | (p)[2]<<16 | (p)[1]<<8 | (p)[0]) #...
#include "bigWig.h" #include <stdio.h> #include <inttypes.h> #include <stdlib.h> #include <assert.h> void bwPrintHdr(bigWigFile_t *bw) { uint64_t i; int64_t i64; printf("Version: %"PRIu16"\n", bw->hdr->version); printf("Levels: %"PRIu16"\n", bw->hdr->nLevels); printf("ctOffset: 0x%"PRIx64"...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #if defined(OE_BUILD_ENCLAVE) #include <openenclave/enclave.h> #endif #include <openenclave/internal/cert.h> #include <openenclave/internal/crl.h> #include <openenclave/internal/hexdump.h> #include <openenclave/internal/te...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <hw/pci.h> #include <hw/inout.h> #include <sys/neutrino.h> #include <sys/mman.h> #define INTERRUPT iobase[1] + 0 // Badr1 + 0 : also ADC register #define MUXCHAN iobase[1] + 2 // Badr1 + 2 #d...
#include "QuadCopterConfig.h" #include "string.h" #include "stdlib.h" #define LINENOISE_DEFAULT_HISTORY_MAX_LEN 100 #define LINENOISE_MAX_LINE 256 //4096 is too much to this environment, it will crash! struct linenoiseState { char *buf; /* Edited line buffer. */ size_t buflen; /* Edited line buffer s...
/************************************************************************** * Copyright (c) 2001 by Acunia N.V. All rights reserved. * * * * This software is copyrighted by and is the sole property of Acunia N.V. * * and its licens...
/* * This file is part of the OpenSupaplex distribution (https://github.com/sergiou87/open-supaplex). * Copyright (c) 2020 <NAME> * * 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 3. * *...
// CGI sous WAMP #include <stdio.h> // T[20] = values[20], CH = canvasHeight, CW= canvasWidth, buf = buffer #include <stdlib.h> // SW = segmentWidth SH = segmentHeight L = length #include <time.h> // padding-top #define PT 40 // padding-left #define PL 30 // padding-bottom #define PB 30 // padding-right #define PR 20...