text stringlengths 3.08k 10.5k |
|---|
/*
* Copyright (c) 2012 <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... |
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include <git2.h>
#include "cli.h"
#include "cmd.h"
#define COMMAND_NAME "cat-file"
typedef enum {
DI... |
/*
* Copyright (c) 2008 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.0.0
* svn version: exported
* Options: --check-global -s 1945
* Seed: 1945
*/
#include "random_runtime.h"
long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
uint64_t g_6[6] = {4L, 4L, 4L, 4L, 4L, 4... |
/**
* Licensed to JumpMind Inc under one or more contributor
* license agreements. See the NOTICE file distributed
* with this work for additional information regarding
* copyright ownership. JumpMind Inc licenses this file
* to you under the GNU General Public License, version 3.0 (GPLv3)
* (the "License"); yo... |
/*
* MAX31855.c
*
* Created on: 16.08.2021
* Author: SimpleMethod
*
*Copyright 2021 SimpleMethod
*
*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, ... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include "csv.h"
#if defined(__linux__) || defined(WIN32)
/* stolen from http://geneslinuxbox.net:6309/gene/toolshed/libdecb/libdecbsrec.c */
static inline int digittoint(int c)
/* implemented based ... |
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <linux/limits.h>
#include "stdlib.h"
#include<stdio.h>
#include<string.h>
#include<sys/socket.h>
#include<arpa/inet.h>
#include<unistd.h>
#define GPIO_CTRL_DEFAULT 16
#define GPIO_DIRECTION_OUT 1
#define GPIO_DIRECTION_IN 0
#define SOCK_ACK "OK"
#... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
static bool valid(int num, int row, int col, int index,
bool **rows, bool **cols, bool **boxes)
{
return !rows[row][num] && !cols[col][num] && !boxes[index][num];
}
static bool dfs(char** board, int size, bool **rows... |
//--------------------------------------------- information ---------------------------------------------------------
//A simple shell built in C. Built solely because it seemed interesting and educational. Written by: github.com/return5
//Licensed: MIT
//
// Copyright © 2020 <return5>
//
// Permission is hereby gran... |
/*!
* An osx 10.11+ aimbot for cs2d 1.0.0.3. Only works on bots, but can easily be modified to work online by
* changing the tpl_get_bot signature to call tpl_get_player.
*
* Compiles as a dynamic library and needs to be injected into CS2D using an injector. Tested with the
* injector I wrote, available at htt... |
#include "common.h"
#include "crypto.h"
static void ccmp_aad_nonce(const struct ieee80211_hdr_3addr *hdr, const u8 *data,
u8 *aad, size_t *aad_len, u8 *nonce) {
u16 fc, stype, seq;
int qos = 0, addr4 = 0;
u8 *pos;
nonce[0] = 0;
fc = ntohs(hdr->frame_control);
stype = WLAN_PARSE_SUBTYPE(fc);
if (fc... |
/* Part of SWI-Prolog
Author: <NAME>
E-mail: <EMAIL>
WWW: http://www.swi-prolog.org
Copyright (c) 2009-2015, University of Amsterdam
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that t... |
/*
* <legal>
* CERT Rosecheckers
* Copyright 2007-2021 Carnegie Mellon University.
*
* NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING
* INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON
* UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR
* IMPLIED, AS TO A... |
/*
* config.c
*
* Created on: Jan 28, 2017
* Author: kmate
*/
#include <efi.h>
#include <efiutil.h>
#include <menu.h>
#include <config.h>
/* Convert an ascii string to an EFI string */
static efi_char16_t *ascii_str_to_efi(char *ascii_str, size_t len)
{
efi_char16_t *str;
size_t index;
str = malloc((len... |
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <time.h>
int random_time(){
srand(time(NULL));
int t = (rand() % (500001 - 100000)) + 100000;
return t;
}
typedef struct
{
unsigned int banco;
unsigned int sucursal;
unsig... |
/* media-keys.c
*
* Copyright 2021 <NAME>
*
* 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 ag... |
/******************************************************************************
Copyright (C) 2020 Xilinx, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restri... |
/*
* Copyright (c) 2021 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
#include<stdio.h>
#include<unistd.h>
#include<curses.h>
#include"conio.h"
// #include<conio.h>
#define ROW_SZ 40
#define COL_SZ 140
#define TRUE 1
#define FALSE 0
#define PADDLE_LEN 7
#define PADDLE_MGN 3
void draw_grid(int ball_r, int ball_c, int p1_r, int p2_r) {
char a[ROW_SZ][COL_SZ+1];
for(int r = 0; r < ROW_... |
/*
* Copyright (C) 2020 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... |
/* gebruikt de veralgemeende Zipf-distributie uit het artikel van Bell en Gupta */
/*
compile: cc -O4 -o mn_random8020_v makenumbers_random8020_vary.c -lm
De bedoeling van dit programma is eerst een boom in een random volgorde op te bouwen
en dan erin te zoeken. Het schrijft altijd eerst een charakter (byte) en ... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* 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 <c8051f040.h>
#include "sysinit.h"
#include "uart0.h"
#include <stdio.h>
#include "can.h"
static char buf[40]; // for sprintf( )
void init_xbar( ) {
char save = SFRPAGE;
SFRPAGE = CONFIG_PAGE;
XBR0 = 0x04; // enable UART0
XBR1 = 0x00; // enable nothing
XBR2 = 0x40; // enable the crossbar
XBR3 = 0x80;... |
// main.c
// LMNO LALR(1) parser generator
//
// Copyright ©2010 <NAME>
// (Based on LEMON v1 parser generator, public domain)
//////////////////////////////////////////////////////
#include "global.h"
/*
** Main program file for the LMNO parser generator.
*/
/* Report an out-of-memory condition and abort. This... |
#include "usart.h"
#include <stdio.h>
#include "state.h"
#include "spi.h"
#include "ADC.h"
#include "usart_utils.h"
#include "main.h"
extern state State;
// Write 8b to ADC over SPI and return 8b output
uint8_t ADC_SPI_WRITE_8(uint8_t data)
{
uint8_t txbuffer[1] = {data};
uint8_t rxbuffer[1] = {0};
HAL_SP... |
/* K=9 r=1/3 Viterbi decoder in portable C
* Copyright Aug 2006, <NAME>, KA9Q
* May be used under the terms of the GNU Lesser General Public License (LGPL)
*/
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include "fec.h"
typedef union { unsigned int w[256]; } metric_t;
typedef union { unsigned long w[... |
//
// arena.c
// couchstore
//
// Created by <NAME> on 4/13/12.
// Copyright (c) 2012 Couchbase, Inc. All rights reserved.
//
#include "config.h"
#include "arena.h"
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#define ALIGNMENT 4 // Byte alignme... |
/*------------------------------------------------------------------------------
* sdrcorr.c: sdr receiver correlator
*
* Copyright (C) 2010 by T.TAKASU, All rights reserved.
*
* version : $Revision:$ $Date:$
* history : 2010/10/31 1.0 new
*--------------------------------------------------------------... |
#include <windows.h>
#define LOG_A_DIFFERENT_FILE_IS_ALREADY_OPEN "既に違うファイルがオープンされています"
#define LOG_PLEASE_SPECIFY_KCFILE_READ_OR_KCFILE_WRITE "KCFILE_READ 又は KCFILE_WRITE を指定してください"
#define LOG_NOT_ACCESSIBLE_WITH_KCFILE_READ "KCFILE_READ ではアクセス出来ません"
#define LOG_KCFILE_INVALID_HANDLE "kcFile : ハンドルが無効です"
#define LOG... |
/*
Unix SMB/CIFS implementation.
Samba utility functions. ADS stuff
Copyright (C) <NAME> 2002
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... |
/**
* vigenere.c
*
* <NAME>
* <EMAIL>
*
* Takes a keyword from a user as a second command line
* argument and uses it to encipher a string of plain
* text taken from the user (when program is run) using
* the vigenere cipher.
*/
#include <stdio.h>
#include <cs50.h>
#include <string.h>
#include <stdlib.h>
#inc... |
/*
$Log: preemp.c,v $
Revision 1.2 2006/08/01 13:06:51 rjongbloed
Added a raft of unvalidated audio codecs from OpenH323 tree
Revision 1.1.2.1 2006/07/22 14:03:18 rjongbloed
Added more plug ins
Revision 1.1.2.1 2006/05/08 13:49:58 rjongbloed
Imported all the audio codec plug ins from OpenH323
Revision 1.1 20... |
/*
# aeneas is a Python/C library and a set of tools
# to automagically synchronize audio and text (aka forced alignment)
#
# Copyright (C) 2012-2013, <NAME> (www.albertopettarin.it)
# Copyright (C) 2013-2015, ReadBeyond Srl (www.readbeyond.it)
# Copyright (C) 2015-2017, <NAME> (www.albertopettarin.it)
#
# This prog... |
#include <nrf.h>
#include <nrf_gpio.h>
#include <stdlib.h>
#include "boards.h"
#include "rigdfu_serial.h"
#include "simple_uart.h"
#include "app_util_platform.h"
#include "app_scheduler.h"
/* This serial driver is used for two things:
(1) initial detection of whether to enter DFU mode
(no pins are driven u... |
#include "raycaster.h"
#include "map.h"
#include "game.h"
#include <memory.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <stdint.h>
#define MIN(X,Y) ((X) < (Y) ? (X) : (Y))
static int raycaster_cast_xplanes(const vec2_t* origin,
const vec2_t* ray,
vec2_t* intersection);
static int... |
/*
* Copyright 2008 <NAME> <<EMAIL>>
* Copyright 2008 <NAME> <<EMAIL>>
*
* This file is part of NetSurf's libnsbmp, http://www.netsurf-browser.org/
* Licenced under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
*/
/**
* \file
* Use libnsbmp to decode icons into ppm or pa... |
/**
* @file mkcpair.c
*
* <JA>
* @brief 文法からカテゴリ対制約を抽出する
*
* DFA文法から,認識処理の第1パスで用いるカテゴリ間の接続制約を抽出します.
* 抽出したカテゴリ対情報は文法データ内に格納されます.
*
* ショートポーズ単語が文法上で指定されている場合,接続制約はこの
* ショートポーズ単語のスキップを考慮して抽出されます.
*
* なお,ここでは処理上の制限から,このスキップ可能なショートポーズ単語が
* 文頭およぶ文末に出現することは許されていません.
* 入力開始・終端の無音部分にあたる単語は,silB, silE など
* こ... |
/*
* ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd).
* m_lljoin.c: Joins a user on a lazy-link to a channel.
*
* Copyright (C) 2002 by the past and present ircd coders, and others.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Pub... |
/*
* Copyright (c) 2009 Cray, Inc.
* Copyright (c) 2016 <NAME> <<EMAIL>>
*
* This file is subject to the terms and conditions of the GNU Lesser General Public
* License. See the file "COPYING.LESSER" in the main directory of this archive
* for more details.
*/
#include <stdio.h>
#include <errno.h>
#include <fcn... |
// sanitize file and folder names by stripping unwanted characters
// won't touch any files/folders starting with .
// v2.0 by <NAME> <<EMAIL>>
//
#define STRIPCFG L"anu_.-+"
#include <windows.h>
#include <wchar.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <shlwapi.h>
... |
#pragma once
//Arduino clock frequency
#define F_CPU 16000000L
//Length in bytes of vechicles data stream
#define DATA_STREAM_LEN 44
#define VIN_LEN 17
//Num of bytes before actual data in the stream
//3 in old design. Something weird with Serial1.readBytes();
#define... |
/*
* Copyright (c) 2015, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list
* of condit... |
/*
* Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. 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 ... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include "main.h"
#include "util.h"
#include "barcodes.h"
#define POW_2_24 (1UL << 24)
#define HI24(bc) (((bc) & 0xFFFFFF00) >> 8)
static int bcinfo_cmp(const void *v1, const void *v2) {
const BarcodeInfo *b1 = (Barcod... |
#include <unistd.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/time.h>
#include "timer.h"
struct wtimer_t {
uint32_t id;
uint64_t timeout;
uint32_t op;
enum wtimer_type_t type;
enum { wt_suspend = 0, wt_running = 1 } status;
wtimer_cb cb;
... |
//
// BRHederaAddress.c
// Core
//
// Created by <NAME> on Oct. 21, 2019.
// Copyright © 2019 Breadwinner AG. All rights reserved.
//
// See the LICENSE file at the project root for license information.
// See the CONTRIBUTORS file at the project root for a list of contributors.
//
#include "BRHederaAddress.h"
#... |
/* filter/test_median.c
*
* Copyright (C) 2018 <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 3 of the License, or (at
* your option) any later version.
*
* ... |
// 0x070111A8 - 0x070111E8
static const Vtx bitfs_seg7_vertex_070111A8[] = {
{{{ 307, 307, -306}, 0, { 5078, -4120}, {0xe0, 0xf5, 0xc9, 0xff}}},
{{{ -306, 307, 307}, 0, { 0, 990}, {0xe0, 0xf5, 0xc9, 0xff}}},
{{{ 307, 307, 307}, 0, { 5078, 990}, {0xe0, 0xf5, 0xc9, 0xff}}},
... |
/*
* 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 the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it would be ... |
/*
<NAME> (<EMAIL>), European Space Agency
Software distributed under the "European Space Agency Public License v2.0".
All Distribution of the Software and/or Modifications, as Source Code or Object Code,
must be, as a whole, under the terms of the European Space Agency Public License v2.0.
If You Distribute the ... |
#include "HashTable.h"
void addBucketNode(bucketListNode** head, char* key, int bucketEntries){
bucketListNode* current = *head;
//printf("einai: %d\n",bucketEntries);
if(current==NULL){ //create the first node
current = malloc(sizeof(bucketListNode));
if (current == NULL) {
... |
/* filter/test_impulse.c
*
* Copyright (C) 2018 <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 3 of the License, or (at
* your option) any later version.
*
*... |
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <netdb.h>
#include <errno.h>
#include <sys/epoll.h>
#include "epollinterface.h"
#include "connection.h"
#include "logging.h"
#include "netutils.h"
#include "server_socket.h"
#include "queue.h"
#define MAX_LISTEN_BACKLOG 4096
str... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
struct stack {
int row;
int col;
int value;
};
static bool valid(char **board, int row, int col)
{
int i, j, k;
char mark[10];
for (i = 0; i <= row; i++) {
memset(mark, 0, 10);
/* check row validit... |
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "regex_compile.h"
#include "regex_parse.h"
void printUsage(FILE *file, const char *program) {
fprintf(file, "usage: %s pattern [string...]\n", program);
}
void printNode(FILE *file, RegexNode *node, int depth) {
switch (node->... |
#define _POSIX_SOURCE
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
#include <signal.h>
char *arg_list[512];
char arg_buf[1024];
char *input_redir;
char *output_redir;
unsigned flags;
int... |
#define _DEFAULT_SOURCE
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "eval.h"
#define TAPE_LEN 30000
typedef struct {
int num;
int* up_in;
int* up_written_in;
int* up_out;
int* up_written_out;
int* down_in;
int* down_written_in;
int* down_out;
int* down_w... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define __USE_XOPEN // strptime
#include <time.h>
#include <assert.h>
#define LBUF_SIZE 128
typedef enum { EMPTY, STARTED, STOPPED, UNKNOWN } Tstate;
char usage[] = "wt [-t task] [-h|-a|-s|-c|-r [<start>[<end>]]]\nFor more info... |
/* See LICENSE for details */
#define _DEFAULT_SOURCE
#include <errno.h>
#include <ctype.h>
#include <setjmp.h>
#include <stdarg.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#includ... |
/*
* 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 <stdio.h>
#include "common.h"
static struct dbg_cmd debug_cmd;
static struct dbg_session debug_sess = {{-1}, 0};
/* follow loop depth and loop instances */
static int loop_depth = 0;
static struct loop {
int pos;
struct loop *next;
} loops = {-1 ,NULL};
static struct loop *currentloop;
/* returns newly ... |
/*
Smartversion
Copyright (c) <NAME>, 2002-2022
https://github.com/gvollant/smartversion
https://www.smartversion.com/
https://www.winimage.com/
This source code is licensed under MIT licence.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated... |
/******************************************************************************
* @file main.c
* @author MCD Application Team
* @version V1.1.0
* @date 30-April-2018
* @brief this is the main!
******************************************************************************
* @attention
*
* <h2>... |
/**
* @file vnet.c
* @author <NAME> - 2006 - Initial version
* @author RedoX <<EMAIL>> - 2015 - GCC Port, cleanup
* @date 2015/09/07
* @brief VLISP Virtual Machine - Network functions
*/
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include "usb/usbh.h"
#include "usb/rt2501usb.h"
#in... |
#pragma config(Hubs, S1, HTMotor, HTMotor, HTMotor, none)
#pragma config(Hubs, S4, HTServo, none, none, none)
#pragma config(Sensor, S1, , sensorI2CMuxController)
#pragma config(Sensor, S2, IR, sensorI2CCustom)
#pragma config(Sensor, S3, ArmLimit, sensorTouch)
#... |
/* Project Description:
* This project creates a simple USB device that appears as a USB gamepad on Windows and can drive LEDs and take in buttons to control X-Plane.
* Also includes MAX7221 routines for driving LEDs and 7 segment type displays.
* This project is Opes Source under the MIT License
***************... |
#include <ir/ir.h>
#include <target/util.h>
static void init_state_asmjs(Data* data) {
emit_line("var main = function() {");
emit_line("var mod = function(stdlib, foreign, heap) {");
emit_line("\"use asm\";");
emit_line("var mem = new stdlib.Int32Array(heap);");
emit_line("var putchar = foreign.putchar;");
... |
/*-
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright 2019 Cisco Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the ab... |
/*
* Copyright (c) 2009, <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:
* * Redistributions of source code must retain the above copyright
* notice, this list of... |
#include <poll.h>
#define NETMAP_WITH_LIBS
#include <net/netmap_user.h>
#include <net/ethernet.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#include <arpa/inet.h>
struct nm_desc *nm_desc;
void printHex(char* buf, size_t len) {
int i;
for(i = 0; i < len; ++i)... |
/*
* 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.
*/
/*
* Print a context (for debugging mostly)
* Moved the code here to clean-up yices_reval.c
*/
#include "co... |
/*
* Mesa 3-D graphics library
*
* Copyright (C) 2014 Intel Corporation. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without ... |
#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... |
/* =========================================================================
echosrv -
The MIT License (MIT)
Copyright (c) 2016 <NAME> ... |
/*
* =====================================================================================
*
* Filename: TGM_ReadPairScanGetOpt.c
*
* Description:
*
* Version: 1.0
* Created: 04/17/2012 12:44:34 AM
* Revision: none
* Compiler: gcc
*
* Author: <NAME> (),
* ... |
/*
* Copyright 2021 Red Hat Inc.
*
* 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, d... |
#include "types.h"
#include "stat.h"
#include "user.h"
#include "param.h"
#include "mmu.h"
// Memory allocator by Kernighan and Ritchie,
// The C programming Language, 2nd ed. Section 8.7.
typedef long Align;
union header {
struct {
union header *ptr;
uint size;
} s;
Align x;
};
typedef union header... |
/*
* main.c
*
* Created: 03.12.2020 13:33:19
* Author : <NAME>, <NAME>
*/
/* Includes ----------------------------------------------------------*/
#ifndef F_CPU
#define F_CPU 16000000
#endif
#include <avr/io.h> // AVR device-specific IO definitions
#include <avr/interrupt.h> // Interrupts standard C library ... |
/*
** server.c -- a stream socket server demo
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include <signal.h>
#define PORT "20... |
/*****************************************************************************\
** **
** FILE: init.c **
** AUTHORS: Alexios **
**... |
/*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fitsio.h"
#include "wcs.h"
struct WorldCoor *get_wcs_l(char filename[], int hdunum);
char *get_fits_header_l(char filename[], int hdunum);
int main(int argc, char *argv[])
{
//char *opt;
char direct_image[30];
//char direct_image_p... |
/* Extended Module Player
* Copyright (C) 1996-2010 <NAME> and <NAME>
*
* This file is part of the Extended Module Player and is distributed
* under the terms of the GNU General Public License. See doc/COPYING
* for more information.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "load.... |
/*
**************************************************************************
Author: <NAME>
Roll: 14CS10008
Assignment 3, Part-2 OS Lab Spring 2017
Problem Statement: Read and Write through 2 processes
Link: cse.iitkgp.ac.in/~agupta/OSLab/Assgn3.pdf
*********************************************************************... |
// Copyright (C) 2012-2013 <NAME> <nick<EMAIL>>
//
// Permission to use, copy, modify, and distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO... |
String sfVersion = "1.5.2 (BETA)";
String spVersion = "1.5.2 (BETA)";
//---------------------------------------------------------------------------------------
// Define PWM pin
int pinPWM[4] = {14, 15, 12, 13};
int red = 0, green = 0, blue = 0;
int checkEepromOpt = 0;
int multiRangerDone = 0;
//---... |
/*
* CC3OpenGLFoundation.h
*
* cocos3d 2.0.0
* Author: <NAME>
* Copyright (c) 2011-2013 The Brenwill Workshop Ltd. All rights reserved.
* http://www.brenwill.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include </usr/include/cairo/cairo.h>
#include </usr/include/cairo/cairo-svg.h>
/*
* COPYRIGHT
*
* turtledraw.c
* Copyright (C) 2013 Exstrom Laboratories LLC
*
* This program is free software; you can redis... |
/* *********************************************************************
* Broadcom Common Firmware Environment (CFE)
*
* Test commands File: cfe_tests.c
*
* A temporary sandbox for misc test routines and commands.
*
* Author: <NAME> (<EMAIL>)
*
*********************... |
/*
* MIT License
*
* Copyright (c) 2021 juliokscesar
*
* 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... |
// 8 Buckets 8 slots
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define bucket 8
#define slot 8
// struct for bucket
struct Bucket {
int remaining; // how many slots are remaining
int index[slot];
int hash[slot];
};
// the 3 arrays of a hashtable
struct HashTable {
struct Bucket buck... |
/* $Id: config.h 2094 2008-05-15 01:38:46Z peter $ */
#define yasm__splitpath(path, tail) yasm__splitpath_win(path, tail)
#define yasm__abspath(path) yasm__abspath_win(path)
#define yasm__combpath(from, to) yasm__combpath_win(from, to)
/* Command name to run C preprocessor */
#define CPP... |
/*-
* Copyright (c) 2011 NetApp, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
#include "hecwrapper.h"
// julian days since 31DEC1899 2400
void hec_datjul(char *cdate, slen_t _cdate_len, int *jul, int *ierr){
datjul_(cdate, jul, ierr, _cdate_len);
}
//
void hec_zopen(int *ifltab, char *cfname, int cflen, int *istat){
zopen_(ifltab, cfname, istat, cflen);
}
// inquire about parameter... |
/* Created RJudd March 17, 1999 */
/* SPAWARSYSCEN D881 */
/**********************************************************************
// For TASP VSIPL Documentation and Code neither the United States /
// Government, the United States Navy, nor any of their employees, /
// makes any warranty, express or implied, in... |
/* This software is released under the MIT License, see LICENSE */
#include "./main.h"
#include "../panels/background.h"
#include "../panels/cycle.h"
#include "../panels/status.h"
#include "../panels/subclock.h"
#include "../panels/calendar.h"
#include "../panels/hands.h"
#include "../modules/ingress.h"
#include "..... |
/*----------------------------------------------------------------------------
* File: ooaofooa_SPR_RO_class.c
*
* Class: Required Operation (SPR_RO)
* Component: ooaofooa
*
* your copyright statement can go here (from te_copyright.body)
*---------------------------------------------------------... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright 2012 Tilera Corporation. All Rights Reserved.
*/
/*
* Tilera TILE-Gx USB OHCI host controller driver.
*/
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/usb/tilegx.h>
#include <linux/usb.h>
#include <asm/homecache.h>
#include <gxio/ior... |
/******************************************************************************
*
* Copyright (C) 2014 Xilinx, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software wit... |
/*
Copyright 2006-2008, Romz
Copyright 2010, Polo
Licenced under Academic Free License version 3.0
Review OpenUsbLd README & LICENSE files for further details.
*/
#include "mcemu.h"
/* Module Description */
IRX_ID(MODNAME, 1, 7);
const u8 xortable[256] = {
/* Table for the ECC calculation */
0x00, 0x... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.