text stringlengths 3.12k 18.7k |
|---|
#define _GNU_SOURCE // for memmem()
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <curl/curl.h>
#if defined(USE_OPENSSL)
#include <openssl/evp.h> // for base64 encode/decode
#elif defined(USE_WOLFSSL)
#include <wolfssl/options.h>
#include <wolfssl/wolfcrypt/coding.h>
#elif d... |
/*
* This file is part of the libpayload project.
*
* Copyright (C) 2012 secunet Security Networks AG
*
* 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 c... |
/*-------------------------------------------------------------------------
*
* keywords.c
* lexical token lookup for reserved words in PostgreSQL
*
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICAT... |
#include <stdio.h>
#include <stdlib.h>
#include <allegro.h>
#include <math.h>
#include <stdbool.h>
#include "tetra.h"
#define PI 3.14159265
#define UP 1
#define DOWN 0
#define RIGHT 1
#define LEFT 0
#define WIDTH 600
#define HEIGHT 600
#define DEPTH 600
#define ANGLE 90
void accuracy_change(vertex* v){
v->x = (int... |
#include <string.h>
#include "driver/gpio.h"
#include "driver/i2c.h"
#include "esp_err.h"
#include "esp_log.h"
#include "freertos/task.h"
#include "sdkconfig.h" // generated by "make menuconfig"
#include "ssd1366.h"
#include "nvs.h"
#include "font8x8_basic.h"
#define tag "SSD1306"
void sendCommand(uint8_t x) {
i... |
/*! \file messages.h
\brief Macros for printing messages, the messages themselves
\authors <NAME> and <NAME>
\date August 2016
\version 1.4
\note About variable arguments in MACROS, [here](https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html)
\remark In order to keep the MACROS for the printing functions,... |
/*-
* Copyright (c) 2009,2014 <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 conditi... |
/*
* kernel_call/user_client.c
* <NAME>
*/
#include "user_client.h"
#include <assert.h>
#include "IOKitLib.h"
#include "kernel_call.h"
#include "kc_parameters.h"
#include "pac.h"
#include "kernel_memory.h"
#include "kernel_slide.h"
#include "log.h"
#include "mach_vm.h"
#include "parameters.h"
// ---- Global varia... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sqlite3.h>
#define JIM_EMBEDDED
#include <jim.h>
#include "tmake.h"
#include "tm_target.h"
#include "tm_crypto.h"
#include "tm_update.h"
/* A list of targets that were updated during the current run */
target_list *updated_targets = NULL;
/* Re... |
#include <errno.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <math.h>
#include <signal.h>
#include "unicode.h"
// TODO: handle multiple consecutive operators, like "---"
static void solve(char *expression, ... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2010 <NAME>
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) ... |
/*
* Copyright (c) 2018, <NAME>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <mpi.h>
#include <mprio.h>
#include <stdio.h>
#include <stdlib.h>
#in... |
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <unistd.h>
#include <limits.h>
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_log.h"
#include "cJSON.h"
#include "aws_iot_config.h"
#include "aws_iot_log.h"
... |
#include "unordered_list.h"
#include "interface.h"
static char *heap_listp = 0;
//static char* closelist[14];
static char* openlist[14];
static void *extend_heap(size_t words);
static void place(void *bp, size_t asize);
static void *find_fit(size_t asize);
static void *coalesce(void *bp);
static void list_insert(ch... |
/*******************************************************************************
* Copyright 2008-2018 by Aerospike.
*
* 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... |
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
#include<stdio.h>
#include<errno.h>
#include<strings.h>
#include<stdlib.h>
#include <arpa/inet.h>
#include"log.h"
#include"socks4.h"
#include"socks5.h"
#include"client_connection.h"
#include"safe_blocking_read... |
// Copyright 2018 INTRIG/FEEC/UNICAMP (University of Campinas), Brazil
//
//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 require... |
/*
* Copyright 2018-present MongoDB, 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... |
/*
Copyright 2009, 2011 <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 and th... |
/* ------------------------------------------------
Copyright 2014 AT&T Intellectual Property
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
Unle... |
#include "sfp.h"
#include<stdlib.h>
#define TMax 0x7FFFFFFF
#define TMin 0x80000000
// 9 bit for frac, 6 bit for exp
union result {
int res_i;
float res_f;
};
sfp bits2sfp(char*);
int bits2int(char*, int, int);
void setNaN(sfp*);
void setINF(sfp*, int);
sfp makesfp(int sign, int exp, char* frac);
sfp int2sfp(int in... |
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <sqlite3.h>
#include <pcg.h>
#include "debug.h"
#include "imports.h"
// SQLite VFS component.
// Based on demoVFS from SQLlite.
// https://www.sqlite.org/src/doc/trunk/src/test_demovfs.c
#define MAXPATHNAME 1024
// When using this VFS, the sqlite3... |
/*
* Odyssey.
*
* Scalable PostgreSQL connection pooler.
*/
#include <kiwi.h>
#include <machinarium.h>
#include <sleep_lock.h>
#include <odyssey.h>
typedef struct node {
double mean;
double count;
} node_t;
struct td_histogram {
// compression is a setting used to configure the size of centroids when
// mer... |
/*
Copyright (c) 2003 by <NAME> and The Institute for
Genomic Research. This is OSI Certified Open Source Software.
Please see the file LICENSE for licensing information and
the file ACKNOWLEDGEMENTS for names of contributors to the
code base.
*/
//\Ignore{
#include <stdio.h>
#include <stdlib.h>
#include <... |
/*
* Copyright (c) 2003, 2007-14 <NAME>
* Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
*
* 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 Licens... |
/*
* src/config.c
*
* This source is part of "fsearch" project
* 2015-2020 <NAME> (<EMAIL>)
*
* Program configuration and search criteria
*/
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include <string.h>
#include "config.h"
extern char *optarg;
#defi... |
/*
* Copyright (c) 2018 <NAME>
* https://github.com/iotaledger/entangled
*
* MAM is based on an original implementation & specification by apmi.bsu.by
* [ITSec Lab]
*
* Refer to the LICENSE file for licensing information
*/
#include <unity/unity.h>
#include "mam/ntru/poly.h"
#include "mam/ntru/poly_param.h"
... |
#include "stm32f0xx_conf.h"
#include "stm32f0xx_spi.h"
#include "stm32f0xx_dma.h"
#include "ws2812_spi.h"
#include <string.h>
/* Use 3MHz SPI (4-bits for single ws2812 bit), long pulse timing 999ns
* is very close to specified maximum of 1000ns.
*
* Uses 6MHz SPI (8-bits for single ws2812 bit) if not defined,
* ti... |
/*
* GStreamer
*
* unit test for mpegvideoparse
*
* Copyright (C) 2011 Nokia Corporation. All rights reserved.
* Contact: <NAME> <<EMAIL>>
* Copyright (C) 2018 <NAME> <tim centricular com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library Genera... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vicNl.h>
static char vcid[] = "$Id: initialize_global.c,v 5.12.2.27 2012/04/15 05:39:10 vicadmin Exp $";
void initialize_global() {
/*********************************************************************
initialize_global <NAME> ... |
#include <stdlib.h>
#include <stdio.h>
#include "expreval_internal.h"
#include "list.h"
#include "eil.h"
#define ERROR(a,b) do { compiler_SetError(c, a, b); return NULL; } while(0)
eil_expression_t *compile_to_eil(compiler c, token first_token)
{
eil_expression_t *expression = malloc(sizeof(eil_expression_... |
#include "../cc/cc.h"
#include "../2c/2.out.h"
#define TINT TLONG
#define TFIELD TLONG
#define SZ_CHAR 1
#define SZ_SHORT 2
#define SZ_LONG 4
#define SZ_VLONG 8
#define SZ_IND 4
#define SZ_FLOAT 4
#define SZ_DOUBLE 8
#define SU_ALLIGN SZ_SHORT
#define SU_PAD SZ_LONG
#define ALLOP 90
#define NRGN 300
#define FNX... |
#ifndef ZASYNC_H
#define ZASYNC_H
#include <fcntl.h>
#include <ev.h>
#include <errno.h>
#include <stdlib.h>
struct zio_s {
ev_io io;
struct zio_s* next;
};
typedef struct {
int fd;
int ev_type;
} zyield_t;
typedef struct {
void* childstack;
zyield_t waiting_for;
int state;
struct zio_s* io;
void(*... |
#include <stdio.h>
#include <string.h>
#include "glue.h"
#include "rtca_now.h"
#include "ui.h"
extern spi_descriptor spid_ds3234;
static const uint8_t hello_str[6] = "hello";
static const char menu_str[] = "\
\r\n ds3234 module test suite --- available commands:\r\n\r\n\
\e[33;1m?\e[0m - show menu\r\n\
\e[33;1ms\... |
// Defines the structures of a GDT entry and of a GDT pointer
#include <stdint.h>
#include "apic.h"
#include "tables.h"
#include "isr.h"
#include "irqdefs.h"
//Todo: Fix this. C11 alignas?
struct gdt_entry
{
uint16_t limit_low;
uint16_t base_low;
uint8_t base_middle;
uint8_t access;
uint8_t granularity;
uint8_t ... |
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <windows.h>
#include <mmsystem.h>
#include "micromod.h"
/*
Simple command-line test player for micromod using the Windows MMAPI.
*/
#define SAMPLING_FREQ 48000 /* 48khz. */
#define REVERB_BUF_LEN 4800 /* 50ms. */
#define OVERSAMPLE 2 ... |
/**
* @file
*
* This file contains the implementations of the functions from bsp.h for the
* STM32F411 Discovery Kit board.
*/
#include <stddef.h> // For NULL.
#include <math.h> // For fabsf()
#include <libopencm3/cm3/assert.h> // For the cm3_assert macros.
#include <libopencm3/stm32/gpio.h> // For the GPIO mani... |
/* convert nfa graph to dfa tree */
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <malloc.h>
#include <sys/time.h>
#include "parse.h"
#include "functions.h"
#include "pconf.h"
#define NO_SCORE 0xFFFF
#define MAX_NODES 50000
#define MAX_ARCS 100000
#define MAX_SET 100
int new_o... |
#include<stdio.h>
#include<string.h>
int input_section, input_gender, ch, n, i, viewtype;
int ids, idr,k;
char un[10], pw[10], g[6];
void welcome_screen();
void teacher_login();
void student_login();
void result();
void compare();
struct candidates
{
int roll_number;
char name[15];
char ... |
#include "miku.h"
struct pll_level pll_levels[NUM_PLL_LEVEL] =
{{/* Idle: Max 825MHz */
.refc = 2,
.loopc = 33,
.div = 1,
.vid = 1150, /* FIXME: Low down it later */
.highest_scale = (4 - 1), /* 4 / 8 */
.lowest_scale = 0, /* 1 / 8 */
.stable_scale = (8 - 1), /* 8/8, 1650MHz */
.node_scale = (4 - 1), /* 4 / 8... |
#include <hdf5.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "io_arepo.h"
#define USAGE "./snap2web.x snapfilename fileout"
#define XX 0
#define XY 1
#define XZ 2
#define YX 3
#define YY 4
#define YZ 5
#define ZX 6
#define ZY 7
#define ZZ 8
#define PI 3.1415926535897... |
#include "poly.h"
#include "common.h"
#include "cpucycles.h"
#include <stdint.h>
#include "fft.h"
#include "math.h"
#include "reduction.h"
#define uint128_t __uint128_t
#include <dgs/dgs.h>
void gen_uniform_poly(poly *a) {
zero_out(a);
unsigned char r[GKE_N * 8];
randombytes(r, GKE_N * 8);
for (int... |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#include <yoc/aui_cloud.h>
#include "cJSON.h"
#include <avutil/named_straightfifo.h>
#include "aui_cloud_imp.h"
#define MD5_DIGEST_SIZE 16
#define TAG "XFYUN_TTS"
static char *xf_appid;
static char *xf_apikey;
struct tts_arg {
struct webclient_s... |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1996, 1997, 1998
* Sleepycat Software. All rights reserved.
*/
/*
* Copyright (c) 1990, 1993, 1994, 1995, 1996
* <NAME>. All rights reserved.
*/
/*
* Copyright (c) 1990, 1993, 1994, 1995
* The Regents of the University of Californi... |
/*
FreeRTOS.org V5.0.4 - Copyright (C) 2003-2008 <NAME>.
This file is part of the FreeRTOS.org distribution.
FreeRTOS.org 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
... |
/**************************************************************************//**
* @file Smpl_DrvFMC.c
* @version V2.00
* $Revision: 2 $
* $Date: 16/10/25 4:26p $
* @brief
* Implement a multi-boot system to boot from different applications in APROM.
* A LDROM code and 4 APROM code ... |
/* $FreeBSD: soc2013/dpl/head/contrib/traceroute/as.c 216227 2010-12-04 14:19:27Z uqs $ */
/* $NetBSD: as.c,v 1.1 2001/11/04 23:14:36 atatat Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
... |
// elf_init.c -- Initializes constant/static data in the elf_context
#include <stdlib.h>
#include <string.h>
#include "elf.h"
#include "elf_int.h"
static void init_ehdr(elf_context *elf) {
memset(&elf->ehdr, 0, sizeof(Elf32_Ehdr));
elf->ehdr.e_ident[0] = 0x7f;
elf->ehdr.e_ident[1] = 'E';
elf->ehdr.e... |
/*
Copyright (C) 2014, The University of Texas at Austin
This file is part of libflame and is available under the 3-Clause
BSD license, which can be found in the LICENSE file at the top-level
directory, or at http://opensource.org/licenses/BSD-3-Clause
*/
#include <time.h>
#include "FLAME.h"
#includ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee a... |
/***********************************************************************
* Proof of Concept: redirect STDERR to List widget (XmList class) of
* Command widget (XmCommand class) in X-Windows/Xm
* application.
*
* Compile:
*
* gcc -o xmcommand xmcommand.c -I/usr/include -lX... |
#define _DEFAULT_SOURCE // for fileno()
#include "./firmware_update.h"
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>
typedef struct {
char *persisted_uri;
uint32_t resume_offset;
anjay_etag_t *resume_etag;
} download_state_t;
static const char *FW_DOW... |
/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford
* Junior University
*
* We are making the OpenFlow specification and associated documentation
* (Software) available for public use and benefit with the expectation
* that others will use, modify and enhance the Software and contribute
* those enh... |
/*
* Copyright (C) 2015 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... |
#include <stdio.h>
#include <stdlib.h>
#include <linux/elf.h>
#include <string.h>
#include <sys/mman.h>
#include <malloc.h>
#include <errno.h>
#include <dlfcn.h>
#include "section_table.h"
#include "program_table.h"
enum {H,P,SEC,A,SYM,STR,R,OPC};
int opt[OPC] = {0};
/* 文件大小 */
int sizeoffile(FILE *f)
{
unsigne... |
/* *****************************************************************************
Resolver a EDO usando Adams-Bashforth-Moulton de 10 ordem
iniciado com Runge-Kutta de 14a ordem e 35 estagios
*****************************************************************************
E-mail: <EMAIL>
Site: https://ismael... |
/* PHASE 1
Written by <NAME> AND <NAME>
Base code and Comments from PROFESSOR <NAME>
Finished on 9/5/2019
*/
/*********************************************************************************************
Module Comment Section
This Modules is the Queues Manager of the Operating... |
/*
* Binary Search Tree (BST) implementaion.
* For Level order traverse we use queue data structure.
*
* @author <NAME>, <EMAIL>
* github: https://github.com/memoryInject
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <errno.h>
#include "binarySearchTree.h"
/*
* Que... |
/**********************************************************
* Copyright 2009 VMware, Inc. 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, ... |
/*-
* Copyright (c) 2015 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/**
* Keil project example for GPS
*
* Before you start, select your target, on the right of the "Load" button
*
* @author <NAME>
* @email <EMAIL>
* @website http://stm32f4-discovery.net
* @ide Keil uVision 5
* @conf PLL parameters are set in "Options for Target" -> "C/C++" -> "Defines"
* ... |
/* KallistiOS ##version##
arch/dreamcast/kernel/irq.c
Copyright (C) 2000-2001 <NAME>
*/
/* This module contains low-level handling for IRQs and related exceptions. */
#include <string.h>
#include <stdio.h>
#include <arch/arch.h>
#include <arch/types.h>
#include <arch/irq.h>
#include <arch/timer.h>
#include <ar... |
/* ====================================================================
* Copyright (c) 1996-2000 Carnegie Mellon University. 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. Red... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "esp_types.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "esp_task_wdt.h"
#include "esp_timer.h"
#include "esp_sleep.h"
/* Littlevgl ... |
/* seg.c - read/write seg format. */
#include "common.h"
#include "linefile.h"
#include "errabort.h"
#include "obscure.h"
#include "seg.h"
#include "hash.h"
#include <fcntl.h>
void segCompFree(struct segComp **pObj)
/* Free up a segment component. */
{
struct segComp *obj = *pObj;
if (obj == NULL)
return;
freeMem(... |
/* *********************************************************************
* Broadcom Common Firmware Environment (CFE)
*
* Physical Memory (arena) manager File: cfe_mem.c
*
* This module describes the physical memory available to the
* firmware.
*
* Author: <NAME> (<EMAIL>)... |
/*
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
* 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
* vers... |
#include "redisearch.h"
#include "redismodule.h"
#include "rmutil/util.h"
#include "rmutil/args.h"
#include "trie/trie_type.h"
#include "query_error.h"
extern bool isCrdt;
static int replyCrdtError(RedisModuleCtx *ctx) {
return RedisModule_ReplyWithSimpleString(ctx, "Suggest commands are not available with CRDT");
... |
/*
* Falcon version 0.0.2 (master, Dec 02 2019)
* fl-debug.c: List of debugging function for the Falcon Compiler/VM
* See Falcon's license in the LICENSE file
*/
#include "fl-debug.h"
#include "fl-vm.h"
#include <stdio.h>
/**
* Prints to stdout a instruction that has no arguments.
*/
static int simple_instructi... |
#include <fcntl.h>
#include <stdio.h>
#include <errno.h>
#include <signal.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <ndm/int.h>
#include <ndm/stdio.h>
#include <ndm/spawn.h>
#include <ndm/string.h>
#incl... |
/*
Copyright 2012-2014, 2016, 2018, 2020 Free Software Foundation, Inc.
This file is part of the GNU MP Library test suite.
The GNU MP Library test suite 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 v... |
/*
* tarball.c
*
* Created on: Jul 28, 2010
* Author: <NAME>
* <EMAIL>
* http://plindenbaum.blogspot.com
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <dirent.h>
#include <zlib.h>
#include <tar.h>
#in... |
/*
* linux/include/linux/ext2_fs.h
*
* The second extended filesystem constants/structures
*
* Copyright (C) 1992, 1993, 1994, 1995
* <NAME> (<EMAIL>)
* Laboratoire MASI - Institut Blaise Pascal
* Universite Pierre et <NAME> (Paris VI)
*
* from
*
* linux/include/linux/minix_fs.h
*
* Copyright (C) 1991... |
#include "hs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/**
* This is a simple example which creates a http server and listens to
* root path to return some custom html and to /fs/... paths to return
* file system files or directory list.
* If no path is matching, it will return 404.
*
* This ... |
/*
* Copyright (C) 2016-2017 Intel Corporation
*
* SPDX-License-Identifier: GPL-2.0
*/
#include <altera.h>
#include <common.h>
#include <errno.h>
#include <fdtdec.h>
#include <miiphy.h>
#include <netdev.h>
#include <ns16550.h>
#include <watchdog.h>
#include <asm/arch/misc.h>
#include <asm/arch/pinmux.h>
#includ... |
/*
* SEE: https://clc-wiki.net/wiki/K%26R2_solutions:Chapter_4:Exercise_10
*
* */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#define MAXOP 100
#define NUMBER '0'
#define VARIABLE '1'
#define VARMAX 27
#define BUFSIZE 1000
#define MAXVAL 100
int is_first_input = 0;
doub... |
#include <stdio.h>
#include <stdlib.h>
#include "darray.h"
#include "queue.h"
#include "integer.h"
#include "strings.h"
#include "scanner.h"
#include "comparator.h"
#include "printer.h"
#include "binomial.h"
#include <limits.h>
typedef struct vertex
{
int visited;
void* num;
int key; //initialized to inf... |
#include "inject_library_dlopen.h"
/*
* injectSharedLibrary()
*
* This is the code that will actually be injected into the target process.
* This code is responsible for loading the shared library into the target
* process' address space. First, it calls malloc() to allocate a buffer to
* hold the filename of t... |
/*
* GPL HEADER START
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 only,
* as published by the Free Software Foundation.
*
* This program is distributed... |
/*
** $Id$
**
** music_menu.c:
**
** Copyright (C) 2006 Feynman Software.
**
** All right reserved by Feynman Software.
**
** Current maintainer: <NAME>.
**
** Create date: 2007/05/17
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <string.h>... |
/*
* The MIT License (MIT)
* Copyright (c) 2015 <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, including without limitation
* the rights to use... |
/**
* \file
* Barrelfish standard ethernet interface
*/
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* 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. Redist... |
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#define max(x, y) (((x) > (y)) ? (x) : (y))
#define min(x, y) (((x) < (y)) ? (x) : (y))
#define clip(_x, _min, _max) min(max(_x, _min), _max)
struct Tuple3D
{
float x;
float y;
float z;
};
void _render(const int *triangles,
const int n... |
//
// Copyright 2021 <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, including without limitation the rights
// to use, copy, modify, merge, publis... |
/*-------------------------------------------------------------------------
*
* cluster.c--
* <NAME>'s implementation of cluster index.
*
* I am going to use the rename function as a model for this in the
* parser and executor, and the vacuum code as an example in this
* file. As I go - in contrast ... |
#define PAR_BUBBLES_IMPLEMENTATION
#include <parg.h>
#include <parwin.h>
#include <stdio.h>
#include <string.h>
#include <par/par_bubbles.h>
#include <par/par_shapes.h>
#define TOKEN_TABLE(F) \
F(P_SIMPLE, "p_simple") \
F(A_POSITION, "a_position") \
F(A_CEN... |
#include "cq.h"
#include <stdio.h>
union bx {
unsigned e;
struct {
unsigned fsgsbase : 1;
unsigned ia32_tsc_adjust : 1;
unsigned sgx : 1;
unsigned bmi1 : 1;
unsigned hle : 1;
unsigned avx2 : 1;
unsigned fdp_excptn_only : 1;
unsigned smep : 1;
unsigned bmi2 : 1;
unsigned erm... |
/*
* lws-minimal-http-server-sse
*
* Written in 2010-2019 by <NAME> <<EMAIL>>
*
* This file is made available under the Creative Commons CC0 1.0
* Universal Public Domain Dedication.
*
* This demonstrates a minimal http server that can serve both normal static
* content and server-side event connections.
*
*... |
#include "lcd1602.h"
#include "main.h"
//Declare functions that are use only within the library
inline void command(uint8_t);
void write4bits(uint8_t);
void send(uint8_t, uint8_t);
void expanderWrite(uint8_t);
void pulseEnable(uint8_t);
void writeNibble(uint8_t);
inline void lcd_write(uint8_t value) {
... |
/*
* 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... |
#include "kittycollect.h"
#include "../parserscanner/kittytree.h"
#define FIRST_TABLE_ID 0
#define RESET_SCOPE_OFFSET (currentScopeOffset = 1)
#define NEXT_SCOPE_OFFSET (currentScopeOffset++)
#define GET_NEXT_FUNCTION_ID (functionOffset++)
int unknownTypesCount = 0; // decides whether more passes should be used.
... |
/**
\file stm8s_tim.c
\brief Исполняемый файл драйвера таймера ядра STM8S
\author JavaLandau
\version 1.0
\date 20.12.2017
*/
#include "BitsMaskOperations.h"
#include "stm8s_tim.h"
/** @name Регистры TIM
*/
///@{
//TIM1
#define TIM1_CR1 (((volatile char*... |
/*
* Copyright (c) 2006+ <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, di... |
/*
* joyemu
*
* Functions for emulating two 9-pin D-connector joystick ports.
*
*
* Copyright (c) 2017 <NAME>
*
* 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... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../inc/elportab.h"
#include "../inc/elbmp.h"
#include "../inc/elvideo.h"
/* unused */
#if 0
static void rgbPlanesHflip(Picture_p rgb_p)
{
UInt8 byte;
Int32 i, j;
for(j=0; j < rgb_p->h0>>1; j++)
{
for(i=0 ; i < rgb_p->w0 ; ... |
/*
* ch5:membugs.c
*
***************************************************************
* This program is part of the source code released for the book
* "Hands-on System Programming with Linux"
* (c) Author: <NAME>
* Publisher: Packt
*
* From:
* Ch 5 : Linux Memory Issues
********************************... |
/* eknseg.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__1 = 1;
/* $Procedure EKNSEG ( EK, number of segments in file ) */
integer eknseg_(integer *handle... |
/* The MIT License (MIT)
*
* Copyright (c) 2015 <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, mo... |
/*
Copyright (C) 2006-2007 <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed i... |
#include "uart.h"
#include "types.h"
#include "djtimer.h"
#include <avr/io.h>
#include <avr/interrupt.h>
#include "config.h"
#ifdef WUTINY
#define CLOCK 11059200
#define UART_BAUDRATE_DOUBLE_SPEED 1
#else
// Mostly copied from NanoVM's uart.c
#define CLOCK 16000000 // Not sure if there's a better way to get the clock ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.