text stringlengths 3.08k 10.5k |
|---|
/*! \brief test AT command library
* \author <NAME>
* \date 2018-04-29
* \email <EMAIL>
* */
#include <assert.h>
#include <ctype.h>
#include <signal.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <getopt.h>
#include <unistd.h>
#include <at/at_command.h>
#include <a... |
#pragma once
#include "serde-macros.h"
#include "serde.h"
// Name resolution
#define _SERDE_COMMANDER_COMMAND_TYPE_NAME(name) name##SCTypes
#define _SERDE_COMMANDER_MESSAGE_TYPE_NAME(name) name##SCMessage
#define _SERDE_COMMANDER_INTERFACE_NAME(name) name##SCInterface
// Code fragment generation
#defin... |
/*
* Copyright (c) 2007, 2008 University of Tsukuba
* 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 ... |
#include <stdio.h>
#include <SDL2/SDL.h>
#include <math.h>
#include "main.h"
#include "game.h"
static void surface_to_display( SDL_Surface *surface, GLuint *texture_handle )
{
/* perf: use glTexSubImage2D */
if ( *texture_handle ) {
glDeleteTextures( 1, texture_handle );
}
glGenTextures( 1,... |
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <ping_list.h>
#include <uttime.h>
void _add(ping_chunk* l, float interval);
void _destroy(ping_chunk* l);
void _add_chunk(chunk_list* cl, ping_chunk* chunk);
void _destroy_chunk_list(chunk_list* cl);
void _clear_chunk_list(chunk_list* cl);
float __mi... |
#define CHIP_SELECT_PIN BCM2835_SPI_CS0
#define CMD_START 0x80
#define CMD_12BIT 0x00
#define CMD_8BIT 0x04
#define CMD_DFR 0x00
#define CMD_POS_X (0x5 << 4)
#define CMD_POS_Y (0x1 << 4)
#define CMD_POS_Z1 (0x3 << 4)
#define CMD_POS_Z2 (0x4 << 4)
#define CMD_PWR 0x3
#define TFTGL_IGNORE_TOUCH (0x10)
static double r... |
///////////////////////////////////////////////////////////////
//Pyxie game engine
//
// Copyright <NAME> 2019. All rights reserved.
///////////////////////////////////////////////////////////////
#pragma once
typedef struct SceTouchPanelInfo {
int16_t minAaX; /*E Minimum Active Area X Pos */
int16_t mi... |
/* -*- tab-width : 2 -*- */
#include "opt.h"
#include "cmd-run.h"
#include "gend.h"
struct proc_opt internal;
DEF_SUBCMD(cmd_download) {
int argc=length(arg_);
int opt=argc>3?atoi(firsts(nthcdr(3,arg_))):0;
return argc>=3?
(1&opt?
0:
fprintf(opt?stdout:stderr,"Downloading %s\n",firsts(nthcdr(1,arg... |
#include "recorder.h"
#include <libavutil/time.h>
#include <SDL2/SDL_assert.h>
#include "compat.h"
#include "config.h"
#include "log.h"
static const AVRational SCRCPY_TIME_BASE = {1, 1000000}; // timestamps in us
static const AVOutputFormat *
find_muxer(const char *name) {
#ifdef SCRCPY_LAVF_HAS_NEW_MUXER_ITERATOR_... |
/*
* Copyright (c) 2018 Nordic Semiconductor ASA
* Copyright (c) 2015 Runtime Inc
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdlib.h>
#include <string.h>
#include "settings_test.h"
#include "settings_priv.h"
u8_t val8;
u64_t val64;
int test_get_called;
int test_set_called;
int test_commit_called;
in... |
/* Process AGP file */
/* Copyright (C) 2014 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "agp.h"
#include "agpFrag.h"
#include "agpGap.h"
#include "linefile.h"
#include "hash.h"
void agpAddAll(char *agpFile, struct... |
/*******************************************************************************
* Copyright (c) 2013-2021, <NAME> <<EMAIL>> *
* All rights reserved. *
* *
* This file is a ... |
/*
OmniMIDI, a fork of BASSMIDI Driver - Declarations
Thank you Kode54 for allowing me to fork your awesome driver.
*/
#pragma once
#include <wtypes.h>
#ifndef KDMAPI_ONLYSTRUCTS
#define KDMAPI(f) WINAPI f
#else
#define KDMAPI WINAPI
#endif
// Audio engines
#define AUDTOWAV 0
#define DSOUND_ENGINE 1
#define ASIO_EN... |
/*
* Copyright 2008 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
/*
* NaCl run time.
*/
#include <fcntl.h>
#include "native_client/src/shared/platform/nacl_check.h"
#include "native_client/src/shared/pl... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sys/types.h>
#include <magick/api.h>
#include <getopt.h>
typedef struct {
int verbose;
int width;
int height;
int interlaced;
float blur;
char** argv;
} config_t;
typedef struct {
Image *image;
Image *resizeImage;
... |
/*
* Copyright (c) 2018-present StackPath, LLC
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* cpu.c -- parse cpu lists, cpu masks, and cpu information from sysfs.
*/
#define _GNU_SOURCE
#include "cpu.h"
... |
/*
* threads.c: Thread handles
*
* Author:
* <NAME> (<EMAIL>)
*
* (C) 2002-2006 Ximian, Inc.
* Copyright 2003-2011 Novell, Inc (http://www.novell.com)
* Copyright 2011 Xamarin, Inc (http://www.xamarin.com)
*/
#include <config.h>
#include <stdio.h>
#include <glib.h>
#include <string.h>
#include <pthread.h>
#i... |
#include "SDL_nmix_file.h"
// this function is used for debug to analyse performance
// static int Fake_Sound_Decode(Sound_Sample* sample) {
// SDL_memset(sample->buffer, 0, sample->buffer_size);
// return sample->buffer_size;
// }
static void sdlsound_callback(void* userdata, void* _buffer, int buffer_size) ... |
/******************************************************************************
*
* Copyright (c) 2020 Intel.
*
* 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.apac... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
#include "stm8s.h"
#include "main.h"
#include "gpio.h"
#include "input.h"
#include "led.h"
#include "adc.h"
#define CH_MASK 0x0f // in ADC1->CSR
#define BAT_ADC_CHAN 2
#define LED_ADC_CHAN 4
#define LIGHT_ADC_CHAN 5
// global ambient light adc value
// ranges from 50 to 950
u16 lightAdc = 600;
void st... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/*
* libhugetlbfs - Easy use of Linux hugepages
* Copyright (C) 2005-2006 <NAME> & <NAME>, IBM Corporation.
* Copyright (C) 2006 <NAME> <<EMAIL>>
*
* This library 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 Softw... |
/* ESPRESSIF MIT License
*
* Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
*
* Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case,
* it is free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal... |
/******************************************************************************
* Copyright (c) 2014, <NAME>, <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:
* * Redistributions o... |
/******************************************************************************
* Copyright (c) Huawei Technologies Co., Ltd. 2020. All rights reserved.
* iSulad licensed under the Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan P... |
// parser.c
//
// <NAME>
//
// Oregon State University
// CS_344_001_W2019 Operating Systems 1
// Program 3: Smallsh
//
// This module contains constants, parameters, and functions related to
// prompting user's input commands and parsing them into smallsh.
#include "parser.h"
#include "builtins.h"
#include "utility.h... |
/*
Copyright (C) 1995-2001 Activision, Inc.
This library 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 2.1 of the License, or (at your option) any later version.
This library is distribu... |
#include <errno.h>
#include <fcntl.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/sysinfo.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
/*
syslog prefix
,
64 bit message sequence number
,
monotonic timestam... |
/*
* Copyright (C) 2002 <NAME> <<EMAIL>>
*
* This file is part of Libav.
*
* Libav 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 2.1 of the License, or (at your option) any la... |
/*
* myproxy_read_pass.c
*
* See myproxy_read_pass.h for documentation
*/
#include "myproxy_common.h" /* all needed headers included here */
/**********************************************************************
*
* Constants
*
*/
#define PROMPT "Enter MyProxy pass phrase:"
/*******************************... |
/**
* @file sched_queue.c
* @author <NAME> (<EMAIL>)
* @brief Queue for QNode type datatype
* @version 1.0
* @date 2020-04-05
*
* @copyright Copyright (c) 2020
*
*/
#include<stdio.h>
#include<stdlib.h>
/**
* @brief A linked list (LL) node to store a task_id and their deadline.
*
*
*/
struct QNode {
... |
#include <math.h>
#include <stddef.h>
#include <string.h>
#include "doubleheap.h"
#include "hazenquantile.h"
#include "imalloc.h"
#include "onlinequantile.h"
/* Quantile-computation type. */
struct onlinequantile {
/* Elements > the current quantile point. */
struct doubleheap * larger;
/* Elements <= the curren... |
/*
* Copyright (c) 2020, Lawrence Livermore National Security, LLC.
* Produced at the Lawrence Livermore National Laboratory.
*
* Copyright 2020, UT-Battelle, LLC.
*
* LLNL-CODE-741539
* All rights reserved.
*
* This is the license for UnifyFS.
* For details, see https://github.com/LLNL/UnifyFS.
* Please rea... |
/*
* Copyright (c) 2006-2013 <NAME> <<EMAIL>>
*
* Department of Computer Sciences, www.cs.uni-salzburg.at
* University of Salzburg, www.uni-salzburg.at
*
*/
/*
* 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
* ... |
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include <signal.h>
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/time.h>
#include <stdlib.h>
#include <memory.h>
#include <errno.h>
#define MAXBUFSIZE 100
#define FILEMAXSIZE 2000
ch... |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... |
/* $FreeBSD: soc2013/dpl/head/tools/diag/dumpvfscache/dumpvfscache.c 88841 2002-01-02 06:25:39Z kbyanc $ */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <kvm.h>
#include <nlist.h>
#include <sysexits.h>
#include <sys/uio.h>
#include <sys/namei.h>
#include <sys/param.h>
#include ... |
/*
* Copyright (C) 2017 Red Hat, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* GnuTLS 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 opt... |
/*
****************************************************************************************
*
* @file pwm_test.c
*
* @brief PWM test functions
*
* Copyright (C) 2012. Dialog Semiconductor Ltd, unpublished work. This computer
* program includes Confidential, Proprietary Information and is a Trade Secret of
... |
/**
* @brief self-test and example code for liboauth using
* HTTP Authorization header.
* @file oauthtest.c
* @author <NAME> <<EMAIL>>
*
* Copyright 2010, 2011 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated docume... |
/**
* \file
* \brief Barrelfish library initialization.
*/
/*
* Copyright (c) 2007-2016, ETH Zurich.
* Copyright (c) 2014, HP Labs.
* 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... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <complex.h>
#include <fftw3.h>
#include <mpi.h>
fftw_complex *deri_temp_x, *deri_temp_y, *deri_temp_z;
fftw_plan plan_forward_x, plan_backward_x, plan_forward_y, plan_backward_y, plan_forward_z, plan_backward_z;
void init_derivatives(double *func, do... |
/******************************************************************************
* Copyright (C) 2017 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/****************************************************************... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2014 Intel Corporation. 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 noti... |
/**
******************************************************************************
* File Name : pid_regulator.c
* Description : PID函数
* Author :林炳辉
******************************************************************************
*
* Copyright (c) 2017 Team TPP-Shanghai Jiao Tong University
* ... |
#include "player.h"
#include <SDL2/SDL_image.h>
#define SDL_PLATFORMER_PLAYER_MAX_VX 4.5
#define SDL_PLATFORMER_PLAYER_MAX_AX 0.5
#define SDL_PLATFORMER_PLAYER_MAX_VY 9.0
#define SDL_PLATFORMER_PLAYER_MAX_AY 18.0
#define SDL_PLATFORMER_PLAYER_GRAVITY_AY 3.0
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b... |
/*
* This file is part of RGBDS.
*
* Copyright (c) 2013-2018, stag019 and RGBDS contributors.
*
* SPDX-License-Identifier: MIT
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "gfx/main.h"
void transpose_tiles(struct GBImage *gb, int width)
{
uint8_t *newdata;
int i;
int newbyte;
new... |
/*
This file is part of GNUnet.
Copyright (C) 2001, 2002, 2003, 2004, 2006 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License,
... |
/* AUTORIGHTS
Copyright (C) 2007 Princeton University
This file is part of Ferret Toolkit.
Ferret Toolkit 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, or (at your option)
any later ver... |
#include "main.h"
#include "usb_descriptor.h"
#include "usb_interface.h"
#include <stm32f7508_discovery_qspi.h>
#include <stm32f7xx.h>
#include <stm32f7xx_hal_pwr_ex.h>
#include <usbd_cdc.h>
USBD_HandleTypeDef USB_DEVICE;
LedState LED_STATE = {
.last_toggle_tick = 0,
.mode = LED_DISABLED,
};
static void init... |
/*
* Copyright 2015, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
#include <stddef.h>
#include <string.h>
#include <include/printk.h>
#include <include/proto.h>
#include <include/glo.h>
#include <include/fat32.h>
#include <include/ext2.h>
#include <include/vfs.h>
#include <include/MBR.h>
#include <include/GPT.h>
#include "arch/amd64/include/device.h"
#include "arch/amd64/include/id... |
/*
* Copyright (c) 2018 Qualcomm Technologies, 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 limitations in the disclaimer below)
// provided t... |
#include "bfs.h"
#include <string.h>
#include <unistd.h>
#ifdef GEM5_HARNESS
#include "gem5/gem5_harness.h"
#endif
int INPUT_SIZE = sizeof(struct bench_args_t);
void run_benchmark( void *vargs ) {
struct bench_args_t *args = (struct bench_args_t *)vargs;
node_t* host_nodes = malloc_aligned_memcpy(&args->nodes, s... |
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <errno.h>
#include "tiny_dns.h"
void hexdump(const char *label, const void *data, size_t len) {
const uint8_t *buf = data;
printf("%s\n... |
//compile with
//gcc -o solver solver.c equihash_avx2.o
//
//./solver
//sha256sum out2.bin
//Expected result with default input.bin (beta1 testnet block 2),
//257d3c3250c14978614ac169edcf72bd131a2e4c227c8d7e21a2cd6131a13dda out2.bin
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#incl... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* (C) 2012 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
/*
* Tests that basic optimizations are performed on vector of vector datatypes.
* As the "leaf" element is a large block (when properly optimized), the
... |
/*
* Copyright (c) 2015 <NAME>
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <lk/err.h>
#include <lib/bio.h>
#include <lib/fs.h>
#include <lk/trace.h>
#include <lk/debug.h>
#include <malloc.h>
#includ... |
/*********************************************************************
Blosc - Blocked Shuffling and Compression Library
Copyright (C) 2021 The Blosc Developers <<EMAIL>>
https://blosc.org
License: BSD 3-Clause (see LICENSE.txt)
See LICENSE.txt for details about copyright and rights to use.
... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/*
CZ:
1. Stáhněte si kód do nového projektu, spusťte ho a prostudujte.
2. Definujte matici celých čísel o velikosti 100 ×100. Vyplňte ji náhodnými čísly a vytiskněte ji.
3. Napište funkci, která z obdélníkové matice n×m vrátí její aritmetický průměr. Aplikujte... |
/*
LPCUSB, an USB device driver for LPC microcontrollers
Copyright (C) 2006 <NAME> (<EMAIL>)
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... |
/* Alles RevB power system driver
Copyright (c) 2021 Blinkinlabs
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
... |
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <sys/iofunc.h>
#include <sys/dispatch.h>
#include <sys/neutrino.h>
#include <sys/slog2.h>
#include <sys/resmgr.h>
#include <process.h>
#include <sched.h>
#include <pthread.h>
/*namespace and ipc*/
#define ATTACH_... |
/*
EmbeddedGUI Library version 0.4.2
Copyright (C) 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... |
#include "mempool.h"
#include <stdlib.h>
#include <stdio.h>
#define scl_mymalloc malloc
#define acl_myfree free
#define acl_msg_warn printf
typedef struct SCL_DBUF {
struct SCL_DBUF *next;
short used;
short keep;
size_t size;
char *addr;
char buf[1];//这只是个编程技巧,表示实际用于分配给用户的内存开始位置
} SCL_DBUF;
typedef struc... |
/*-
* Copyright (c) 2012 <NAME>. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions ... |
/*
* Windows backend common header for libusb 1.0
*
* This file brings together header code common between
* the desktop Windows and Windows CE backends.
* Copyright © 2012-2013 RealVNC Ltd.
* Copyright © 2009-2012 <NAME> <<EMAIL>>
* With contributions from <NAME>, <NAME> et al.
* Parts of this code adapted fro... |
#include <stdint.h>
#include <stdbool.h>
#include <pqc/pqc.h>
#include <cpuinfo_x86.h>
#include <common/utils.h>
#include "schemes.h"
// not proud of this thingy
#define OPT_VERSION _CLEAN_
// Returns prefix defined by PQClean, depending
// on OPT_VERSION setting.
// Something like: "PQCLEAN_KYBER512_CLEAN_"
#define... |
/*
* SPDX-FileCopyrightText: 2021-2022 Comcast Cable Communications Management, LLC
*
* SPDX-License-Identifier: MIT
*/
#include <CUnit/Basic.h>
#include <curl/curl.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../src/internal.h"
#include "../src/ws.h"
#include "../sr... |
/**
* @file jack_src.c JACK audio driver -- source
*
* Copyright (C) 2010 Creytiv.<EMAIL>
*/
#include <re.h>
#include <rem.h>
#include <baresip.h>
#include <math.h>
#include <jack/jack.h>
#include "mod_jack.h"
struct ausrc_st {
const struct ausrc *as; /* pointer to base-class (inheritance) */
struct ausrc_pr... |
/*-
* Copyright (c) 2010 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/*++
/* NAME
/* tls_prng_egd 3
/* SUMMARY
/* seed OpenSSL PRNG from EGD server
/* SYNOPSIS
/* #include <tls_prng_src.h>
/*
/* TLS_PRNG_SRC *tls_prng_egd_open(name, timeout)
/* const char *name;
/* int timeout;
/*
/* ssize_t tls_prng_egd_read(egd, length)
/* TLS_PRNG_SRC *egd;
/* size_t length;
/*
/* int tls_prng_egd_cl... |
/* -*- 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 code is licensed to you under the terms of the GNU GPL, version 2 or,
// at your option, any later version. See the LICENSE.txt file for the text of
// the license.
//--------------------------------------------------------------... |
/* ///////////////////////////////////////////////////////////////////////
//
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accord... |
/* Copyright (C) 2012-2020 Free Software Foundation, Inc.
Contributed by <NAME> (<EMAIL>)
This file is part of GCC.
GCC 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 you... |
/*
find first element != 0 in input
FORMAT: ff = findfirst(v [, spos]);
Input fields:
v vector
spos start position for search (default: 1),
if negative do search from end to begin
Output fields:
ff first occurrance of "true" in v (as of... |
/* $OpenBSD: uba_cmi.c,v 1.3 2003/06/02 23:27:58 millert Exp $ */
/* $NetBSD: uba_cmi.c,v 1.2 1999/08/14 11:31:48 ragge Exp $ */
/*
* Copyright (c) 1996 <NAME>.
* Copyright (c) 1994, 1996 Ludd, University of Lule}, Sweden.
* Copyright (c) 1982, 1986 The Regents of the University of California.
* All rights reser... |
/*****************************************************************************/
/* */
/* diodemo.c */
/* */
... |
/*
* Dealing with Unicode
*
* Copyright (C) 2013 Red Hat, Inc.
*
* Authors:
* <NAME> <<EMAIL>>
*
* This work is licensed under the terms of the GNU GPL, version 2 or
* later. See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "qemu/unicode.h"
static bool is_valid_codepoin... |
#define _POSIX_C_SOURCE 200809L
#include <signal.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include "log.h"
#include "sway/client_label.h"
#include "sway/config.h"
#include "sway/server.h"
#include "sway/swayna... |
/* R E G I O N _ E N D _ M C . C
* BRL-CAD
*
* Copyright (c) 2008-2016 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version ... |
/* Included by _internal.c */
#include "_internal.h"
static int
get_string(PyObject *obj, const char **s, const char *type_error_message)
{
if (!PyString_Check(obj) && obj != Py_None) {
PyErr_SetString(PyExc_TypeError, type_error_message);
return -1;
}
*s = NULL;
if (obj != Py_None) {
... |
/*
* Copyright (c) 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 PROVIDED "AS ... |
/***************************************************************************//**
* @file audio_dsp.c
* @brief DSP functions for the PDM microphone audio analysis (Source)
*******************************************************************************
* # License
* <b>Copyright 2020 Silicon Laboratories Inc. www.silabs... |
/*
Limbus - A cross-platform multimedia library.
Written in 2014 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 ... |
/****************************************************************************
** Copyright (c) 2017, Fougue Ltd. <http://www.fougue.pro>
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions
** are met:
**
*... |
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mspack.h>
#include <sys/stat.h>
#include <dirent.h>
#include <md5_fh.h>
#include <error.h>
/**
* Matches a cabinet's filename case-insensitively in the filesystem and
* returns the case-correct form... |
/*
* # Jackpot Game #
*
* Portando para o sistema operacional Gramado 0.4
* Portando para a linguagem C.
* Original: Dev C++.
* This version: <NAME>.
* 2018.
*/
#include <stddef.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
int i, j, life, maxrand;
int... |
#include "./draw.h"
void anim_initialize(draw_store* store) {
store->anim_count = 0;
}
void anim_append(draw_store* store) {
store->anim_count = 0;
memcpy(&store->board_delta, &store->game->board, sizeof(game_board));
for (dim i = 0; i < store->game->actions_count; ++i) {
memcpy(&store->anim[s... |
#include <string.h>
#include <util/crc16.h>
#include <avr/interrupt.h>
#include "radio.h"
#include "../librfm12/rfm12.h"
#include "../librfm12/spi.h"
#include "master.h"
#include <avr/pgmspace.h>
#define PREFIX
extern RadioMessage msg_in, buf_out;
extern uint8_t buf_out_index, msg_in_full;
extern uint8_t our_radio_id... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "uv.h"
#include "llhttp.h"
#include "server.h"
#include "request.h"
#include "constants.h"
static const char* BAD_REQUEST = "HTTP/1.1 400 Bad Request\r\n\r\n";
static const char* INTERNAL_ERROR = "HTTP/1.1 500 Internal Server Error\r\n\r\n";
void l... |
/**
* program: fits_dump
* Written for the AA-Alert project, ASTRON
*
* Purpose: help debugging / reading 1-bit compressed FITS files
*
* Author: <NAME>, Netherlands eScience Center
* Licencse: Apache v2.0
*/
#include <string.h>
#include <stdio.h>
#include "fitsio.h"
#include "dadafits_internal.h"
vo... |
/* GStreamer
*
* Copyright © 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, p... |
/**
* Native messaging host for Bee browser extension. Shell utilities.
*
* Copyright © 2019,2020 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction... |
#include <avr/io.h>
#include <stdio.h>
#include <string.h>
#include "spi.h"
#include "gpio.h"
#include "dma.h"
#include "usart.h"
#include "sram.h"
void sram_config_spi()
{
PORTC.OUT |= USART1_TXD_PIN; // set the TXD pin high
PORTC.OUT &= ~USART1_XCK_PIN; // set the XCK pin low
PORTC.DIR |= USART1_TXD_PIN; // set... |
/**
* clockWindow.c - ncurses-clock
*
* This module defines functionality for the ncurses window that draws the clock.
* This is the View portion of the MVC pattern. See dateTimeModel for Model and main for
* Controller.
*
*/
#include "clockWindow.h"
#define _XOPEN_SOURCE 700
static int row, col; ... |
/*
* This file was generated by the mkinit program.
*/
#include "mystring.h"
#include "shell.h"
#include "init.h"
#include "eval.h"
#include "expand.h"
#include <stdio.h>
#include "input.h"
#include "error.h"
#include "parser.h"
#include "redir.h"
#include "trap.h"
#include "output.h"
#include "memalloc.h"
#include ... |
#include "webcap.h"
/*req() checks the packet for valid HTTP request,
if found an entry is created for http request
and inserted into the session table*/
void req(u_char *payload, int payl_size, in_addr_t cli, in_addr_t srv, in_port_t clip, in_port_t srvp) {
int method = 0;
char *hdrend = NULL;
char *ch = NULL... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.