text stringlengths 3.12k 18.7k |
|---|
#include "ocilib.h"
/* Direct path complete test suite demonstrating the following workflows :
- Normal loads
- Loads with conversion errors
- Loads with loading errors
- Loads with insufficient buffers
- Loads using force mode
*/
#define SIZE_ARRAY 10
#define NB_LOAD 10
#define SIZE_COL1 20
#defin... |
/* This program is licensed under the GNU Library General Public License, version 2,
* a copy of which is included with this program (LICENCE.LGPL).
*
* (c) 2000-2001 <NAME> <<EMAIL>>
*
*
* Comment editing backend, suitable for use by nice frontend interfaces.
*
*/
#include <glib.h>
#include <stdio.h>
#include ... |
/*****************************************************************************
*
* XVID MPEG-4 VIDEO CODEC
* - Forward DCT -
*
* Copyright (C) 2006-2011 Xvid Solutions GmbH
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU General Public Lice... |
/********************************************
zmalloc.c
copyright 2008-2013,2019, <NAME>
copyright 1991-1993,1995, <NAME>
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
********... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
// INFERNO
#include <vfs.h>
#include <kfs.h>
#include <slab.h>
#include <kmalloc.h>
#include <kref.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <error.h>
#include <cpio.h>
#include <pmap.h>
#include <smp.h>
#include <ip.h>
enum {
Nlog = 4 * 1024,
};
/*
* action log
*/
struct Netlog {
sp... |
/* ps.c:
*
* Copyright (C) 1998 <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 your option) any later version.
*/
#includ... |
/* $XFree86: xc/programs/Xserver/iplan2p4/iplbitblt.c,v 3.1tsi Exp $ */
/*
* ipl copy area
*/
/*
Copyright (c) 1989 X Consortium
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 2010 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... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
#in... |
/*
* gencmds.c
*/
/*
Command interface routines general to ntserv/daemon/robot code. This
is a replacement for the overloaded compile method used previously in
commands.c . Instead of compiling this file several times with modified
defines, the generalized routines found here can be linked into othe... |
/* Copyright (c) 2010 - 2020, Nordic Semiconductor ASA
* 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
* l... |
#include <stdlib.h>
#include "list.h"
static void list_link_element(t_link_element* previous, t_link_element* next);
static t_link_element* list_create_element(void* data);
static t_link_element* list_get_element(t_list* self, int index);
static t_link_element* list_find_element(t_list *self, bool(*condition)(void*),... |
/*
* Writes a known sequence of bytes then expects to read them back.
* Run this with a loopback device fitted to one of FTDI's USB-RS232
* converter cables.
* A loopback device has:
* 1. Receive Data connected to Transmit Data
* 2. Data Set Ready connected to Data Terminal Ready
* 3. Ready T... |
#include <stdio.h>
#include <SDL.h>
#include <SDL_image.h>
#include "gamewindow.h"
#include "texture.h"
#include <time.h>
#include <stdlib.h>
int SCREEN_WIDTH = 640;
int SCREEN_HEIGHT = 960;
int CPU_SPEED = 12;
int CPU_IMPRECISION = 0.53;
int CPU_RANGE = 28;
int PLAYER_SPEED = 12;
int BALL_SPEED = 8;
SDL_Renderer*... |
/* Authors: <NAME>
* and : <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <graph.h>
#include <time.h>
#include "game.h"
#include "fonctionGame.h"
#define XTOUR 20 /*Point X est affiché le tour du joueur*/
#define YTOUR 40 /*Point Y est affiché le tour du joueur*/
#define TAILLETOUR 2 /*taille de ... |
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "nvs_flash.h"
#include "driver/uart.h"
#include "esp_err.h"
#include "esp_log.h"
#include "esp_vfs_dev.h"
#include "esp_crc.h"
#include "esp_system.h"
#incl... |
/*****************************************************************************
* mp4.c: x264 mp4 output module
*****************************************************************************
* Copyright (C) 2003-2009 x264 project
*
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This program is free s... |
/*
This file is part of GNUnet.
Copyright (C) 2011-2015 GNUnet e.V.
GNUnet 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, or (at your
option) any later version.
GNUnet is distributed in... |
/*
* Amazon FreeRTOS PKCS#11 for Numaker_PFM_M487
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software withou... |
/* svrs_codec.c */
#include <errno.h>
#include "openocf.h"
#include "svrs_codec.h"
#include "cJSON.h"
#include "coap/pdu.h"
char *g_msg_type[12];
static cJSON *cred_to_json(OCSecurityPayload *payload)
{
OIC_LOG_V(INFO, TAG, "%s ENTRY", __func__);
OIC_LOG_V(DEBUG, TAG, "3 payload type: %x", payload->base.typ... |
/**
* \file
*
* \brief Empty user application template
*
*/
/**
* \mainpage User Application template doxygen documentation
*
* \par Empty user application template
*
* Bare minimum empty user application template
*
* \par Content
*
* -# Include the ASF header files (through asf.h)
* -# "Insert system c... |
/* $OpenBSD: hack.mkmaze.c,v 1.6 2016/01/09 18:33:15 mestre Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
* Amsterdam
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... |
/****************************************************************************/
/* the diy toolsuite */
/* */
/* <NAME>, University College London, UK. */
/* <NAME>,... |
/** Copyright 2018, 2021 <NAME><<EMAIL>> */
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../libs/sms/sm4.h"
#include "iocpserver.h"
#include "wsserver.h"
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include... |
/*
Software License Agreement (BSD License)
Copyright (c) 1997-2011, <NAME>, (LADSoft).
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the following
conditions are met:
* Redi... |
/*
* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source ... |
/*
* download_process.c
*
* This file is related to burning.
*
* Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
*
* 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; ei... |
/**
* Copyright (c) 2021 The Bitcoin ABC developers
*
* 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... |
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include "trick/MapStrToPtr.h"
/* create a new table entry structure */
TBLENTRY *NewTblEntry(char *parmKey, void *parmData)
{
TBLENTRY *pEntry = (TBLENTRY *) malloc(sizeof(TBLENTRY)); /* allocate memory */
pEntry->key = strdup(... |
/*
* Copyright (c) 2020 Yubico AB. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
#include <sys/types.h>
#include <sys/ioctl.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbhid.h>
#include <errno.h>
#include <poll.h>
#include <stdboo... |
/* bootrom.c: Boot ROM simulator for Motorola processors
Copyright (c) 2010-2011, <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 with... |
// Porres 2017
#include "m_pd.h"
#include <math.h>
#define PI 3.14159265358979323846
#define LOG001 log(0.001)
typedef struct _resonant2 {
t_object x_obj;
t_int x_n;
t_inlet *x_inlet_freq;
t_inlet *x_inlet_t1;
t_inlet *x_inlet_t2;
t_outlet *x_out;
t_float x_nyq;
... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "fitsio.h"
#include "input.h"
const char* USAGE =
"usage: immap [-0] [-p PTSFILE] [-a ANCFILE] [-d PAD] MATFILE IMFITS OUTFITS";
// subsampling
#ifndef NSUB
#define NSUB 32
#endif
// value for null pixels
static const double NULVAL = DOUBLENULLVALUE... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <stdint.h>
#include <math.h>
typedef double (*kd_castfunc)(void * p);
typedef void (*kd_freefunc)(void* data, size_t size, void * ptr);
typedef void * (*kd_mallocfunc)(void* data, size_t size);
/* The following functions reutnr cu... |
/*
Copyright (c) 2009 <NAME> and <NAME>, University of Geneva
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 "psrs/macro.h"
#define PSRS_PSRS_ONLY
#include "psrs/psrs.h"
#undef PSRS_PSRS_ONLY
#include "psrs/convert.h"
#include "psrs/sort.h"
#include <errno.h>
#include <getopt.h> /* getopt_long() */
#include <inttypes.h> /* uintmax_t */
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <st... |
/* *INDENT-OFF* */
/*INDENT OFF*/
/* Description: snn - simple, fast interpolation of numbers to a string
*/
/******************************************************************************
* This software is covered by the zlib/libpng license.
* The zlib/libpng license is a recognized open source license by
* the Open ... |
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <curl/curl.h>
#include <sys/stat.h>
#include "cache/cache.h"
#include "vsb.h"
#include "vcl.h"
#include "helpers.h"
#include "remote.h"
static char *read_backup(VRT_CTX, remote_t *remote);
static char *read_path(VRT_CTX, remote_... |
#include <arch/task.h>
#include <arch/interrupt.h>
#include <arch/segment.h>
#include <xbook/syscall.h>
#include <xbook/trigger.h>
#include <xbook/vmspace.h>
#include <xbook/process.h>
#include <xbook/debug.h>
#include <string.h>
void __user_trap_frame_init(trap_frame_t *frame)
{
/* 数据段 */
frame->ds = frame->e... |
/*
* FSMC_ILI9341.h
*
* Created on: May 27, 2020
* Author: k-omura
*
* FSMC 16bit
*/
//List of includes
#include "main.h"
#include <stdio.h>
//LCD dimensions defines
#define ILI9341_WIDTH 240
#define ILI9341_HEIGHT 320
#define ILI9341_PIXEL_COUNT (ILI9341_WIDTH * ILI9341_HEIGHT)
//ILI9341 commands
#def... |
/**
* \file
*
* \brief SAM Temperature Sensor (TSENS) Driver
*
* Copyright (C) 2015 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 conditions are... |
/*
* SPDX-License-Identifier: MIT
* SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
*/
#pragma once
#include "util/types.h"
/* Oscillator calibration register values */
/*
* It is not confirmed on all devices, but most likely, that all calibration values have CLKDIV set to 0.
* It is then easy to divide and get... |
/*
* 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... |
/*
* GStreamer
*
* unit test for (audio) parser
*
* Copyright (C) 2008 Nokia Corporation. All rights reserved.
*
* Contact: <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Softw... |
/* adapted from https://github.com/dimok789/homebrew_launcher */
/****************************************************************************
*
* Copyright (C) 2015 Dimok
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published b... |
#include "game.h"
#include "config.h"
#include "field.h"
#include "piece.h"
#include <GLFW/glfw3.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct PieceTemplate pieceTemplates[7];
static inline void fillWalls(struct GameState *game) {
struct Tile *field = game->field;
for (int y = 0; y < FIELD... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <stdint.h>
#include <stddef.h>
#include <assert.h>
#include <fp16/bitcasts.h>... |
#include "crsf.h"
#include <stddef.h>
/* CRC8 implementation with polynom = x7+ x6+ x4+ x2+ x0 (0xD5) */
const uint8_t crc8tab[256] = {
0x00, 0xD5, 0x7F, 0xAA, 0xFE, 0x2B, 0x81, 0x54, 0x29, 0xFC, 0x56, 0x83, 0xD7, 0x02, 0xA8, 0x7D,
0x52, 0x87, 0x2D, 0xF8, 0xAC, 0x79, 0xD3, 0x06, 0x7B, 0xAE, 0x04, 0xD... |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*
*/
//
//
//
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include "common/cl/find_cl.h"
#include "common/cl/assert_cl.h"
#include "svg/svg_doc.h"
#include "svg... |
/*
* Written in 2013 by <NAME> <<EMAIL>>
*
* To the extent possible under law, the author(s) have dedicated
* all copyright and related and neighboring rights to this software
* to the public domain worldwide.
*
* This software is distributed without any warranty.
*
* You should have received a copy of the CC... |
/*
* COM1 NS16550 support
* based on u-boot source (drivers/serial/ns16550.c)
* which is itself based on:
* originally from linux source (arch/powerpc/boot/ns16550.c)
* modified to use CONFIG_SYS_ISA_MEM and new defines
*/
#include "ns16550.h"
#define UART_LCRVAL UART_LCR_8N1 /* 8 data, 1 stop, no parity */
#d... |
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#ifdef USE_LIBBATTERY
#include <libbattery/battery.h>
#else
#include <SDL2/SDL_power.h>
#endif
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include "atlas.h"
#include "draw.h"
#define CHARGING_SDL_VERSION "0.1.0"
#define UPTIME 5
void usage(char* appn... |
/**
* @file sniffer.c
* @author <NAME>, xkoval17 FIT
* @date 29.04.2020
* @brief Implementation of sniffer part of project
* @note Compiler: gcc 7.5
*/
#include "sniffer.h"
#include "errors.h"
int print_interfaces(){
pcap_if_t *alldevsp;
char errbuf[PCAP_ERRBUF_SIZE];
// finding the intefaces
if... |
/*! \file bcmtm_imm_egr_sp.c
*
* In-memory call back function for egress service pool.
*/
/*
* 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.
*/
#include <bcmdrd/bcmdr... |
/* testQuadraComposer() */
/* Rip_QuadraComposer() */
/* Depack_QuadraComposer() */
#include "globals.h"
#include "extern.h"
int16_t testQuadraComposer ( void )
{
/* test #1 */
if ( PW_i < 8 )
{
/*printf ( "#1 (PW_i:%ld)\n" , PW_i );*/
return BAD;
}
PW_Start_Address = PW_i-8;
/* test #2 "FORM" & "E... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include "entrada.h"
#define TAMANIO_INICIAL_BUFFER 20
#define FIN_LINEA '\n'
#define FIN_STRING '\0'
#define TAM_INICIAL_PARAMETROS 10
#define ARG_DELIM "\a\b\r\n \r\v\t\f"
/* *************************************************************... |
/*
* ToRT - Tetris device with toy-grade OSEK/VDX-inspired RTOS
*
* os.c: Operating system
*
* Copyright (c) 2019, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2016 MediaTek Inc.
* Author: <NAME> <<EMAIL>>
*/
#include "mtk_vcodec_drv.h"
#include "mtk_vcodec_util.h"
#include "vdec_ipi_msg.h"
#include "vdec_vpu_if.h"
#include "mtk_vcodec_fw.h"
static void handle_init_ack_msg(const struct vdec_vpu_ipi_init_ack *msg)
{
... |
/*
* Copyright (c) 2016-2017, <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,
* thislist of conditions ... |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <vga.h>
#include <vgamouse.h>
#include <sys/fcntl.h>
#include <stdint.h>
int mode = G1024x768x64K;
uint32_t mag_glass_bits[] = {
0x3f8, 0x60c, 0x9e2, 0x1a13, 0x1401, 0x1401, 0x1001, 0x1001,
0x1001, 0x1003, 0x1802, 0x340c, 0x6ff8, 0xd8... |
#include "Core_Main.h"
#include "shim/gb_shim.h"
#include <string.h>
#include <stdlib.h> // GBSA - rand.h
#ifdef __GBA__
#include <tonc_memmap.h>
#endif
#include "Actor.h"
#include "BankManager.h"
#include "Camera.h"
#include "DataManager.h"
#include "FadeManager.h"
#include "GameTime.h"
#include "Input.h"
#include ... |
/* smlchol.c: small matrix library Cholesky decomposition */
/**********************************************************/
#include <float.h>
#include <math.h>
#include "smlcomp.h"
/************************************************************/
/*----------------------------------------------*/
int MatC... |
/*
* hisi_ddr_secprotect.c
*
* Hisilicon DDR TEST driver (master only).
*
* Copyright (c) 2012-2019 Huawei Technologies Co., Ltd.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modi... |
//
// PBCAdjust.c
// DataAnalysis
//
// Created by <NAME> on 4/16/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#include "Analysis.h"
static void SaveGRO(FILE *saveFile);
static void SaveGROMono(FILE *saveFile);
void AdjustPBC(int id)
{
int dim = 3, step = 1;
long frameCount, totalFrame;
... |
#include "VTSPS2-CRCGS.h"
u64 White, Black, BlackFont, WhiteFont, RedFont, GreenFont, BlueFont, BlueTrans, RedTrans, GreenTrans, WhiteTrans;
u64 TealFont, YellowFont;
GSGLOBAL *gsGlobal;
//GSFONT *gsFont;
GSFONTM *gsFontM;
//thx sp193
void ResetIOP()
{
SifInitRpc(0);
while(!SifIopReset("", 0)){};
while(!SifIopSyn... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "adr.h"
struct input_parameters parse_command_line_parameters (int argc, char *argv[]) {
struct input_parameters parameters;
unsigned short int i;
_Bool input_file_read;
FILE *temp_file;
char *input_string;
// Allocate memory ... |
#include<stdio.h>
#include<malloc.h>
#include<math.h>
int prod_array_i(int *array, int length) {
int result = 1;
int i;
for (i = 0; i < length; i++) {
result *= array[i];
}
return result;
}
int sum_array_i(int *array, int length) {
int result = 0;
int i;
for (i = 0; i < lengt... |
/**
* form-file-decoder
* (c) 2014 <NAME>
* 2-clause BSD license
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <errno.h>
#include <unistd.h>
#include <assert.h>
#include <getopt.h>
const int not_reached = 0;
int file_no = 0;
int list_only = 0;
const char* output_dir... |
/// \defgroup ConfigParsers Config parsers
///
/// The \ref ConfigParsers make use of the \ref Config to setup the config variables,
/// the command line parsers also build the playlist.
///@{
/// \file
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <ctype... |
/*
*
* Copyright (c) International Business Machines Corp., 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
* (at your option) any l... |
/* cmd-config - config dump tool, mainly for debugging */
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include "ch.h"
#include "hal.h"
#include "led.h"
#include "shell.h"
#include "datetime.h"
#include "orchard-app.h"
#include "userconfig.h"
#include "badge.h"
#include "unlocks.h"
/* This is defi... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 - 2018 CNES
*
* 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... |
/*
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... |
/*
** Zabbix
** Copyright (C) 2001-2021 Zabbix SIA
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
**... |
#include <tile.h>
/*
* ==========================================================================
*
* SURFACE FUNCTIONS
*
* ==========================================================================
*/
TlSurface *tlNewSurface(TlEntity *ent) {
TlSurface *surf;
surf = tlAllocStruct(TlSurface);
... |
/* This file is part of the YAZ toolkit.
* Copyright (C) <NAME>
* See the file LICENSE for details.
*/
/**
* \file url.c
* \brief URL fetch utility
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <yaz/url.h>
#include <yaz/comstack.h>
#include <yaz/log.h>
#include <yaz/wrbuf.h>
#include <yaz/cookie.h>
#i... |
/*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* 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 requir... |
/*
* Copyright 2016 Sigma Designs, 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 required by applicable law or ag... |
/*
* strongswan_debug.c
*
* Author: <NAME>
*/
#include "strongswan_debug.h"
#include "android_log_utils.h"
typedef struct {
mem_cred_t public_if;
void *lock;
linked_list_t *trusted;
linked_list_t *untrusted;
linked_list_t *keys;
linked_list_t *shared;
linked_list_t *cdps;
} __printer_mem_cred_t;
typ... |
/* USB 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.
*/
// DESCRIPTION:
// This exam... |
/* Mulator - An extensible {e,si}mulator
* Copyright 2011-2020 <NAME> <<EMAIL>>
*
* Licensed under either of the Apache License, Version 2.0
* or the MIT license, at your option.
*/
#include <unistd.h>
#include "m3_prc.h"
#include "memmap.h"
#include "cpu/periph.h"
#include "cpu/core.h"
#include "core/state_s... |
/* ThreadMain.cu */
/******************************************************************************/
/* */
/* The content of ThreadMain() are essentially the same as main() in the */
/* original program utrwt69. The particle is inserted a... |
#pragma once
#include <stdint.h>
#include <stdio.h>
#include <xil_types.h>
typedef struct {
uint8_t device_id_reg;
uint8_t reserved1_reg;
uint8_t reserved2_reg;
uint8_t reserved3_reg;
uint8_t reserved4_reg;
uint8_t reserved5_reg;
uint8_t reserved6_reg;
uint8_t reserved7_reg;
uint8... |
/**
* \file
* \brief user-space core booting.
*/
/*
* Copyright (c) 2016, 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, Universitaetsstrasse 6, CH-8092 Zurich... |
/*
* Copyright 1996-2019 Cyberbotics Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
/*
* screen.c
* Copyright © 2008, 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 ab... |
/* license: public domain
* Implementation of SHA1 hash function.
* Original author: <NAME> <<EMAIL>>
* Contributions by: <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>
* Modified by WaterJuice retaining Public Domain license */
#include <stdio.h>
#include <memory.h... |
/* Example code for starting
* 2 threads and synchronizing
* their operation using a message_queue.
*
* All code provided is as is
* and not completely tested
*
* Author: <NAME>
* Date: 6/1/2016
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <signal.h>
#include <util/util.h>
#includ... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <vic411_vicNl.h>
static char vcid[] = "$Id: calc_air_temperature.c,v 4.2 2006/10/31 01:18:42 vicadmin Exp $";
/****************************************************************************
Subroutines developed by <NAME> to estimate the daily temperat... |
/*
* Copyright (C) 2017 by <NAME> (<EMAIL>)
*
* Released under the MIT license, see LICENSE.txt
*/
#include <htslib/vcf.h>
#include "htsIntegration.h"
/*
* Functions for reference prior probabilities
*/
stReferencePriorProbs *stReferencePriorProbs_constructEmptyProfile(char *referenceName,
int64_t refe... |
/* $NetBSD: vax.c,v 1.18 2014/11/13 16:02:25 christos Exp $ */
/*-
* Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* This code is derived from software contributed to The NetBSD Foundation
*... |
#include "glide_helpers.h"
#include <glide.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
void errorCallback(const char *string, FxBool fatal){
printf("Glide %s: %s", fatal ? "error" : "warning", string);
}
int findResolution(GrResolution* screen){
FxI32 listSize = grQueryResolutions(screen, NULL);
... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "minig.h"
struct {
float x1, y1;
} dsgd;
float ds_lwfact = 0.0f;
/* ======================================================================= */
int stroke(float x, float y, char move_flag)
{
extern int vect(float, float);
extern int pspot(floa... |
#include <feldbus/protocol/turag_feldbus_fuer_stellantriebe.h>
#include "feldbus_stellantriebe.h"
#include <string.h>
#ifndef TURAG_FELDBUS_STELLANTRIEBE_STRUCTURED_OUTPUT_BUFFER_SIZE
# error TURAG_FELDBUS_STELLANTRIEBE_STRUCTURED_OUTPUT_BUFFER_SIZE must be defined
#endif
static feldbus_stellantriebe_command_t*... |
#include "camera.h"
struct Camera* camera_create(double pos[], double rot[], int res[],
double fov, double focal_length, double light[]) {
bool success = true;
struct Camera* C = malloc(sizeof(struct Camera));
camera_set_slow(C, false);
camera_set_position(C, pos, rot);
... |
/*
* g2cmos.c:
*
* Copyright (c) 2004 Guralp Systems Limited
* Author <NAME>, contact <<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 ... |
#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... |
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include <windows.h>
#include <stdlib.h>
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t... |
/*
Copyright (c) 2012-2013 <NAME> 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 limitation
the rights to use, cop... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.