text stringlengths 3.08k 10.5k |
|---|
/*@todo
implement function that merge identifiers when they occur more than once
implement dtor_ovp
implement escaped characters (space, tab, newline, etc.)
*/
#include "../h/ovp.h"
identifier_data ctor_identifier_data()
{
identifier_data i;
memset(&i,0,sizeof(identifier_data));
return i;
}
identifier... |
/*
* Copyright (c) 2022 <NAME>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr.h>
#include <math.h>
#include <custom_drivers/rc.h>
#include <settings/settings.h>
#include <shell/shell.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
/* default settings */
#define RC_EXPO_ROLL_DEFAULT 0.0
... |
/*
* SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
#include <twz/meta.h>
#include <twz/name.h>
#include <twz/obj.h>
#include <twz/obj/... |
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2006 The University of Tennessee and The University
* of Tennessee Resea... |
#include <assert.h>
#include "../Depozit.h"
#include "../Ui.h"
#include "TestFunctionalitati.h"
// Creaza fisiere cu multe inregistrari.
void creazaContext(const char fisierPersoane[], const char fisierBanci[], const char fisierDepozite[]);
// Sterge, fizic, fisierele.
void distrugeContext(const char fisierPersoane[]... |
/*
paging.c
*/
#include "paging.h"
/*
paging_init()
Description: initializes paging
Inputs: None
Outputs: None
Side Effects: initializes paging
Inspiration: OSDev.org
http://wiki.osdev.org/Setting_Up_Paging
Note: Video Memory address is x
*/
void paging_init()
{
//set each entry to not present
... |
/*
** mouse:~ppr/src/ppad/ppad.c
** Copyright 1995--2006, Trinity College Computing Center.
** Written by <NAME>.
**
** This file is part of PPR. You can redistribute it and modify it under the
** terms of the revised BSD licence (without the advertising clause) as
** described in the accompanying file LICENSE.txt.
**... |
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
/*
* Name : <insert name here>
*
* Simple Wumpus game in 2D
*/
/* Id's for things in our Cave */
#define Empty 0
#define Wumpus 1
#define End 2
#define Pit 3
/* Number of rooms in our Cave in each dimension */
#def... |
/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license ... |
/**
* Código completo do interpretador do capítulo 2
*/
// Contants
#include <stdio.h> // I/O
#include <ctype.h> // char tests
#define BSIZE 128
#define NONE -1
#define EOS '\0'
#define NUM 256
#define DIV 257
#define MOD 258
#define ID 259
#define DONE 260
#define STRMAX 9999 // length of array of lexeme
#de... |
/*
* sx.h
*
* Copyright (C) 1998/1999 <EMAIL>
*
* SX serial driver.
* -- Supports SI, XIO and SX host cards.
* -- Supports TAs, MTAs and SXDCs.
*
* Version 1.3 -- March, 1999.
*
*/
#define SX_NBOARDS 4
#define SX_PORTSPERBOARD 32
#define SX_NPORTS (SX_NBOARDS * SX_PORTSPERBOARD)
#if... |
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */
#include "core/pubnub_proxy.h"
#include "pubnub_internal.h"
#include "core/pubnub_log.h"
#include "core/pubnub_assert.h"
#include <winhttp.h>
#include <stdio.h>
#include <wchar.h>
#pragma comment(lib, "winhttp")
static void free_winhttp_stuff(WINHTTP_... |
/*
* mod_tcp_chaff.c
*
* Copyright (c) 2001 <NAME> <<EMAIL>>
*
* $Id$
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pkt.h"
#include "mod.h"
#include "randutil.h"
#include "iputil.h"
#define CHAFF_TYPE_CKSUM 1
#define CHAFF_TYPE_NULL 2
#define CHAFF_TYPE_... |
/* <dory/input_dg/partition_key/v0/v0_write_msg.cc>
----------------------------------------------------------------------------
Copyright 2013-2014 if(we)
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 c... |
#include "hdr.h"
#include <stdarg.h>
#define MAX_CHARS 1000
#define MAX_LENGTH 3
static void readargs(int,char **);
static void expand(char *);
static void simplesort(int *);
int main(int argc,char *argv[])
{
char expchars[MAX_CHARS];
matching = unique = single = piped = bknown = save = restore = 0;
prog = *arg... |
/* mbed Microcontroller Library
* Copyright (c) 2014, STMicroelectronics
* 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 copyrigh... |
#include "types.h"
#include "param.h"
#include "memlayout.h"
#include "riscv.h"
#include "spinlock.h"
#include "proc.h"
#include "defs.h"
struct spinlock tickslock;
uint ticks;
extern char trampoline[], uservec[], userret[];
// in kernelvec.S, calls kerneltrap().
void kernelvec();
extern int devintr();
void
trapin... |
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */
#include "pubnub_sync.h"
#include "core/pubnub_coreapi_ex.h"
#include "core/pubnub_helper.h"
#include "core/pubnub_timers.h"
#include <stdio.h>
#include <string.h>
#include <time.h>
static void sync_sample_free(pubnub_t* p)
{
if (PN_CANCEL_STARTED =... |
/*-------------------------------------------------------------------------
*
* win32_latch.c
* Routines for inter-process latches
*
* See unix_latch.c for header comments for the exported functions;
* the API presented here is supposed to be the same as there.
*
* The Windows implementation uses Windows even... |
/*
* Copyright 2014 - 2017 Real Logic 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 agr... |
#define SR139
#define MICROPY_HW_BOARD_NAME "SR139"
#define MICROPY_HW_MCU_NAME "STM32F103ZE"
#define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (0)
#define MICROPY_HW_HAS_FLASH (1)
#define MICROPY_HW_HAS_SWITCH (1)
#define MICROPY_HW_ENABLE_RTC (1)
#define MICROPY_HW_ENABLE_USB ... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2004-2013 Synopsys, Inc. (www.synopsys.com)
*
* MDIO implementation for ARC EMAC
*/
#include <linux/delay.h>
#include <linux/of_mdio.h>
#include <linux/platform_device.h>
#include <linux/gpio/consumer.h>
#include "emac.h"
/* Number of seconds we wait for "MD... |
#include <fs/sock.h>
#include <arvern/utils.h>
#include <fcntl.h>
#include <fs/logging.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
inode_t sock_fs_create();
uint64_t sock_open(inode_t inode, uint64_t flags);
uint64_t sock_close(inode_t... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include "privkey.h"
#include "hex.h"
#include "file.h"
#include "des.h"
#include "asn1.h"
#include "digest.h"
#include "md5.h"
#include "sha.h"
/**
* Parse the modulus and private exponent from the buffer, which
* shoul... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/compile.h"
#include "mruby/dump.h"
#include "mruby/variable.h"
#ifdef MRB_DISABLE_STDIO
static void
p(mrb_state *mrb, mrb_value obj)
{
mrb_value val = mrb_inspect(mrb, obj);
fwrite... |
// Inferno libmach/6obj.c
// http://code.google.com/p/inferno-os/source/browse/utils/libmach/6obj.c
//
// Copyright © 1994-1999 Lucent Technologies Inc.
// Power PC support Copyright © 1995-2004 <NAME> (<EMAIL>).
// Portions Copyright © 1997-1999 Vita Nuova Limited.
// Portions Copyright © 2000-2007 Vita Nuova Hold... |
/**************************************************************************************************
* *
* This file is part of HPIPM. *
* ... |
/*
Author : <NAME>, EEMBC
This file is part of EEMBC(R) and CoreMark(TM), which are Copyright (C) 2009
All rights reserved.
EEMBC CoreMark Software is a product of EEMBC and is provided under the terms of the
CoreMark License that is distributed with the official EEMBC COREMARK Software release.
If you received this... |
/* note.c
Copyright 2019-2021 <NAME> <<EMAIL>>
Copyright 2021 <NAME> <<EMAIL>>
Copyright 2021 <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, inclu... |
#include "types.h"
#include "debug.h"
#include "memoryemu.h"
#include "emu.h" /* for config struct */
#include "disks.h" /* for SECTOR_SIZE */
/*
* The point of these procedures is going to be to create a map of the
* available memory to facilitate:
*
* 1. check for memory conflicts (hardware page/ems page fra... |
/* USMID @(#)92/include/synonyms.h 92.2 06/08/99 10:44:16 */
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
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 as
published by the Free Software Found... |
/*
* Parameters
*/
#define NSTACK 100 /* html grammar is not recursive, so 30 or so should do */
#define NHBUF 8192 /* Input buffer size */
#define NPEEKC 3 /* Maximum lookahead */
#define NTOKEN 1024 /* Maximum token length */
#define NATTR 512 /* Maximum number of attributes of a tag */
typedef struct Pair Pair;
ty... |
/*-
* Copyright (c) 1999 <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 of co... |
/**************************************************************************
** Start of ascii tokenizer implementation.
*/
/*
** For tokenizers with no "unicode" modifier, the set of token characters
** is the same as the set of ASCII range alphanumeric characters.
*/
#include <string.h>
#include "ascii_tokenizer.h"
... |
#include <unistd.h>
#include <time.h>
#include "ffb.h"
#include "config.h"
#include "debug.h"
#include "device.h"
#include "ffbhelper.h"
/* The in packet used to read from Sega FFB Controller */
/* it contains the converted values from serial raw */
FFBPacket inputPacket;
int initFFB(char *devicePath)
{
/* Init ... |
struct vf_instance_s;
struct vf_priv_s;
typedef struct vf_info_s {
const char *info;
const char *name;
const char *author;
const char *comment;
int (*open)(struct vf_instance_s* vf,char* args);
// Ptr to a struct dscribing the options
void* opts;
} vf_info_t;
typedef struct vf_image_conte... |
/**
* Copyright 2020 Huawei Technologies Co., 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... |
#include "ccv.h"
#include <sys/time.h>
#include <ctype.h>
static unsigned int get_current_time(void)
{
struct timeval tv;
gettimeofday(&tv, NULL);
return tv.tv_sec * 1000 + tv.tv_usec / 1000;
}
#define BATCH_SIZE (8)
int main(int argc, char** argv)
{
assert(argc >= 3);
ccv_enable_default_cache();
ccv_dense_mat... |
/*
* Copyright (C) 2013 Freescale Semiconductor, Inc.
* Copyright (C) 2015 ECA Sinters
*
* Author: <NAME> <<EMAIL>>
* Modified by: <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/iomux.h>
#include <asm/arch/mx6-pins.h>
#inc... |
/*
* Copyright (c) 2014-2019 Cesanta Software Limited
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the ""License"");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
/* load.c --- loading object files into the RL78 simulator.
Copyright (C) 2005-2021 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
This file is part of the GNU simulators.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Lic... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "diff.h"
#include "brief.h"
#include "opts.h"
#define ARGC_ERROR 1
#define BUFLEN 256
#define MAXSTRINGS 1024
struct para {
char** base;
int filesize;
int start;
int stop;
};
void usageBanner() {
printf("Usage: ./diff [file1] [file2] <f... |
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
typedef struct nodo{
struct nodo* siguiente;
void* dato;
}nodo_t;
typedef struct lista{
size_t largo;
nodo_t* primero;
nodo_t* ultimo;
}lista_t;
typedef struct lista_iter{
lista_t* lista;
nodo_t* actual;
nodo_t* anterior;
}li... |
/*
Copyright (C) 1996-1997 Id Software, 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
of the License, or (at your option) any later version.
This program is distributed in th... |
typedef struct liq_attr {
const char *magic_header;
void* (*malloc)(size_t);
void (*free)(void*);
double target_mse, max_mse, kmeans_iteration_limit;
unsigned int max_colors, max_histogram_entries;
unsigned int min_posterization_output /* user setting */, min_posterization_input /* speed settin... |
/* $OpenBSD: ex_usage.c,v 1.7 2009/10/27 23:59:47 deraadt Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
* Copyright (c) 1992, 1993, 1994, 1995, 1996
* <NAME>. All rights reserved.
*
* See the LICENSE file for redistribution information.
*/
#... |
/* Compile with: gcc -Wall -W -g -o test_sync test_sync.c -L/usr/local/lib -lmstdlib_io -lmstdlib_thread -lmstdlib
* Run with: LD_LIBRARY_PATH=/usr/local/lib ./test_sync
*/
#include <mstdlib/mstdlib.h>
#include <mstdlib/mstdlib_thread.h>
#include <mstdlib/mstdlib_io.h>
M_uint64 active_client_connections;
M_uint64... |
#include "state_play.h"
void draw_frame()
{
set_color(RED);
int i;
for (i = 0; i <= SCREEN_WIDTH; ++i)
{
goto_xy(i, 0);
putchar(FRAME);
goto_xy(i, SCREEN_HEIGHT);
putchar(FRAME);
}
for (i = 0; i <= SCREEN_HEIGHT; ++i)
{
goto_xy(0, i);
putc... |
/* Copyright (c) 2015-2019, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file periodic.c
*
* \brief Generic backend for handling periodic events.
*
* The events in this module are used by main.c to track items that need
* to fire once every N seconds, possibly picking a new interva... |
#include "imc_avl_map.h"
#include <stdlib.h>
#include <stdio.h>
imc_avl_map_t* imc_avl_map_create(int (*comparator)(imc_key_t*, imc_key_t*)){
imc_avl_map_t* map = malloc(sizeof(imc_avl_map_t));
map->comparator = comparator;
map->tree = NULL;
return map;
}
int imc_avl_map_size(imc_avl_map_t* map){
... |
#include "idt.h"
#include "lib.h"
#include "interrupt_linkage.h"
#include "syscall.h"
#define SYSCALL_VEC_NUM 0x80
#define HALT_STATUS_ON_EXCEPTION 256
// Jump table for all interrupt hanlders. Last one is default handler.
void (*interrupt_handler[NUM_VEC + 1])();
/* format a macro to handle all different excpetion... |
//**********************************************************************;
// Copyright (c) 2015, Intel Corporation
// 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 s... |
#include "avr_controllers/twi_controller.h"
#include <stddef.h>
#include <inttypes.h>
#include <avr/io.h>
#include <util/twi.h>
#include "defs.h"
void twi_init(void)
{
TWCR = _BV(TWEN);
}
void twi_set_speed(uint32_t twi_freq, fbool prescaler)
{
/*
* flagsbool prescaler:
* bit 0: TWPS0
* bit 1... |
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "compiler/token.h"
#include "yasl_conf.h"
// NOTE: _MUST_ keep this up to date with the jumptable in compiler.c and the jumptable in middleend.c
typedef enum NodeType {
N_EXPRSTMT,
N_BLOCK,
N_BODY,
N_FNDECL,
N_RET,
N_EXPORT,
N_CA... |
// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>.
// All rights reserved.
//
// This software is distributed under a license that is described in
// the LICENSE file that accompanies it.
//
// Meridian is a registered trademark.
#include "blakserv.h"
#define MAX_MAINTENANCE_MASKS 15
char *maintenance_masks[MAX_M... |
/*
* Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this ... |
/*
* AWS IoT EduKit - Core2 for AWS IoT EduKit
* Factory Firmware v2.1.1
* clock.c
*
* Copyright (C) 2020 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 "Softwa... |
/*
* All units in quarter hours (including dates)
*/
#include <lib9.h>
#include <bio.h>
enum
{
NCHAN = 128,
};
typedef struct Chan Chan;
struct Chan
{
char name[128];
int fd;
};
int nchan;
Chan chan[NCHAN];
Chan*
getchan(char *name)
{
int i;
Chan *c;
for(i = 0; i < nchan; i++)
if(strcmp(chan[i].name, name... |
/*
* Generated by asn1c-0.9.24 (http://lionet.info/asn1c)
* From ASN.1 module "S1AP-IEs"
* found in "S1AP-IEs.asn"
*/
#include "S1ap-Bearers-SubjectToStatusTransfer-Item.h"
static asn_TYPE_member_t asn_MBR_S1ap_Bearers_SubjectToStatusTransfer_Item_1[] =
{
{ATF_NOFLAGS, 0,
offsetof(struct S1a... |
/******************************************************************************
DHT Temperature & Humidity Sensor
Tested with DHT11
Communication process - Serial Interface (Single-Wire Two-Way)
1. Sends start signal to DHT
2. DHT sends out response signal
3. DHT sends out get ready message
3. ... |
/**
* Reference implementation of logarithmic-linear histograms
* @author <NAME> <<EMAIL>>
*/
#pragma once
#include <stdint.h>
/** @{ */
// Version information
#define LLH_VERSION_MAJOR 1
#define LLH_VERSION_MINOR 0
#define LLH_VERSION_MICRO 0
// The version represented as a string
#define LLH_VERSION_STRING "1... |
/*
Copyright (c) 1999-2008, <NAME> (author)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above
copyright notice, this list of conditions an... |
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "direntry.h"
#include "strerr.h"
#include "error.h"
#include "wait.h"
#include "coe.h"
#include "fd.h"
#include "env.h"
#include "str.h"
#include "byte.h"
#include "pathexec.h"
#define SERVICES 1000
#define WARNING "svscan: warning: "
#define F... |
//#include <stdarg.h>
#include <pthread.h>
#include "pref_global.h"
#include "utils.h"
#include "pref.h"
#include "cal.h"
#include "tracking.h"
#include "ltlib_int.h"
static pthread_t cal_thread;
static ltr_new_frame_callback_t ltr_new_frame_cbk = NULL;
static void *ltr_new_frame_cbk_param = NULL;
static bool publis... |
/* ast2.c */
/* Trying out ASTs. */
/* This code is released to the public domain. */
/* "Share and enjoy......" :) */
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#define MAXLEN 10 // Maximum length of a token.
/* Enum of token types. */
typedef enum { INTEGER, ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdbool.h>
#include "../../src/hashtable.h"
#include "../../src/filereader.h"
#include "../../src/recycler.h"
// find an argme... |
#include "verify_passwd.h"
#define _XOPEN_SOURCE// For crypt
#include <unistd.h>
#include <stdbool.h>
/*
* For accessing
* /etc/passwd
* /etc/shadow
*/
#include <sys/types.h>
#include <pwd.h>
#include <shadow.h>
#include <string.h> // For strcmp, memcpy
#include <strings.h>// For rindex
#include <stdli... |
/****************************************************************************
* config/vsn/src/muxbus.c
* arch/arm/src/board/muxbus.c
*
* Copyright (C) 2011 <NAME>. All rights reserved.
*
* Authors: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are ... |
/* File: universal_escaping_output_stream.c; Copyright and License: see below */
#include "stream/universal_escaping_output_stream.h"
#include "stream/universal_output_stream_if.h"
#include "trace.h"
#include "tslog.h"
#include <string.h>
#include <assert.h>
/* the vmt implementing the interface */
static const unive... |
/**
* @file deployment.c
* @desc Service which handles deployment of parachute
* @author <NAME>
* @date 2022-06-10
* Last Author:
* Last Edited On:
*/
#include "deployment.h"
#include <math.h>
#include "variant.h"
#include "gpio.h"
void init_deployment(struct deployment_service_desc_t *const inst,
... |
#include "x11k.h"
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include "../sha3/sph_blake.h"
#include "../sha3/sph_bmw.h"
#include "../sha3/sph_groestl.h"
#include "../sha3/sph_jh.h"
#include "../sha3/sph_keccak.h"
#include "../sha3/sph_skein.h"
#include "../sha3/sph_luffa.h"
#includ... |
/*
* This file is released under the PostgreSQL license by its author,
* <NAME> <<EMAIL>>
*
*************************************************************************
*
* This file contains functions that implement DSA key functionality.
* Multiple DSA keys can be quickly generated from a single set of DSA
* par... |
#include <string.h>
#include <stdio.h>
#include "cberl.h"
#include "cberl_nif.h"
#include "cb.h"
static ErlNifResourceType* cberl_handle = NULL;
static void cberl_handle_cleanup(ErlNifEnv* env, void* arg) {}
static int load(ErlNifEnv* env, void** priv, ERL_NIF_TERM load_info)
{
ErlNifResourceFlags flags = ERL_NI... |
#include <assert.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <mtbl.h>
#include "block_builder.c"
#define NAME "test-block_builder"
#include <ctype.h>
static void
print_string(const uint8_t *data, size_t len, FILE *out) {
... |
/*
* @UBERXMHF_LICENSE_HEADER_START@
*
* uber eXtensible Micro-Hypervisor Framework (Raspberry Pi)
*
* Copyright 2018 Carnegie Mellon University. All Rights Reserved.
*
* NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING
* INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON
... |
#include "../include/citadel/init.h"
#include "../include/citadel/cache.h"
#include <errno.h>
static int32_t citadel_pid = 0;
static int32_t own_pid = 0;
static int32_t parent_pid = 0;
static bool known_taint = false;
static char identifier[_CITADEL_IDENTIFIER_LENGTH], parent_identifier[_CITADEL_IDENTIFIER_LENGTH]... |
/*
* lut.c -- bitslice representation of lookup tables
* (c) <NAME> 1998
*/
#include "lut.h"
#include "syntax.h"
#include "mem.h"
#include <stdio.h>
static struct action *local_action_list;
static int lalp;
/*
* This function adds an action at the end of the local action list
*/
static void aal(struct action n... |
// test_feature.c
// Created on: Oct 12, 2016
// Copyright (c) 2016 <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
//... |
// Copyright 2017 The Australian National University
//
// 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 appli... |
// Copyright (c) 2016-2017, ARM Limited or its affiliates. All rights reserved
//
// This file and the related binary are licensed under the ARM Object Code and
// Headers License; you may not use these files except in compliance with this
// license.
//
// You may obtain a copy of the License at <.../external/nr... |
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "uci.h"
#include "board.h"
#include "io.h"
#include "dynarray.h"
#define ENGINE_READ to_engine[0]
#define CLIENT_WRITE to_engine[1]
#define CLIENT_READ from_engine[0]
#define ENGINE_WR... |
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* Exercise: 6
* Page: 145
* Implement a simple version of the #define processor (i.e., no arguments)
* suitable for use with C Programs, based on the routines of this section,
* you may also find getch and ungetch helpful.
* */
stru... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/*
* CLCD.c
*
* Created: 2019-10-09 오후 3:24:03
* Author: gigas
*/
#define F_CPU 16000000L
#include <avr/io.h>
#include <stdio.h>
#include <util/delay.h>
#include "CLCD.h"
void LCD_pulse_enable(void){ // 하강에지에서 동작
PORT_CONTROL |= (1<<E_PIN);
_delay_ms(1);
PORT_CONTROL &= ~(1<<E_PIN);
_de... |
/*
* Copyright (c) 2017 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, di... |
/******************************************************************************
*
* Copyright 2013 Altera Corporation. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of sourc... |
/* fhvint.c (interface to FHV-factorization) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
*
* Copyright (C) 2012, 2014 <NAME>, Department for Applied
* Informatics, Moscow Aviation Institute, Moscow, Russia. All rights
* reser... |
/*
* =====================================================================================
*
* Filename: simulate.c
*
* Description: Code to simulate Ocean currents.
*
* Version: 1.0
* Created: 03/03/2018 09:59:42 IST
* Revision: none
* Compiler: gcc
*
* Auth... |
#include <stdio.h>
#include <stm32l0xx_ll_rcc.h>
#include <stm32l0xx_ll_pwr.h>
#include <stm32l0xx_ll_rtc.h>
#include <stm32l0xx_ll_system.h>
#include <stm32l0xx_ll_utils.h>
#include <stm32l0xx_ll_cortex.h>
#include <stm32l0xx_ll_bus.h>
#include <stm32l0xx_ll_gpio.h>
#include <stm32l0xx_ll_lpuart.h>
#include <stm32l0xx... |
/* multikey function for Windows console mode apps */
#include "../fb.h"
#include <windows.h>
const unsigned char __fb_keytable[][3] = {
{ SC_ESCAPE, VK_ESCAPE, 0 }, { SC_1, '1', 0 },
{ SC_2, '2', 0 }, { SC_3, '3', 0 },
{ SC_4, '4', 0 }, { SC_5, '5', 0 },
{ SC_6, '6', 0 }, { SC_7, ... |
/*
* Vortex OpenSplice
*
* This software and documentation are Copyright 2006 to TO_YEAR ADLINK
* Technology Limited, its affiliated companies and licensors. All rights
* reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e... |
/**
* |----------------------------------------------------------------------
* | Copyright (C) <NAME>, 2014
* |
* | This program is free software: you can redistribute it and/or modify
* | it under the terms of the GNU General Public License as published by
* | the Free Software Foundation, either version 3 of... |
#include "myHeap.h"
#include <stdlib.h>
#include <stdio.h>
#define UNITY_DIM 128 //bytes
struct heap_s {
size_t size;
void *storage;
free_block *freelist;
// table of allocated
allocated_block_t *table;
int allocated_block_n;
heap_policy_t policy;
};
typedef struct {
free_block_nod... |
#include "query_builder.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static const size_t DEFAULT_STRING_SIZE = 15;
struct string_t {
char *data;
size_t size;
size_t capacity;
};
static bool is_empty(const char *data) {
return data == NULL || strlen(data) ... |
/* mafFastFrags - Extract pieces of multiple alignment, bypassing database.. */
/* Copyright (C) 2011 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#inclu... |
/**
* \file
* \brief Implementation of shared memory qeueue writer
*/
/*
* Copyright (c) 2015, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, CAB F.78, Univers... |
/*
//==========================================================================
//
// Copyright (c) On2 Technologies Inc. All Rights Reserved.
//
//--------------------------------------------------------------------------
//
// File: $Workfile: on2types.h$
// $Revision: 12$
//
// Last Update: $... |
#include "../shared/libs.h"
#include "../shared/PacketManager.h"
#include "../shared/constants.h"
#define ADDRESSLEN 16
const char HELP[] = "!help";
const char MODE[] = "!mode";
const char GET[] = "!get";
const char QUIT[] = "!quit";
const char text[] = "text";
const char bin[] = "bin";
extern const char TEXT[];
ext... |
/*
Basis for:
http://stackoverflow.com/questions/16667687/how-to-convert-rgb-from-yuv420p-for-ffmpeg-encoder
http://stackoverflow.com/questions/2940671/how-does-one-encode-a-series-of-images-into-h264-using-the-x264-c-api/36405714#36405714
http://stackoverflow.com/questions/16667687/how-to-convert-rgb-from-yuv420p-for... |
/* A module which takes several files of clusters as input. The first argument
* is the file of clusters that have passed the "filter_clusters" module. The
* remaining arguments are files of clusters that this module fishes into to
* find and "grow" the cluster. Then they are output to the screen */
#include "utili... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.