text stringlengths 3.08k 10.5k |
|---|
/*******************************************************************************
*
* (C) COPYRIGHT AUTHORS, 2018
*
* TITLE: MAIN.C
*
* VERSION: 1.00
*
* DATE: 10 Feb 2018
*
* Codename: <NAME>
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPRESSED OR IMPL... |
/* This work is copyrighted. See COPYRIGHT.OLD & COPYRIGHT.NEW for *
* details. If they are missing then this copy is in violation of *
* the copyright conditions. */
/*
* curses.priv.h
*
* Header file for curses library objects which are private to
* the library.
*
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h> /*Acentos*/
#define NODE_SIZE 46
#define PBUFFER_SIZE 42
#define TEMPNOME 12
/* Acesso aos elementos do nodo, para facilitar a organização */
#define IDADE 30
#define TELEFONE 34
#define PROXIMO 42
#define ANTERIOR 38
void... |
/*
* Copyright (C) 2014 Hochschule für Angewandte Wissenschaften Hamburg (HAW)
* Copyright (C) 2014 <NAME> <<EMAIL>>
*
* 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.
*/
/**
* @ingroup sys_ba... |
/*
* Copyright 2012 <NAME>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 3 of the License, or (at your option)
* any later version. See COPYING for more details.
*/
#... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include "core_allvars.h"
#include "model_misc.h"
void init_galaxy(const int p, const int halonr, int *galaxycounter, const struct halo_data *halos,
struct GALAXY *galaxies, const struct params *run_params... |
/* File that implements the 'fdref' data structure. It keeps track
* of how many times a particular fd (per process) is referenced by
* mmapped objects.
*
* This is used to
* - have many references to the same file, without needing an FD each
* - deciding when we have to close an FD (last reference disappears)... |
#include "diskmanage.h"
// Allocate an on-disk page from the free page list and
// update information of header page
Pagenum_t file_alloc_page(HeaderPage_t * header, int fd){
NodePage_t allocated_page;
// file_read_page(HEADER_PAGE_NUMBER, PAGE_ADDRESS(header), fd);
if(header->free_page_num != 0... |
/* Generated from /home/biorn/src/lib/libkrb5/../../kerberosV/src/lib/hdb/hdb.asn1 */
/* Do not edit */
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <errno.h>
#include <krb5_asn1.h>
#include <hdb_asn1.h>
#include <asn1_err.h>
#include <der.h>
#include <parse_units.h>
#define B... |
/*
** Copyright (C) 2011-2017 <NAME> <<EMAIL>>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program... |
// nginx module that anonymizes IP addresses (e.g. for logging).
// Copyright <NAME> 2018
#include <ngx_http.h>
#include <ngx_crypt.h>
#include <time.h>
#include "ngx_ipscrub_support.h"
#include "ngx_ipscrub_debug.h"
typedef struct {
ngx_int_t period_seconds;
} ngx_ipscrub_conf_t;
static void * ngx_ipscrub_create... |
/*
ISC License
Copyright (c) 2016, Autonomous Vehicle Systems Lab, University of Colorado at Boulder
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.
... |
#include "node.h"
#include <rte_bus_pci.h>
#include "pktbuf.h"
/* GLOBALS */
numa_info_t numa_node_info[GTP_MAX_NUMANODE];
static const struct rte_eth_conf portConf = {
.rxmode = {
// .offloads = DEV_RX_OFFLOAD_CHECKSUM,
.split_hdr_size = 0, /**< Header Split disabled */
// .hw_vlan_fi... |
/******************************************************************************
** Copyright (c) 2016-2018, Intel Corporation **
** All rights reserved. **
** **
... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <malloc.h>
#include <ctype.h>
#include "global.h"
#include "scanner.h"
static int IsDigtial( char num );
static int Cmp( const void * a, const void *b );
static void InitList( void );
static void InsertList( int flag, char * temp );
static int IsKeyw... |
#include "SDL.h"
#include "defs.h"
#include "draw.h"
#include "input.h"
#include "level.h"
#include "text.h"
#include "texture.h"
#include "world.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
struct texture *g_textures[3];
#define TIME 5
/* Units / tick */
#define TURN 4000
/* Units / tick */
#define FO... |
#include <arpa/inet.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "common/common.h"
#include "common/sockets.h"
#define PORT "6969"
#define HOST "localhost"
int get_address(struct addrinfo *server_info) {
stru... |
/*
*
* This program (Pamslice) was derived by <NAME> in July 2002
* from Pgmslice by <NAME>. Pgmslice did the same thing, but
* only on PGM images. Pamslice is a total rewrite.
*
* Copyright (C) 2000 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the ter... |
/***
*secfail.c - Report a /GS security check failure
*
* Copyright (c) 2000-2001, Microsoft Corporation. All rights reserved.
*
*Purpose:
* Define function used to report a security check failure, along with a
* routine for registering a new handler.
*
* Entrypoints:
* __securi... |
/*
* vin_3a.c
*
*/
#include <linux/slab.h>
#include <linux/uaccess.h>
#include "vin_h3a.h"
#include "vin_ispstat.h"
/*
* h3a_setup_regs - Helper function to update h3a registers.
*/
static void h3a_setup_regs(struct isp_stat *h3a, void *priv)
{
struct vin_isp_h3a_config *conf = priv;
if (h3a->state == ISPSTAT... |
/*
* (C) 2001 Clemson University and The University of Chicago
*
* See COPYING in top-level directory.
*/
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/time.h>
#include <time.h>
#include <stdlib.h>
#includ... |
/**
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdio.h>
#include "pico/stdlib.h"
#include "pico/binary_info.h"
#include "pio_spi.h"
// This example uses PIO to erase, program and read back a SPI serial flash
// memory.
// -----------------------------... |
#include <stdio.h>
#include <string.h>
#include <mruby.h>
#include <mruby/compile.h>
#include <mruby/proc.h>
static mrbc_context* s_cxt = NULL;
void mrb_codedump_all(mrb_state*, struct RProc*);
/* Guess if the user might want to enter more
* or if he wants an evaluation of his code now
* Taken from mruby-bin-mirb... |
/*
* Copyright (c) 2015-2018 Nexenta Systems, inc.
*
* This file is part of EdgeFS Project
* (see https://github.com/Nexenta/edgefs).
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informat... |
#include "estructDatos.h"
#include <stdio.h>
#include <string.h>
struct nodo_t* nuevoNodo(void){ // esto sería como una especie de constructor
struct nodo_t *nodo = (struct nodo_t*)malloc(sizeof(struct nodo_t));
nodo->siguiente = NULL;
return nodo;
}
struct pila_t* nuevaPila(void){
struct pila_t *p = ... |
cnovr_pose boomroot; //Must be origin
#define PARTICLEVERTS 1024
cnovr_model * explosion_model;
cnovr_shader * explosion_shader;
float * explosion_points;
float * explosion_data;
float * explosion_color;
float * explosion_extradata;
void EmitParticle( float * pos, float size, float * dir, float * color, float li... |
/*
* Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2007-2013 Sourcefire, Inc.
*
* Authors: <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* publish... |
/* $NetBSD: wdog.c,v 1.6 2002/03/24 18:04:42 uch Exp $ */
/*-
* Copyright (C) 2000 <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 t... |
#include "stm32l4xx.h"
#include "stm32l4xx_hal.h"
#include <string.h>
#include "hw.h"
#include "CC1125.h"
#include "CC1125_Regs.h"
#include "timer.h"
#include "fast_spi.h"
#include "rtc.h"
#include "delay.h"
#include "usart.h"
#include "Simulated_LoRa.h"
#include "control_GPIO.h"
#include "LoRa_Channel_Coding.h"
... |
/*
* 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 <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "consts.h"
#include "BeachGrid.h"
#include "BeachNode.h"
#include "WaveClimate.h"
#include "sedtrans.h"
#include "utils.h"
#include "config.h"
/* Globals */
struct BeachGrid g_beachGrid;
int current_time_step;
double current_time;
... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/xaa/xf86im.c,v 3.2 1997/01/12 10:48:09 dawes Exp $ */
/*
* Copyright 1996 The XFree86 Project
*
* 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 Sof... |
/* Debug Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include... |
/*
* Tiny implementation of C interpreter, inspired by C4.
* Author @tz70s
*/
#include "lexer.h"
#include "vm.h"
#include <memory.h>
#include <stdio.h>
#include <stdlib.h>
int num_val;
/* allocate memory of symbol table */
static int alloc_symtbl() {
/* assign 1000 * identifier frame */
if (!(symbol_table ... |
/*
Copyright (c) 2017-2019, Feral Interactive
Copyright (c) 2019, 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 not... |
//
// EVSHeader.h
// EvsSDKForiOS
//
// Created by 周经伟 on 2019/7/23.
// Copyright © 2019 iflytek. All rights reserved.
//
#ifndef EVSHeader_h
#define EVSHeader_h
/*****************************头文件********************************/
#import "EvsSDKForiOS.h"
#import "EVSColorUtils.h"
#import "EVSDateUtils.h"
#import "E... |
/* Copyright (c) 2016, The Linux Foundation. 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 version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope... |
/*
* skyfly.h $Revision: 1.3 $
*/
#ifdef _WIN32
#pragma warning(disable : 4244)
#endif
/* buttons */
#define ESCKEY 0
#define RKEY 1
#define PERIODKEY 2
#define SPACEKEY 3
#define DOWNARROWKEY 4
#define UPARROWKEY 5
#define LEFTARROWKEY 6
#define RIGHTARROWKEY 7
#d... |
#include <argp.h>
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/random.h>
#include "char_list_list.h"
typedef struct {
bool exclude_special;
bool exclude_ambiguous;
bool exclude_capital;
} pwd_props_t;
typedef struct {
uns... |
#pragma once
#define UPCXXA_PROCS upcxx::ranks()
#define UPCXXA_MYPROC upcxx::myrank()
#define UPCXXA_GLOBAL_PROCS upcxx::global_ranks()
#define UPCXXA_GLOBAL_MYPROC upcxx::global_myrank()
#define UPCXXA_DEREF UPCXXA_DEREF_LOCAL
#define UPCXXA_ASSIGN UPCXXA_ASSIGN_... |
/**
* \file
*
* \brief Ethernet management for LwIP (threaded mode).
*
* Copyright (c) 2013-2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
// -----------------------------------------------------------------------------
//
// "00_AccelGraph"
//
// -----------------------------------------------------------------------------
// Copyright (c) 2014-2019 All rights reserved
// -----------------------------------------------------------------------------
... |
/* -*- linux-c -*-
*
* Copyright (c) 2004 by Intel Corp.
* (C) Copyright <NAME> 2011
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This
* file and program are licen... |
/*
* db.h - contains functions and constants for a SiriDB database.
*
* author : <NAME>
* email : <EMAIL>
* copyright : 2016, Transceptor Technology
*
* changes
* - initial version, 10-03-2016
*
*/
#pragma once
#include <siri/err.h>
#include <siri/db/time.h>
#include <siri/db/user.h>
#includ... |
void trimPath(char *path);
char *combine(char *dir, char *file);
char *putYen(char *path);
char *unputYen(char *path);
char *getLocalWithYen(char *path);
char *getLocal(char *path);
char *getExtWithDot(char *path);
char *getExt(char *path);
char *changeLocal(char *path, char *newLocal);
char *getParent(char *path);
c... |
/* SPDX-License-Identifier: GPL-2.0+
*
* Copyright (c) 2015 Free Electrons
* Copyright (c) 2015 NextThing Co
*
* <NAME> <<EMAIL>>
*
*/
#include <common.h>
#include <dm.h>
#include <w1.h>
#include <asm/gpio.h>
#define W1_TIMING_A 6
#define W1_TIMING_B 64
#define W1_TIMING_C 60
#define W1_TIMING_D 10
#define W1... |
/*
* 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... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* gold_gain.c :+: :+: :+: ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "harness.h"
#include "queue.h"
#include "strnatcmp.h"
/*
* Create empty queue.
* Return NULL if could not allocate space.
*/
queue_t *q_new()
{
queue_t *q = malloc(sizeof(queue_t));
if (!q) {
return NULL;
}
q->head = NULL;... |
//Huffman code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
struct node{
int value;
char ch;
struct node *lson, *rson;
};
typedef struct node Node;
typedef struct queue{
Node * n;
struct queue * next;
} Queue;
Queue * head;
Queue * createQueue(){
Queue * q = malloc(sizeof(Qu... |
#include "scheduler.h"
#include "api/errno.h"
#include "interrupts.h"
#include "memory.h"
#include "memory/memory.h"
#include "panic.h"
#include "process.h"
#include "system.h"
static struct process* ready_queue;
static struct process* idle;
void scheduler_register(struct process* process) {
ASSERT(process->state... |
/*
* File: ncp-main.c
* Description: Test application for developing an IP stack.
* Author(s): <NAME>, <EMAIL>
*
* Copyright 2013 by Silicon Laboratories. All rights reserved. *80*
*/
#include PLATFORM_HEADER
#include CONFIGURATION_HEADER
#include "stack/include/ember.h"
#include "command-interpreter... |
#include "Menus.h"
#include <util/DrawUtils.h>
#include <config/BootConfig.h>
#include <config/BootEntries.h>
#include <Uefi.h>
#include <Protocol/LoadedImage.h>
#include <Protocol/GraphicsOutput.h>
#include <Protocol/DevicePathToText.h>
#include <Library/DebugLib.h>
#include <Library/UefiRuntimeServices... |
#include <stdio.h>
#include <math.h>
/*
REFERÊNCIAS:
http://bsi.ceavi.udesc.br:8080/basiqa/
http://inf.ufrgs.br/~rgrunitzki/papers/Grunitzki&2013.pdf
*/
double q9 ( double indice ) { // Oxigênio Dissolvido : PESO 0.17
double A = 100.8, B = -106, C = -3745;
printf("Oxigenio\n");
if ( indic... |
#include "pkg.h"
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// TODO: Add Guard here
#include <unistd.h>
// dynamic so file name:
// pkgprefix + "name" + pkgsuffix
char * pkgsuffix = ".pkg";
char * pkgprefix = "";
char * metaprefix = "meta"; // pkg metainfo var prefix
char * regpre... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include "config.h"
#include "builtin.h"
#include "utils.h"
#include "orash.h"
#include "linenoise.h"
void _completion(const char *buf, linenoiseCompletions *lc)
{
char* match = NULL;
if (find_matching(buf, &ma... |
/*
Filename: gtmtf.c (Single-file encoder/decoder.)
Description: A Move-to-Front (MTF) Implementation
Author: <NAME>, 2004/2009
MTF translates a run of different letters to a run of zero-bytes.
For example, the run
"XXXYYYZZZ"
will be translated by other run-length schemes as
... |
/*************************************************************************
* ip.c
*
* ip = Internet Protocol
* Project: eZ2944
*************************************************************************/
#include <stdio.h>
#include "project.h"
#include "bmz.h"
#include "tick.h"
#include "tcpip.h"
#include "checksu... |
/* The MIT License (MIT)
*
* Copyright (c) 2017 <NAME>
*
* Software repository: MoonVulkan, https://github.com/stetre/moonvulkan
*
* 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 with... |
/* $title: 'ADDLIB.C ===== Add directory to LIBPATH =====' */
/* $subtitle: 'Elipse Ltd. [jms] Revised: 1998 Aug 31' */
#define INCL_DOSMISC
#define INCL_DOSERRORS
#include <os2.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define MAXRECLEN 3180
#define MAXFILN... |
/*
* Copyright (C) 2019 Freie Universität Berlin
*
* 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.
*/
/**
* @ingroup tests
* @{
*
* @file
*
* @author <NAME> <<EMAIL>>
*
* @}
*... |
#include <stdio.h>
#include <string.h>
#define LINE_SIZE 2048
// printed color
#define BLACK "\033[30m"
#define RED "\033[31m"
#define GREEN "\033[32m"
#define YELLOW "\033[33m"
#define BLUE "\033[34m"
#define PURPLE "\033[35m"
#define CYAN "\033[36m"
#define WHITE "\033[37m"
#define BOLD "\033[1m"
#define COLOR_E... |
/* Cursor motion calculation definitions for GNU Emacs
Copyright (C) 1985, 1989 Free Software Foundation, Inc.
This file is part of GNU Emacs.
GNU Emacs 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 ... |
#include "url.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
static void parse_hostport(struct url *, const char *, char *);
static const char *default_port(const char *);
static void parse_pathfile(struct url *, char *);
int
url_parse(struct url *url, char *str)
{
char *begin, *e... |
#include "term-index.h"
#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include <stdbool.h>
#include <string.h>
#undef N_DEBUG
#include <assert.h>
#include "mhook/mhook.h"
static void print_help(char *argv[])
{
printf("DESCRIPTION:\n");
printf("dump term index.\n");
printf("\n");
printf("USAGE:\n");
... |
/*
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright 2019-2021, <NAME> <<EMAIL>>
*/
#include <getopt.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "parse.h"
#include "utils.h"
static const struct option opts[] = {
{"columns", required_argument, NULL, 'c'},
{"sh... |
/*
* File: c_path.c
* Author: parallels
*
* Created on Jan 6, 2019, 8:38:09 PM
*/
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <CUnit/Basic.h>
#include "../path.h"
/*
* CUnit Test Suite
*/
int init_suite(void) {
return 0;
}
int clean_suite(... |
#include <stdlib.h>
#include <string.h>
#include "pl0.h"
#define LINE_SIZE 1024
#define VALUE_SIZE 1024
#define LEXER_UNIT_SIZE 1024
#define true 1
#define false 0
#ifndef LEXERGEN
#define STATE_ERROR -1
#define STATE_START 0
#define STATE_L 1
#define STATE_LE 2
#define STATE_NE 3
#define STATE_MODE... |
/** stbl.c
*/
#include "stbl.h"
#include <ncurses.h>
#include <assert.h>
#include <err.h>
#include "dice.h"
#include "clrpr.h"
/* memory allocation {{{1 */
/* _alloc() {{{2
* Allocate memory for a Stbl struct.
* Shall be freed by stbl_free().
*/
stbl_t*
stbl_alloc(
stbl_t **ptr)
{
stbl_t *stbl;
stbl = ... |
/******************************************************************************
* Universal Analytics for C
* -- URL encoding module for UTF-8 compatibility with Google Analytics
* Copyright (c) 2013, <NAME>
*
* This project is free software, distributed under the BSD license.
* Analytics Pros offers consulting and... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: main.c
* Author: <NAME>
*
* Created on 30 de Novembro de 2017, 16:20
*/
#include <stdio.h>
#include <stdlib.h>
#in... |
/* ----------------------------------------------------------------------- *
*
* Copyright 2007-2008 <NAME> - All Rights Reserved
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Softwa... |
//*****************************************************************************
//
// spi - Serial Peripheral Interface
//
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNES... |
/* This is the Frugal GCC Wrapper Program. See docs/FGCC for details.
*/
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
FILE *infd=NULL;
char *outfile=NULL, *cgen=NULL, *cc=NULL;
int bare=0, quiet=0, norm=0;
void forth_print(FILE *outfd, char *buf) {
char ... |
#include "threadpool_impl.h"
#include <pthread.h>
#include <semaphore.h>
#include <stdio.h>
#include <stdlib.h>
// mutex to solve race conditions in adding/removing to/from jobqueue
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
// barrier
pthread_barrier_t barrier;
// indicator for threadpool activity
static i... |
/*$
Copyright (c) 2014-2017, Azel
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 conditions and the follow... |
#include "stdlib.h"
#include "stdio.h"
#include "string.h"
#include "fcarLib.h"
int menu_trainModel(int argc, char **argv);
int trainModel(char *method, float c, char *trainingFile, char *outputFile);
/*------------------------*/
/* trainModel */
/*------------------------*/
int main(int argc, char **arg... |
/*
* The MIT License
*
* @Version 0.1
* Copyright 2015 <NAME> <<EMAIL>> <https://github.com/glen-mac>
*
* 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 ... |
#include "proto.h"
#include "pb_decode.h"
#define HAVE_STDIO 1
#ifdef HAVE_STDIO
#include "stdio.h"
#include "inttypes.h"
#endif
struct output_buf {
uint32_t *out;
uint32_t out_len;
uint32_t offset;
};
// Started from https://github.com/FastLED/FastLED/wiki/Overview#quick-examples
// For submessage decoding,... |
#include "common.h"
struct sb_settings {
};
// Params
void check(char *dev_path){
if (is_mounted(dev_path))
hashfs_error("device %s is already mounted. Aborting.", dev_path);
#ifdef TGT_DEV
if (strcmp(dev_path, TGT_DEV) != 0)
hashfs_error("device not allowed, must be %s", TGT_DEV);
#endif
}
... |
#include <stdlib.h>
#include <pthread.h>
#include "data.h"
#include "transaction.h"
#include "string.h"
#include "helper.h"
#include "debug.h"
/*
* Create a blob with given content and size.
* The content is copied, rather than shared with the caller.
* The returned blob has one reference, which becomes the caller'... |
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <unistd.h>
#include <sys/wait.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <omp.h>
#include "lodepng/lodepng.h"
void box_blur_h(unsigned char *dest, unsigned char *src, int height, int width,
int radius)
{
double coeff ... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <sandbox.h>
#include <string.h>
#include <fcntl.h>
#include <linux/types.h>
#include <linux/ioctl.h>
#include <linux/fb.h>
#include <sys/mman.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <ifaddrs.h>
#include <netinet/in.h>
#include <string.... |
/*
* Copyright (c) 2015 <NAME> <<EMAIL>>
* Copyright (c) 2015-2017 The strace developers.
* 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 ... |
#pragma once
#include <stdint.h>
#include <rhino/arch/x86/drivers/rtc.h>
#include <rhino/arch/x86/drivers/screen.h>
#include <rhino/common.h>
#include <rhino/arch/x86/isr.h>
#include <rhino/mm/pmm.h>
#include <rhino/arch/x86/drivers/dma.h>
#define FLOPPY_IRQ IRQ6
#define FDD_TYPE_360kb_512 0
#define FDD... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sqlite3.h>
#include <time.h>
#include "../cmail-admin.h"
#include "permissions.c"
#define PROGRAM_NAME "cmail-admin-permissions"
int usage(char* fn){
printf("cmail-admin-permissions - Manage permissions for the cmail web panel\n");
printf("This pr... |
#include "tb_cxxrtl_io.h"
#include "hazard3_csr.h"
// Set IRQ mask (meie0) wide-open, then pend the IRQs one by one and log their
// firing.
#define mie_meie 0x800u
int main() {
asm volatile ("csrsi mstatus, 0x8");
write_csr(hazard3_csr_meie0, -1u);
write_csr(mie, mie_meie);
for (int i = 0; i < 32; ++i) {
tb_... |
#include "queue.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "harness.h"
/*
* Create empty queue.
* Return NULL if could not allocate space.
*/
queue_t *q_new()
{
queue_t *q = malloc(sizeof(queue_t));
if (!q)
return NULL;
q->head = NULL;
q->tail = NULL;
q->siz... |
#define _XOPEN_SOURCE 500
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <semaphore.h>
#include <unistd.h>
#include <time.h>
#include <signal.h>
#include <sys/shm.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <values.h>
int BROJ_PROCESA = 4;
... |
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "draw.h"
#include "wires.h"
#include "pen.h"
/* Default paperboard sizes (width is the distance between the 2 motors */
#define PAPERBOARD_WIDTH_MM 800.0
#define PAPERBOARD_HEIGHT_MM 900.0
... |
#include <MEPT-renaming.h>
#include <MEPT-tree.h>
#include <MEPT-symbols.h>
#include <string.h>
static
PT_Symbol renameInSymbol(PT_Symbol symbol,
PT_Symbol formalParam,
PT_Symbol actualParam);
static
PT_Symbols renameInSymbols(PT_Symbols symbols,
... |
/*
* further_use.c
* seta
*
* Created by <NAME> on 28/10/2013.
* Copyright 2013 Erlang Solution Ltd. All rights reserved.
*
*/
#include "seta.h"
#include <stdio.h>
#include <stdlib.h>
bool graph = true;
typedef struct _args_print {
int val;
} args_print_t;
void print(seta_context_t context) {
args_prin... |
#include <tree_sitter/parser.h>
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
#endif
#define LANGUAGE_VERSION 9
#define STATE_COUNT 7
#define SYMBOL_COUNT 6
#define ALIAS_COUNT 0
#define TOKEN_COUNT 3
#define EXTERNAL_TOKEN_COUNT ... |
/*
* LLUBENCHMARK
* <NAME> (<EMAIL>)
* http://www.cs.wisc.edu/~zilles/llubenchmark.html
*
* This program is a linked list traversal micro-benchmark, which can
* be used (among other things) to approximate the non-benchmark
* Health.
*
* The benchmark executes for a proscribed number of iterations (-i),
* an... |
//Comprar ingressos, quantos quiser, selecionando a poltrona
// Permitir descontos como meia entrada e itasil
// 40 fileiras de 1 a 40
// 10 poltronas por fileira, de A a J
// 20 reais o ingresso, 10 reais a meia e 14 reais pra itasil
#include<stdio.h>
#define INGRESSOPADRAO 20 //Valor fixo do ingresso cheio
#define ... |
#include <stdio.h>
#include <stdlib.h>
#include "printer.h"
/**
* Prints the two structures of the program: the MATRIX and the KEYFILE.
* @param keyfile - the keyFile whose attributes need to be printed
* @param playfairMatrix - the matrix to print
*/
void printStructures(KEYFILE keyfile, MATRIX playfairMatrix) {... |
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <stdbool.h>
#include "ts_queue_oth.h"
// A safe-ish malloc.
void* smalloc(int tsize) {
void* n = malloc(tsize);
if (n == NULL) {
perro... |
/*
* Since the strings in this file are printed out when the "-v" switch is
* given to ispell, you may want to translate them into your native language.
* However, any translation of these strings MUST accurately preserve the
* legal rights under international law; you may wish to consult a lawyer
* about this si... |
/**
* Copyright (c) 2012 - 2017, 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... |
/*
3APA3A simpliest proxy server
(c) 2002-2016 by <NAME> <<EMAIL>>
please read License Agreement
*/
#include "proxy.h"
int socksend(SOCKET sock, unsigned char * buf, int bufsize, int to){
int sent = 0;
int res;
struct pollfd fds;
fds.fd = sock;
fds.events = POLLOUT;
do {
if(conf.timetoexit) return 0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.