text stringlengths 3.08k 10.5k |
|---|
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#define DIM_BUFF 512
#d... |
/******************************************************************************
*
* Copyright (C) 2008, The Gentee Group. All rights reserved.
* This file is part of the Gentee open source project - http://www.gentee.com.
*
* THIS FILE IS PROVIDED UNDER THE TERMS OF THE GENTEE LICENSE ("AGREEMENT").
* ANY USE, REPR... |
/********************************************************************
* *
* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENS... |
#include <string.h>
#include <nrf_drv_twi.h>
#include <nrf_gpio.h>
#include <nrf_delay.h>
#include <sdk_errors.h>
#include <app_error.h>
#include "senstick_util.h"
#include "senstick_io_definition.h"
#include "twi_manager.h"
// twi0は9軸、twiはその他センサーが接続するバス。
const nrf_drv_twi_t twi0 = NRF_DRV_TWI_INSTANCE(0);
const nrf... |
/*
* Copyright 2020 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "dap.h"
#include "../support/stream.h"
#include "../support/json.h"
#include "../support/json_to_utf8.h"
#include "../support/utf8_to_json.h"
#include <stdio.h>
#include <assert.h>
#ifdef _WIN32
# include <io.h>
#... |
/* main.c ---
*
* Filename: main.c
* Description: Main logic of stacker game
* Author:
* Maintainer:
* Created: Thu April 15, 2016
* Last-Updated: Sunday April 24, 2016
* By: <NAME>, <NAME>
* Update #: 30
* Keywords:
* Compatibility: Backward complatible
*
*/
/* Commentary: nO comments
*
*... |
/**
* To build this program, please make sure to reference linked library:
*
* gcc -lodccore -o odc-c-ls odc_ls.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "odc/api/odc.h"
#define CHECK_RESULT(x) \
do { \
int rc = (x); \
if (rc != ODC_SUCCESS) { \
fp... |
/*
*******************************************************************************
* BOLOS TEE Samples
* (c) 2016, 2017 Ledger
*
* 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
*
... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include "init.h"
#include "param.h"
#include "ellipsoids.h"
#include "maths.h"
#include "integration.h"
#include "measure.h"
int iter; // iteration number
int main(int argc, char *argv[]){
// PARTICLES
Ellipsoid ellipsoids[nEllipsoids]; // ellipsoids
For... |
#include <stdio.h>
#include <stdlib.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include <GL/glu.h>
#include "frontend.h"
#include "../icoordinates.h"
#include "frontend_opengl_linux.h"
#include "../iprimitives.h"
#include "../icoordinates.h"
void DrawAQuad() {
glBegin(... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "sgstring.h"
#include "signode.h"
#include "ptmx.h"
#include "configfile.h"
#define RXBUF_SIZE 128
#define RXBUF_CNT(ft) ((ft)->rxbuf_wp - (ft)->rxbuf_rp)
#define RXBUF_ROOM(ft) (RXBUF_SIZE - RXBUF_CNT(ft))
#define RXBUF_WP(ft) ((ft)->rxbuf_wp % RXBU... |
/*
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
*
* 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 ... |
#include <stdio.h>
#include <string.h>
#include <direct.h>
#include <windows.h>
#include "File.h"
#include "tinyfiledialogs.h"
// given a title and a message, sends a
// a popup window with given info
void sendPopup(const char* title, const char* msg) {
tinyfd_messageBox(title, msg, "ok", "info", 0);
}
// given a... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* Enough portmapper functionality that mount doesn't hang trying
* to start lockd. Enables nfsroot with locking functionality.
*
* Note: the kernel will only speak to the local portmapper
* using RPC over UDP.
*/
#include <sys/types.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include <time.h>
#include "options.h"
#include "odinlib.h"
#include "aoslib.h"
static char rcsid[] = "$Id$";
char PROGRAM_NAME[] = "aosdump";
char description[] = "retrieve level 0 data and dump info";
char required[] = ... |
//
// Copyright (C) 2020 by The Board of Trustees of Stanford University
// This program is free software: you can redistribute it and/or modify it under
// the terms of the Modified BSD-3 License as published by the Open Source
// Initiative.
// If you use this program in your research, we request that you reference ... |
#include "LAB_gui_manager.h"
#include "LAB_gui_component.h"
#include "LAB_memory.h"
#include "LAB_gl.h"
#include "LAB_debug.h"
#include "LAB_sdl.h"
#include <SDL2/SDL_ttf.h>
bool LAB_GuiManager_Create(LAB_GuiManager* mgr)
{
mgr->component = NULL;
mgr->surf = NULL;
mgr->dismiss_component = NULL;
mgr->z... |
/*
* lat_pagefault.c - time a page fault in
*
* Usage: lat_pagefault [-C] [-P <parallel>] [-W <warmup>] [-N <repetitions>] file
*
* Copyright (c) 2000 <NAME>.
* Copyright (c) 1994 <NAME>. Distributed under the FSF GPL with
* additional restriction that results may published only if
* (1) the benchmark is unmo... |
/* $OpenBSD: macfbvar.h,v 1.7 2006/03/13 22:35:17 miod Exp $ */
/* $NetBSD: macfbvar.h,v 1.3 2005/01/15 16:00:59 chs Exp $ */
/* $NetBSD: grfvar.h,v 1.11 1996/08/04 06:03:58 scottr Exp $ */
/* $NetBSD: grfioctl.h,v 1.5 1995/07/02 05:26:45 briggs Exp $ */
/*
* Copyright (c) 1998 <NAME>
* All rights reserved.
*
* Red... |
#include <stdio.h>
#include <unistd.h>
#include <dirent.h>
#include <conio.h>
#include "crypto.h"
#define PUBLIC_KEY_FILE_NAME "public.key"
#define ENCRYPTED_FILE_NAME "encrypted"
#define SENDER_LOCK "sender_lock"
#define RECEIVER_LOCK "receiver_lock"
#define UNKNOWN_MODE 1
#define UNABLE_TO_BECOME_SENDER... |
#define NUM_PROJECTILE_VERTS 1024
#define NUM_PROJECTILES (NUM_PROJECTILE_VERTS/2)
cnovr_model * projectiles_model;
cnovr_shader * projectiles_shader;
float * projectiles_points;
float * projectiles_data;
float * projectiles_color;
float * projectiles_extradata;
cnovr_pose projectiles_root; //Must be origin
int c... |
// SPDX-License-Identifier: GPL-2.0
/*
* (C) COPYRIGHT 2018 ARM Limited. All rights reserved.
* Author: James.Qian.Wang <<EMAIL>>
*
*/
#include <linux/slab.h>
#include "komeda_format_caps.h"
#include "malidp_utils.h"
const struct komeda_format_caps *
komeda_get_format_caps(struct komeda_format_caps_table *table,
... |
#include "sapi.h" // <= Biblioteca sAPI
#define COMMON_CATHODE
//#define COMMON_ANODE
#ifdef COMMON_CATHODE
#define DIGIT_ON 0
#define DIGIT_OFF 1
#define PIN_VALUE_ON 1
#define PIN_VALUE_OFF 0
#endif
#ifdef COMMON_ANODE
#define DIGIT_ON 1
#define DIGIT_OFF 0
#define PIN_VALUE_ON 0
... |
/**
* DSVerifier - Digital Systems Verifier (Limit Cycle in Closed-loop)
*
* Federal University of Amazonas - UFAM
*
* Authors: <NAME> <<EMAIL>>
*
* ------------------------------------------------------
*
* Verify the limit cycle oscilations for digital systems in closed-loop.
*
* This property analys... |
#ifndef STANDARD_LIBS
#define STANDARD_LIBS
#include "../include/headerfiles.h"
#endif
#ifndef PROJECT_LIBS
#define PROJECT_LIBS
#include "../include/cryptodata.h"
#include "../include/cryptodef.h"
#include "../include/filehandler.h"
#include "../include/scoring.h"
#endif
void separate()
{
puts("\n\n########... |
/*
* The new sysinstall program.
*
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
* $Id: variable.c,v 1.11.2.10 1998/07/18 09:35:29 jkh Exp $
*
* Copyright (c) 1995
* <NAME>. All rights reserved.
*
* Redistribution and use in sour... |
/* makePai - make pair file for est's or bac ends. */
#include "common.h"
#include "hash.h"
#include "localmem.h"
#include "linefile.h"
void usage()
/* Print usage and exit. */
{
errAbort(
"makePai - make est.pai or bacEnds.pai file from .ra file or .info file\n"
"usage:\n"
" makePai type inFile out.pai\n"
... |
// door.c.inc
struct DoorAction
{
u32 flag;
s32 action;
};
struct DoorAction D_8032F300[] = { { 0x40000, 3 }, { 0x80000, 4 }, { 0x10000, 1 }, { 0x20000, 2 }, { -1, 0 }, };
s32 D_8032F328[] = { SOUND_GENERAL_OPEN_WOOD_DOOR, SOUND_GENERAL_OPEN_IRON_DOOR };
s32 D_8032F330[] = { SOUND_GENERAL_CLOSE_WOOD_DOOR, S... |
/*
* g722_1 - a library for the G.722.1 and Annex C codecs
*
* defs.h
*
* Adapted by <NAME> <<EMAIL>> from the reference
* code supplied with ITU G.722.1, which is:
*
* (C) 2004 Polycom, Inc.
* All rights reserved.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WAR... |
#pragma once
#if !defined(_DEBUG ) // TODO: Make this work for gcc
#define PAPAYARELEASE // User-ready release mode
#endif // !_DEBUG
#include "libs/types.h"
#include "libs/timer.h"
#include "libs/easytab.h"
#include "libs/imgui/imgui.h"
#include "components/crop_rotate.h"
#include "components/prefs.h"
#include "com... |
/*
* Copyright (C) 2020-2021 <NAME>. All rights reserved.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <drivers/x86/fpu.h>
#include <libkern/kassert.h>
#include <libkern/log.h>
#include <mem/vmm/vmm.h>
#include <platform/generic/registers.h>
#... |
#include <stdio.h>
#include <stdlib.h>
#include "logick.visualization.h"
#include "../utils/types.h"
#include "../utils/helpers.h"
#include "../utils/calculators.h"
#include "helpers.visualization.h"
#include "../tools/tree-methods.h"
void ct_visualize_tree(ct_tree t, int step_v0, char *val_to_string(void *val)) {
... |
/*
* The Yices SMT Solver. Copyright 2014 SRI International.
*
* This program may only be used subject to the noncommercial end user
* license agreement which is downloadable along with this program.
*/
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <assert.h>
#include "utils/int_hash_map2... |
/* stretchy-buffer.h -- generic dynamic array
* <NAME> <<EMAIL>>
* Distributed under the MIT license, see license at the end of the file.
* New versions available at https://github.com/camel-cdr/cauldron
*
* Inspired by <NAME>'s stretchy-buffers and klib's kvec.
*
* Note that any arguments passed to a sb_* funct... |
/*
vbr.c (09.11.10)
Volume Boot Record creation code.
Free exFAT implementation.
Copyright (C) 2011-2015 <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 Licens... |
#include "snapconfig.h"
/*
$Log: nzmg.c,v $
Revision 1.1 1995/12/22 16:56:53 CHRIS
Initial revision
*/
#include "util/pi.h"
#include "coordsys/nzmg.h"
/*
Coefficients for converting NZMG coordinates to longitude and latitude
From L+S technical note set 1973/32
*/
typedef struct { double real, imag; }... |
// Enable debug prints to serial monitor
#define MY_DEBUG
// Enable and select radio type attached
//#define MY_RADIO_RF24
//#define MY_RADIO_NRF5_ESB
//#define MY_RADIO_RFM69
#define MY_RADIO_RFM95
#include <MySensors.h>
#define CHILD_ID_MQ 0
/************************Hardware Related Macros***... |
// NOTE1: any "format" param from the query functions can be
// either `0` for string format or `1` for binary format
// NOTE2: binary int/float is sent in big endian
#define DB_INTERNAL 1
#include "database.h"
#include "../buffer_util.h"
#include "../config.h"
#include "../log.h"
#include "../thread.h"
#include <l... |
#include <string.h>
#include "mphone_sk_support.h"
#include "mphone_softkey_info.h"
#include "mphone_addressField.h"
#include "mdolphin_app.h"
#if IS_PORTRAIT
#define IMG_SK_NUMBER "./res/number_pt.png"
#define IMG_SK_CHAR "./res/char_pt.png"
#else
#define IMG_SK_NUMBER "./res/number.png"
#define IMG_SK_CHAR "./r... |
#include "config.h"
#include "mp_msg.h"
#include "help_mp.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "libmpcodecs/img_format.h"
#include "libmpcodecs/mp_image.h"
#include "m_struct.h"
#include "m_option.h"
#include "menu.h"
#include "libvo/font_load.h"
#include "osdep/keycodes.h"
struc... |
/*
* Copyright (C) 2006-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 source code must retain the above copyright notice,
* this list ... |
#include "hashMap.h"
#include <assert.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
/*This function was provided by the class*/
/*
* Allocates a string for the next word in the file and returns it. This string
* is null terminated. Returns NULL after ... |
/*
* Copyright (C) 2005 - <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is... |
/*---------------------------------------------*/
/* >>>Slip<<< */
/* <NAME> */
/* VUB Software Languages Lab */
/* (... |
#include <elf.h>
#include <stdint.h>
#include <efi.h>
#include <stdbool.h>
#include <mem.h>
#include <graphics.h>
#include <file.h>
#include <exit.h>
EFI_GUID gEfiLoadedImageProtocolGuid = EFI_LOADED_IMAGE_PROTOCOL_GUID;
EFI_GUID gEfiSimpleFileSystemProtocolGuid = EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_GUID;
EFI_GUID gEfiFil... |
// fifo-server.c - Servidor del ejemplo del uso de tuberías con nombre para comunicar procesos
//
// El programa servidor utiliza alarm() y las señales del sistema para mostrar periódicamente la hora. Además, crea
// una tubería FIFO a la que puede conectarse el programa cliente para darle órdenes.
//
// Compilar:
/... |
#include<stdio.h>
#include<stdlib.h>
struct edge{
char data;
struct edge *next;
};
struct node {
char data;
struct node *next;
struct edge *enext;
};
void insertNode(struct node**,char);
void insertEdge(struct node*,char, char);
void display(struct node *);
void delNode(struct node**,char);
void delEdge... |
// DISTRIBUTION STATEMENT A. Approved for public release. Distribution is unlimited.
//
// This material is based upon work supported by the Department of the Air Force under Air Force Contract No. FA8702-15-D-0001. Any opinions, findings, conclusions or recommendations expressed in this material are those of the autho... |
//
// user_cmd.c
// Cetris
//
// Created by <NAME> on 14/10/2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include "cetris.h"
void init(struct game_t *game)
{
srand((unsigned) time(NULL));
game->quit = 0;
reset(game);
init_block(game->blocks);
init_file(game);
log_debug("=== CETRIS STARTED... |
/*
* Copyright (C) 2018-2019 BiiLabs Co., Ltd. and Contributors
* All Rights Reserved.
* This is free software; you can redistribute it and/or modify it under the
* terms of the MIT license. A copy of the license can be found in the file
* "LICENSE" at the root of this distribution.
*/
#include "config.h"
#inclu... |
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include "mem.h"
extern int timer_expired ;
extern int host_signal ;
static
void handler_sig_child(int sig)
{
}
static
void handler_sig_vtalarm(int sig)
... |
/*
This code is derived from PDPCLIB, the public domain C runtime
library by <NAME>. http://pdos.sourceforge.net/
This code is released to the public domain.
*/
#ifdef NON_PEBBLE
#include <string.h>
#include <time.h>
#else
#include <pebble.h>
#endif
/* scalar date routines -- public domain by <NAME>
** Th... |
#include "../warehouse.h"
#include "main.h"
#include "../conection/connection.h"
#include "../entry_parser.h"
#include "../debuging/debug.h"
#include "products.h"
sem_t list_mutex;
void *ProducerLogic(void *args);
void *ConsumerLogic(void *args);
void SendResp(int fd, int resp);
/* entry */
int main(int argc, char... |
/*
* ACT file format demuxer
* Copyright (c) 2007-2008 <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 Li... |
#pragma ident "@(#)mcr.h 1.8 04/02/25 SMI"
/* ************************************************************ */
/*
* Copyright (c) 2002 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
... |
//
// ngx_http_google_util.c
// nginx
//
// Created by Cube on 14/12/15.
// Copyright (c) 2014年 Cube. All rights reserved.
//
#include "ngx_http_google_util.h"
ngx_str_t
ngx_http_google_trim(char * str, size_t len)
{
ngx_str_t v;
v.data = (u_char *)str;
v.len = len;
if (!v.data || !v.len) return v;
... |
/* Copyright (c) 2016-2017 The Linux Foundation. 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 version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the ... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <time.h>
#include <byteswap.h>
#include "m68k.h"
long count=0;
long chipcount=0;
long fastcount=0;
unsigned int fast_start = 0x40000000; // location of zorro 384MB
unsigned int rtg_start = 0x2000000;
unsigned ... |
#include "exec.h"
// sets the "key" argument with the key part of
// the "arg" argument and null-terminates it
static void get_environ_key(char* arg, char* key) {
int i;
for (i = 0; arg[i] != '='; i++)
key[i] = arg[i];
key[i] = END_STRING;
}
// sets the "value" argument with the value part of
// the "arg" argu... |
/*
* linux/fs/attr.c
*
* Copyright (C) 1991, 1992 <NAME>
* changes by <NAME>
*/
#include <linux/module.h>
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/capability.h>
#include <linux/fsnotify.h>
#include <linux/fcntl.h>
#include <linux/quotaops.h>
#include <linux/secur... |
/*
(c) Copyright 2013 Hewlett-Packard Development Company, L.P.
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 agre... |
/////////////////////////////////////////////////////////////////////////
// $Id: amigagui.h 11073 2012-03-03 12:41:24Z vruppert $
/////////////////////////////////////////////////////////////////////////
#include <exec/types.h>
#include <exec/exec.h>
#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/intu... |
/*
Copyright (c) 2000, 2002 Finger Lakes Instrumentation (FLI), L.L.C.
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
... |
/* buggyservd - a buggy service daemon. presumably for use in testing
*
* Signals:
* USR1 causes a segfault (or bus error, depending)
* USR2 exits the program
*
* with no FIFO given, the process will likely take up 100% of the CPU.
* this is a feature
*/
#include <sys/types.h>
#include <sys/stat.h>
... |
/* Copyright (c) <NAME>, 1994. */
/*
* (c) Copyright 1993, Silicon Graphics, Inc.
* ALL RIGHTS RESERVED
* Permission to use, copy, modify, and distribute this software for
* any purpose and without fee is hereby granted, provided that the above
* copyright notice appear in all copies and that both the copyrigh... |
/* ///////////////////////////////////////////////////////////////////// */
/*!
\file
\brief ArrayLib routines for asynchronous MPI-IO
ArrayLib routines for asynchronous MPI-IO
\authors <NAME> (<EMAIL>)
\date Feb 28, 2012
*/
/* ///////////////////////////////////////////////////////////////////// */
#... |
#include <pocketsphinx.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "pocketsphinx_internal.h"
#include "ptm_mgau.h"
#include "ms_mgau.h"
#include "test_macros.h"
static const mfcc_t prior[13] = {
FLOAT2MFCC(37.03),
FLOAT2MFCC(-1.01),
FLOAT2MFCC(0.53),
FLOAT2MFCC(0.49),
FLOAT2MFCC(-0.60),
... |
#include "ibm.h"
#include "device.h"
#include "io.h"
#include "cpu.h"
#include "lpt.h"
#include "mem.h"
#include "serial.h"
#include "vid_oti067.h"
#include "acer386sx.h"
static int acer_index = 0;
static uint8_t acer_regs[256];
static uint8_t acer_last_write;
static int acer_locked;
static void *acer_... |
// RFC7731 RTP Payload Format for VP8 Video
#include "rtp-packet.h"
#include "rtp-profile.h"
#include "rtp-payload-helper.h"
#include "rtp-payload-internal.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <errno.h>
/*
0 1 2 3
0 1 2 ... |
/* Error handling during reading and writing of PO files.
Copyright (C) 2005-2007, 2015-2016 Free Software Foundation, Inc.
Written by <NAME> <<EMAIL>>, 2005.
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 Fre... |
#include <stdlib.h>
//#include <inttypes.h>
#include "pstdint.h"
#include "hashtable.h"
struct _htbl {
int (*eq)(const void *, const void *);
uint32_t (*hash)(const void *);
void **buckets;
size_t buckcnt;
size_t size;
size_t keyoff;
size_t chainoff;
float ratio;
};
#define KEYP(tbl, ... |
/*
* snmptrapd_auth.c - authorize notifications for further processing
*
*/
#include <net-snmp/net-snmp-config.h>
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#if HAVE_NETDB_H
#include <netdb.h>
#endif
#include <net-snmp/net-snmp-includes.h>
#include "snmp... |
/*
u8g_virtual_screen.c
Universal 8bit Graphics Library
Copyright (c) 2012, <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 a... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* RotateTrajectory.c
*
* Code generation for function 'RotateTrajectory'
*
*/
/* Include files */
#include "... |
/*
******************************************************************************
** CarMaker
** Vehicle Dynamics Simulation Toolkit
**
** Copyright (C) IPG Automotive GmbH
** Bannwaldallee 60 Phone +49.721.98520.0
** 76185 Karlsruhe Fax +49.721.98520.... |
#include <u.h>
#include <libc.h>
#include "system.h"
#ifdef Plan9
#include <libg.h>
#endif
#include "stdio.h"
#include "defines.h"
#include "object.h"
#include "njerq.h"
#include "path.h"
#include "comm.h"
#include "graphics.h"
#define DITHSIZE8 16
int dithmax8 = DITHSIZE8*DITHSIZE8-1;
int shift8[] = {0};
#define DIT... |
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and that due credit is given
* to the University of California at Berkeley. The name of the University
* may n... |
/******************************************************************//**
* @file main.c
* @brief Write a program to change privilege to unprivilege mode and vice versa.
* @version v1.0
* @date Apr 16, 2015
* @author <NAME>
**********************************************************************/
/* Includ... |
/***********************************************************************************************************************
* This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
* will be overwritten if the respective MCUXpresso Config Tools is used to update this file.
**********... |
/*
* Copyright (c) 2018, [Ribose Inc](https://www.ribose.com).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,... |
// Copyright (c) Facebook, Inc. and its affiliates.
// All rights reserved.
//
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <assert.h>
#include <math.h>
#include <stddef.h>
#include <stdint.h... |
/**
* Author: <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
* Modified: <NAME> (<EMAIL>)
* Date: March 2016
* Description:CC2538-specific definition of the "i2c" bsp module.
*/
#include "gpio.h"
#include "source/i2c_lib.h"
#include "ioc.h"
#include "sys_ctrl.h"
#include "board_info.h"
#include "he... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <stdbool.h>
#include <math.h>
int size = 0;
int max = 10;
typedef struct item
{
int key;
int value;
struct item *point;
} hash;
typedef struct hashtable_item
{
int count;
hash *data;
} hashtable;
hashtable *array;
void normal_hashi... |
/********************************************************************
Nome: lista2.c
Descrição: Exemplo de lista encadeada simples.
Data: 20210611
<EMAIL>
Aulas particulaes de programação em C/C++
Exemplo de lista encadeada simples com menu para manipular a lista.
Opções de menu:
- exibir lista;
- inserção... |
// This file is free software, distributed under the BSD license.
#include "hack.h"
#include "extern.h"
#include "flag.h"
#include <termios.h>
#include <termcap.h>
static char tbuf[512];
char *HO, *CL, *CE, *UP, *CM, *ND, *XD, *BC, *SO, *SE, *TI, *TE;
static char *VS, *VE;
static int SG;
char PC = '\0';
char *CD; /... |
#include "plf.h"
#include "system.h"
#include "bt_hci.h"
#include "bt_aic8800_drv_config.h"
#include "dbg.h"
#define AICBT_FW_DEFAULT_START_ADDR 0x80000
#define AICBT_FW_RAM_START_ADDR 0x100000
static uint32_t bt_fw_start_addr = AICBT_FW_DEFAULT_START_ADDR;
uint32_t bt_fw_patch_addr = 0;... |
#include "stdlib.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "NN_model.h"
//#include "Model2_dataset.h"
#include "training_process.h"
#define TIME_MEASURE 1
#define SETUP MNIST
#define MNIST 1
#define PRIVATE_DATASET 2
#if SETUP == PRIVATE_DATASET
#define TRAIN_SIZ... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/poll.h>
#include <linux/if.h>
#include <linux/if_tun.h>
#include "platform.h"
... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... |
/** @file patest_write_stop.c
@brief Play a few seconds of silence followed by a few cycles of a sine wave. Tests to make sure that pa_StopStream() completes playback in blocking I/O
@author <NAME> of XO Audio (www.xoaudio.com)
@author <NAME>
@author <NAME>
*/
/*
* $Id: patest_write_stop.c,v 1.8 2008-12-31 15:38:3... |
/*
* cylinder1.c
* A cylinder is drawn by first tesselating (=triangulating) a grid
* and then mapping points of the grid on to the cylinder.
*/
/* Use the x, X, y, Y, z, Z keys to turn the cylinder. */
#include <GL/glut.h>
#include <math.h>
#include <stdio.h>
#define PI 3.14159265358979324
/*
... |
/*
** Copyright 2005-2019 Solarflare Communications Inc.
** 7505 Irvine Center Drive, Irvine, CA 92618, USA
** Copyright 2002-2005 Level 5 Networks Inc.
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of version 2 of the GNU General Public License ... |
/*
* Copyright 2013-2016 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/LICENS... |
/*
* Copyright (C) 2015-2020 "IoT.bzh"
* Author: <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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
/*
* MIT License
* Copyright 2005-2016 Buaabyl
*
* (http://opensource.org/licenses/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 ... |
#include <proc/syscall.h>
#include <proc/syscalls.h>
#include <cpu/flags.h>
#include <cpu/efer.h>
#include <cpu/msr.h>
#include <cpu/gdt.h>
/*
* As the kernel is in the higher high we know that the MSB of function
* pointers is always set to one - therefore we can reuse the bit as a flag
* which indicates if the s... |
#include "postgis_brin.h"
/*
* As we index geometries but store either a BOX2DF or GIDX according to the
* operator class, we need to overload the original brin_inclusion_add_value()
* function to be able to do this. Other original mandatory support functions
* doesn't need to be overloaded.
*
* The previous lim... |
/*
* present80.c
*
* PRESENT80 implementation designed from original paper:
* -- PRESENT: An Ultra-Lightweight Block Cipher
* -- http://lightweightcrypto.org/present/present_ches2007.pdf
* -- https://www.iacr.org/archive/ches2007/47270450/47270450.pdf
* note: following implementation is only for
* little-en... |
/* eventfd example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#incl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.