text stringlengths 3.08k 10.5k |
|---|
/* terminal.c - Functions for terminal driver
*/
#include "terminal.h"
/* terminal_open(const uint8_t* command)
* Inputs: filename - not relevant to terminal
* Return Value: int32_t (0 on success, -1 on failure)
* Function: not relevant to terminal */
int32_t terminal_open(const uint8_t* filename){
return 0;
... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
#include <string.h>
#include <errno.h>
#include "parse.h"
size_t strtrim(char *str)
{
char *left = str, *right;
if(!str || *str == '\0') {
return 0;
}
... |
#include "luat_base.h"
#include "lvgl.h"
#include "luat_lvgl.h"
// void lv_area_set(lv_area_t* area_p, lv_coord_t x1, lv_coord_t y1, lv_coord_t x2, lv_coord_t y2)
int luat_lv_area_set(lua_State *L) {
LV_DEBUG("CALL lv_area_set");
lv_area_t* area_p = (lv_area_t*)lua_touserdata(L, 1);
lv_coord_... |
/*
* crc32.c - Routines for crc calculation
*
* This file is a part of the NetBench suite
*
* This source file is distributed "as is" in the hope that it will be
* useful. The suite comes with no warranty, and no author or
* distributor accepts any responsibility for the consequences of its
* use.
*
* Everyo... |
/******************************************************************************
** COPYRIGHT NOTICE
** (c) 2012 The Johns Hopkins University Applied Physics Laboratory
** All rights reserved.
**
** This material may only be used, modified, or reproduced by... |
/* Round toward nearest, breaking ties away from zero.
Copyright (C) 2007, 2009, 2010 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 by
the Free Software Foundation; either version 2, or (... |
/*
* Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
* All Rights Reserved.
*
* 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.
*
* This program is distributed in the hope that it woul... |
#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
#include <limits.h>
#ifdef _WIN32
# include <io.h>
# include <fcntl.h>
#endif
#include <string.h>
#include "file_io.h"
struct conf_st {
int type;
int non_critical;
int forward;
GT_Encoding in_enc;
char *in_file;
};
int encode(struct conf_st *conf, FILE ... |
/*
* Copyright (C) 2010, <NAME>
* F.C. Donders Centre for Cognitive Neuroimaging, Radboud University Nijmegen,
* Kapittelweg 29, 6525 EN Nijmegen, The Netherlands
*/
#include "mex.h"
#include "matrix.h"
#include "buffer.h"
#include "buffer_mxutils.h"
/* Like the normal fieldtrip append, but using mxMalloc and mxRe... |
/*
* model.c
*
* Licensed under MIT license
*
*/
#include <stdint.h>
#include "model.h"
char const *model_symbol(uint8_t atom)
{
switch (atom)
{
case ATOM_LP: return ("LP"); break;
case ATOM_H: return ("H"); break;
case ATOM_HE: return ("He"); break;
case ATOM_LI: return ("Li"); br... |
/*
* Library radio
*
* Copyright: Copyright 2014 <NAME>
*
* Radio 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 later version.
*
* This ... |
#include <math.h>
#include <sys/param.h>
#include "esp_event.h"
#include "esp_log.h"
#include "esp_netif.h"
#include "esp_system.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "nvs.h"
#include "nvs_flash.h"
#include "protocol_examples_common.h"
#include "driver/pwm.h"
#include <esp_http_server... |
#include "chip8/defs.h"
#include "logger.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
const byte_t chip8_fontset[80] = {
0xF0, 0x90, 0x90, 0x90, 0xF0, // 0
0x20, 0x60, 0x20, 0x20, 0x70, // 1
... |
#include "include.h"
#pragma config OSC = INTOSCPLL, WDTEN = OFF, XINST = OFF
#define _XTAL_FREQ 8000000
#define SENDER 0
extern void delay_ms(uint16_t maximum);
void delay(){
for(uint8_t i=0;i<20;i++)
for(uint8_t k=0;k<254;k++)
for(uint8_t j=0;j<254;j++);
}
uint8_t fitp_recived(const uint8_t from_cid, const ... |
#ifndef __PROGTEST__
#include <stdio.h>
#include <stdlib.h>
void printS(char ** substrs) {
/*
printf("PRINTFNAM!!!");
*/
int i;
if (substrs != NULL) {
//for (i = 0; i<DELKA; i++) {
for (i = 0; substrs[i]; i++) {
fprintf(stderr, ">%d>%s<\n", i, substrs[i]);
}... |
/* vglyph - library for visualize glyphs
*
* File: vglyph-format-parser.c
* Copyright (C) 2019 <NAME>
*/
#include "vglyph-format-parser.h"
#define VGLYPH_FORMAT_MAX_TOKEN_SIZE 50
typedef enum _vglyph_format_token_type
{
VGLYPH_FORMAT_TOKEN_TYPE_INVALID = 0,
VGLYPH_FORMAT_TOKEN_TYPE_CHANNEL = 1,
V... |
/*
* Copyright (c) 2020 Institute of Parallel And Distributed Systems (IPADS), Shanghai Jiao Tong University (SJTU)
* OS-Lab-2020 (i.e., ChCore) is licensed under the Mulan PSL v1.
* You can use this software according to the terms and conditions of the Mulan PSL v1.
* You may obtain a copy of Mulan PSL v1 at:
* ... |
#include <dlfcn.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
static void* gconf_handle;
void* (*get_client)(void);
char* (*get_string)(void*,char*,void*);
int (*get_int) (void*,char*,void*);
int (*get_bool) (void*,char*,void*);
/*********************** INITIALIZATION ******... |
/*
* HTTP handling functions.
*
* Copyright 2003 <NAME>
*
* 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 your option) any later versio... |
#include <assert.h>
#include <stdio.h>
#include "fes.h"
#define LANES 8
#define UNROLL 8
#define BATCH_MODE
struct solution_t {
u32 x;
u32 mask;
};
struct context_t {
int n;
int m;
u32 Fq[561 * LANES] __attribute__((aligned(32)));
u32 Fl[34 * LANES] __attribute__((aligned(32)));
int count;
u32 *buffer;
int... |
#include "common.h"
#include <io.h>
#include <direct.h>
#include "resource.h"
#include "bat2exeres.h"
static char* exe_name = NULL;
static void exit_usage(int status)
{
out("Usage: %s [[--temp|-t]|[--local|-l]] [-h|--help] file.bat file.exe\n\n"
" --local, -l Execute the bat file from the same file as exe. (Af... |
#include <stdlib.h>
#include <errno.h>
/**
* #include <lauxlib.h>
* #include <lua.h>
*/
#include "lzf.h"
#include "compat.h"
#if LUA_VERSION_NUM < 502
# ifndef luaL_newlib
# define luaL_newlib(L,l) (lua_newtable(L), luaL_register(L,NULL,l))
# endif
# ifndef lua_setuservalue
# define lua_setuservalue(L, n) lua_s... |
// Copyright (C) 2015-2020 Virgil Security, 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
// ... |
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>
#include <jni.h>
#include "makeargs.h"
// 'stringification' helper macros
#define xstr(s) str(s)
#define str(s) #s
#define MAIN_JAR xstr(_MAIN_JAR)
#define MAIN_CLASS xstr(_MAIN_CLASS)
#define PASS 1
#define FAIL 0
... |
/******************************************************************************
* 作者:kerwincui
* 时间:2021-06-08
* 邮箱:<EMAIL>
* 源码地址:https://gitee.com/kerwincui/wumei-smart
* author: kerwincui
* create: 2021-06-08
* email:<EMAIL>
* source:https://github.com/kerwincui/wumei-smart
*********************************... |
#include <stdio.h>
#include <ctype.h> // needed for isdigit, isalpha
/*
NOTES:
Challenging question!
*/
void expand(const char compressed[], char expanded[]);
int expandHelper(char expanded[], int loadPt, char start, char end, int mode);
int main()
{
char e[100];
char c1[] = "0-9";
expand(c1, e)... |
/****************************************************************
Monkeymind - an experimental cogitive architecture
The episodic memory consists of a sequence of events
stores as a sequence. The memory length is finite and
wraps around.
The event memory is similar to a hippocampus, recording
the stream of per... |
/*
* modem.c
* (c) 2019, <NAME>, jonasgunz.de
* <Description>
* <License>
*/
#include "modem.h"
int modem_accept_wait(int fd)
{
if(fd < 0)
return 1;
int buffsize = 128;
char buff[ buffsize + 1];
buff[buffsize] = '\0';
int ret; //for retturn values
struct pollfd fds; //poll struct
int cnt = 0; //read... |
#include "fonctions.h"
int write_in_queue(RT_QUEUE *msgQueue, void * data, int size);
void envoyer(void * arg) {
DMessage *msg;
int err;
while (1) {
rt_printf("tenvoyer : Attente d'un message\n");
if ((err = rt_queue_read(&queueMsgGUI, &msg, sizeof (DMessage), TM_INFINITE)) >= 0) {
... |
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Copyright (c) 2013 <NAME>
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitte... |
#include "schnorr.h"
#include <cx.h>
#include <os.h>
#include <string.h>
#include "../helpers/blake2b.h"
#define ERGO_SOUNDNESS_BYTES 24
#define MAX_ITERATIONS 100
// Gx: 0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798
// Gy: 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8
... |
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <stdio.h>
void init_lcd(void);
void stringout(char *);
void moveto(unsigned char);
void writecommand(unsigned char);
void writedata(unsigned char);
void writenibble(unsigned char);
char x = 1;
char y = 1;
unsigned char num;
unsigned char... |
/*
* ISC License
*
* Copyright (C) 1986-2018 by
* <NAME>
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 appea... |
#include <rtthread.h>
#include <rtdevice.h>
#include "bs8116a.h"
#include "defines.h"
void config_wifi(void *args) {
// rt_pin_detach_irq(PIN_KEY0); // 考虑在进入的时候,调用这个函数。
rt_thread_mdelay(50);
if (rt_pin_read(PIN_KEY0) == PIN_LOW) {
rt_thread_mdelay(50);
if (rt_pin_read(PIN_KEY0) == PIN_LOW) ... |
/*++
Copyright (c) 1999 Microsoft Corporation
Module Name:
int.c
Abstract:
interrupt service routine
Environment:
kernel mode only
Notes:
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO... |
#include "mpc_command.h"
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
/*
* Private function to call 'mpc' command line tool
*/
void __mpc_command(char* subcmd, MpcString* stdout, int* size) {
int i = 0;
char command[20];
char text[MPC_MAX_TEXT_LENGTH];
FILE* file = ... |
/*
* Copyright (c) 2011 <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 option) any la... |
/*
* linux/fs/hpfs/buffer.c
*
* <NAME> (<EMAIL>), 1998-1999
*
* general buffer i/o
*/
#include <linux/sched.h>
#include <linux/slab.h>
#include "hpfs_fn.h"
/* Map a sector into a buffer and return pointers to it and to the buffer. */
void *hpfs_map_sector(struct super_block *s, unsigned secno, struct buffer_... |
/*
*
* Copyright (c) International Business Machines Corp., 2001
*
* 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 l... |
/*
* Copyright © 2014 Intel Corporation
*
* 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, pub... |
/* $Id$ */
/*
* Copyright (c) 2019 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE A... |
/*
* 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... |
#include <kos.h>
#include <mp3/sndserver.h>
#define LEFT 0
#define CENTER 128
#define RIGHT 255
#define LOOP 1
#define SHAKER_VOL 200
#define INITIAL_CRY 128
#define LOUDEST_CRY 240
extern uint8 romdisk[];
KOS_INIT_ROMDISK(romdisk);
static void draw_instructions(uint8_t volume);
static cont_state_t* get_cont_state... |
/*
* fq2cnt.c
*
* Code generation for function 'fq2cnt'
*
*/
/* Include files */
#include "rt_nonfinite.h"
#include "yaapt.h"
#include "fq2cnt.h"
#include "error1.h"
#include "yaapt_emxutil.h"
#include "eml_int_forloop_overflow_check.h"
#include "yaapt_data.h"
#include "blas.h"
#include "lapacke.h"
/* Variable D... |
#include "mjd.h"
#include "mjd_bme280.h"
/*
* Logging
*/
/////static const char *TAG = "myapp";
static const char TAG[] = "myapp";
/*
* KConfig: LED, SENSOR
*/
static const int MY_LED_ON_DEVBOARD_GPIO_NUM = CONFIG_MY_LED_ON_DEVBOARD_GPIO_NUM;
static const int MY_LED_ON_DEVBOARD_WIRING_TYPE = CONFIG_MY_LED_ON_DEVB... |
/***************************************************************************//**
* @file
* @brief This implementation keeps careful track of the mean and mean
* deviation of the energy on each channel, as given by the
* incoming ZDO scan reports. When it is time to change the
* channel, the statistics are used to... |
/**
* @file lv_demo_music.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_demo_music_main.h"
#include "lv_demo_music_list.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
// © 2021 Qualcomm Innovation Center, Inc. All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <assert.h>
#include <hyptypes.h>
#include <hypregisters.h>
#include <atomic.h>
#include <compiler.h>
#include <cpulocal.h>
#include <log.h>
#include <panic.h>
#include <preempt.h>
#include <scheduler.... |
/* This file is part of the YAZ toolkit.
* Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* \file eventl.c
* \brief Implements event loop handling for GFS.
*
* This source implements the main event loop for the Generic Frontend
* Server.
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#in... |
/*
* Copyright (C) 2015 <NAME>, D+H <<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:
*
* Redistributions of source code must retain the above
* copyright notice, this list ... |
/* fread(), fprintf(), etc. */
#include <stdio.h>
/* malloc(), realloc(), free() */
#include <stdlib.h>
/* uint32_t */
#include <stdint.h>
/* htonl(), ntohl() */
#include <arpa/inet.h>
/* crc32() is external code - see crc32.c */
uint32_t crc32(const void *data, size_t len);
/* print message and exit */
void fatal(co... |
////////// Includes, Defines //////////////////////////////////////////////////
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#define SIZE 250
////////// Globals ////////////////////////////////////////////////////////////
static char *name[SIZE];
static unsigned char ord[SIZE], lot[S... |
/*
* ISC License
*
* Copyright (C) 1985-2018 by
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 c... |
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#include "io.h"
char *getNextToken(char *buffer, char *seperator, char **saveptr)
{
char *token = strtok_r(buffer, seperator, saveptr);
if (token == NULL)
return NULL;
for (int i = 0; i < (int)strlen(token); i++)
... |
/**
* Copyright (c) 2021 - Analog Devices Inc. All Rights Reserved.
* This software is proprietary and confidential to Analog Devices, Inc.
* and its licensors.
*
* This software is subject to the terms and conditions of the license set
* forth in the project LICENSE file. Downloading, reproducing, distributing o... |
/*
* HIPL Picture Header Format Standard
*
* <NAME> - 2/1/82
*/
#define XHEADER
#ifdef XHEADER
struct extended {
char *name;
char *vals;
};
#endif
struct header {
char *orig_name; /* The originator of this sequence */
char *seq_name; /* The name of this sequence */
int num_frame; /* The number of frames in ... |
/**
* Copyright (C) 2021 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... |
// This file is part of byfly-wifi-auth. For the copyright and license information, please view the LICENSE file that was distributed with this source code.
#include "common.h"
#include "https.h"
#include <string.h>
#include <stdlib.h>
#include <time.h>
static const size_t curl_user_agents_length = 3;
static const ... |
#include "hashMap.h"
#include <assert.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
/**
* Allocates a string for the next word in the file and returns it. This string
* is null terminated. Returns NULL after reaching the end of the file.
* @param file
... |
/*
Copyright (c) 2013-2015, <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 and the f... |
#define _DEFAULT_SOURCE
#include "commit.h"
#include "commit-object.h"
#include "common.h"
#include "config.h"
#include "logging.h"
#include "show.h"
#include "util.h"
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <t... |
/******************************************************************************/
void astro_d ( double t, double y[], double yp[] )
/******************************************************************************/
/*
Purpose:
astro_d evaluates the derivative for the ODE.
Licensing:
This code is distrib... |
/* frame-unix.c -- Stack frame unwinding (Unix implementation)
-- Copyright (C) 2011, 2012, 2013 <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... |
/*
* This file is part of Cognomen.
*
* Cognomen 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 3 of the License, or
* (at your option) any later version.
*
* Cognomen is d... |
#include "server.h"
#undef ns
#define ns(x) FLATBUFFERS_WRAP_NAMESPACE(Snake_Message, x)
// A helper to simplify creating vectors from C-arrays.
#define c_vec_len(V) (sizeof(V)/sizeof((V)[0]))
struct conn_t {
int fd;
uint8_t * direction;
};
struct game_context_t {
int fd;
uint8_t * direction;
bool ending;... |
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include "eaarl.h"
/************************************************************
6/24/01
Orginal by
<NAME> 6/24/2001 <EMAIL>
Usage:
ls *.tld | efdb outputfile.bin
... |
#include <stdlib.h>
#include <string.h>
#include "mlbuf.h"
// Zero-fill realloc
void* recalloc(void* ptr, size_t orig_num, size_t new_num, size_t el_size) {
void* newptr;
newptr = realloc(ptr, new_num * el_size);
if (!newptr) return NULL;
if (new_num > orig_num) {
memset(newptr + (orig_num * el... |
/***************************************************************************
*
* (C) Copyright 2010 The Board of Trustees of the
* University of Illinois
* All Rights Reserved
*
***************************************************************************/
... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "dct.h"
#define VAL00 (0.5/4.0)
#define VAL0x (0.7071067/4.0)
#define VALx0 (0.7071067/4.0)
#define VALxx (1.0/4.0)
#define C0 (2*(0.7071068))
#define C1 (2*(0.49039))
#define C2 (2*(0.46194))
#define C3 (2*(0.41573))
#define C4 (2*(0.35355))
#define ... |
// Copyright 2016 <NAME>. Subject to the MIT License.
#include "buffer.h"
#include "problems.h"
#include "semaphore.h"
#include <pthread.h>
#include <stddef.h>
enum Role {
AGENT,
PUSHER,
SMOKER,
N_ROLES
};
enum Ingredient {
TOBACCO,
PAPER,
MATCH,
N_INGREDIENTS
};
#define N_THREADS (N_ROLES * N_INGREDIENTS)... |
#include "SDL.h"
#include "support.h"
#include <stdio.h>
#include <string.h>
#include "ui.h"
#include "font.h"
#include "gfx.h"
#include "player.h"
#include "sprite.h"
#include "sql.h"
int win_w = 600;
int win_h = 900;
SDL_Renderer* render_ctx = NULL;
struct font font48, font36;
struct game_screen menus;
struct text ... |
/*
* A simple testee program with threads
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <pthread.h>
#include <syscall.h>
#include "zdtmtst.h"
... |
/***********************************************************
Copyright (c) 1987 X Consortium
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... |
#include <linux/init.h> /* Needed for the macros */
#include <linux/module.h> /* Needed by all modules */
#include <linux/kernel.h> /* Needed for printing log level messages */
#include <linux/list.h> /* macros related to linked list are defined here. Eg: list_add(), list_del(), list_entry(), etc */
#include <linux/s... |
/*
* Freescale Kinetis boards emulation.
*
* Copyright (c) 2014 <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... |
#include <stdio.h>
#include <stdlib.h>
// types and socket stuff
#include <sys/types.h>
#include <sys/socket.h>
#include <signal.h>
#include <unistd.h>
#include <string.h>
#include <strings.h>
// stuff to do because I can
// IP and protcol stuff
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netdb.h>
/*... |
#include <stdio.h>
#include <stdlib.h>
#include "project3.h"
#define NODEID 0
extern int TraceLevel;
extern float clocktime;
struct distance_table {
int costs[MAX_NODES][MAX_NODES];
};
struct distance_table dt0;
struct NeighborCosts *neighbor0;
int numNodes;
void printdt0( int MyNodeNumber, struct NeighborCosts... |
/*
+----------------------------------------------------------------------+
| PHP Version 4 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2003 The PHP Group |
+---------... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* (C) 2004-2009 <NAME> <<EMAIL>>
*/
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include "cpupower.h"
#include "cpupower_intern.h"
unsigned int cpupower_read_sysfs(const c... |
/*
* Copyright 1995-2019 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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "minunit.h"
#include "base_tx.h"
#include "ser_tx.h"
#include "ser_key.h"
#include "crypto.h"
int tests_run = 0;
Transaction *_make_tx() {
Transaction *a_Tx = malloc(sizeof(Transaction));
a_Tx->num_inputs = 2;
a_Tx->num_outputs = 1;
a_Tx->in... |
/*
* Written by <NAME>
* A C program intended to generate a todo list in a .txt file.
* Written for practice and revision in C programming sometime around mid 2016.
* Cleaned mid 2017 after reading <NAME> - Clean Code.
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#define NUM_AR... |
/*
* SSH agent forwarding.
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "putty.h"
#include "ssh.h"
#include "pageant.h"
#include "sshchan.h"
typedef struct agentf {
SshChannel *c;
bufchain inbuffer;
agent_pending_query *pending;
int input_wanted;
int rcvd_eof;
Cha... |
/*
* Copyright (c) 2012-2015 Etnaviv Project
*
* 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... |
/*
* FreeRTOS Kernel V10.2.1
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. 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, includ... |
/*
* Copyright (c) 2013-2014 InfluxDB
* <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See COPYING for details.
*
*/
#include <curl/curl.h>
#include <string.h>
#include "client.h"
#include "utils.h"
s_influxdb_client
*influxdb... |
/**
****************************************************************************************
*
* @file user_periph_setup.c
*
* @brief Peripherals setup and initialization.
*
* Copyright (c) 2015-2018 Dialog Semiconductor. All rights reserved.
*
* This software ("Software") is owned by Dialog Semiconductor.
*
... |
/*
* File: Bitmap.c
* A basic Bitmap API
* Author: <NAME>
*/
#include "Bitmap.h"
#include <stdio.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
typedef unsigned char* bitmap_array;
struct Bitmap_Struct {
unsigned int sizeBytes, bitsNum;
bitmap_array bitmap;
};
// Forward declarations o... |
/*
Copyright 2017 Regents of the University of California
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 and the follo... |
/** @file juggle.c
* @brief A tester in which threads juggle thread juggle threads.
*
* USAGE: juggle <num_levels> <num_throws> <rep> <misbehave_num + 1>
*
* @author <NAME> (cgwright)
* @bug None known
*/
#include <stdio.h>
#include <rand.h>
#include <syscall.h>
#include <simics.h>
#include <thread.h>
#in... |
/*
* Used by System.IO.Compression.DeflateStream
*
* Author:
* <NAME> (<EMAIL>)
*
* (c) Copyright 2009 Novell, Inc.
*/
#include <config.h>
#if defined (HAVE_ZLIB)
#include <zlib.h>
#else
#include "zlib.h"
#endif
#include <glib.h>
#include <string.h>
#include <stdlib.h>
#ifndef TRUE
#define FALSE 0
#define TR... |
/*
* $Id: mech.build.c,v 1.1.1.1 2005/01/11 21:18:11 kstevens Exp $
*
* Author: <NAME> <<EMAIL>>
*
* Copyright (c) 1996 <NAME>
* All rights reserved
*
* Last modified: Wed Apr 29 21:04:14 1998 fingon
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sys/file.h>
#include "mech.h... |
// oscbndlsend.c - test program to send OSC bundles
//
// this test is designed to run with either oscbndlrecv.c or lo_bndlrecv.c
// We'll send 5 bundles:
// at NOW+2.9: [/xyz/msg1 1009 "an arbitrary string at 2.9"],
// [/abcdefg/msg2 2009 "another arbitrary string at 2.9"]
// at NOW+2.8: [/xyz/msg... |
/******************************************************************************
*
* File: scoplib.h
*
* Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989
* Duke University
*
* scoplib.h,v 1.2 1997/04/18 14:42:13 hines Exp
*
******************************************************************************/
/***... |
/* $OpenBSD: print.c,v 1.8 2016/01/08 18:20:33 mestre Exp $ */
/* $NetBSD: print.c,v 1.3 1995/03/23 08:35:05 cgd Exp $ */
/*
* Copyright (c) 1980, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are pe... |
// Copyright (c) 2018 Electric Power Research Institute, Inc.
// author: <NAME> <<EMAIL>>
/** @defgroup se_discover IEEE 2030.5 Service Discovery
@ingroup dnssd_client
Provides an implementation of IEEE 2030.5 Service Discovery.
@{
*/
enum SeServerFlag {
BILLING_SERVER = (1 << 0 ), /**< Billing Se... |
/*
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2012 Los Alamos National Security, LLC. All rights reserved
*
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "orte_config.h"
#include "orte/constants.h"
#include "orte/types.h"
#include <... |
/* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... |
/*
* RGB2R-C128-Kassenprogramm
* © 2007-2009 phil_fry, sECuRE, sur5r
* See LICENSE for license information
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <conio.h>
#include <stdint.h>
#include "general.h"
#include "config.h"
#include "vdc_patch_charset.h"
/*
* get_input_terminated_by()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.