text stringlengths 3.12k 18.7k |
|---|
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include "amss.h"
#include "util/logger.h"
void gen_next_key(hash_t* sk, key_s* hashkey){
HASH_keyhash(sk, sk, CFG_WOTS_SEED_SIZE, hashkey); // ensures forward security
}
void gen_grow_key(hash_t* growk, hash_t* sk, key_s* hashkey){
HASH_keyhash... |
#define _GNU_SOURCE
#include <stdio.h>
#include <X11/Xlib.h>
#include <gtk/gtk.h>
#include <unistd.h>
#include <getopt.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "xdo_functions.h"
#include "opensnap.h"
#include "help.h"
#inclu... |
/***************** control.c *****************************************/
/* Main procedure for measuring the staggered fermion chiral
condensate and related quantities */
/* MIMD version 7 */
/* The chiral condensate is computed on a supplied background field */
/* Modifications ... */
// CD 2/5/16 Merged Hirosh... |
#include "nr_axiom.h"
#include <sys/time.h>
#include <fcntl.h>
#include <stddef.h>
#include <stdio.h>
#include <time.h>
#include "util_logging.h"
#include "util_logging_private.h"
#include "util_memory.h"
#include "util_strings.h"
#include "util_syscalls.h"
typedef struct _nrl_subsys_names_t {
const char* name;
... |
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
// typical 32-bit stack
//
// 0x00 (8 bytes)
// abspath(argv[0])
// ...
// envp[0]
// argv[argc-1]
// ...
// argv[0]
// 0x69 .. 0x00 "i686"
// 0x5b
// 0xe7
// 0xf6
// 0x4... |
/*
* Copyright (C) 1985-1992 New York University
*
* This file is part of the Ada/Ed-C system. See the Ada/Ed README file for
* warranty (none) and distribution info and also the GNU General Public
* License for more details.
*/
#define GEN
#include "hdr.h"
#include "vars.h"
#include "gvars.h"
#include "ops... |
/*
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is d... |
/*
* File: main.c
*
* Browser application. UI.
*
* 2020 - Created by <NAME>.
*/
// rtl
#include <types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <packet.h>
// The client-side library.
#inc... |
/*
* linux/fs/hpfs/dir.c
*
* <NAME> (<EMAIL>), 1998-1999
*
* directory VFS functions
*/
#include "hpfs_fn.h"
#include <linux/sched.h>
#include <linux/smp_lock.h>
int hpfs_dir_release(struct inode *inode, struct file *filp)
{
lock_kernel();
hpfs_del_pos(inode, &filp->f_pos);
/*hpfs_write_if_changed(inode);... |
/*
* QEMU external Spice client display driver
*
* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitati... |
/* 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 ... |
/*
* Copyright (c) 2014 <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, ... |
/*
Copyright 2005-2012 <NAME>
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supporting
docume... |
// porres
#include "m_pd.h"
#include "buffer.h"
#include <math.h>
#include <stdlib.h>
#define FLEN 65536
#define MAX_COEF 256
#define TWO_PI (3.14159265358979323846 * 2)
static t_class *shaper_class;
typedef struct _shaper{
t_object x_obj;
t_float *x_cheby;
t_float *x_coef;
t_int ... |
/*
* Is an example of different low power modes configuration of stm32
* See lecture for more information and read the description in readme
* To notice the difference, connect amperemeter to MCU power rails
*/
#include "stm32f0xx_ll_bus.h"
#include "stm32f0xx_ll_exti.h"
#include "stm32f0xx_ll_rcc.h"
#inc... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// 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.
/*
* board.c: Handle chess board manipulation.
*
* Board states are communicated t... |
/*
* Copyright (c) 2016 Dynamic Weather Solutions, Inc. Distributed under the
* terms of the MIT license.
*
* 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, includin... |
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include "emulator.h"
#include "gbn.h"
/* ******************************************************************
Go Back N protocol. Adapted from
ALTERNATING BIT AND GO-BACK-N NETWORK EMULATOR: VERSION 1.1 J.F.Kurose
Network properties:
... |
#include "address_map_arm.h"
#include <stdlib.h>
#include <time.h>
/* #define KEY_BASE 0xFF200050
* #define VIDEO_IN_BASE 0xFF203060
* #define FPGA_ONCHIP_BASE 0xC8000000
*/
/* This program demonstrates the use of the D5M camera with the DE1-SoC Board
* It performs the following: ... |
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include "fruity.h"
struct plot {
char id;
int weight;
};
static void fruity_new_test(void** state)
{
(void)state;
// Create 2D array
Fruity2D ai = { 0 };
void* res = fruity_new(&ai, 10, 1... |
/*************************************************************************\
* Copyright (c) 2009 UChicago Argonne LLC, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE is distributed subj... |
/*
* Copyright 2017 <NAME>
*
* See LICENCE for the full copyright terms.
*/
#define _XOPEN_SOURCE 500
#include <unistd.h>
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <uriparser/Uri.h>
#include "sjp_lexer.h"
#... |
/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.0.0
* svn version: exported
* Options: --check-global -s 1266
* Seed: 1266
*/
#include "random_runtime.h"
long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
volatile int32_t g_2 = 1L;/* VOLATILE G... |
/* <NAME>
Computo Cientifico 2020-2
Generacion 17
Licenciatura en Ciencias Genomicas
Universidad Nacional Autonoma de Mexico */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
// FUNCTION TO OBTAIN THE SUM OF VARIOUS NUMBERS, WHICH CAN BE RAISED TO ANY NUMBER IF REQUIRED
float GetSu... |
#pragma once
#include "def.h"
#define IMAGE_NUMBEROF_DIRECTORY_ENTRIES 16
#define IMAGE_SIZEOF_SHORT_NAME 8
#define IMAGE_DIRECTORY_ENTRY_EXPORT 0 // Export Directory
#define IMAGE_DIRECTORY_ENTRY_IMPORT 1 // Import Directory
#define IMAGE_DIRECTORY_ENTRY_RESOURCE 2 //... |
/*
* Acess2 Window Manager v3 (axwin3)
* - By <NAME> (thePowersGang)
*
* decorator.c
* - Window Decorator
*/
#include <common.h>
#include <wm.h>
#include <decorator.h>
#include <wm_messages.h>
// === IMPORTS ===
extern tWindow *gpWM_FocusedWindow;
// === PROTOTYPES ===
void Decorator_UpdateBorderSize(tWindow *W... |
/*
Author: <NAME> <<EMAIL>>
Copyright (c) 2016 Cromulence LLC
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, m... |
/* GStreamer
*
* Copyright (C) 2019 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*... |
// Copyright 2020 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <assert.h>
#include <fcntl.h>
#include <getopt.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>... |
/*
* Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source L... |
/***** spin: run.c *****/
/* Copyright (c) 1991,1995 by AT&T Corporation. All Rights Reserved. */
/* This software is for educational purposes only. */
/* Permission is given to distribute this code provided that this intro- */
/* ductory message is not removed and no monies are exchanged.... |
/*===========================================================================
FILE:
QMI.h
DESCRIPTION:
Qualcomm QMI driver header
FUNCTIONS:
Generic QMUX functions
ParseQMUX
FillQMUX
Generic QMI functions
GetTLV
ValidQMIMessage
GetQMIMessageID
Get sizes of buffers ... |
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "iopcdefine.h"
#include "iopcops_cfg_status.h"
#include "iopcops_misc.h"
#include "iopcops_cfg_network.h"
#include "iopccmd_service.h"
#define SERVICE_NAME "netdev"
#define SERVICE_WAIT "mntbase"
static stru... |
#include <stdio.h>
#include "pico/stdlib.h"
#include "hardware/pio.h"
#include "hardware/timer.h"
#include "hardware/irq.h"
#include "hardware/sync.h"
#include "pico/binary_info.h"
#include "f007t_manchwithdelay.pio.h"
#include "queues_for_msgs_and_bits.h"
#include "f007t_decode_bits.h"
#include "output_format.h"
#inc... |
/*
* This file is part of PeerDrive.
* Copyright (C) 2014 <NAME> <<EMAIL>>
*
* PeerDrive 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)
* an... |
/*$
Copyright (c) 2014-2017, Azel
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 and the follow... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/*
CF3
Copyright (c) 2015 ishiura-lab.
Released under the MIT license.
https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md
*/
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include"test1.h"
int32_t x102 = -1;
uint32_t x103 = 260U;
volatile int64_t t0 = 22530068594728918LL;
volatile uint64_t t2 = 237... |
/*
* See the dyninst/COPYRIGHT file for copyright information.
*
* We provide the Paradyn Tools (below described as "Paradyn")
* on an AS IS basis, and do not warrant its validity or performance.
* We reserve the right to update, modify, or discontinue this
* software at any time. We shall have no obligation to... |
/*
*
* Copyright 2017 gRPC authors.
*
* 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 agree... |
/*
Copyright 2012 Google Inc. 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
Unless required by applicable law or agreed to in ... |
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Resea... |
#include "tldevel.h"
#include "tlalphabet.h"
#include "tlseqbuffer.h"
#include "sequence_struct.h"
#define SEQUENCE_ALLOC_IMPORT
#include "sequence_alloc.h"
static int alloc_multi_model_label_and_u(struct ihmm_sequence* sequence,int max_len, int num_models);
int alloc_ihmm_seq_data(struct tl_seq* s, int num_model... |
#include <pebble.h>
// Black on white.
// #define BACKGROUND_COLOR GColorWhite
// #define FOREGROUND_COLOR GColorBlack
// White on black.
#define BACKGROUND_COLOR GColorBlack
#define FOREGROUND_COLOR GColorWhite
#define ANIMATE_DIALS 0
#define DEBUG 0
static Window *window;
static Layer *canvas_layer;
static Layer ... |
/*
* This file is part of TISEAN
*
* Copyright (c) 1998-2007 <NAME>, <NAME>, <NAME>
*
* TISEAN 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... |
/*
* Copyright (c) 2001 <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, dis... |
//
// PC-Wahl 10.0 INI-Passwort Decrypter (c) 2017
// by xonox & Thorsten (<NAME> <ths [at] ccc [dot] de>
//
/*
BSD 3-Clause License
Copyright (c) 2017, Chaos Computer Club
Author: xonox
Author: Thorsten (<NAME> <ths [at] ccc [dot] de>
All rights reserved.
Redistribution and use in source and bina... |
/**
******************************************************************************
* @file MotionEC_Manager.c
* @author MEMS Application Team
* @version V1.0.0
* @date 01-May-2017
* @brief E-Compass management
******************************************************************************
... |
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "libmorse.h"
#define NULL_TERMINATOR '\0'
#define MORSE_SIGNAL_ON '1'
#define MORSE_SIGNAL_OFF '0'
#define MORSE_DOT '.'
#define MORSE_DASH '-'
#define ASCII_ZERO '0'
#define ASCII_A 'A'
#define ASCII_NINE '9'
#define ASCII_Z 'Z'
#define ASCII_SPACE ... |
//-------------------------------------------------------------------------//
// //
// This benchmark is a serial C version of the NPB FT code. This C //
// version is developed by the Center for Manycore Programming at Seoul //
// Nati... |
/*!
* Morse code library.
*
* This implements a state machine for playing back morse code messages.
*
* Author <NAME> <<EMAIL>>
* Copyright (C) 2015 FreeDV project.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 2.... |
// The Snipe editor is free and open source, see licence.txt.
#define _POSIX_C_SOURCE 200809L
#include "handler.h"
#include "event.h"
#include "file.h"
#include "string.h"
#include "unicode.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <pthread.h>
#include <time.h>
#include <assert.h>
#include... |
#include <asm-generic/errno-base.h>
#include <libxnvme.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "libflexalloc.h"
#include "flexalloc.h"
#include "flexalloc_util.h"
#include "tests/flexalloc_tests_common.h"
struct test_vals
{
uint64_t blk_num;
uint32_t npools;
uin... |
#include <stdio.h>
#include "penAndPaperSolver.h"
#include "board.h"
#include "../helper.h"
int penAndPaperSolver(struct sudokuBoard *board, int limit) {
struct helperStructure helper[BOARD_SIZE * BOARD_SIZE];
bool flagSimpleSolution;
bool solvingPossible = true;
int valuesLeftToFill = BOARD_SIZE * B... |
/* $NetBSD: ns8477reg.h,v 1.2 1998/09/05 14:20:01 christos Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modi... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include "main.h"
#include "stars.h"
#include "util.h"
static char *effect8_name = "Gouraud shaded Icosahedron";
static GLdouble x_width;
static GLdouble x_heigh... |
/*-
* Copyright (c) <2010-2017>, 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:
*
* - Redistributions of source code must retain the above copyright
* notice, this ... |
/* Copyright 2013 <NAME>.
* See the LICENSE file at the top-level directory of this distribution and at
* https://github.com/bliksemlabs/rrrr/
*/
#include "radixtree.h"
#include "config.h"
/* All nodes are identical in size, allowing use with no dynamic allocation
* (in a contiguous block of memory). Only support... |
/* Copyright 2019 IPB, Universite de Bordeaux, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distribution of free software. ... |
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "grammar.h"
#include "production.h"
#include "symbol.h"
extern unsigned debug;
static const char *endOfInputSymbolName = "$";
static const char *emptySymbolName = "~";
static const char *errorSymbolName = "!";
static void msgMa... |
// 0x07010BD0 - 0x07010CC0
static const Vtx ccm_seg7_vertex_07010BD0[] = {
{{{ 0, -153, -132}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -204, -153, -132}, 0, { 0, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -204, -153, 133}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}},
... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
#in... |
/*****************************************************************
* uart.c
* by <NAME>, <EMAIL>
* University of Otago
*
********************************************************************/
#include "types.h"
#include "defs.h"
#include "memlayout.h"
#include "traps.h"
#include "arm.h"
#define GPF... |
#include "includes/ErrorLogger_private.h"
/*******Callback Functions*******/
/* Truncates the size of the file by at least half. Only complete
* json objects will be removed from the file. */
void ErrorLogger_default_truncate_size(ErrorLogger* logger, size_t f_size)
{
if(!logger || !logger->file_path)return;
FILE... |
#include <stdio.h>
#include <stdlib.h>
#if defined(_WIN32)
#include <windows.h>
#endif
#ifndef __APPLE__
# include <GL/glut.h>
# ifdef GL_VERSION_1_2
# include <GL/glext.h>
# endif
#else
# include <GLUT/glut.h>
# include <OpenGL/glext.h>
#endif
#include <AR/config.h>
#include <AR/param.h>
#include <AR/ar.h>
#in... |
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <errno.h>
#include <sys/mman.h>
int magic_num = 12345;
size_t pageSize = 4096;
struct free_list_node{
int size;
struct free_list_node* next;
};
// takes up 16 bytes due to padding
int free_list_node_... |
#include "couv-private.h"
static int couv_chdir(lua_State *L) {
const char *dir;
uv_err_t err;
dir = luaL_checkstring(L, 1);
err = uv_chdir(dir);
if (err.code != UV_OK)
return luaL_error(L, couvL_uv_errname(err.code));
return 0;
}
static int couv_cpu_info(lua_State *L) {
uv_err_t err;
uv_cpu_info... |
// ZMTP handshake class
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.*/
#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include "zmtp_handshake.h"... |
/*
* Copyright 2011 <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... |
/* Test worker */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <inttypes.h>
#include <stdbool.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <fcntl.h>
#inc... |
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*
* File: cint_field_copy_pcp_to_dscp_for_ip_packets.c
* Purpose: PCP to DSCP mapping for IP packets example.
*
* ... |
#define LUA_LIB
#include "lbuffer.h"
#include <string.h>
#define MAX_SIZE_T ((size_t)(~(size_t)0) - 2)
#if LUA_VERSION_NUM < 502
void lua_rawgetp(lua_State *L, int narg, const void *p) {
lua_pushlightuserdata(L, (void*)p);
lua_rawget(L, narg < 0 ? narg - 1 : narg);
}
void lua_rawsetp(lua_State *L, int narg... |
#include "common.h"
static void
TestName(int index, const char *expected_name)
{
ODBC_BUF *odbc_buf = NULL;
SQLTCHAR name[128];
char buf[256];
SQLSMALLINT len, type;
#define NAME_TEST \
do { \
if (strcmp(C(name), expected_name) != 0) \
{ \
sprintf(buf, "wrong name in column %d expected '%s' got '%s'", ind... |
/*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.... |
#define WINVER 0x0500
#include <windows.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
unsigned char ascii_to_ebc_table(unsigned char ascii);
unsigned char ascii_to_vk_table(unsigned char ascii);
unsigned char ascii_to_vk_shift_table(unsigned char ascii);
int main()
{
INPUT ip;
int vk = 0;
HKL kbl... |
/*****************************************************************************
* jsonrpc.c: json RPC server
*****************************************************************************
* Copyright (C) 2016-2017
*
* Authors: <NAME> <<EMAIL>
*
* Permission is hereby granted, free of charge, to any person obtainin... |
/*
* Copyright (c) 2008, 2009, 2010 Nicira Networks.
*
* 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 applic... |
#include "common.h"
#include <assert.h>
/* Test using array binding */
static SQLTCHAR *test_query = NULL;
static int multiply = 90;
static int failure = 0;
#define XMALLOC_N(t, n) (t*) ODBC_GET(n*sizeof(t))
static void
query_test(int prepare, SQLRETURN expected, const char *expected_status)
{
#define DESC_LEN 51
#... |
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
struct named_color {
const char *name;
uint32_t color;
};
struct named_color colors[] = {
{ "aqua", 0x00FFFF },
{ "blue", 0x0000FF },
{ "aliceblue", 0xF0F8FF },
{ "antiquewhite", 0xFAEBD7 },
{ "aquamarine", 0x7FFFD4 },
{ "azure",... |
/*
* 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... |
#include "emulate.h"
int main(int argc, char **argv)
{
FILE *in = NULL, *out = NULL;
struct vm_state *myvm = NULL ;
int runcycles = 0;
if (argc != 4)
{
fprintf(stderr, "usage: %s input output cycles \n", argv[0]);
exit(1);
}
in = fopen(argv[1], "rb");
out = fopen(... |
/*
* Copyright (c) 2013-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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... |
/*-
* Copyright (C) 2012-2016 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 source code must retain the above copyright
* notice, this list... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "chat1002.h"
/* [TAKE NOTE THIS IS IMPORTANT!!!]
* Get the response to a question.
*
* Input:
* intent - the question word
* entity - the entity
* response - a buffer to receive the response
* n - the maxim... |
#include <stdlib.h>
#include <signal.h>
#include <stdio.h>
#include <ncurses.h>
#include <time.h>
#include <math.h>
#include <string.h>
#include "engine.h"
#define ROWS 40
#define COLS 100
#define MAX_STEPS 100
#define NULL_STEP 255
#define MAP_SIZE 20
const char map3[] = ""\
"--------------------"\
"* s X o ... |
#include <ctype.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define max_length (int)1e6
/*Ciucular doubly linked list implementation*/
typedef struct Node
{
struct Node *prev;
struct Node *next;
int isoperator; //true = 1
double operand;
char operat... |
/*******************************************************************************
ICM42688 Sensor Driver Interface Source File
Company:
Microchip Technology Inc.
File Name:
icm42688_sensor.c
Summary:
This file implements the simplified sensor API for configuring the ICM42688 IMU sensor
Descript... |
/**************************************************************************//**
* @file main.c
* @version V2.10
* $Revision: 10 $
* $Date: 12/08/09 7:24p $
* @brief M051 Series General Purpose I/O Driver Sample Code
*
* @note
* Copyright (C) 2011 Nuvoton Technology Corp. All rights reserved.
... |
/*
FICHIER : processus.c
Auteur : <NAME> -- <NAME>
Dépendances : builtin.h processus.h
*/
#include "processus.h"
#include "builtin.h"
/*
Fonction stradd
Paramètre a : chaine de characteres ...
Paramètre b : chaine de charactères à ajouter à la fin de la chaine b...
Retourne une chaine de charactères, c'e... |
#include <math.h>
#include "mex.h"
void backsub(int n,
double *mi, double *mq,
double *di, double *dq,
double *ei, double *eq,
double *bi, double *bq,
double *xi, double *xq)
/**************************
% Based on TINVIT in EISPACK
% performs back-substitution for a symme... |
/*******************************************************************************
System Interrupts File
Company:
Microchip Technology Inc.
File Name:
interrupt.c
Summary:
Interrupt vectors mapping
Description:
This file maps all the interrupt vectors to their corresponding
implementatio... |
/*
Copyright (c) 2012, Broadcom Europe Ltd
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 and t... |
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <assert.h>
#include <inttypes.h>
#include "error.h"
#include "debug.h"
#include "bank.h"
#include "branch.h"
#include "account.h"
#include "report.h"
#define MAX_NUM_REPORTS 8 // Maximum number of reports we can store.
#define MAX_LOG_ENTRIE... |
#include "unpifiplus.h"
struct ifi_info *
get_ifi_info_plus(int family, int doaliases)
{
struct ifi_info *ifi, *ifihead, **ifipnext;
int sockfd, len, lastlen, flags, myflags, idx = 0, hlen = 0;
char *ptr, *buf, lastname[IFNAMSIZ], *cptr, *haddr, *sdlname;
struct ifconf ifc;
struct ifreq *ifr, ifrcopy;
... |
/*
* Host AP (software wireless LAN access point) user space daemon for
* Host AP kernel driver / Station table
* Copyright (c) 2002-2004, <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by t... |
/*
* Copyright (c) 2019-2020, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <libfdt.h>
#include <platform_def.h>
#include <arch_helpers.h>
#include <common/debug.h>
#include <drivers/clk.h>
#include <driv... |
#include <string.h>
#include <debug.h>
/* Copies SIZE bytes from SRC to DST, which must not overlap.
Returns DST. */
void *
memcpy (void *dst_, const void *src_, size_t size)
{
unsigned char *dst = dst_;
const unsigned char *src = src_;
ASSERT (dst != NULL || size == 0);
ASSERT (src != NULL || size == 0);
... |
/* 13feb15abu
* (c) Software Lab. <NAME>
*/
#include "pico.h"
// (ht:Prin 'sym ..) -> sym
any Prin(any x) {
any y = Nil;
while (isCell(x = cdr(x))) {
if (isNum(y = EVAL(car(x))) || isCell(y) || isExt(y))
prin(y);
else {
int c;
char *p, nm[bufSize(y)];
bufStrin... |
/*=========================================================================*\
* Select implementation
* LuaSocket toolkit
\*=========================================================================*/
#include <string.h>
#include "mln_lua.h"
#include "mln_lauxlib.h"
#include "mln_socket.h"
#include "mln_timeout.h"
#in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.