text stringlengths 3.12k 18.7k |
|---|
/*
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley
* by <NAME> (<EMAIL>). The Rock Ridge Extension
* Support code is derived from software contributed to Berkeley
* by <NAME> (<EMAIL>).
*
... |
/* vi: set sw=4 ts=4: */
/*
* busybox patch applet to handle the unified diff format.
* Copyright (C) 2003 <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 ve... |
/*
* RCONFIG/CLIENT.C
*
* Copyright (c) 2003,2004 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... |
/*
* sha2 128-bit
*/
#include <u.h>
#include <lib9.h>
#include <libsec.h>
static void encode64(uint8_t*, uint64_t*, uint32_t);
static DigestState* sha2_128(uint8_t *, uint32_t, uint8_t *, SHA2_256state *, int);
extern void _sha2block128(uint8_t*, uint32_t, uint64_t*);
/*
* for sha2_384 and sha2_512, len must be ... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2018 GitHub.
* 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, th... |
#define UNW_LOCAL_ONLY
#define _GNU_SOURCE
#include <fcntl.h>
#include <signal.h>
#include <string.h>
#include <ucontext.h>
#include <sys/ucontext.h>
#include <unistd.h>
#include <libunwind.h>
// Helpers to format string in pre-allocated buffer. All helpers take
// current position and "limit" up to which they can f... |
#include "limbo.h"
static char sbltname[Tend] =
{
/* Tnone */ 'n',
/* Tadt */ 'a',
/* Tadtpick */ 'a',
/* Tarray */ 'A',
/* Tbig */ 'B',
/* Tbyte */ 'b',
/* Tchan */ 'C',
/* Treal */ 'f',
/* Tfn */ 'F',
/* Tint */ 'i',
/* Tlist */ 'L',
/* Tmodule */ 'm',
/* Tref */ 'R',
/* Tstring */ 's',
/* Ttuple */ '... |
/***
*
* tools/tdmacfg.c
* Configuration tool for the RTmac/TDMA discipline
*
* RTmac - real-time networking media access control subsystem
* Copyright (C) 2002 <NAME> <<EMAIL>>,
* 2003-2005 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* i... |
/*
* File : interrupt.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date ... |
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <unistd.h>
#include "util.h"
#include "i2c.h"
#include "bme280.h"
// sensor calibration data
uint16_t dig_T1;
int16_t dig_T2;
int16_t dig_T3;
uint16_t dig_P1;
int16_t dig_P... |
/* ISC license. */
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <skalibs/bytestr.h>
#include <skalibs/types.h>
#include <skalibs/buffer.h>
#include <skalibs/strerr2.h>
#include <skalibs/sgetopt.h>
#include <skalibs/fmtscan.h>
#include <skalibs/env.h>
#include <skalibs/stralloc.h>
#include <skal... |
//
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
//
////////////////////////////////////
// buffers configuration
#define SPIFFS_LOGICAL_PAGE_SIZE (256)
#define SPIFFS_WORK_BUFFER_SIZE (SPIFFS_LOGICAL_PAGE_SIZE * 2)
#de... |
#include "SPTKfunctions.h"
#include "SPTK.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
void mgc2sp(double *mgc, const int m, const double a, const double g, double *x,
double *y, const int flng)
{
int i;
/*for (i=0;i<423*35;i++){
printf("%f\n",mgc[i]);
}*/
/*printf("%d\n",... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <time.h>
#include <string.h>
#include "quadtree.h"
#include "bitvec.h"
static bitvec_t *_NN_GLOB_BUF1 = NULL;
static bitvec_t *_NN_GLOB_BUF2 = NULL;
static unsigned int *_NN_GLOB_LABEL_BUF1 = NULL;
static unsigned int _NN_GLOB_LABEL_BUF1_SIZE = 0;
... |
/**
* \file
* \brief RCCE library
*/
/*
* Copyright (c) 2009, 2010, 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, Universitaetstrasse 6, CH-8092 Zurich. Attn:... |
/**
* \file temp_sensor.c
*
* \brief Temperature Sensor service
*
*
* Copyright (c) 2018-2020 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip prod... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 <NAME> / <NAME>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as ... |
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <dirent.h>
#include <malloc.h>
#include <fcntl.h>
#include <ppu-types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <net/socket.h>
#include <net/net.h>
#include <sys/thread.h>
#include <sys/process... |
#include <string.h>
#include "Headers/array.h"
#include "Headers/op.h"
/*Counts the digits in an int*/
unsigned int count(unsigned int i)
{
unsigned int ret=1;
while (i/=10) ret++;
return ret;
}
/*Divide a list*/
struct Array* split_arr(struct Array *l, size_t separator1, size_t separator2)
{
size_t i , j;
stru... |
/*
Copyright (c) 2017-2020 <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, distribute, sub... |
/*
* Copyright (c) 2016-2018. Uniquid Inc. or its affiliates. All Rights Reserved.
*
* License is in the "LICENSE" file accompanying this file.
* See the License for the specific language governing permissions and limitations under the License.
*/
/*
* @file mqtt_transport.c
*
* @date 18/nov/2016
* @autho... |
/*
Framework for testing with a server process
Copyright (C) 2001-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 as published by
the Free Software Foundation; either version 2 of the License, or
(at you... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
typedef enum
{
false,
true
} bool;
enum
{
ExitSuccess
};
/* An even number that defines the number of row/columns in the grid. */
#define GRID_SIZE 8
int PlayerColour;
typedef struct GridInfo GridInfo;
struct GridInfo
{
int Posit... |
#ifndef KSession
typedef void KSession;
#endif
#define K_CLUSTER_NULL 0
extern KSession *keep_session_create(uint64 memory_footprint, uint64 user_id);
extern boolean keep_session_destroy(KSession *session);
extern boolean keep_session_service(KSession *session);
extern void *keep_get(KSession *session, uint64 addre... |
/*
* Copyright (c) 2015 <NAME> <<EMAIL>>
* 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 I... |
/* $NetBSD: linux_exec_powerpc.c,v 1.6 2001/11/13 02:08:45 lukem Exp $ */
/*-
* Copyright (c) 2001 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
*... |
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved.
This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. *//***********************************************************************
... |
#include <gdk/gdkkeysyms.h>
#include "pager.h"
/* Not sure if necessary, but this is the margin within which the pager will
stop paging if it's close to the end of the text buffer */
#define PAGER_FUZZINESS 1.0
/* Helper function: move the pager to the last visible position in the buffer,
and return the distance be... |
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <math.h>
#include "reader.h"
#include "stats.h"
#include "stats_load.h"
#include "rng_load.h"
typedef struct {
stats_t *stats;
reader_t *rng;
unsigned nclean;
void *clean[4096];
} test_t;
test_t * setup(const char *rng_config,const char *st... |
/*
* This file contains the resampling functions between 48, 44, 32 and 24 kHz.
* The description headers can be found in signal_processing_library.h
*
*/
// interpolation coefficients
static const short kCoefficients48To32[2][8] = {
{778, -2050, 1087, 23285, 12903, -3783, 441, 222},
{222, 441, -3783, 12903, 232... |
/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, <NAME> <<EMAIL>>.
* Copyright (c) 2012-2019, <NAME> <<EMAIL>>.
*/
#include "taisei.h"
#include "audio.h"
#include "backend.h"
#include "resource/resource.h"
#include "global... |
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
typedef struct Node {
void *data;
struct Node *next;
} * node;
typedef struct LinkedList {
node first, last;
} * linkedlist;
typedef struct Data {
void *data;
int size;
} * data_t;
typedef int (*xcmp_t)(void *lhs, int... |
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <ctype.h>
#define VERSION "0.3"
#define BALLS_PER_OVER 6
#define TOTAL_WICKETS 10
/* Use struct for innings */
struct Innings {
unsigned int runs;
unsigned short wickets;
unsigned int balls;
unsigned int extras;
};
struct B... |
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... |
#include "bytecode.h"
typedef struct IR_VarBuilder {
Allocator* arena;
Allocator* tmp_arena;
TypeCache* type_cache;
Module* curr_mod;
} IR_VarBuilder;
static void IR_emit_global_expr(IR_VarBuilder* builder, Expr* expr, ConstExpr* dst);
static void IR_const_expr_from_sym(ConstExpr* dst, Symbol* sym)
{... |
// https://www.codewars.com/kata/escape-the-maze/train/c
// My solution
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
static char BUFFER_PATH[2048];
typedef struct s_Maze
{
unsigned height, width;
char** grid;
} Maze;
void first_position(const Maze *maze, int* x, int *y... |
/* SCTP kernel Implementation
* (C) Copyright IBM Corp. 2002, 2003
* Copyright (c) 1999-2001 Motorola, Inc.
*
* The SCTP implementation 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... |
/*
summer.c
stm32l0 daylight savings time (DST) calculation
US:
Der Energy Policy Act of 2005 (Public Law 109-58) bestimmt in Sec. 110 mit dem Titel Daylight Savings,
dass ab 2007 die Sommerzeit am zweiten Sonntag im März beginnt und am ersten Sonntag im November endet.
EU:
Central European ... |
#include "sq.h"
/***
The state of a file is kept in the following structure,
which is stored directly in a Squeak bytes object.
NOTE: The Squeak side is responsible for creating an
object with enough room to store sizeof(SQFile) bytes.
The session ID is used to detect stale file objects--
files that were still ... |
/*
* This file is a simple example of implementing the functionality provided by asio.c.
* It will provide you with a command line prompt that prints your installed ASIO drivers
* and will ask you to pick one. It will then play 3 seconds of audio to the first 2 outputs
* on your device.
*/
#pragma warning(push, ... |
#pragma once
#include <stdio.h>
#include <stdarg.h>
#include <stdbool.h>
#include "DWT_Delay.h"
//#define HD44780_USE_8_BIT_MODE // define LCD working mode
#define HD44780_USE_4_BIT_MODE
#if !defined(HD44780_LCD_COL_COUNT) || !defined(HD44780_LCD_ROW_COUNT)
#define HD44780_LCD_COL_COUNT 16
#define HD44780_LCD_ROW... |
/* sun3x_esp.c: EnhancedScsiProcessor Sun3x SCSI driver code.
*
* (C) 1999 <NAME> (<EMAIL>)
*
* Based on <NAME>'s esp driver
*/
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/blk.h>
#include <linux/proc_fs.h>
#include <linux/stat.h>
#include <... |
/* $FreeBSD: src/sys/alpha/mcbus/mcbus.c,v 1.1.2.1 2000/07/04 01:39:23 mjacob Exp $ */
/*
* Copyright (c) 2000 by <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. Redistributio... |
/*********************************************************************************
* HW2_161044086_EFKAN_DURAKLI.c *
* System Programming Homework1 *
* Author: <NAME> *
* ... |
/*
* Copyright (c) 2000-2002 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 ... |
#include <SDL.h>
#include <locale.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "game.h"
#include "game/level/platforms.h"
#include "game/level/player.h"
#include "game/sound_samples.h"
#include "game/sprite_font.h"
#include "math/extrema.h"
#include "math/vec.h"
#include "s... |
/*
* =====================================================================================
*
* Filename: main.c
*
* Description: Main file of lab 3 - Heat propagation
*
* Version: 1.0
* Created: 11/06/2016 12:53:23
* Revision: none
* Compiler: gcc
*
* Author:... |
//Including Appropriate Headers
#include <zephyr.h>
#include <board.h>
#include <device.h>
#include <pinmux.h>
#include "pinmux_galileo.h"
#include <gpio.h>
#include <misc/printk.h>
#include <string.h>
#include <pwm.h>
#include <shell/shell.h>
//Declaring Sample Sizes to record Measurements
#define CONTEXT_SWITCH_OVER... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <stdbool.h>
#include <sys/stat.h>
#include <locale.h>
#include "nmly.h"
#include "helper.h"
/**
* Working path.
*/
char *working_path = ".";
/**
* Extension filter.
*/
char *filter = "";
/**
* Number of files modified/to mod... |
#include <KernelExport.h>
#include <Drivers.h>
#include <Errors.h>
#include <OS.h>
#include <PCI.h>
#include <malloc.h>
#include <string.h>
#include <stdio.h>
#include "lala.h"
#define MAX_DEVICES 8
int32 api_version = B_CUR_DRIVER_API_VERSION;
sem_id drv_sem;
char * drv_path[MAX_DEVICES + 1];
audio_drv_t * ... |
/*
* Copyright 2018-2019 Redis Labs Ltd. and Contributors
*
* This file is available under the Redis Labs Source Available License Agreement
*/
#include "value.h"
#include "graph/entities/graph_entity.h"
#include "graph/entities/node.h"
#include "graph/entities/edge.h"
#include <errno.h>
#include <limits.h>
#include <... |
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <math.h>
#include <strings.h>
#include <stdlib.h>
#include <errno.h>
#define BAUDRATE B2400
#define MODEMDEVICE "/dev/ttyS0"
#define _POSIX_SOURCE 1 /... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Customer {
char c_ID[100];
char c_name[100];
char c_nationality[100];
char c_num[100];
char c_sex[50];
char c_status[100];
};
struct getCustomer {
struct Customer customer[999];
};
int a = 0;
struct getCustomer getCustomerD... |
/* compile: gcc -fopenmp -Wall -std=c99 openmp_frequency.c -lrt -lm -O3 -o
* openmp_frequency */
/* usage ./openmp_frequency [y|n|p] [no of tests] [work factor per test] */
/* performs busywork many times, prints how long iterations take */
/* with y, uses OpenMP */
/* with p, uses pthreads + pthread_barrier_wait() */... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <zlib.h>
#include <dmg/dmg.h>
#define SECTORS_AT_A_TIME 0x200
BLKXTable* insertBLKX(AbstractFile* out, AbstractFile* in, uint32_t firstSectorNumber, uint32_t numSectors, uint32_t blocksDescriptor,
uint32_t checksumType, ChecksumFunc uncompressedC... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/**
* \file
*
* \brief TC Example application for AVR UC3 TC driver.
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
/*
*
* infer.c
*
* Created at: Mon Aug 24 14:48:17 2015 14:48:17
*
* Author: <NAME> <<EMAIL>>
*
* License: please visit the LICENSE file for details.
*
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <setjmp.h>
#include "mem.h"
#include "scope.h"
#include "infer... |
#include <math.h>
#include "linked_list.h"
#include "bignum.h"
#include "euler_utils.h"
#include "math_utils.h"
#include "utils.h"
static void extend_repunit (int *, int *, int, int);
static bool is_repunit (int);
static long p114_count_arrangements_aux (int, int, long *);
/*
* Computes the number of proper reduced ... |
/* ========================================================================
Meow - A Fast Non-cryptographic Hash
(C) Copyright 2018 by Molly Rocket, Inc. (https://mollyrocket.com)
See https://mollyrocket.com/meowhash for details.
=====================================================================... |
//------------------------------------------------------------------------------
// LAGraph_dnn: sparse deep neural network
//------------------------------------------------------------------------------
// LAGraph, (c) 2021 by The LAGraph Contributors, All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause
//... |
/*
* File Name: jack_capture_tensorflow.c
* Demo: https://youtu.be/2CoRbuRRKbw
* Author: <NAME>
* Email: <EMAIL>
* Date: January, 2019
*
* Edited code from:
* github.com/jackaudio/jack2/blob/master/example-clients/capture_client.c
*/
/*
This program should be used in conjunction ... |
/****************************************************************************
* @file main.c
* @version V1.00
* @brief Demonstrate UART transmit and receive function with PDMA
*
* SPDX-License-Identifier: Apache-2.0
* @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved.
*********************... |
/* -*- C -*- */
/*
* Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates
*
* 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
... |
/**
* @file
* Helper module for Command Class Association Group Information.
*
* @copyright 2018 Silicon Laboratories Inc.
*/
/****************************************************************************/
/* INCLUDE FILES */
/********************... |
#define _KERNEL
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/systm.h>
#include <sys/sysctl.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <ps4/kernel.h>
typedef int Ps4KernelCacheGlobalHandlerUnsignedInteger64(struct sysctl_oid *, void *, intp... |
/* geoToTagStorm - Convert from GEO soft format to tagStorm.. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "tagStorm.h"
#include "csv.h"
#include "localmem.h"
#include "obscure.h"
boolean clExpandArrays = FALSE;
void usage()
/* Explain usage and exit. */
{
errAbort(
"... |
/**
* Program which exports node attributes from a spatially
* annotated graph as an ANALYZE75 image file.
*
* Author: <NAME> <<EMAIL>>
*/
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <argp.h>
#include "graph/graph.h"
#include "stats/stats.h"
#include "... |
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb/stb_image_write.h>
/*
* This is a crude little tool which converts from the AdaFruit LCD 5x8ish font
* format (five bytes each representing a column) to the PNG which we use to
* generate our own fonts ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define BLOCK 32
enum ERR_CODES {
MALLOC_FAIL = -1,
SUCCESS,
FAIL
};
typedef struct Line {
char *string;
int len;
} LINE;
typedef struct List {
LINE **lines;
int lineCount;
} LIST;
LINE *createLine () {
LI... |
/*
* Copyright (C) <NAME>
* Note: paste in browser after compile: http://localhost:8080/circles/000000/efefef/15.gif
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <wand/magick-wand.h>
#define radius2index(r, cglcf) (r-(cglcf)->min_radius)/(cglcf)->step_radius
enum colors { RED, GR... |
//
// This file contains a C99 implementation for "SHA-256" as specified in NIST
// FIPS 180-4 (August 2015) assuming we have uint32_t. The specification can
// be found here:
//
// http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
//
#include "sha256.h"
#define SHR(a, b) (((a) & 0xffffffff) >> (b... |
/*Translated by FOR_C, v3.4.2 (-), on 06/07/94 at 16:59:02 */
/*FOR_C Options SET: c=2 com=u do=r4 ftn=2ln6k op=iv s=dvn str=l sq=i */
#define _POSIX_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <dirent.h>
#include <unistd.h>
#include <math.h>
#include <string.h>
#include <fcntl.h>
#includ... |
/*
* $Id: pcell.c,v 1.2 2006-03-25 03:32:36 dhmunro Exp $
* p_ndx_cell, p_rgb_cell for MS Windows
*/
/* Copyright (c) 2005, The Regents of the University of California.
* All rights reserved.
* This file is part of yorick (http://yorick.sourceforge.net).
* Read the accompanying LICENSE file for details.
*/
#inc... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* md5.c :+: :+: :+: ... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... |
/* $Id$ */
/*
* %GPL_START_LICENSE%
* ---------------------------------------------------------------------
* Copyright 2009-2018, Pittsburgh Supercomputing Center
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Licens... |
#include <string.h>
#include "collector.h"
#include "eval.h"
#include "parse.h"
#define SCAM_ASSERT(cond, ast, err, ...) { \
if (!(cond)) { \
return (ScamVal*)ScamErr_new(err, ##__VA_ARGS__); \
} \
}
#define SCAM_ASSERT_ARITY(name, ast, expected) { \
size_t got = ScamSeq_len(ast); \
if (got !=... |
/* @source oddcomp application
**
** Identifies sequences with a region with a high composition of specific
** words
**
** @author Copyright (C) <NAME> (<EMAIL>) based on
** compseq by <NAME>
** @modified 29 June 2006 <NAME> All mods marked up with JISON
** @modified 8 November 1999 <NAME>.
** @@
**
**
** This pro... |
/*
* Copyright 2021 Netherlands eScience Center and ASTRON.
* Licensed under the Apache License, version 2.0. See LICENSE for details.
*/
#define _POSIX_C_SOURCE 200809L
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <assert.h>
#include <signal.h>
#include <stdboo... |
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <conio.h>
#include <time.h>
#include <string.h>
#include <windows.h>
#define MAX_GAMBLERS 7
#define MAX_TIME 2000
void displayMenu();
void startGame();
void displayRules();
void callGambler(int points, int sum, char card, int i, int score[]);
void ca... |
/* AIM_COMM_DEFS.H */
/*******************************************************************************
*
* Acquisition Interface Module (AIM) Communications Definitions
*
* This module contains definitions for the commands used by networked
* data acquisition modules to talk to host computers. Note that th... |
//---------------------------------------------------------------------------
// gendata.c
//
// Generate data for iSubdue
//
// Subdue 5
//
// Independent Data: Increments are completely separate
// Connected Data: Edges span increment boundaries
//
// Generates a specified number of increments and write... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include "console.h"
#define WIDTH 640
#define HEIGHT 480
#define CHEIGHT 12
SDL_Surface* window;
SDL_Surface* text;
SDL_Surface* consurf;
TTF_Font* mono;
CConsole* console;
int fontWidth(TTF_Font* font)
{
SD... |
/* vim:expandtab:ts=2 sw=2:
*/
/* Grafx2 - The Ultimate 256-color bitmap paint program
Copyright owned by various GrafX2 authors, see COPYRIGHT.txt for details.
Grafx2 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 So... |
#define _WIN32_WINNT 0x0600
#define _WIN32_IE 0x0600
#include <stdio.h>
#include <windows.h>
#include "config.h"
#include "ms-window.h"
#include "worker-data.h"
#include "worker.h"
msWindow* main_win = NULL;
msCtrl status = -1;
msCtrl displayID = -1;
// Mainly for the drives changed call back
msCtrl driv... |
/*
* Copyright (c) 2013-2017 <NAME>
*
* 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 DISCLAIMS ... |
/*
* 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.
*
* This file provides L3 basic functionality and defines L3 global variables
*/
/* *******************************... |
/*
* Copyright (C) 2000, 2001, 2002 <NAME> (<EMAIL>)
* Licensed under the GPL
*/
#include "linux/config.h"
#include "linux/kernel.h"
#include "linux/sched.h"
#include "linux/interrupt.h"
#include "linux/mm.h"
#include "linux/slab.h"
#include "linux/utsname.h"
#include "linux/fs.h"
#include "linux/utime.h"
#include... |
/*
* $Id: vc08c.c,v 1.7 2010-03-15 22:49:25 haley Exp $
*/
/***********************************************************************
* *
* Copyright (C) 1996 *
* University Corporation for... |
#include <stdbool.h>
#include <float.h>
#include <SDL2/SDL.h>
#include "ld35.h"
typedef struct {
Sprite* sprite;
int speed;
int anim_timer;
bool is_bat;
float x_vel;
float y_vel;
int bat_timer;
float x_remainder;
float y_remainder;
} Player;
static Player player = {
.sprite = sprites,
.speed = 2,
.is... |
/****************************************************************************
* Copyright (C) 1998 WIDE Project. All rights reserved.
* Copyright (C) 1999,2000,2001,2002 University of Tromso. All rights reserved.
* Copyright (C) 2002 Invenia Innovation AS. All rights reserved.
*
* Author: <NAME>, <EMAIL>.
* ... |
/* Copyright (C) 1995-2019 Free Software Foundation, Inc.
This file is part of GDB.
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... |
/*
lpcnet_dump.c
Feb 2019
LPCnet "dump" functions is API form.
*/
/* Copyright (c) 2017-2018 Mozilla */
/*
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 t... |
/*
MIT License - Copyright 2021
-
<NAME> aka Dreg - <EMAIL>
-
http://www.rootkit.es/
http://github.com/David-Reguera-Garcia-Dreg/therealdreg
http://www.fr33project.org/
-
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to... |
/* Instructions to compile the code:
First place this file main.c in the compiler.
Then another "leaf" is added for an additional file that is in this same folder called register.h */
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include "register.h"
int main()
{
header();
int i;
int j;
i... |
/* Id: local.c,v 1.22 2015/08/18 10:15:08 ragge Exp */
/* $NetBSD: local.c,v 1.1.1.6 2016/02/09 20:28:19 plunky Exp $ */
/*
* Copyright (c) 2003 <NAME> (<EMAIL>).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... |
/*
Copyright (c) 2002-2007 <NAME>
"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, including without limitation the rights to use, copy, modify, merg... |
/***************************************************************************
video.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
#include "video/resnet.h"
UINT8 *megazone_scrollx;
UINT8 *meg... |
#include <stdlib.h>
#include <stdio.h>
#include "sqopt_cwrap.h"
void hs118Hx
(int *nnH, double x[], double Hx[], int *nState,
char cu[], int *lencu,
int iu[], int *leniu,
double ru[], int *lenru) {
int i;
for (i = 0; i < 5; i++) {
Hx[3*i] = .0002*x[3*i];
Hx[3*i+1] = .0002*x[3*i+1];
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.