text stringlengths 3.08k 10.5k |
|---|
/* evp_locl.h */
/* Written by Dr <NAME> (<EMAIL>) for the OpenSSL
* project 2000.
*/
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... |
//
// Plugin.c - MrsWatson
// Copyright (c) 2016 <NAME>. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this l... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2013-2014 - <NAME>
* Copyright (C) 2011-2017 - <NAME>
*
* RetroArch 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-
* ation, either version 3 of the... |
#include <signal.h>
#include <stdlib.h>
#include <time.h>
#include <locale.h>
#define _XOPEN_SOURCE_EXTENDED
#include <ncursesw/curses.h>
#define BLACK_1x1 L' '
#define WHITE_BLACK_1x1 L'\u2580'
#define BLACK_WHITE_1x1 L'\u2584'
#define WHITE_1x1 L'\u2588'
struct state {
bool old:1;
bool new:1;
} __attribute... |
/*
* wayPoint.c
* OpenJaus
*
* Created by <NAME> on 11/15/10.
* Copyright 2010 University of Arizona. All rights reserved.
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <jaus.h>
#include <openJaus.h>
#include <math.h>
#include "wayPoint.h"
// wayPoint Constructor
WayPoint wayPoin... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <3ds.h>
#define SAMPLERATE 22050
#define SAMPLESPERBUF (SAMPLERATE / 30)
#define BYTESPERSAMPLE 4
#define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
// audioBuffer is stereo PCM16
void fill_buffer(void* audioBuffer, size_t... |
/*
* Copyright 1996-2021 Cyberbotics Ltd.
*
* 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 ... |
/*
Copyright 2016 <NAME> 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 la... |
/***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
#include "vidhrdw/generic.h"
#define VIDEO_RAM_SIZE 0x40... |
#include "monitor.h"
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <errno.h>
#include <ctype.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <signal.h>
#include <stdint.h>
#include <blue... |
/*
* Simple struct with functions to create a list which associates ids with data
* -Allows for finding ids associated with data such as IPs or public keys in a short time
* -Should only be used if there are relatively few add/remove calls to the list
*/
/*
* Copyright © 2016-2017 The TokTok team.
* Copyright © ... |
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include "forca.h"
// Global Variables
char palavra_secreta[TAMANHO_PALAVRA];
char chutes[26];
int chutes_dados = 0;
int chutes_errados(){
int erros = 0;
for (int i = 0; i < chutes_dados; i++){
int existe = 0;
for (... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_cylinder_distance.c :+: :+: :+: ... |
//Author: LabJack
//Oct. 8, 2007
//This examples demonstrates how to read from analog inputs (AIN) and digital inputs(FIO),
//set analog outputs (DAC) and digital outputs (FIO), and how to configure and enable
//timers and counters and read input timers and counters values using the "easy" functions.
#include "ue9.h"
... |
#include <ctype.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensions/dpms.h>
#include <X11/keysym.h>
#include <pwd.h>
#ifdef WITH_IMLIB2
#include <Imlib2.h>
#endif
#ifdef WITH_XFT
#include <Xft/Xft.h>
#endif
#include "helper_fns.h"
#inc... |
#define _XOPEN_SOURCE 700
#define PCRE2_CODE_UNIT_WIDTH 8
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <pcre2.h>
#include "regex.h"
#include "matrix.h"
#include "commons.h"
// ~ Static function propotypes ==================
static int isCyclicError(const Worksheet *worksheet... |
/*
* Copyright 2020 <NAME> <<EMAIL>>
* Copyright 1998-2007 <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
* r... |
// UARTTestMain.c
// Runs on LM4F120/TM4C123
// Used to test the UART.c driver
// <NAME>
// May 30, 2014
// U0Rx (VCP receive) connected to PA0
// U0Tx (VCP transmit) connected to PA1
void SystemInit()
{}
#include <stdint.h>
//Register definitions for ClockEnable
#define SYSCTLRCGCUARTR (*((volatil... |
/* Lab 1 Exercise 5 program
Modify the basic calculator so that it can read commands from a file.
Commands are provided in the `commands.calc` file. We implement the following:
5.1 Open and closing the file in read-only mode
5.2 Modify the `readLine` function to read from a file rather than the console
We check for t... |
#include <stdio.h>
#include <string.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/file.h>
#include <errno.h>
#include <signal.h>
#define ECHOMAX (255)
#define TIMEOUT (2)
int SendEchoMessage(struct sockaddr_in *pServAddr);
int ReceiveEchoMessage(struct sockaddr_in ... |
/*-
* Copyright (c) 2014 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/******************************************************************************/
/*! \file lslim_participation_learn.c
\brief This file contains the functions for computing the user refinement used
by LSLIM.
*//****************************************************************************/
#include<slim.h>
... |
/* ddcProperty.c: Make the DDC monitor information available to clients
* as properties on the root window
*
* Copyright 1999 by <NAME> <<EMAIL>>
*/
/* $XFree86: xc/programs/Xserver/hw/xfree86/ddc/ddcProperty.c,v 1.9tsi Exp $ */
#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif
#include "misc.h"
#include... |
#if defined(NAKED)
#include <system/syscall.h>
#else
#include <stdio.h>
#include <unistd.h>
#endif
#include "macho.h"
// DJB's string hash
static uint32_t hash_djb(char *str)
{
int c;
uint32_t hash = 5381;
while((c = *str++))
hash = ((hash << 5) + hash) + c; // hash * 33 + c
return hash;
... |
/* Copyright (c) 2019 <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 later version.
*
* This program is distributed in... |
/**
* @file rcNccfGetVara.c
*
*/
/* This is script-generated code. */
/* See nccfGetVara.h for a description of this API call.*/
#include "nccfGetVara.h"
/**
* \fn rcNccfGetVara (rcComm_t *conn, nccfGetVarInp_t *nccfGetVarInp, nccfGetVarOut_t ** nccfGetVarOut)
*
* \brief libcf subsetting function. libcf f... |
/* Apache License 2.0 | Author Contact: <EMAIL> */
#include <stdio.h>
#include <driver/i2c.h>
#include <esp_log.h>
#include <string.h>
#include "ADS1115.h"
static const char *ADS_TAG = "ADS1115";
static ads1115_t *ads_cfg;
static esp_err_t ADS1115_read_to_rwbuff(uint8_t reg_adr); // Move these to the heade... |
/* Copyright (c) (2018,2019,2020) Apple Inc. All rights reserved.
*
* corecrypto is licensed under Apple Inc.’s Internal Use License Agreement (which
* is contained in the License.txt file distributed with corecrypto) and only to
* people who accept that license. IMPORTANT: Any license rights granted to you by
... |
#include "md.h"
#define MIN(x,y) ( (x)<(y) ? (x) : (y) )
#define MAX(x,y) ( (x)>(y) ? (x) : (y) )
void md( int32_t n_points[blockSide][blockSide][blockSide],
TYPE force_x[blockSide][blockSide][blockSide][densityFactor],
TYPE force_y[blockSide][blockSide][blockSide][densityFactor],
TYPE forc... |
/*-
* Copyright (c) 1998 <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 conditions a... |
/** \file mad.c \brief General ALC stuff
*
* $Author: peltotal $ $Date: 2007/02/28 08:58:00 $ $Revision: 1.27 $
*
* MAD-ALCLIB: Implementation of ALC/LCT protocols, Compact No-Code FEC,
* Simple XOR FEC, Reed-Solomon FEC, and RLC Congestion Control protocol.
* Copyright (c) 2003-2007 TUT - Tampere Unive... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
/*
* Copyright (C) 2004 by <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 condit... |
/*
* $Id: stdlib_mktemp.c,v 1.8 2006-01-08 12:04:26 obarthel Exp $
*
* :ts=4
*
* Portable ISO 'C' (1994) runtime library for the Amiga computer
* Copyright (c) 2002-2015 by <NAME> <obarthel (at) gmx.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificati... |
//
// Copyright (c) 2017 <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, mer... |
/*
* Copyright 2017-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
#include <assert.h>
#include "benchmark_list.h"
#include "util.h"
#include "qsbr.h"
typedef struct node {
int value;
struct node *next;
} node_t;
typedef struct harris_list {
node_t *head;
} harris_list_t;
typedef struct harris_pthread_data {
unsigned long count;
qsbr_pthread_data_t *qsbr_data;
} harris_pthrea... |
/*
** Copyright (C) 2001-2020 by Carnegie Mellon University.
**
** @OPENSOURCE_LICENSE_START@
** See license information in ../../LICENSE.txt
** @OPENSOURCE_LICENSE_END@
*/
/*
** sku-times.c
**
** various utility functions for dealing with time
**
** <NAME>
** 1/24/2002
*/
#include <silk/silk.h>
RCSIDENT("$SiLK... |
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "errorCode.h"
#include "basicDefinition.h"
#include "cephes.h"
#include "matrix.h"
#include "rank.h"
static const char* TAG = __FILENAME__;
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
... |
// Test for c code
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#define swap16(r) (((r&0xff)<<8)|(r>>8))
#define comb2(r, s) ((r<<4)|s)
#define comb3(r, s, t) ((r<<8)|(s<<4)|(t))
#define MEM_LEN 0x100
struct Inst {
uint8_t nib1 : 4;
uint8_t nib2 : 4;
uint8_t nib3 : 4;
u... |
// SPDX-License-Identifier: GPL-2.0+
#include <linux/moduleparam.h>
#include "ipmi_si.h"
#define PFX "ipmi_hardcode: "
/*
* There can be 4 IO ports passed in (with or without IRQs), 4 addresses,
* a default IO port, and 1 ACPI/SPMI address. That sets SI_MAX_DRIVERS.
*/
#define SI_MAX_PARMS 4
static char ... |
/* -*- mode: c; encoding: utf-8-unix; -*- */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "demucc.h"
int read_commands(struct pmd* pmd, uint8_t n, uint8_t** pp)
{
int cmd = n - 0xe0;
switch(cmd) {
case 0x00:
// rest
get_note(pmd, -1, pmd->len, 0);
break;
case 0x01... |
/* Copyright 2015 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 "mat33.h"
#include "math.h"
#include "util.h"
#define K_EPSILON 1E-5f
void mat33_fp_init_zero(mat33_fp_t A)
{
memse... |
/*
1528. Shuffle String
1528_shuffle_string.c
Given a string s and an integer array indices of the same length.
The string s will be shuffled such that the character at the ith position moves to indices[i] in the shuffled string.
Return the shuffled string.
Example 1:
Input: s = "codeleet", indices = [4,5,6,7,0,2,1,3... |
/* acc.c
<NAME> (<EMAIL>), 16 Sep 2017
FreeBSD-style copyright and disclaimer apply
*/
#include "rill.h"
#include "utils.h"
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdatomic.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h... |
/* vi: set sw=4 ts=4: */
/*
* Mini lsmod implementation for busybox
*
* Copyright (C) 1999-2004 by <NAME> <<EMAIL>>
*
* Modified by Alcove, <NAME> <<EMAIL>> and
* <NAME> <<EMAIL>> to support pre 2.1 kernels
* (which lack the query_module() interface).
*
* This program is free software; you can redistribute it ... |
#include <atmel_start.h>
#include "hpl_adc_config.h"
#include "mps_utils.h"
#include "canard.h"
#include "o1heap.h"
//#include "bsp_can.h"
#define adc_pres 1000000
#define ADC_REF_VOLTAGE 2.0480
#if CONF_ADC_0_RESSEL == 0x0
#define ADC_RESOLUTION (1<<12)
#elif CONF_ADC_0_RESSEL == 0x1
#define ADC_RESOLUTION (1<<16... |
/*
* Copyright 2021 Misha
* Copyright 2021 NSG650
* Copyright 2021 Sebastian
*
* 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
*
* ... |
#include "globals.h"
#include "oscam-time.h"
int exit_os=0;
int32_t start_listener( const char *ip, uint16_t port, int is_udp )
{
int fd, err;
int reuse = 1;
int timeout = BIND_TIMEOUT;
struct sockaddr_in sad;
uint32_t sad_len;
char ptxt[2][32];
printf("start listen: ------->>>>>>\n");
... |
/*
* Copyright 2012 Samsung Electronics Co., Ltd
*
* Licensed under the Flora License, Version 1.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.tizenopensource.org/license
*
* Unless required by applicable law or ... |
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#ifdef _WIN32
#include <Windows.h>
#endif
#include <SDL.h>
#include "vm.h"
void RenderDisplay(VM* vm, SDL_Texture *texture, unsigned char* pixels)
{
SDL_Rect r... |
/*
* Broadband Forum IEEE 1905.1/1a stack
*
* Copyright (c) 2017, Broadband Forum
* Copyright (c) 2018, prpl Foundation
*
* 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... |
/* packet-bpq.c
*
* Routines for Amateur Packet Radio protocol dissection
* Copyright 2005,2006,2007,2008,2009,2010,2012 <NAME> <<EMAIL>>
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under t... |
// Copyright (c) 2021 <NAME> All rights reserved.
// MIT licensed
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <linux/i2c-dev.h>
#include <linux/i2c.h... |
#include "filetypes.h"
#include <string.h>
#pragma pack (push, 1)
typedef struct {
unsigned char trk;
unsigned char sec;
unsigned char slen;
} FilePos;
typedef struct {
char sign[8]; // SINCLAIR
unsigned char files;
} sclHead;
#pragma pack(pop)
int loadSCL(Computer* comp, const char* name, i... |
#include <zephyr.h>
#include <logging/log.h>
#include <drivers/adc.h>
#include <devicetree.h>
#define SUPA_MODULE "mon"
#include "monitor.h"
#include "../main.h"
#include "../utils/change_filter.h"
#define ADC_RESOLUTION 12
#define ADC_GAIN ADC_GAIN_1
#define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
#define ADC_RE... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdbool.h>
#include <time.h>
#include "debug.h"
#include "blitzkrieg.h"
#include "tile.h"
#include "board.h"
#include "lexis.h"
#include "finder.h"
#include "print.h"
#include "config.h"
#include "welcome.h"
#define HEIGHT 4
#defin... |
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include<stdint.h>
#include "segmentation.h"
#include "main_memory.h"
#include "make_modules.h"
#include "L1_cache.h"
#include "L2_cache.h"
#include "segmentation.h"
#include "tlb.h"
uint8_t squar... |
#include"parse.h"
#define MAX_STR 60
int exprFactor() {
if(thisCh('(')) {
int var = expExpr();
expThisCh(')');
return var;
} else if(thisCh('\'')) {
char ch = expCh();
expThisCh('\'');
return constNum(TY_U8, ch);
} else if(thisCh('\"')) {
char tmp[MAX_STR];
int str1;
int c = 0... |
#include "extlib/map.h"
#include <string.h>
#include "extlib/assert.h"
#define MAX_LOAD_FACTOR 0.75
#define INITIAL_CAPACITY 8
#define EMPTY_MARK 0
#define TOMB_MARK 1
#define IS_TOMB(bucket) ((bucket)->hash == TOMB_MARK)
#define IS_EMPTY(bucket) ((bucket)->hash == EMPTY_MARK)
#define IS_VALID(bucket) (!IS_EMPT... |
/*********************************************************************
* SEGGER MICROCONTROLLER GmbH & Co KG *
* Solutions for real time microcontroller applications *
**********************************************************************
* ... |
#include <avr/io.h>
#include <avr/cpufunc.h>
#include <avr/interrupt.h>
#define FOSC 16000000ul /* velocidade do relógio */
#define BAUD 115200 /* velocidade desejada para a serial */
#define MYUBRR (FOSC/(8*BAUD) - 1) /* valor de 12 bits para configurar o clock da USART */
#define BUFFER_SIZE 20 /* Tamanh... |
/*
* 66-olexec.c
*
* Copyright (c) 2018-2021 <NAME> <<EMAIL>>
*
* All rights reserved.
*
* This file is part of Obarun. It is subject to the license terms in
* the LICENSE file found in the top-level directory of this
* distribution.
* This file may not be copied, modified, propagated, or distributed
* excep... |
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "nstack_in.h"
#include "nstack_socket.h"
#include "ip_defer.h"
#include "logger.h"
#include "nstack_arp.h"
#include "nstack_icmp.h"
#include "nstack_internal.h"
#include "nstack_ip.h"
#include "udp.h"
RB_HEAD(u... |
/*
Copyright (C) 2006-2007 <NAME>
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "util.h"
#include "funcs_mgga.c"
#include "funcs_hyb_mgga.c"
void
xc_mgg... |
/* This file is part of the YAZ toolkit.
* Copyright (C) <NAME>
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <yaz/nmem.h>
#include <yaz/test.h>
void tst_nmem_malloc(void)
{
NMEM n;
int j;
char *... |
#include <usbstk5515.h>
#include <usbstk5515_i2c.h>
#include <usbstk5515_gpio.h>
#define OSD9616_I2C_ADDR 0x3C
Uint8 TOP [128];
Uint8 BOTTOM [128];
Int16 OSD9616_send( Uint16 comdat, Uint16 data )
{
Uint8 cmd[2];
cmd[0] = comdat & 0x00FF; // Specifies whether data is Command or Data
cm... |
// Copyright 2019 Shift Cryptosecurity AG
// Copyright 2020 Shift Crypto AG
//
// 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
//
// Unl... |
/*
// Copyright (c) 2017 Intel 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... |
/***************************************************************************
* __________ __ ___
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> >... |
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <SDL.h>
#include <init.h>
#include <image.h>
#include <sprite.h>
int WINDOW_WIDTH = 640;
int WINDOW_HEIGHT = 480;
int SCREEN_WIDTH = 320;
int SCREEN_HEIGHT = 240;
#define DOWN 0
#define UP 1
#define LEFT 2
#define RIGHT 3
typedef enum e_game_state... |
/*
* Copyright (c) 2017-2021, AT&T Intellectual Property. All rights reserved.
*
* SPDX-License-Identifier: LGPL-2.1-only
*/
#include <libmnl/libmnl.h>
#include <linux/random.h>
#include <netinet/in.h>
#include <time.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "dp_session.h"
#include "npf/npf_pack... |
/*
* Copyright 2008, Freescale Semiconductor, Inc
* <NAME>
*
* Copyright 2013 Google Inc. All rights reserved.
* Copyright 2017 Intel Corporation
*
* MultiMediaCard (MMC), eMMC and Secure Digital (SD) write support code.
* This code is controller independent.
*
* This program is free software; you can redist... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "dask.h"
#include "conio.h"
#include "cpgplot.h"
#define SQR(a) ((sqrarg=(a)) == 0.0 ? 0.0 : sqrarg*sqrarg)
//prototypes
BOOLEAN write_to_file( U16 *buf, int num_chan );
void show_channel_data( U16 *buf, int num_chan );
void plot_channel_data();
U16... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2014-2017 - <NAME>
*
* RetroArch 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-
* ation, either version 3 of the License, or (at your option) any lat... |
/* ex: set softtabstop=3 shiftwidth=3 expandtab: */
/* This file is part of the *ramalloc* project at <http://fmrl.org>.
* Copyright (c) 2011, <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <math.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h>
#endif
#include <gtk/gtk.h>
#include "web100object.h"
#include "web100poll.h"
static void web100_poll_class_init (Web100PollClass *class);
static void web100_poll_init (Web100Poll *web100poll);
st... |
/* tinymix.c
**
** Copyright 2011, The Android Open Source Project
**
** 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... |
#include <stdio.h>
#include <stdlib.h>
struct MedianFinder {
int *maxHeap; /* store the smaller half */
int *minHeap; /* store the larger half */
int maxHeapCapacity;
int minHeapCapacity;
int maxHeapSize;
int minHeapSize;
double median;
};
void swap(int *a, int *b) {
int c = *a;
*a... |
/*
* tcpConnTable MIB architecture support for NetBSD
*/
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
#include <net-snmp/data_access/tcpConn.h>
#include "tcp-mib/tcpConnectionTable/tcpConnectionTable_constants.h"
#include "tcp-mib... |
// MARKERS_H
// <NAME>
// 295924
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
typedef char char_t;
typedef char_t* string;
typedef bool boolean;
typedef uint32_t uint24_t;
void print_debug(int32_t x, int32_t y) {
printf("DEBUG::breakpoint(%i, %i)\n", x, y);
}
vo... |
/* Windows32-based operating system interface for GNU Make.
Copyright (C) 2016-2020 Free Software Foundation, Inc.
This file is part of GNU Make.
GNU Make 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 ve... |
// SPDX-License-Identifier: GPL-2.0
/*
* Xilinx Kernel Driver Scheduler
*
* Copyright (C) 2020 Xilinx, Inc.
*
* Authors: <EMAIL>
*/
#include <linux/device.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/vmalloc.h>
#include "kds_core.h"
struct kds_command *kds_alloc_command(struct kds_client ... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2020, <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... |
/*
* C Implementation: wavcmp
*
* Description:
*
*
* Author: <NAME> <<EMAIL>>, (C) 2007
*
* Copyright: See COPYING file that comes with this distribution
*
*/
#include <stdio.h>
#include <string.h>
#include <libwaveformat.h>
t_wav_uint32 wav_write(void* p_user_data, void const* p_buffer, t_wav_uint32 p_bytes)
{
re... |
/*
* tslib/src/ts_test.c
*
* Copyright (C) 2001 <NAME>.
*
* This file is placed under the GPL. Please see the file
* COPYING for more details.
*
* SPDX-License-Identifier: GPL-2.0+
*
*
* Basic test program for touchscreen library.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <si... |
/*!
\file fileIO.c
\author L.Draescher <<EMAIL>>
\date 21/12/2020
\version 0.1 - first draft
\brief File interaction
\remarks None
This file stores all the methods needed in order
to interact with the filesystem.
*/
#include "fileIO.h"
/*!
\fn void writeData(student* class, int int_size, FILE*... |
/*-
* Public Domain 2014-present MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* bina... |
/*
* UartDrv.c
*
* Created on: 10. avg. 2019
* Author: ZigaM
*/
#include "Drivers/UartDrv.h"
// Reception buffer
uint8_t rxBuffer[ UART_RX_BUF_SIZE ];
// Working buffer
uint8_t rxBuffer_temp[ UART_RX_BUF_SIZE ];
// Init pins
void UartPinsInit(){
// Enable GPIOA clock
RCC -> AHBENR |= RCC_AHBENR_GPI... |
/* linux/arch/arm/mach-s5p64x0/setup-sdhci-gpio.c
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* S5P64X0 - Helper functions for setting up SDHCI device(s) GPIO (HSMMC)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Ge... |
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zconf.h>
#include <wait.h>
#include <ctype.h>
static const int MAX_ARGS = 5;
static const int MAX_PROGS_PIPED = 6;
static const int BUFFER_SIZE = 1024;
// modifies source string
void trim_whitespace(char **str)
{
if (strlen(*s... |
/*
********************************************************************
* USB stack and host controller driver for SGI IRIX 6.5 *
* *
* Programmed by BSDero *
* bsdero at gmail dot com ... |
/* Copyright (C) <NAME>
* See /doc/license/NOTICE.Plan9-9k.txt for details about the licensing.
*/
/* Portions of this file are Copyright (C) 2015-2018 <NAME> <<EMAIL>>
* See /doc/license/gpl-2.0.txt for details about the licensing.
*/
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#inclu... |
/*
LPCUSB, an USB device driver for LPC microcontrollers
Copyright (C) 2006 <NAME> (<EMAIL>)
This library 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 yo... |
/***************************************************************************************
* @file uart.c
* @version V1.0
* @date 18. January 2018
*
* @note
* VORAGO Technologies
*
* @note
* Copyright (c) 2013-2016 VORAGO Technologies.
*
* @par
* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, Y... |
/**
******************************************************************************
* @file ipcc_if.c
* @author MCD Application Team
* @brief Interface to IPCC: handles IRQs and abstract appl from Ipcc handler and ch direction
******************************************************************************... |
/*
FileHandler - General-purpose file handling library for Niotso
read_bmp.c - Copyright (c) 2011-2012 Niotso Project <http://niotso.org/>
Author(s): Fatbag <<EMAIL>>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided tha... |
/**
* @file render.c
* @author <NAME>
* @date 2005-2006
*
* @brief Functions to render icons using the XRender extension.
*
*/
#include "jwm.h"
#include "render.h"
#include "icon.h"
#include "image.h"
#include "main.h"
#include "color.h"
#include "misc.h"
/** Draw a scaled icon. */
void PutScaledRenderIcon(con... |
// Copyright 2011 The Go 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 "runtime.h"
#include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h"
void
runtime·dumpregs(Context *r)
{
runtime·printf("rax %X\n", r->Rax);
runtime·p... |
/*
* Copyright (C) 2017 The LineageOS Project
*
* 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 la... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.