text stringlengths 3.08k 10.5k |
|---|
// This file is based on `libtock/crt0.c` from the libtock-c repository
// <https://github.com/tock/libtock-c> and is therefore licensed under Apache
// License, Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0> or the MIT
// license <http://opensource.org/licenses/MIT>, at your option.
#include "tock.h"
#inclu... |
// Test Program for Font atlas and string geometry generator
// Based on <NAME>'s stb_truetype.h library
// <NAME> - 3 May 2018 <<EMAIL>>
// baked fonts
// C99
// Licence: GNU GPL v3
//
// Compile- Linux:
// gcc main.c font.c -g -DGLEW_STATIC ../common/lin64/libGLEW.a ../common/lin64/libglfw3.a -I ../common/include/ -... |
// This code written by <NAME>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "./hw9-lib-chrisdavis.h"
struct node {
int data;
struct node *next;
struct node *prev;
}*trashHead, *trashTail, *trashCurrent;
int main( int argc, char *argv[] )
{
// Implement and ch... |
/*
MIT License
Copyright (c) 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, distrib... |
/*
** task_countermand.c
**
** Single fixation point + single target,
** used in countermand paradigm. Stop-signal
** delays are given explicitly in menu.
*/
#include "../toys.h"
#include "../task.h"
#include "../task_utilities.h"
/* PRIVATE MACROS/CONSTANTS */
#define NUM_GR_MENUS 2
#define TI "setup"
#define TI... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void
die(const char *msg)
{
fputs("diff2edit: ", stderr);
perror(msg);
exit(-1);
}
int
skip_until(FILE *file, const char *str)
{
int idx = 0;
int ch;
while(str[idx] && (ch = fgetc(file)) != EOF) {
if(ch == str[idx]) {
idx++;
}... |
/*
Copyright 2012-2020 <NAME> <<EMAIL>>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS... |
/*******************************************************************************
*
* COPYRIGHT(c) 2020, China Mobile IOT
*
* 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 th... |
/*
* << Haru Free PDF Library >> -- hpdf_fontdef_cid.c
*
* URL: http://libharu.org
*
* Copyright (c) 1999-2006 <NAME> <<EMAIL>>
* Copyright (c) 2007-2009 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee... |
/* Copyright (C) 1989, 1990 Aladdin Enterprises. All rights reserved.
Distributed by Free Software Foundation, Inc.
This file is part of Ghostscript.
Ghostscript is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
to anyone for the conseque... |
#include <errno.h>
#include <stdlib.h>
#include <libnotify/notify.h>
#include <sensors/sensors.h>
#include <monitor-temp.h>
#include "helpers.h"
void
print_help (char *prog)
{
printf(
"Usage: %s\n\n"
"Options:\n"
"\t--help, -h \tPrint this help and exits\n"
"\t--version, -v \tPrint version of this pr... |
#include "imgw_bmp/include/imgw_bmp_read.h"
#include <assert.h>
static
unsigned char
read_uchar
(imgw_bmp_read *bmp_reader)
{
int c = fgetc(bmp_reader->fp);
bmp_reader->eof_reached = (c == EOF);
return bmp_reader->eof_reached ? 0 : (unsigned char)c;
}
static
unsigned
read_uint_le
(imgw_bmp_read ... |
/*!
* @file main.c
* @brief Hvac Click example
*
* # Description
* This is an example that demonstrates the use of the HVAC Click board.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Initialization driver enables - I2C,
* SCD40: perform factory reset, serial number, featur... |
/* ----------------------------------------------------------------------
*
* Heavily modified version of <NAME>'s STUN encoder. Big ups go to him
* for his excellent work in this area.
*
* @maintainer: <NAME> <<EMAIL>>
*
* Copyright (c) 2012 <NAME> <<EMAIL>>
*
* Copyright (c) 2013 - 2019 <NAME> and Xirsys LLC... |
////////////////////////////////////////////////////
// Copyright (c) 2012 ICRL
// See the file LICENSE.txt for copying permission.
//
// Original Author: <NAME>
// Date: 7/22/2012
// Contact: <EMAIL>
////////////////////////////////////////////////////
#include "Component.h"
#include "ImageTable.h"
#inc... |
/*
* Copyright © 2019 LambdAurora <<EMAIL>>, <NAME> <<EMAIL>>
*
* This file is part of fictional_couscous_isn.
*
* Licensed under the MIT license. For more information,
* see the LICENSE file.
*/
#include "raytrace.h"
#include <stdio.h>
MaybePosition2D intersect2D(const Line2D* a, const Line2D* b) {
Maybe... |
#include <assert.h>
#include <MEPT-ordering.h>
#include <MEPT-layout.h>
/**
* \file
* Contains the implementation of a generic full ordering on parse trees.
*/
static int PT_compareTreeRec(PT_Tree tree1, PT_Tree tree2);
static ATbool moduloAmbOrdering;
static ATbool moduloLayout;
static int PT_compareArgs(PT_Ar... |
/**
* author: <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include "queue_bintree_utils.h"
void enqueue(queue_t* queue,node_t* tree_node){
if(queue->head != NULL) {
queue->tail->next = (q_node_t *) malloc(sizeof(q_node_t));
queue->tail = queue->tail->next;
queue->tail->tree_node = t... |
/**
******************************************************************************
* File Name : LCD.c
* Description : This file provides code for the configuration
* of the LCD instances.
******************************************************************************
... |
/*
* $Id: systeminfo_sysinfo.c,v 1.6 2010-08-20 15:33:36 obarthel Exp $
*
* :ts=4
*
* Portable ISO 'C' (1994) runtime library for the Amiga computer
* Copyright (c) 2002-2015 by <NAME> <obarthel (at) gmx.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modif... |
/***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
#include "vidhrdw/generic.h"
#define VIDEO_RAM_SIZE 0x40... |
/* Copyright (C) 2011,2014 by <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... |
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
#include <assert.h>
#include <ctype.h>
#define MATCH_ADJ_SLASH_SCORE 1
#define MATCH_IN_FILENAME_SCORE 5
#define MATCH_UNDER_MULT 2
#de... |
/**
**************************************************************************************
* @file main.c
* @author shaokairu
* @date 2021.7.8
* @brief This file includes the main program body
**************************************************************************************
*/
/* Includes ----------... |
/*
* Exercise 8-3.
*
* Design and write _flushbuf, fflush and fclose.
*/
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#undef NULL
#define NULL 0
#define EOF (-1)
#define OPEN_MAX 20
typedef struct _iobuf {
int cnt;
char *ptr;
char *base;
int flag;
int fd;
int bufsize;
} FILE;
enum flags { _R... |
#include <assert.h>
#include <ctype.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char* readline();
char* ltrim(char*);
char* rtrim(char*);
char** split_string(char*);
int parse_int(char*);
/*
* Comple... |
#pragma once
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include "stinger.h"
#include "xmalloc.h"
#define INFINITY_MY LONG_MAX
#define COUNT_TRAVERSALS 1
typedef double bc_t;
//------------------------------------------------
//--------------------------------... |
/*
tcpsniff -- network packet sniffer.
Written by <NAME>
Started work on 25 July 2018
*/
#include <stdio.h>
#include <stdbool.h>
#include <ctype.h>
#include <WinSock2.h>
#include <Windows.h>
#include "def.h"
#include "getopt.h"
#include "rawsocket.h"
#include "decoder.h"
// Uncomment this if yo... |
/* update.c -- map updating routines for warpnet */
#include "twcommon.h"
#include "mapconst.h"
#include "msgs.h"
#include "map_defs.h"
#include "warpnet.h"
#include "debug.h"
void update_me(ps)
State *ps;
{
Int mp,j, set_line_pointer();
ps->Node_Map[ps->mynum].Line_Currency = ps->now1;
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "command-utils.h"
#include "draw-utils.h"
#include "json.h"
#include "module.h"
#include "workspace-module.h"
#define DRAW_WIDTH 160
#define DRAW_HEIGHT 58
#define FONT_NAME "monaco"
#define FONT_SIZE 16
#define WORKSPACE_COUNT 10
#define UNUSED(x) (... |
/* Copyright (c) 2021 - 2022 ALIF SEMICONDUCTOR
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 cond... |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <string.h>
unsigned long long ta_davaj_cas() {
struct timeval tv;
gettimeofday(&tv,NULL);
return 1000000 * (unsigned long long) tv.tv_sec + tv.tv_usec;
}
int ta_otvor(int ta_gpio, int... |
#include "gui_use.h"
int gui_paste_interactive(gui_obj *gui){
if (gui->modal == PASTE){
//static dxf_node *new_el;
static double min_x, min_y, max_x, max_y, center_x, center_y;
if (gui->step == 0){
if (!gui->clip_drwg) gui_default_modal(gui);
gui->draw_tmp = 1;
/* phantom object */
//dxf_e... |
/*
* THEC64 Mini
* Copyright (C) 2017 <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.
*
* This ... |
#include "global.h"
#include "prune_nodes.h"
#include "util.h"
#include "hash_table.h"
#include "db_graph.h"
#include "db_node.h"
// Remove a node from the graph, do not edit any edges / adjacent nodes
// Threadsafe
void prune_node_without_edges_mt(dBGraph *db_graph, hkey_t hkey)
{
ctx_assert(hkey != HASH_NOT_FOUND)... |
#include "globals.h"
#include <pthread.h>
#define BUFFER_SIZE 4
struct t1Args{
int *iToFill;
int *iToRead;
int *readed_frames;
SampleBaseEntry *buffers;
};
void thread_lecturaSHM(struct t1Args *Args);
void thread_escrituraDSP(struct t1Args *Args);
int main(int argc, char *argv[])
{
int pid;
... |
/*
* Copyright (c) 2018, Xdevelnet (xdevelnet at xdevelnet dot org)
* 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, t... |
// SPDX-License-Identifier: Unlicense OR MIT
// +build linux,!android
#include <wayland-client.h>
#include "wayland_xdg_shell.h"
#include "wayland_text_input.h"
#include "os_wayland.h"
#include "_cgo_export.h"
static const struct wl_registry_listener registry_listener = {
// Cast away const parameter.
.global = (v... |
#include "ruby.h"
#include "microssl.h"
#include <openssl/bio.h>
#include <openssl/ssl.h>
#include <openssl/dh.h>
#include <openssl/err.h>
#include <openssl/x509.h>
#ifndef SSL_OP_NO_COMPRESSION
#define SSL_OP_NO_COMPRESSION 0
#endif
typedef struct context {
SSL_CTX *ctx;
} Context_t;
static void Context_mark(voi... |
/*
* 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... |
#define SKETCH_2D_IMPLEMENTATION
#include "sketch2d.h"
#include <AntTweakBar.h>
#include "CudaApi.h"
#include "Remotery.h"
#include "uv.h"
uv_fs_event_t fs_event;
CUfunction kernel_addr;
PImage img;
unsigned char* img_content;
size_t item_size;
CUdeviceptr d_iResolution, d_iGlobalTime, d_iMouse;
CUd... |
/*
* Copyright (c) 2010-2015 SURFnet bv
* 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
*... |
/**
* @file terminal.c
* @author Nikolay
* @license MIT
* @date 2020-07-05
* @brief Module for minimal terminal implementation on
* SSD1306 screen.
*
* Allowed printing chars, integers and signed unsigned fixed point values.
* If char is out of screen it will be skipped
*/
#include "stm8s.h... |
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... |
/* tcp-srv-fork
Simple example of recieving a TCP connection and using 'fork()'
to handle the connection.
This is an 'echo' server that echoes back whatever it receives.
Example usage:
tcp-srv-fork 7777
This will listen on port 7777, accept one connection at a time,
and echo back whatever it receives on the c... |
#include <stdbool.h>
#include "fsl_device_registers.h"
#include "fsl_debug_console.h"
#include "board.h"
#include "fsl_flash.h"
#define BUFFER_LEN 4
/*
* @brief Gets called when an error occurs.
*
* @details Print error message and trap forever.
*/
void error_trap(void) {
PRINTF("\r\n\r\n\r\n\t---- HALTED D... |
/* status.c
Routines to get and set the status for a system.
Copyright (C) 1991, 1992 <NAME>
This file is part of the Taylor UUCP package.
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 Foun... |
/**
* @file clock.c
*/
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <unistd.h>
#include <locale.h>
#include <ncurses.h>
/* drawing algorithms */
typedef struct _draw {
void (*setpixel)(int, int, int);
} draw_t;
/**
* @fn draw_init
* @brief initialize drawing context
*/
draw_t *draw_init(voi... |
/*-
* Copyright (c) 2011-2012 <NAME>
* All rights reserved.
*
* This software was developed by SRI International and the University of
* Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
* ("CTSRD"), as part of the DARPA CRASH research programme.
*
* @BERI_LICENSE_HEADER_START@
*
* Lice... |
#include "KALMAN.h"
float getAngle(float newAngle, float newRate, float dt) {
// KasBot V2 - Kalman filter module - http://www.x-firm.com/?page_id=145
// Modified by <NAME>
// See my blog post for more information: http://blog.tkjelectronics.dk/2012/09/a-practical-approach-to-kalman-filter-and-how-to-impleme... |
/* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... |
/* docIdTidy - tidy up the docId library by compressing and md5suming where appropriate. */
/* Copyright (C) 2013 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "optio... |
#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <mqueue.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/wait.h>
#define READ_END (0)
#define WRITE_END (1)
struct item
{
int key;
};
struct node
{
int value;
struct node *next;
};
typedef s... |
// coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2011, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... |
/*
* Copyright (c) 2014-2018 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
* above copyright notice and this permission notice appear in all
* copies.
*
* THE SOFTWARE IS ... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Demonstrate Timer4, Timer5 PWM output waveform in power-down and wake-up functions.
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Copyright (C) 2020 Nuvoton Technology... |
/*#include <math.h>*/
extern double sqrt(double);
extern double fabs(double);
#define JJ 50
#define KK 6
#define NRR 32 /* NRR=2 to the power (KK-1) */
#define MAXITS 100
void adi(a,b,c,d,e,f,g,u,jmax,k,alpha,beta,eps)
double **a,**b,**c,**d,**e,**f,**g,**u,alpha,beta,eps;
int jmax,k;
{
int i,nr,nits,next,n,l,kit... |
//
// audiodevice.c
// fcdfm
//
// Created by <NAME> on 02/06/2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
#include "audiodevice.h"
void checkError(OSStatus status) {
switch (status) {
case noErr: return;
case kAudio_ParamError:
printf("Error: kAudio_ParamError \n... |
/*****************************************************************************\
** **
** FILE: autoins.c **
** AUTHORS: Alexios **
**... |
/* SDIO SPI AT example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>... |
/****************************************************************************************************************************
cencoder.c - c source to a base64 decoding algorithm implementation
For ESP8266 AT-command running shields
This is part of the libb64 project, and has been placed in the public domain.... |
#include <stdlib.h> /* malloc, free */
#include "common.h"
#include "constants.h"
#include "objectMemory.h"
#include "objectMemory-gc.h"
#include "objectMemory-gc-old.h"
#include "objectMemory-smallIntegers.h"
// Object memory is allocated as young space (smaller) and old space (bigger).
// Young space is divided int... |
/*
Author: <NAME>, 104854956
Date: July 12, 2017
Description: This program demonstrated the sorting and searching of a matrix of integers
through sinking sort and recursive binary search using pointer + offset notation
*Note: if a searched number is found, the position will be, if more ... |
/**
颜色
*/
#define LD_colorRGBValue(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000)>>16))/255.0 green:((float)((rgbValue & 0xFF00)>>8))/255.0 blue:((float)((rgbValue & 0xFF)))/255.0 alpha:1.0]
#define LD_colorRGBValueAlpha(rgbValue,alp) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000)>>16))/255.0 ... |
/*
Optical SPI
This handles the process of communicating with the microcontroller on the
PAY-Optical board. Using SPI, this microcontroller (PAY-SSM) functions as the master while
the PAY-Optical microcontroller functions as the slave.
Protocol:
PAY sends 2 bytes:
byte 1 = command opcode
byte 2 = well info (or other... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <C:\Users\Caio\Desktop\Ed1\TrabalhoLista\colecaolista.c>
typedef struct _oficina_{
char produto[20];
float preco;
int idproduto;
}oficina;
int cmpchar(void *elm1, void *elm2){
oficina *d;
char texto[20];
d= (oficina*)elm1... |
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <omp.h>
#include "mandelbrot.h"
//image size
#define WIDTH 1024
#define HEIGHT 768
#define MAX_ITERATIONS 100 //number of iterations
//C parameters (modify these to change the zoom and positio... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2011 The ChromiumOS Authors. 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; version 2 of the Lic... |
/* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* See LICENSE for c... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ui_el_event_default_draw.c :+: :+: :+: ... |
// Copyright 2017 The Australian National University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... |
/*This source code copyrighted by <NAME> (2004-2020)
and may not be redistributed without written permission.*/
//Using SDL, standard IO, and strings
#include "my_sdl.h"
//Screen dimension constants
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
//Key press surfaces constants
enum KeyPressSurfaces
{
K... |
#include <stdio.h>
#include <stdlib.h>
#include "game-io.h"
// Global state.
int picked_suitcase = -1;
const int suitcases_length = 26;
// Cents. This will be modified to reflect eliminations during the game.
long suitcases[] = {
1, 100, 500, 1000, 2500, 5000, 7500, 10000, 20000, 30000, 40000, 50000,
75000, ... |
/* Copyright (c) 2015 Freescale Semiconductor, Inc.
* Copyright 2018 NXP
*
* 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 ... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2011-2012 The ChromiumOS Authors. 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; version 2 of th... |
#include "asf_view.h"
#include "asf_import.h"
static const int ROIPAC_CPX=1;
static const int ROIPAC_RMG=2;
static const int ROIPAC_SLC=3;
typedef struct {
FILE *fp; // data file pointer
int roipac_file_type;
int amp;
int ml; // should data be multilooked for display?
} ReadRoipacClientInfo;
... |
/* -*- C -*-
*
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2008 The University of Tennessee and The University
* of Te... |
#include <pspkernel.h>
#include <pspsdk.h>
#include <pspctrl.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
// Defined in acplpsp.cpp
void psp_quit();
PspDebugRegBlock exception_regs;
extern SceModule module_info;
extern int _ftext;
static const char *codeTxt[32] =
{
"Interrupt", "TLB modificat... |
/*
* Copyright (c) 2014-2018 Cesanta Software Limited
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the ""License"");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* ... |
#include "mathc/float.h"
#include "utilc/assume.h"
#include "e/window.h"
#include "e/gui.h"
#include "e/input.h"
bool e_input_up;
bool e_input_left;
bool e_input_right;
bool e_input_down;
bool e_input_enter;
bool e_input_space;
bool e_input_accel_active;
float e_input_accel[3];
const mat4 *e_input_camera_p_inv_ptr;
... |
#include "shellprv.h"
#pragma hdrstop
#include "fstreex.h"
#include "idlcomm.h"
// returns SHAlloc() (COM Task Allocator) memory
LPTSTR SHGetCaption(HIDA hida)
{
UINT idFormat;
LPTSTR pszCaption = NULL;
LPITEMIDLIST pidl;
switch (HIDA_GetCount(hida))
{
case 0:
r... |
#include <uwsgi.h>
extern struct uwsgi_server uwsgi;
struct uwsgi_mongodb_header {
int32_t len;
int32_t request_id;
int32_t response_id;
int32_t opcode;
};
struct uwsgi_mongodb_state {
int fd;
char *address;
int32_t base_len;
struct uwsgi_mongodb_header header;
int32_t flags;
char *collection;
int32_t b... |
#include "lucre.h"
/*
pcoins =
[
onl_coin
...
]
*/
EC_M_Pcoins EC_M_new_pcoins(UInt32 numcoins, EC_M_Onl_coin *onl_coin)
{
EC_M_Pcoins newpcoins;
if (numcoins && !onl_coin) return NULL;
newpcoins = (EC_M_Pcoins) EC_G_malloc(sizeof(struct EC_M_Pcoins_s));
if (!newpcoins) re... |
#include "include/raylib.h"
#include "include/raymath.h"
#include "settings.h"
#include "level.h"
#include "enemy.h"
#include "utilities.h"
#include "player.h"
#include "main.h"
#include <stdio.h>
#include <time.h>
//Fist has always ammo! :)
#define FIST_AMMO 1
#define PISTOL_AMMO_MAX 100
#define RIFLE_AMMO_MAX 200
#d... |
/******************************************************************************
Copyright (c) 1992, 1995, 1996 Xerox Corporation. All rights reserved.
Portions of this code were written by <NAME>, aka ghond.
Use and copying of this software and preparation of derivative works based
upon this software are permi... |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Copyright 2010 California Institute of Technology. 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... |
/**
MIT License
Copyright (c) 2021 HeatXD
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, distri... |
#define _BSD_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <strings.h>
#include <sys/time.h>
#include <time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <X11/Xlib.h>
//For tm.tm_gmtoff, well doesn't work :/
#define _GNU_SOURCE
#define B... |
/*
Copyright (C) 2006-2009 <NAME>
This program 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) any later version.
This program is distributed i... |
// Copyright 2019 J Forristal LLC
// Copyright 2016 Addition Security Inc.
//
// 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... |
#include <ccan/io/io.h>
/* Include the C files directly. */
#include <ccan/io/poll.c>
#include <ccan/io/io.c>
#include <ccan/tap/tap.h>
#include <sys/wait.h>
#include <stdio.h>
#ifdef DEBUG_CONN
#define PORT "64017"
#else
#define PORT "65017"
#endif
struct packet {
int state;
size_t len;
void *contents;
};
static... |
/*
* Copyright (C)2005-2016 Haxe Foundation
*
* 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,... |
/* raid6_recover.c - module to recover from faulty RAID6 arrays. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published b... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXSEATS 12
#define MAXFLT 4
struct seat {
int id;
int alloc;
char fn[20];
char ln[20];
};
struct flight {
char id[10];
struct seat seats[MAXSEATS];
};
void init_seat(struct seat *S, int n) {
int i;
for (i = 0; i < n;... |
// algorithm_r_radix_exchange_sort.c
// Algorithm R (Radix exchange sort)
// 5.2.2 Sorting by Exchanging
// The Art of Computer Programming, <NAME>
// uses stack as described in algorithm
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
// algorith... |
#include <cpuid.h>
#include "random.h"
#include "util.h"
#include "io.h"
#include "keyboard.h"
#include "interrupt.h"
#include "thread.h"
static void ack_irq(uint8_t irq);
static bool handle_irq(uint8_t irq);
void build_idt(void);
volatile uint32_t pit_ticks; // not 64 bit because changed often + don't care about ... |
#include "Connection.h"
#include "LinkedList.h"
#include "Parser.h"
#include "Lib.h"
#include "MessageFactory.h"
#include "Common.h"
#include <stdbool.h>
#include <errno.h>
#include <pthread.h>
pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
threadsFree = MAX_THR... |
/*
Copyright (c) 2013 <NAME>, https://menteslibres.net/xiam
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, mod... |
/*-
* Copyright (c) 2020 <NAME> <<EMAIL>>
* Copyright (c) 2018 The NetBSD Foundation, 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... |
/* hough transform for lines
*
* 7/3/14
* - from hist_find.c
* 1/2/18
* - change width to 0 - 180
*/
/*
This file is part of VIPS.
VIPS 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 Fou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.