text stringlengths 3.12k 18.7k |
|---|
/* $XConsortium: fax.h,v 1.5 94/04/17 20:34:59 rws Exp $ */
/**** module fax.h ****/
/******************************************************************************
Copyright (c) 1993, 1994 X Consortium
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated docum... |
/*
* Copyright (c) 2009-2018 <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, publis... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "../include/game/units_actions.h"
#include "../include/game/game.h"
#include "../include/game/structures_init.h"
#include <SDL2/SDL.h>
#include <SDL2/SDL_mixer.h>
int checkMap(struct game game, coord pos){
//Iterates all game ob... |
/*
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
/* vi: set sw=4 ts=4: */
/*
* Based on shasum from http://www.netsw.org/crypto/hash/
* Majorly hacked up to use Dr Brian Gladman's sha1 code
*
* Copyright (C) 2002 Dr <NAME> <<EMAIL>>, Worcester, UK.
* Copyright (C) 2003 <NAME>
* Copyright (C) 2003 <NAME>
*
* Licensed under GPLv2 or later, see file LICENSE... |
/*
This work is licensed under the:
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
To view a copy of this license, visit:
http://creativecommons.org/licenses/by-nc-sa/4.0/
or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
License su... |
/*
* main.c - servicepack flashing example
*
* Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source cod... |
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <strings.h>
#include <poll.h>
#include <errno.h>
#include <setjmp.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/sctp.h>
#... |
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include "../src/jfdb.h"
#include "../src/repl.h"
#define pinfo(fmt, ...) fprintf(stderr, fmt"\n", ##__VA_ARGS__)
#define pwarn(fmt, ...) fprintf(stderr, fmt"\n", ##__VA_ARGS__)
static JFT_Symbol null = 0;
static void print_meta(JFDB *db) {
JFDB_CheckPoint... |
/* MULTI-THREAD SIMULATED ANNEALING
DEVELOPED FOR (PLEASE, CITE AS SUCH):
Vales et al., "A parallel optimization approach for controlling allele diversity in conservation schemes,"
Mathematical Biosciences, Volume 183, Issue 2, June 2003, Pages 161-173.
This implementation uses a loose temperature control, ... |
// inject_dylib, https://github.com/stephank/inject_dylib
// Copyright (c) 2015 <NAME>
// See the README.md for license details.
#include "indy_private.h"
#include <mach/mach.h>
#include <mach-o/loader.h>
#include <mach-o/nlist.h>
// dyld rejects dylibs smaller than this.
#define MIN_MACH_O_SIZE 4096
// Target arch... |
/*
omprun wrapper script for running OpenMP programs.
Copyright (C) 2011 University of Houston.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the... |
/*
* Copyright (C) 2019 HAW Hamburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @{
*
* @file
* @author <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <string.h>
#include "... |
/*
* This is an example of CANopenNode library running on STM32H735G-DK board
* It features STM32H735 MCU with FDCAN peripheral
*
* It runs super loop with most essential CANopenNode components configured
*
* Example was prepared and is maintained by: <NAME> <<EMAIL>>
*/
#include "main.h"
#include "comm.h"
#incl... |
#include "mod_mshield.h"
/*
* This code will fail miserably with a multithreaded MPM.
* It will also fail occasionally with a multiprocess MPM.
* XXX Introduce a mutex for SHM synchronization.
*/
static apr_shm_t *cs_shm = NULL;
static apr_shm_t *cs_shm_cookiestore = NULL;
static session_data_t *sessions;
static ... |
/* 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... |
//Copyright © 2011- Kohei-tofu. All rights reserved.
//koheitech001 [at] gmail.com
#include <stdio.h>
#include <stdlib.h>
#include "KalmanSmoother.h"
///
/// functions for kalman smoother
///
_stKalmanSmoothing* fKalmanSmoothing_New(int measure, int state);
int fKalmanSmoothing_Initialize(_stKalmanSmoothing* This);
i... |
#include "mangusta_private.h"
APR_DECLARE(char *) apr_lowercase(apr_pool_t * pool, const char *in) {
char *out, *t;
if (zstr(in)) {
return NULL;
}
out = apr_pstrdup(pool, in);
for (t = out; *t; ++t) {
*t = apr_tolower(*t);
}
return out;
}
#ifndef strnstr
char *strnstr(... |
/* DeepParse is distributed under BSD license reproduced below. */
/* Copyright (c) 2014 Idiap Research Institute, http://www.idiap.ch/ */
/* Written by <NAME> <<EMAIL>> */
/* Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
ar... |
#define SAVE_STREAMS
// simple ASF header display program by A'rpi/ESP-team
// .asf fileformat docs from http://divx.euro.ru
#include <stdio.h>
#include <stdlib.h>
typedef struct __attribute__((packed))
{
long biSize; // sizeof(BITMAPINFOHEADER)
long biWidth;
long biHeight;
shor... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <string.h>
#include "game.h"
#include "./utils/matrix/matrix.h"
#include "./utils/menu/menu.h"
#include "./utils/player/player.h"
#include "./utils/tetraminoes/tetraminoes.h"
#include "./utils/cpu/cpu.h"
#include "./utils/utils.h"
#... |
/******************************************************************************
*
* PROJECT: Carnegie Mellon Planetary Rover Project
* Task Control Architecture
*
* (c) Copyright 1991 <NAME> and <NAME>. All rights reserved.
*
* MODULE: idTable
*
* FILE: idtable.h
*
* ABSTRACT:
*
* Generic dyn... |
/*
* Copyright (c) 2014, Ericsson AB. All rights reserved.
* 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... |
/*
* Copyright (c) 2022 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <stdlib.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#else
#define SG_SCSI_STRINGS 1
#endif
#inc... |
#include "reader.h"
void handleArgs(int argc, char** argv, int* clientIdFrom, int* clientIdTo, char** commonDirName, char** mirrorDirName, int* bufferSize, char** logFileName) {
// validate argument count
if (argc != 7) {
printErrorLnExit("Invalid arguments. Exiting...");
}
// assume that all ... |
#define GPIO_MODE ((uint32_t)0x00000003)
#define EXTI_MODE ((uint32_t)0x10000000)
#define GPIO_MODE_IT ((uint32_t)0x00010000)
#define GPIO_MODE_EVT ((uint32_t)0x00020000)
#define RISING_EDGE ((uint32_t)0x00100000)
#define FALLING_EDGE ((uint32_t)0x0020000... |
/*
* Copyright (c) 2019 <NAME> <<EMAIL>>
*
* SDL2 Keyboard Driver
* based on original SDL port by <NAME>
*/
#include <string.h>
#include <stdio.h>
#include "device.h"
#include <SDL2/SDL.h>
static int kbdsdl_Open(KBDDEVICE *pkd);
static void kbdsdl_Close(void);
static void kbdsdl_GetModifierInfo(MWKEYMOD *modifie... |
/* -*- mode: C; mode: folding; fill-column: 70; -*- */
/* Copyright 2010, Georgia Institute of Technology, USA. */
/* See COPYING for license. */
#define _FILE_OFFSET_BITS 64
#define _THREAD_SAFE
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include "../compat.h"
#... |
#include "types.h"
#include "utils.h"
#include "sbl.h"
#include "aboot.h"
#include "text.h"
#include "gpio.h"
#include "tinyprintf.h"
#include <string.h>
#include "elf.h"
void bootlog_replace(char* str)
{
printf("%s\n", str);
sbl_sleep_us(100000);
}
uint32_t __attribute__ ((naked)) __attribute__ ((target ("a... |
// Copyright 2018-2019 Espressif Systems (Shanghai) PTE 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 app... |
#include "shell.h"
#include "utils.h"
#include "history.h"
#include "external.h"
#include "process.h"
#include "signals.h"
void init() {
// initialise everything here
home_dir = get_home_dir();
user_name = getlogin(); // Statically declared. Don't free() this
host_name = (char*)malloc(sizeof(char) *... |
/*
Purely tty tetris
Author: <NAME>
Copyright 2021
*/
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <termios.h>
#include <fcntl.h>
#define FIELD_XSZ 10
#define FIELD_YSZ 24
#define TIME_STEP 1000
#define TICKS_TO_STEP 1000
typedef struct {
ch... |
/*
* util.c - utility functions for rssh
*
* Copyright 2003-2006 <NAME> ( code at pizzashack dot org ).
*
* This program is licensed under a BSD-style license, as follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
/*
* ISC License
*
* Copyright (C) 1990-2018 by
* <NAME>
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 appea... |
/* repartition 1.15 - Load a partition table Author: <NAME>
* 30 Nov 1991
*/
#define nil 0
#include <stdio.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <minix/config.h>
#include <minix/const.h>
#include <minix/partition.h>
#include <ibm/pa... |
#include "mbo_convolution.h"
#include <assert.h>
#include <time.h>
#include "memory_allocation.h"
//randomly shuffles an array of integers
void shuffle(int *array, size_t n) {
if (n > 1) {
size_t i;
for (i = n - 1; i > 0; i--) {
size_t j = (unsigned int) (drand48()*(i+1));
... |
// SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2018 IBM Corp.
#define _GNU_SOURCE
#include "backend.h"
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <inttypes.h>
#include <limits.h>
#include <mtd/mtd-abi.h>
#include <poll.h>
#include <signal.h>
#include <stdbool.h>
#i... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef enum
{
REGEX_MODE_NORMAL,
REGEX_MODE_BEGIN,
REGEX_MODE_END
} regex_mode;
static int hook = 0;
static regex_mode mode = REGEX_MODE_NORMAL;
int handle_dot(char *string1, char *string2)
{
if (strlen(string1) > 1 && strlen(string2) > 1)
... |
/**
@file symbols/symbols.c
@brief Symbol table
Symbols are kept in a tree structure. The left and right pointers point to
"siblings" and the child pointer points to symbols that the current name
"owns". This is used to help resolve whether a symbol is "in scope" or not.
The symbol t... |
/*
* RFM96.c
*
*/
/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "RFM96.h"
#include <string.h>
/* Private define ------------------------------------------------------------*/
/* Private variables --------------------------------------------------------... |
/*****************************************************************************
Project Name : MDP - Microprocessor Development Project
Project Code : HD083D
Created : 07-Nov-2019
Filename : uart.c
Purpose : UART Firmware
Description : UART Firmware
Author(s) : <NAME>
Email : <EMAIL>
See L... |
/* -*- C -*- */
/*
* Copyright (c) 2015-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... |
/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.0.0
* svn version: exported
* Options: --check-global -s 1487
* Seed: 1487
*/
#include "random_runtime.h"
long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
const uint32_t g_12 = -2L;
int32_t g_14... |
/*****************************************************************
(C)Septiembre 2021
EQUIPO: <NAME>
INTEGRANTES DEL EQUIPO:
<NAME>
<NAME>
<NAME>
<NAME>
VERSIÓN: 1.0
DESCRIPCIÓN: Implementación del algoritmo de quick sort. Mide el tiempo de ejecución del algoritmo. Se toman los valores de entrada del archivo .t... |
// 0x07009078 - 0x07009168
static const Vtx bitdw_seg7_vertex_07009078[] = {
{{{ 39, 178, -60}, 0, { 794, 0}, {0xe4, 0xff, 0xff, 0xff}}},
{{{ -37, 178, -60}, 0, { 204, 0}, {0xe4, 0xff, 0xff, 0xff}}},
{{{ 0, 256, 0}, 0, { 494, 476}, {0xe4, 0xff, 0xff, 0xff}}},
... |
/* 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... |
/* $Id: plog.c,v 1.16 2008/02/06 05:49:40 mk Exp $ */
/*
* Copyright (C) 2003 WIDE Project.
* 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 retai... |
/*
* Copyright (c) 2015-2018 Qualcomm Technologies, Inc.
* 2015-2016 Qualcomm Atheros, Inc.
* All Rights Reserved.
*/
// Copyright (c) 2018 Qualcomm Technologies, Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitation... |
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <stdint.h>
#include <libdragon.h>
#include <stdlib.h>
#include <math.h>
#include "system.c"
#include "controls.c"
// SYSTEM
static sprite_t *graph[19]; // sprites
static display_context_t disp = 0; // screen
char tStr[32]; // text
// INTERNAL FUNCTI... |
#include <stdio.h>
#include "bitboard.h"
#include "bitbase.h"
/** Piece code for printing the board **/
const char *pieceCode[TOTAL_COLOR] =
{
"PNKBRQ", /* Capital letters for white */
"pnkbrq" ... |
#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... |
/**
* @copyright
*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright(C) 2018 - 2021 THL A29 Limited, a Tencent company.All rights reserved.
*
* Licensed under the MIT License(the "License"); you may not use this file except in
* compliance with the License. You ma... |
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <string.h>
#include <arpa/inet.h>
#include <assert.h>
#include "tf_netsec.h"
#include "tf_cal.h"
#include "tf_pkcs7.h"
void dump_hex( uint8_t* hex, uint32_t cnt );
int load_hex( char... |
/** \file src/lib/ad9361_hal_linux.c
* \brief Linux/POSIX HAL implementation
* \copyright Copyright 2013,2014 Silver Bullet Technology
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may o... |
#include "../include/stdio.h"
#include "../include/stdlib.h"
typedef struct hash_entry {
unsigned int key;
void *entry;
struct hash_entry *next;
} *HashEntry;
typedef struct hash {
HashEntry *array;
int (*mapfunc)(unsigned int);
int size;
} *Hash;
Hash MakeHash(int size, int (*map)(unsigned int));
v... |
#include "filesys.h"
#include "lib.h"
#include "types.h"
/*
* read_dentry_by_name
* DESCRIPTION: find the data entry by name and return data entry as with the file name,
* file type, and inode number for the file,
* INPUTS: fname-- pointer to a string as a character(int) array
* OUTPUTS: dent... |
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <curl/curl.h>
#define CRYPTOLENS_COMPILING
#include "cryptolens/error.h"
#include "cryptolens/request_handler.h"
static char const BASE_URL[] = "https://app.cryptolens.io/";
struct cryptolens_RH {
CURL *curl;
};
struct cryptolens_RHP_builder {
... |
#include <application.h>
#include "qrcodegen.h"
#define BATTERY_UPDATE_INTERVAL (60 * 60 * 1000)
// LED instance
twr_led_t led;
// GFX instance
twr_gfx_t *gfx;
// LCD buttons instance
twr_button_t button_left;
twr_button_t button_right;
// QR code variables
char qr_code[150];
char ssid[32];
char password[64];
s... |
/******************************************************************************
** Copyright (c) 2016-2017, Intel Corporation **
** All rights reserved. **
** ... |
/*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright 2019-2021, <NAME> <<EMAIL>>
*/
#include <getopt.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "parse.h"
#include "utils.h"
static const struct option opts[] = {
{"show", no_argument, NULL... |
/* cdwMissingAnalysis - Find fastq files that seem to be missing analysis.. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "jksql.h"
#include "cdwLib.h"
#include "portable.h"
void usage()
/* Explain usage and exit. */
{
errAbort(
"cdwMissingAnalysis - Find fastq files th... |
/***********************************************************************
* *
* $Id: hpgspe.c 347 2006-09-21 09:36:01Z softadm $
* *
* hpgs - HPGl Script, a hpgl/2 interpreter, whic... |
/*
* Single-threaded TCP server with async I/O
*
* Author: <NAME>
* Date: 11 October 2019
* Licence: MIT
*/
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <errno.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include... |
#include <err.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sha256.h>
#define HASH_LEN 64
#define PENDING_MAX 128
struct data {
char *saddr;
char *raddr;
long amount;
};
struct block {
struct data *data;
char hash[HASH_LEN + 1];
char prevhash[HAS... |
/*
* Copyright (C) 2013 by <NAME> <<EMAIL>>
* Copyright (C) 2017 by <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 optio... |
// SPDX-License-Identifier: MIT
#include "emulator.h"
#include "rtg.h"
#include <pthread.h>
#include <SDL2/SDL.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define RTG_INIT_ERR(a) { printf(a); *data->running = 0; }
uint8_t busy = 0, rtg_on = 0, rtg_initialize... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
// partical typedef
typedef struct {
double x_now,x_new,y_now,y_new;
double vx_now,vx_new,vy_now,vy_new;
double fx_now,fx_new,fy_now,fy_new;
int id;
} atom;
// things that should be in a header
int n;
double m=1;
double epsilon=1;... |
/*
* Copyright (c) 2018, GreenWaves Technologies, 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:
*
* o Redistributions of source code must retain the above copyright notice, this list... |
#include "gelasia_compact.h"
#define MOD(n,M) (((n % M) + M) % M)
typedef long long vlong;
typedef unsigned long long uvlong;
typedef unsigned char byte;
struct _gelasia_compacter{
int w_sign;
byte *seq;
int seq_size;
int seq_pos;
int numbers_count;
};
int get_size(vlong number,int added){
//get the size of a... |
/*-
* Copyright (c) 2015 <NAME> <<EMAIL>>
* Copyright (c) 2016 <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. Redistributions of source code must retain the above ... |
/*
* pcap-compatible 802.11 packet sniffer
*
* Copyright (C) 2004 <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 2 of the License, or
* (at your option) a... |
/******** combine_files.c *****************/
/* MIMD version 7 */
/* Modifications ...
* 3/25/12 CD Created */
#include "file_combine_includes.h"
#include "qioxml_usqcd_ksprop_source.h"
#include "qioxml_usqcd_prop_source.h"
#include "../include/io_scidac_ks.h"
#include "../include/io_scidac_w.h"
#include "../includ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "signature.h"
/* This code is based on the _parse_signature code in ufunc_object.c in
NumPy source code. Edited to not rely on any NumPy dependency
*/
/* Code that parses a numpy-like gufunc signature and extracts
the logical description for it... |
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/* See LICENSE file for copyright and license details. */
#include "common.h"
struct response {
union {
struct {
uint8_t status;
uint8_t length_of_reason; /* Only used in Failed, and not in Authenticate */
uint16_t protocol_major_version; /* Not in Authenticate */
uint16_t protocol_minor_version; /* N... |
/*
UEMS - Universidade Estadual de Mato Grosso do Sul
Curso de Bacharelado em Ciência da Computação
Redes de Computadores
Trabalho T1 (Cliente)
Feito por <NAME>, RGM 24785.
*/
#define BARRA_PROGRESSO 0.001
#define FTP_BUFFER 450
#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <arpa/inet.h>
... |
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <libnsgif.h>
#include <sys/types.h>
#include <stdlib.h>
#include <gd.h>
#include "commons.h"
#include "gifthumb.h"
FILE *myfd;
unsigned char *dataframe;
unsigned char *... |
/* Copyright 2021 rate
*
* 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.
*
* This program is distributed in the h... |
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by WordPad.rc
//
#define IDR_SRVR_INPLACE 4
#define IDR_SRVR_EMBEDDED 5
#define IDR_CNTR_INPLACE 6
#define IDP_OLE_INIT_FAILED 100
#define IDP_FAILED_TO_CREATE 102
#defi... |
/****************************************************************************
* Included Files
****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <sys/time.h>
#include <nuttx/config.h>
#include <dnnrt/r... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* $Revision: 2 $
* $Date: 16/10/25 4:27p $
* @brief
* Change duty cycle of output waveform by configured period.
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Copyrig... |
/*
$RCSfile$
Copyright (C) 1996-1997 Id Software, Inc.
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.
This program i... |
/*
Copyright 2010 SourceGear, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
/*++
/* NAME
/* postcat 1
/* SUMMARY
/* show Postfix queue file contents
/* SYNOPSIS
/* \fBpostcat\fR [\fB-vq\fR] [\fB-c \fIconfig_dir\fR] [\fIfiles\fR...]
/* DESCRIPTION
/* The \fBpostcat\fR command prints the contents of the named
/* \fIfiles\fR in human-readable form. The files are expected
/* to be in Postfix queue... |
/* ----------------------------------------------------------------<Prolog>-
Name: sflmime.c
Title: MIME support functions
Package: Standard Function Library (SFL)
Written: 1996/03/28 iMatix SFL project team <<EMAIL>>
Revised: 2000/01/19
Copyright: Copyright (c) 1996-200... |
#include "common.h"
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <dlfcn.h>
#include <dirent.h>
#include <string.h>
#include "app_msgs.h"
struct sw *switches[MAX_OBJECTS] = {};
struct protocol *protocols[MAX_OBJECTS] = {};
struct comm *comm_mods[MAX_OBJECTS] = {};
struct cli *cli_mods[MAX_OBJECT... |
/******************************Module*Header*******************************\
* Module Name: TextOut.c
*
* Text
*
* Copyright (c) 1992 Microsoft Corporation
*
\**************************************************************************/
#include "driver.h"
BOOL vFastText(PDEV *, GLYPHPOS *, ULONG, PBYTE, ULO... |
/*
* ex: set tabstop=4 ai expandtab softtabstop=4 shiftwidth=4:
* -*- mode: c-basic-indent: 4; tab-width: 4; indent-tabls-mode: nil -*-
* $Id$
*/
/************************************************************************
* *
* ... |
#pragma config(Hubs, S1, HTServo, HTMotor, HTMotor, HTMotor)
#pragma config(Sensor, S1, , sensorI2CMuxController)
#pragma config(Sensor, S2, SeekerR, sensorHiTechnicIRSeeker1200)
#pragma config(Sensor, S3, HTSMUX, sensorI2CCustom)
#pragma config(Sensor, S4, SeekerL, ... |
/* gbircd.c - (C) 2013, <NAME>
* ircutils - irc utils
* See README for contact-, COPYING for license information. */
#if HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <time.h>
#include <errno.h>
#include <unistd.h>
#include <getopt... |
/* --------------------------------------------------------------------
Copyright (C) 2016 The Crown (i.e. Her Majesty the Queen in Right of Canada)
This file is an add-on to RAVE.
RAVE is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
... |
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include "utils_base64.h"
#include "utils_hmac.h"
#include "qcloud_iot_sdk_impl_internal.h"
#define MAX_SIZE_DATA 1024
#define MAX_SIZE_TOKEN 1024
#define DECODE_PSK_LENGTH 32
#define ADDRESS_SIZE 1
#define LENGTH_SIZE 2
#defi... |
/* _ _
** _ __ ___ ___ __| | ___ ___| | mod_ssl
** | '_ ` _ \ / _ \ / _` | / __/ __| | Apache Interface to OpenSSL
** | | | | | | (_) | (_| | \__ \__ \ | www.modssl.org
** |_| |_| |_|\___/ \__,_|___|___/___/_| ftp.modssl.org
** |_____|
** ssl_scache... |
/*
* Copyright 2021 Advanced Micro Devices, 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, m... |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "skiplist.h"
#include "thrtrie.h"
#include <assert.h>
int triealphasize=0;
int nnodes=0;
#define DEBUG 1
#define JQ_SIZE 1024
#include "mempage.c"
TJob* jobqueue=0;
int jqsize = 1;
int numjobs = 0;
void makeAlpha(char* alpha) {
int i;
int isin ... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include "evaluation_algorithms.h"
void run_algorithm(double (*results)[iterations], unsigned int dimensions,double (*func_ptr)(unsigned short (*pop)[dimensions])){
unsigned short pop[POPSIZE][dimensions] ;
double fitnesses[POPSIZE];
... |
/* NB: this is a subset of the routines in the CSPARSE package by
<NAME> et. al., for the full package please visit
http://www.cise.ufl.edu/research/sparse/CSparse/ */
#include "cs.h"
static void* csc_malloc(c_int n, c_int size) {
return c_malloc(n * size);
}
static void* csc_calloc(c_int n, c_int size) {
... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "kvec.h"
#include "minimap.h"
unsigned char seq_nt4_table[256] = {
0, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
4, 4,... |
/* Copyright (c) 2006, 2010, Oracle and/or its affiliates. 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 License.
This program is distributed in t... |
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <linux/videodev2.h>
#include <sys/select.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include "common.h"
#include "log.h"
#include "args.h"
#include "webcam.h"
#include "server.h"
#include "coda960.h"
#include "proto.h"
double st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.