text stringlengths 5.8k 28.2k |
|---|
/*
MIT License
Copyright (c) 2017 <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, distri... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/vga256/drivers/sis/sis_accel.c,v 3.1.2.1 1997/05/09 07:15:48 hohndel Exp $ */
/*
* This is a sample driver implementation template for the new acceleration
* interface.
*/
#include "vga256.h"
#include "xf86.h"
#include "vga.h"
#define XCONFIG_FLAGS_ONLY
#include "xf86_C... |
/* Open Sensor Platform Project
* https://github.com/sensorplatforms/open-sensor-platform
*
* Copyright (C) 2013 Sensor Platforms 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
... |
/*
* IoT Hub Raspberry Pi C - Microsoft Sample Code - Copyright (c) 2017 - Licensed MIT
*/
///////////////////////////////////////////////////////////////////////////////
//
// bme280.c:
// SPI based interface to read temperature, pressure and humidity samples from
// a BME280 module.
//
//////////////////////////////... |
/*
Copyright 2016 <NAME>
<EMAIL>
LICENSE
MIT
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, d... |
/*****************************************************************************
* hevc.h
*****************************************************************************
* Copyright (C) 2013-2017 L-SMASH project
*
* Authors: <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for an... |
#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <ctype.h>
#include <unistd.h>
#include <inttypes.h>
#define QUEUESIZE 4096
#define BUFFSIZE 2048
#define MAX_RUN_LENGTH 64
unsigned char buffer[BUFFSIZE];
unsigned char buffer2[BUFFSIZE+4];
unsigned char queu... |
/***********************************************************************
*
* Copyright (c) Geoworks 1994 -- All Rights Reserved
*
* PROJECT: GEOS Bitstream Font Driver
* MODULE: C
* FILE: TrueType/fixed_pt.c
* AUTHOR: <NAME>
*
* DESCRIPTION:
* This file contains C code for the GEOS Bitstream Font Dr... |
/*
* kom-s.c
*
* Implements kom.h using shared memory & semaphores
*/
#include <assert.h>
#include <errno.h>
#include <sys/msg.h>
#include <sys/ipc.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/shm.h>
#include <sys/ipc.h>
#include <semaphore.h>
#include <unistd.h>
#include <fcntl.h>... |
/*
* raw FLAC muxer
* Copyright (c) 2006-2009 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your... |
/*
* This file is part of the uv_hal distribution (www.usevolt.fi).
* Copyright (c) 2017 <NAME>.
*
*
* MIT License
*
* Copyright (c) 2019 usevolt
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... |
// This file is part of Deark.
// Copyright (C) 2021 <NAME>
// See the file COPYING for terms of use.
// DL animation format, used by DL MAKER / DL VIEWER
// by <NAME>' & <NAME>
#include <deark-private.h>
DE_DECLARE_MODULE(de_module_dlmaker);
#define V12_SCREEN_WIDTH 320
#define V12_SCREEN_HEIGHT 200
#define V12_S... |
/* deltet.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__1 = 1;
static integer c__2 = 2;
static integer c__200 = 200;
static integer c__400 = 400;
/* $Procedur... |
// Inter-integrated circuit (I2C) management
#include "i2c.h"
// I2C timeout, about 2ms
#define I2C_TIMEOUT 200U
// Maximum NBYTES value
#define I2C_NBYTES_MAX 255U
// Definition of bits to reset in CR2 register
#define I2C_CR2_ALL (I2C_CR2_SADD | \
I2C_CR2_NBYTES | \
... |
/*
* ESPRESSIF MIT License
*
* Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to dea... |
/*
This scan will parse elf file and then look in the .dynamic section of the binary
for the following tags.
DT_RPATH String table offset to library search path (deprecated)
DT_RUNPATH String table offset to library search path
DT_NEEDED String table offset to name of a needed library
t... |
/*
* Copyright (C) 2020 National Cheng Kung University, Taiwan.
* Copyright (C) 2011-2012 <NAME> (<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 sourc... |
#include "xwcmn.h"
#include "imgdef.h"
static int *imgDpy = NULL;
static size_t DpySize = 0;
static unsigned int last_xhght = 0;
static unsigned int last_xwdth = 0;
static char filNam[FILE_FULLSZ] = { "" };
void xsatpx ( float *dx, float *dy, int *offx, int *offy, char *imgnam,
int *xispace0, int *yispace0, int *xi... |
#include "sg_math.h"
#include <math.h>
#ifndef M_PI
#define PI 3.1415926535
#else
#define PI M_PI
#endif
float deg_to_rad(const float deg) {
return deg * PI / 180.0f;
}
float rad_to_deg(const float rad) {
return rad * 180.0f / PI;
}
void v2_scale_by(v2 v2dst, const float scale, const v2 v2src) {
v2dst[0] = v2sr... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Driver for Virtual PS/2 Mouse on VMware and QEMU hypervisors.
*
* Copyright (C) 2014, VMware, Inc. All Rights Reserved.
*
* Twin device code is hugely inspired by the ALPS driver.
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <linux/input.h>
#in... |
/* axtBest - Remove second best alignments.
* This file is copyright 2002 <NAME>, but license is hereby
* granted for all use - public, private or commercial. */
#include "common.h"
#include "linefile.h"
#include "memalloc.h"
#include "hash.h"
#include "options.h"
#include "dnautil.h"
#include "axt.h"
static char c... |
/* i2c.c ---
*
*
*/
/* Commentary:
*
* I2C driver for erlang/uclinux on the Blackfin. Some code and ideas
* borrowed from <NAME>'s I2C driver:
* https://github.com/tonyrog/i2c
*
* This driver was written as an asynchronous driver using
* driver_async() to safeguard against possible VM hangs due to some
*... |
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stm32f4xx.h>
#include <stm32f4xx_rcc.h>
#include <stm32f4xx_gpio.h>
#include <stm32f4xx_tim.h>
#include <stm32f4xx_pwr.h>
#include <stm32f4xx_rtc.h>
#include <stm32f4xx_usart.h>
#include <stm_misc.h>
#include "std.h"
#include "misc.h"
#include "mpco... |
/*
* Copyright (c) 2010 Broadcom Corporation
*
* 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 AUTHO... |
/*
* unshare(1) - command-line interface for unshare(2)
*
* Copyright (C) 2009 <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, or (at your option) any... |
/*
* Copyright (c) 2006
* Protium Computing, 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, this lis... |
#include <lib9.h>
#include <bio.h>
#include "mach.h"
/*
* amd29k-specific debugger interface
*/
static int a29000inst(Map*, ulong, char, char*, int);
static int a29000das(Map*, ulong, char*, int);
static int a29000instlen(Map*, ulong);
/*
* Debugger interface
*/
Machdata a29000mach =
{
{0, 0, 0, 0}, /* break poi... |
/*
* Copyright (c) 2017, The Linux Foundation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* 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 reta... |
/*
* fileSystem.c
*
* Created on: 20.05.2017
* Author: benimurza
*/
#include "fileSystem.h"
#include "abstractStorage.h"
#include <string.h>
#define PATH_DELIMITER '/'
// FAT16 constraints
#define MAX_CHAR_FILE_NAME 8
#define MAX_CHAR_EXTENSION 3
// File types
#define FAT16_DIRECTORY_ENTRY 0x10
#define ... |
/* minigzip.c -- simulate gzip using the zlib compression library
* Copyright (C) 1995-2006, 2010, 2011, 2016 <NAME>
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/*
* minigzip is a minimal implementation of the gzip utility. This is
* only an example of using zlib and isn't meant to... |
#include <math.h>
#include <stdlib.h>
#include "cp.h"
typedef struct {
point_t points[4];
double max_betrag;
} viereck;
typedef struct {
point_t points[3];
double radius;
point_t mittelpunkt;
} kreis;
// Ueberprueft ob 2 sprites identisch sind
int is_equal(sprite_t a, sprite_t b){
if (a.type == b.type){
... |
#define _USE_MATH_DEFINES
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include "glad/glad.h"
#include "GLFW/glfw3.h"
#ifndef M_PI // even with _USE_MATH_DEFINES not always available
#define M_PI 3.14159265358979323846
#endif
typedef struct {
float p[3];
float t[2];
} vertex_t;
type... |
#include <string.h>
#include "stm32f0xx_tim.h"
#include "stm32f0xx_pwr.h"
#include "stm32f0xx_usart.h"
#include "stm32f0xx_gpio.h"
#include "stm32f0xx_rcc.h"
#include "board.h"
#include "led.h"
#include "host_interface.h"
#include "dw1000.h"
#include "app_standard_common.h"
#include "app_standard_init.h"
#include "a... |
/*
----------------------------------------------------------------------
FLTRESP.C
~~~~~~~~~
Description:
~~~~~~~~~~~~
Test program to evaluate the frequence response of filters.
Depending on the function called, the program will be able
to evaluate the freq... |
/*********************************************************************
* Copyright 2009, University Corporation for Atmospheric Research
* See netcdf/README file for copying and redistribution conditions.
* "$Id: nciter.c 400 2010-08-27 21:02:52Z russ $"
*******************************************************... |
#include <common_utils.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#ifndef __sun
#include <ifaddrs.h>
#endif
#include <stdlib.h>
#include <sys/time.h>
#include <time.h... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <gmp.h>
#include <ctype.h>
#include "polyparse.h"
#include "ntutil.h"
#include "cstd.h"
/*
Copyright 2011-2012 <NAME>
See LICENSE file for license details.
*/
#define CBUFSIZE 65536 // maximum length of a string constant (integer or rati... |
// main.c
#include "features.h"
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <getopt.h>
#include <limits.h>
#include "timeutil.h"
#include "record.h"
#include ... |
//
// Clone server Model Six
//
// Lets us build this source without creating a library
#include "bstar.c"
#include "kvmsg.c"
// .split definitions
// We define a set of reactor handlers and our server object structure:
// Bstar reactor handlers
static int s_snapshots (zloop_t *loop, zmq_pollitem_t *poller, vo... |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 <NAME>
*
* SADT diagram support Copyright(C) 2000 <NAME>
* This file has been forked (sigh!) from Alex's zigzagline.c.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Li... |
/* $OpenBSD: midiplay.c,v 1.13 2011/04/28 07:23:46 ratchov Exp $ */
/* $NetBSD: midiplay.c,v 1.8 1998/11/25 22:17:07 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> (<EMAIL>).
*
*... |
/* line discipline loading daemon
* open a serial device and attach a line discipline on it
*
* Usage:
* ldattach GIGASET_M101 /dev/ttyS0
*
* =====================================================================
* This program is free software; you can redistribute it and/or
* modify it under the terms of the G... |
#include "aws.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <sys/sendfile.h>
#include "util.h"... |
#include "ps.h"
#include <driver/ps2.h>
#include <driver/sd.h>
#include <driver/vga.h>
#include <zjunix/bootmm.h>
#include <zjunix/buddy.h>
#include <zjunix/fs/fat.h>
#include <zjunix/pid.h>
#include <zjunix/slab.h>
#include <zjunix/time.h>
#include <zjunix/utils.h>
#include <zjunix/fs/vfs.h>
#include <zjunix/fs/tree.h... |
/* The MIT License
*
* Copyright (C) 2009 <NAME>
*
* Copyright (C) 2009 Abilisoft Ltd.
*
*
* 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 limi... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include "matrix.h"
#include "gf.h"
#include "poly.h"
/*********************************************************************************************/
////////////////////////////////////POLYNOMIAL Functions///////////////////////////////////////
/***************... |
#include <lib9.h>
#include <draw.h>
#include <interp.h>
#include <isa.h>
#include "../libinterp/runt.h"
#include <drawif.h>
#include <prefab.h>
#include <kernel.h>
typedef struct State State;
struct State
{
Prefab_Environ *env;
List *list;
char word[Maxchars+UTFmax];
char *s;
char *pending;
Draw_Font *f... |
/* ====================================================================
* Copyright (c) 2005 Carnegie Mellon University. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
/*
* q2pc_trans_server.c
*
* Created on: Apr 9, 2014
* Author: mgrosvenor
*/
#include <stdlib.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <errno.h>
#include <fcntl.h>
#include "q2pc_trans_tcp.h"
#include "conn_vector.h"
#include "../errors/errors... |
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
/*
* Copyright (c) 2010 <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 l... |
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b... |
/* Copyright (C) 2010-2020 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (video_layout.c).
* ---------------------------------------------------------------------------------------
*
* Per... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
// odd structures
typedef struct {
char data[7];
} Foo7;
typedef struct {
char data[8];
} Foo8;
typedef struct {
char data[14];
} Foo14;
typedef struct {
char data[24];
} Foo24;
// tests with int8_t
ptrdiff_t foo0_int8_t(int8_t* a... |
//
// ACME - a crossassembler for producing 6502/65c02/65816 code.
// Copyright (C) 1998-2006 <NAME>
// Have a look at "acme.c" for further info
//
// Input stuff
#include "dynabuf.h"
#include "global.h"
#include "input.h"
#include "platform.h"
#include "section.h"
#include "tree.h"
// Constants
const char FILE_READ... |
#pragma ident "$Id$"
/* Steim 1 compression and decompression routines for RefTek PASSCAL packets.
*
* These routines are based on the work of many others, the compression
* algorithm implementation is based on the work of Guy Stewart at IRIS.
*
* Developed using Microsoft C/C++ 7.0 in DOS by:
*
* <NAME> (<EM... |
/*************************************************************************
* jlp0_fits_utils.c
* Set of routines using information in the header of FITS files
*
* JLP
* Version 06/09/2012
*************************************************************************/
#include "jlp_ftoc.h"
/*
#define DEBUG
*/
/* in "jlp_ft... |
/*
* Copyright (c) 2017, 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 ... |
#include "SDL2/SDL.h"
#include "SDL2/SDL_mixer.h"
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <arpa/inet.h>
#include <wiringPi.h>
#include <wiringSerial.h>
#include <b... |
/*----------------------------------------------------------------------------
* File: Tracking_TrackLog_class.c
*
* Class: TrackLog (TrackLog)
* Component: Tracking
*
* your copyright statement can go here (from te_copyright.body)
*---------------------------------------------------------------... |
#include "ezport.h"
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include "jr/apr.h"
#include "jr/syscalls.h"
#include "jr/io.h"
#include "jr/alist.h"
#include "jr/malloc.h"
#include "jr/error.h"
jr_int jr_PathDbMakePath (
const char * base_path,
jr_int numeric_value,
jr_int value_base,
... |
/*
Copyright (c) 2011, Ascending Technologies GmbH
Copyright (c) 2011, <NAME>, ASL, ETH Zurich, Switzerland
You can contact the author at <markus dot achtelik at mavt dot ethz dot ch>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided t... |
/*
sshpacketwrapper.c
Author: <NAME> <<EMAIL>>
Copyright (c) 1998 SSH Communications Security, Finland
All rights reserved
This module implements a wrapper around SshStream for sending/receiving
packets. This has a simple interface based on a few function calls and
callbacks, making it easy to d... |
#ifdef _WIN32
# include <windows.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#ifndef __APPLE__
# include <GL/glut.h>
#else
# include <GLUT/glut.h>
#endif
#include <AR/gsub.h>
#include <AR/video.h>
#include <AR/param.h>
#include <AR/matrix.h>
#include <AR/ar.h>
#include <AR... |
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#define LINEBUF_SIZE 4096
#define URLBUF_SIZE 1024
#define NAMEBUF_SIZE 1024
#define MAX_DIGITS_IN_OL 10
char *help_string =
"usage: orguli [OPTION] [doc.md] [style.css] > output.html\n"
"\n"
"Where OPTION is one of:\n"
"-s, --single-file:... |
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "util.h"
#include "bwabridge.h"
/***************************************************************************
* This is all translated from Lariat's BWA bridge. *
* https://github.com/10XGenomics/lariat/blob... |
/*Daala video codec
Copyright (c) 2012 Daala project 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:
- Redistributions of source code must retain the above copyright notice, this
list o... |
#include <stdint.h>
static const uint32_t crc32_ccitt_table[256]
= {0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
0xf3b97148, 0x84be41de... |
/*
* sound/configure.c - Configuration program for the Linux Sound Driver
*
* Copyright by <NAME> 1993
*
* 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 c... |
/*******************************************************************************
********************************************************************************
*
* Author: <NAME>
* Written: 12 Aug 2015, 18:43:17:783
* Last updated: 16 Aug 2015, 16:49:55:353
*
* Compilation: gcc -std=c11 -W... |
// **** Include libraries here ****
// Standard libraries
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
// Microchip libraries
#include <xc.h>
#include <plib.h>
// User libraries
#include "Adc.h"
#include "Ascii.h"
#include "Buttons.h"
#include "Leds.h"
#include "Oled.h"
#include "OledDriver.h"
#include... |
/* GStreamer
* Copyright (C) 2019 <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.
*
*... |
/*
*
* STM32_GPU Project
* Creation start: 15.07.2016
*
* Created by: <NAME> (Bismuth208)
*
*/
#include <string.h>
#include <gfx.h>
#include <ff.h>
#include <diskio.h>
#include <sdcard_spi.h>
#if USE_FSMC
#include <fsmcdrv.h>
#else
#include <spi.h>
#endif
#include "sdLoader.h"
#include "tiles... |
/* Generate a package from system header definitions
-- Copyright (C) 2011, 2013, 2014 <NAME>
-- 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
--
-- ... |
/**
BSD 3-Clause License
Copyright (c) 2017 Odzhan. 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 c... |
/**
* bAtari-Basic
* Copyright (c) 2021
*
* 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 pro... |
#include <arpa/inet.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <iron/mem.h>
#include <iron/log.h>
#include <iron/types.h>
#include <iron/process.h>
#include "udpc.h"
#include "udpc_utils.h"
#include "service_descriptor.h"
#include "udp.h"
#include "ssl.h"
#include <pth... |
/*
* ccs811.c
*
* Created on: 4 abr. 2021
* Author: <NAME> and <NAME>
*/
#include <wiringPi.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <linux/i2c-dev.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
... |
//Copyright 2015 <>< <NAME> under the ColorChord License.
#include "notefinder.h"
#include "parameters.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "util.h"
#include "dft.h"
#include "filter.h"
#include "decompose.h"
#include "DFT32.h"
struct NoteFinder * CreateNoteFinder( ... |
// Copyright 2017 Altronix Corp.
// This file is part of the tiny-ether library
//
// 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 3 of the License, or
// at your option) any l... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
#include "module.h"
#include "poll_priv.h"
#include <dlfcn.h> // dlopen
/** Generic module interface **/
static module_ret_code init_ctx(const char *ctx_name, ctx_t **context);
static void destroy_ctx(ctx_t *context);
static ctx_t *check_ctx(const char *ctx_name);
static int _pipe(mod_t *mod);
static module_ret_code ... |
/*
*--------------------------------------
* Program Name: CEVidium
* Author: Rodger "Iambian" Weisman
* License: MIT
* Description: Plays specially-formatted video
*--------------------------------------
*/
#define T_UI_WIDTH 309
#define T_UI_STRTX 5
#define T_UI_STRTY 65
#define T_UI_BARHGHT 4
#define T_UI_DHT... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
// SRTM4 files are of size 6000x6000 pixels and cover an area of 5x5 degrees
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <tiffio.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#define NO_DATA NAN
#define SRTM4_ASC ... |
// Program Name: FIREHAUZ
// Author(s): SomeCoolGuy
// Description: FireHauzer: Shooter RPG.
/* Keep these headers */
#include <tice.h>
/* Standard headers - it's recommended to leave them included */
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <graphx.h... |
/* This program reads a pfstream and saves attributes in a relational database
with a dictionary defined by an control parameter file.
Usage: pfstream2db file db [-v -V -pf pffile]
file - input pfstream. This can be a fifo or regular file provided it
follows the pfstream format.
-v verbose flag
-V exit with usag... |
/* $Id$
* Performance counter event descriptions for Intel P5 and P5 MMX
* processors, and Cyrix 6x86/MII/III processors.
*
* Copyright (C) 2003 <NAME>
*
* References
* ----------
* [IA32, Volume 3] "Intel Architecture Software Developer's Manual,
* Volume 3: System Programming Guide". Intel document number 2... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <getopt.h>
#include <limits.h>
#include <mpi.h>
#include <omp.h>
#include "parmt_polarity.h"
#ifdef PARMT_USE_INTEL
#include <mkl.h>
#include <ipps.h>
#endif
#include "compearth.h"
#include "iscl/array/array.h"
#include "iscl/iscl/... |
#define _XOPEN_SOURCE 500
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/stat.h>
#include <dirent.h>
#include <ftw.h>
#include <time.h>
#include<sys/mman.h>
#define DEFAULT_MI... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "chaincolln.h"
#include "cokus.h"
#include "chain.h"
#include "config.h"
#include "parameters.h"
#include "irmutils.h"
#include "relation.h"
#include "domain.h"
#ifdef GSL
#include <gsl/gsl_randist.h>
#include <gsl/gsl_permutation.h>
#include <gsl/gsl_r... |
/** @file */
/*****************************************************************************
* Copyright (c) 2016-2017, Cisco Systems, 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. Red... |
#include "funciones.h"
//_______________________________________________________________________ Paleta de colores (CORREGIR)
const float PaletaColor[NCOLORES][3] = {0,0,0,/**/0,0,0.5,/**/0,0,1,/**/
0,1,1,/**/0,0.5,1,/**/0,0.5,0.5,/**/
0,1,0.5,/**/0,1,0,/**/0,0.5,0,/**/
0.5,0,0,/**/1,0,0,/**/0.... |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 <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 version 2 of the License, or
* (at your option) any ... |
#include "stdint.h"
#include "stdio.h"
#include "stdlib.h"
#include "common.h"
#include "util.h"
#include "ast.h"
ASTPars makeASTPars(int size){
ASTPars ret;
ret.pars = makeList(size, sizeof(ASTTyElem));
ret.lbls = makeList(size, sizeof(int64_t) );
return ret;
}
/*
ASTTyElem makeASTTyElem(int size){
ASTTyEle... |
#include "gamestates/game/ai/bot.h"
#include <fixmath/fix16.h>
#include "gamestates/game/spawn.h"
#include "gamestates/game/ai/astar.h"
#define AI_BOT_STATE_IDLE 0
#define AI_BOT_STATE_MOVING_TO_NODE 1
#define AI_BOT_STATE_NODE_REACHED 2
#define AI_BOT_STATE_HOLDING_POS 3
#define AI_BOT_STATE_BLOCKED ... |
#include "KW_renderdriver_sdl2.h"
#include "KW_renderdriver.h"
#include "KW_widget.h"
#include "SDL.h"
#include "SDL_image.h"
#include "SDL_ttf.h"
#include <stdio.h>
typedef struct KWSDL {
SDL_Renderer * renderer;
SDL_Window * window;
} KWSDL;
static void KWSDL_renderCopy(KW_RenderDriver * driver, KW_Texture *... |
#include<time.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include<string.h>
#include <mqtt.h>
#include "templates/posix_sockets.h"
//#include "mqtt_helper.h"
#include "device.c"
#include"parse.h"
#define ADDR "test.mosquitto.org"
#define PORT "1883"
#define SENSORS "sensors"
#define ACTUATORS "actua... |
/* wildcard.c - Wildcard character expansion for GRUB script. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 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 Sof... |
/* GStreamer
* Copyright (C) 2016 Centricular Ltd.
* Author: <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 opti... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2004 IBM Corporation
* Copyright (C) 2014 Intel Corporation
*/
#include <linux/asn1_encoder.h>
#include <linux/oid_registry.h>
#include <linux/string.h>
#include <linux/err.h>
#include <linux/tpm.h>
#include <linux/tpm_command.h>
#include <keys/trusted-ty... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.