text stringlengths 3.08k 10.5k |
|---|
#include "mov-internal.h"
#include <assert.h>
// ISO/IEC 14496-12:2012(E)
// 8.2.2.1 Movie Header Box (p30)
// Box Type : 'mvhd'
// Container : Movie Box('moov')
// Mandatory : Yes
// Quantity : Exactly one
/*
aligned(8) class MovieHeaderBox extends FullBox('mvhd', version, 0) {
if (version==1) {
unsigned int... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2011 NetApp, 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:
* 1. Redistributions of source code must retain t... |
/*
* Copyright (c) 2008, 2009, 2012, 2013 by Farsight Security, 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 requ... |
/*
** EPITECH PROJECT, 2018
** my_rpg
** File description:
** initialise structure
*/
#include <SFML/Audio.h>
#include <SFML/Graphics/Rect.h>
#include "proto.h"
#include "menu.h"
#include "my.h"
#include "../../include/proto.h"
void invert_key(map_all_t *map_all, sfRenderWindow *window)
{
(void)window;
map_all->pl_... |
/*
* Copyright 2010-2011 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* 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... |
/*
* 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... |
#include <stdio.h>
#include <stdlib.h>
#include <xcb/xcb.h>
#include <xcb/randr.h>
#include <jmorecfg.h>
#include <stdbool.h>
#include <Xos.h>
int nbrMonitors(xcb_connection_t *con, xcb_window_t root) {
xcb_randr_monitor_info_t *infoMonitor;
xcb_randr_get_monitors_cookie_t cookie;
xcb_randr_get_monitors_re... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#pragma once
//
// RDP APPLIST protocol header.
//
#define RDPAPPLIST_CMDID_CAPS 0x00000001
#define RDPAPPLIST_CMDID_UPDATE_APPLIST 0x00000002
#define RDPAPPLIST_CMDID_DELETE_APPLIST 0x00000003
#define RDPAPPLIST_CMDID_DELETE_APPLIST_... |
/****************************************************************************
*
* Copyright (c) 2007-2008 Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU Gen... |
/*
* Host Resources MIB - proc processor group implementation - hr_proc.c
*
*/
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#if HAVE_STRING_H
#include <string.h>
#else
#include <strings... |
#include <lua.h> /* lua_*() */
#include <lauxlib.h> /* luaL_*() */
#include <lualib.h> /* luaL_openlibs() */
#include "unit.h" /* plan, header, footer, is */
#include "memory.h" /* memory_init() */
#include "fiber.h" /* fiber_init() */
#include "diag.h" /* struct error, diag_*() */
#include ... |
#include <sys/sysctl.h>
/* vnode types (vnode->v_type) */
enum vtype {
/* 0 */
VNON,
/* 1 - 5 */
VREG, VDIR, VBLK, VCHR, VLNK,
/* 6 - 10 */
VSOCK, VFIFO, VBAD, VSTR, VCPLX
};
//struct qm_trace {
// char * lastfile;
// int lastline;
// char * prevfile;
// int prevline;
//};
typedef... |
// Copyright (c) 2017 Olimex Ltd.
//
// GNU GENERAL PUBLIC LICENSE
// Version 3, 29 June 2007
//
// 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 ... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2014 Couchbase, 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
*
* ht... |
/*
* 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 ... |
/*
code to control a pneumatic press
runs on a Parallax C3
10/16/2017 created mam
11/8/2017 v-4.0 installed
5/6/2018 v-6.0 removed pauses where possible leds controlled directly by switches
5/11/2018 v-6.1 improve response to up switch
5/12/2018 v-6.5... |
/* atmdump.c - ATM raw cell dumper */
/* Written 1995-1998 by <NAME>, EPFL-LRC/ICA */
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netin... |
/* Copyright (c) 2007-2021, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* \file btrack_orconn.c
* \brief Bootstrap tracker for OR connections
*
* Track state changes of OR connections, as published by the
* connection subsystem. Also track circuit launch events, because
* they're on... |
#ifndef __G_TYPE_H__
#define __G_TYPE_H__
#include <glib.h>
#include <stddef.h>
/*
* GType is just an index in the global type registry
*/
typedef size_t GType;
#include <gobject/gvalue.h>
#include <gobject/gvaluecollector.h>
typedef enum _GTypeDebugFlags {
G_TYPE_DEBUG_NONE,
G_TYPE_DEBUG_OBJECT,
G_TYPE_DEBUG... |
/* _ _
** _ __ ___ ___ __| | ___ ___| | mod_ssl
** | '_ ` _ \ / _ \ / _` | / __/ __| | Apache Interface to OpenSSL
** | | | | | | (_) | (_| | \__ \__ \ | www.modssl.org
** |_| |_| |_|\___/ \__,_|___|___/___/_| ftp.modssl.org
** |_____|
** ssl_engine... |
#include <string.h>
#include "freertos/FreeRTOS.h"
//#include "crypto/common.h"
//#include "crypto/sha256.h"
//#include "sodium.h"
//#include "sodium/crypto_hash_sha256.h"
#include "aws.h"
#define TAG "ESP-IDF AWS"
/*
* aws_auth_v4_signing_key - generates AWS signing key
* @key: secret key
* @amz_date: YYYYMMDD... |
/*
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
* Copyright (c) 2002 <NAME>
*
* This code is derived from software contributed to Berkeley
* by <NAME> (<EMAIL>). The Rock Ridge Extension
* Support code is derived from software contributed to Berkeley... |
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "eax128.h"
#include "aes128.h"
#include "vectors_eax_aes.h"
static struct
{
uint32_t words[AES128_NREGS];
} aes_regs;
void aes128_streg(int i, uint32_t w)
{
aes_regs.words[i] = w;
}
uint32_t aes128_l... |
/*----------------------------------------------------------------------------*/
/* */
/* GPU Meshing Library 3.30 */
/* ... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test_cvrt_s.c :+: :+: :+: ... |
/*
$Id$
Copyright 1989-2014 <NAME>
This file is part of PIPS.
PIPS 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
any later version.
PIPS is distributed in... |
#include <stdio.h>
#include <stdlib.h>
#include "encode.h"
#include "code.h"
#include <math.h>
#include <limits.h>
#include <string.h>
//<NAME>
struct node *head;
struct node *tail;
//the node assoceated with a certain letter
struct node * nodeLetters[256];
//EOF IS NOT IN ARRAY. SKIP PASSED ARRAY ELEMENTS OF 0
int ma... |
/*
* ryshttpd -- simple filesharing http server.
*
* ryshttpd is copyrighted:
* Copyright (C) 2018 <NAME>. All rights reserved.
*
* ryshttpd is licensed to you under the terms of std. MIT/X11 license:
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associ... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Configure QSPI0 as Slave 3 wire mode and demonstrate how to
* communicate with an off-chip SPI Master device with FIFO mode.
* This sample code needs to work with SPI... |
#include "fat32.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define UNUSED(X) ((void)(X))
#ifdef _WIN32 /* Used to unfuck file mode for "Win"dows. Text mode is for losers. */
#include <windows.h>
#include <io.h>
#include <fcntl.h>
static void binary(FILE *f) { _setmode(_fileno(f)... |
/** <!--
*
* Copyright (C) 2014 OpenVCX <EMAIL>
*
* This program 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, or (at your option) any later version.
*
... |
/* this project uses nextion display loaded with droSimple
add m library gcc command line -lm
change heap size to 0x200 in cydwr System
add linker command line -u_printf_float
https://nextion.itead.cc/resources/documents/instruction-set/
*/
#include "project.h"
#include <stdio.h>
#incl... |
/*
* Copyright (c) 2014-2015 <NAME> <<EMAIL>>
*
* Distributed under the terms of the MIT license.
* (See LICENSE.MIT or http://opensource.org/licenses/MIT)
*/
#include <sys/stat.h>
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include "baseops.h"
#include ... |
/*
* BREAKOUT
*/
#include <malloc.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include "display.h"
#include "ball.h"
const float SCALE_X = 10;
const float SCALE_Y = 10;
const int GRID_W = 10;
const int GRID_H = 35;
const int LAYERS = 6;
/*
* STRUCTURES
*/
struct game {
grid *g;
paddl... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* lex/word.c :+: :+: :+: ... |
/* gpib_c.c
* Rev: 2009 Mar 13
*
* These functions provide low level communication
* with GPIB devices.
*
* This is not intended to be a DLL.
* Compile this file to OBJ and link with the application.
*
* This code uses the National Instruments header file, "ni488.h"
* It also calls the National Instru... |
#include <arp.h>
#include <rtl8139.h>
#include <network_utils.h>
#include <string.h>
#include <serial.h>
arp_table_entry_t arp_table[512];
int arp_table_size;
int arp_table_curr;
uint8_t broadcast_mac_address[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
void arp_handle_packet(arp_packet_t * arp_packet, int len) {
c... |
///////////////////////////////////////////////////////////////////////////////
// test app for bluetooth proximity
//
// From
// http://www.linuxguru.se/comment/reply/10
//
// Written 2003 by <NAME> <<EMAIL>>
// http://perl.jonallen.info/code
//
// C code adapted from hcitool.c
// Copyright (C) 2000-2001 Qualcomm I... |
/*
* @author <NAME> <<EMAIL>>
* @date 12.03.2015
*
* A C driver for the sensor lm75.
*
*/
#ifndef __LM75__
#define __LM75__
#include <stdint.h>
#include "lm75.h"
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <linux/i2c-dev.h>
#include <time.h>
#incl... |
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include "dice.h"
static char* read_file(char* path, size_t* len) {
size_t l;
char* buf;
FILE* f;
f = fopen(path, "rb");
if(!f) goto ERROR_0;
fseek(f, 0, SEEK_END);
l = ftell(f);
fseek(f, 0, SEEK_SET);
buf = malloc(l+1);
... |
#include "threading.h"
#include <stdlib.h>
//
//
//
typedef void (*thrd_pool_worker)(void *arg);
struct thrd_pool_work_node {
thrd_pool_worker proc;
void *arg;
struct thrd_pool_work_node *next;
};
typedef struct thrd_pool_work_node thrd_pool_work_node;
typedef struct {
thrd_pool_work_node head;
th... |
/**
* @file bdsm/sd.c
* @brief List host supporting NETBIOS on the local network
*/
/*****************************************************************************
* Copyright © 2014 Authors and the VideoLAN team
*
* Authors: - <NAME>' BALLET <contact # lta 'dot' io>
*
* This program is free software; you can re... |
#include <gc.h>
#include <vm.h>
#include <value.h>
#include <exception.h>
#include <stdarg.h>
#include "multiboot.h"
#include "mm.h"
#include "console.h"
#include "panic.h"
#include "gdt.h"
#include "interrupt.h"
#include "io.h"
#include "lib.h"
void load_modules(VAL object, multiboot_module_t* modules, uint32_t count... |
/* bedToGenePred - convert bed format files to genePred format */
/* Copyright (C) 2013 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "common.h"
#include "options.h"
#include "bed.h"
#include "psl.h"
#include "sqlNum.h"
#inclu... |
/*
* Id: fbbits.c,v 1.1 1999/11/02 03:54:45 keithp Exp $
*
* Copyright © 1998 <NAME>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
*... |
/****************************************************************************
* lpc810_init.c
*
* Copyright (c) 2016 <NAME>
* This software is released under the MIT License.
****************************************************************************/
#include <stdint.h>
#include "config.h"
#include "armv6m... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* ADAU7002 Stereo PDM-to-I2S/TDM converter driver
*
* Copyright 2014-2016 Analog Devices
* Author: <NAME> <<EMAIL>>
*/
#include <linux/acpi.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_devi... |
/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (c) 2009 Citrix Systems, 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:
* 1. Redistributions of source code must retain the a... |
/*
* Copyright (c) 2008-2012 the MansOS team. 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 con... |
/*
* include/asm-arm/arch-sa1100/flexanet.h
*
* Created 2001/05/04 by <NAME> <<EMAIL>>
*
* This file contains the hardware specific definitions for FlexaNet
*
*/
#ifndef __ASM_ARCH_HARDWARE_H
#error "include <asm/hardware.h> instead"
#endif
/* Board Control Register (virtual address) */
#define FHH_BCR_PHYS 0... |
#include "../include/exchange_messages_with_monitor.h"
int communicate_with_monitor_process(child_info *child_array, int num_monitors, int socket_buf_size, int cyclic_buf_size,
int bloom_size, char *input_dir, int num_threads){
int port_num=0, connect_status=0, ret_val=0;
... |
/* $Id: biossums.c $ */
/** @file
* Tool for modifying a BIOS image to write the BIOS checksum.
*/
/*
* Copyright (C) 2006-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it a... |
#include "window_win32.h"
#include "input_key_map_win32.h"
#include "../window_common.h"
#include <stdbool.h>
#include <stdio.h>
#include <Windowsx.h>
extern IMAGE_DOS_HEADER __ImageBase;
static const HINSTANCE g_instance = (HINSTANCE) &__ImageBase;
static const char* g_window_class_name = "fundament.WNDCLASSEX";
v... |
/******************************************************************************
*
* Component: OGDI Core C API
* Purpose: Double precision matrix inverse, allocation, multiplication,
* and print routines.
*
******************************************************************************
*/
#include <math... |
/* Test file for mpfr_const_pi.
Copyright 1999, 2001-2016 Free Software Foundation, Inc.
Contributed by the AriC and Caramba projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Lic... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "harness.h"
#include "natsort/strnatcmp.h"
#include "queue.h"
/*
* Create empty queue.
* Return NULL if could not allocate space.
*/
queue_t *q_new()
{
queue_t *q = malloc(sizeof(queue_t));
if (q == NULL)
return NULL;
q->head =... |
/* original version by megazig */
#include "crypto.h"
void setup_aeskeyX(u8 keyslot, void* keyx)
{
u32 * _keyx = (u32*)keyx;
*REG_AESKEYCNT = (*REG_AESKEYCNT >> 6 << 6) | keyslot| 0x80;
*REG_AESKEYXFIFO = _keyx[0];
*REG_AESKEYXFIFO = _keyx[1];
*REG_AESKEYXFIFO = _keyx[2];
*REG_AESKEYXFIFO = _ke... |
#include "transcription.h"
void initialize(char *array,int size){
int i;
for(i=0;i<size;i++)array[i] = '\0';
}
/**
* BIO: CODONS
* funcao que quebra uma string em substrings
* de tamanho 3.
* str - String recebida pela thread.
* Exemplo: AACCGCTCA -> AAC CGC UCA
*/
char** split(char* str, int subStringSize){
... |
/**********************************************************************
* $Id$ LedBlinky.c 2010-05-21
*//**
* @file LedBlinky.c
* @brief This example describes how to use GPIO interrupt to drive LEDs
* @version 2.0
* @date 21. May. 2010
* @author NXP MCU SW Application Team
*
* Copyright(C) 2010, NXP Semiconduc... |
#include<stdarg.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define INIT_SIZE 8
void printLine() {
printf("%d\n", __LINE__);
}
typedef struct {
int nalloc;
int length;
char *chars;
} String;
String *make_string() {
String *s = malloc(sizeof(String));
s->chars = malloc(INIT_SIZE);
s->nalloc = I... |
/**
Copyright (c) 2013 <NAME>
*/
#include <FFOS/file.h>
#include <FFOS/dir.h>
#include <FFOS/time.h>
#include <FFOS/socket.h>
#include <FFOS/error.h>
#include <FFOS/asyncio.h>
#include <FFOS/atomic.h>
#include <FFOS/process.h>
#include <FFOS/sig.h>
#include <FFOS/std.h>
#include <ffbase/string.h>
#include <assert.h>
... |
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <setjmp.h>
#include <string.h>
#include <time.h>
#include "util/alloc.h"
#include "range.h"
#include "buffer.h"
#include "vars.h"
#include "global.h"
#include "gui/motion.h"
#include "gui/intellisense.h"
#include "gui/gui.h"
#include "buffers.h"
#def... |
/* Copyright (c) 2008, 2009 Nicira Networks, 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... |
/*
* File: datalogger-ui-leds.c
* Author: Ducky
*
* Created on July 9, 2011, 9:23 PM
*
* Revision History
* 09 Jul 2011 Ducky File creation.
* 23 Jul 2011 Ducky Initial implementation.
*
* @file
* State-based LED code, including functionality for pulsing.
*/
#include "datalogger-ui-hardware.h"
#include ... |
// Final Project COMP 310
// Your Name:<NAME>
// Your McGill ID: 260917694
//
// You need to fill in this file for the first problem
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "DISK_driver.h"
#include "DISK_driver_problem1.h"
#include "shellmemory.h"
char writebuffer[50000];
cha... |
#include <stdio.h>
#include "hardware.h"
#include "delay.h"
#include "lcd/lcd_hal.h"
#include "lcd/lcd_gfx.h"
/**
This one is executed onece a second. it counts seconds, minues, hours - hey
it shoule be a clock ;-)
it does not count days, but i think you'll get the idea.
*/
volatile int irq_counter, offset;
volatile u... |
#include <stdio.h>
#include <math.h>
void part_01(void)
{
printf("Part One: \n");
printf("\t1.1:\n");
double a = 3.14159265358979323846, a1, a2, a3, l1, l2, l3, l4;
int x5 = 49, x, x9 = 50, x99 = 10, x1 = 1, x2 = 13;
a1 = acos(-1.0);
printf("Number Pi is %.3f (const), math library %.3f.\n", a, ... |
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
#include <stdio.h>
#include <windows.h>
#include <winsock2.h>
#include <Ws2tcpip.h>
#include "dnsHeader.h"
#pragma comment(lib, "ws2_32.lib")
BOOLEAN sendDNS(const char *DomainName, const char *dnsServer);
BOOLEAN verifyDomainName(const char *DomainName);
int lastIsDot(const char *DomainName);
void Domain2QueryName(c... |
/* calstis4 -- determine offsets from wavecal
This file contains:
CalStis4
internal:
StisInit4
*/
# include <stdio.h>
# include <string.h>
# include <hstio.h>
# include "../stis.h"
# include "calstis4.h"
# include "../stiserr.h"
static void StisInit4 (StisInfo4 *);
/* This determines the offset in each ... |
/**
* \file
* \brief Hardware Interface Functions - I2C bit-banged
* \author Atmel Crypto Group
* \date November 18, 2015
*
* \copyright Copyright (c) 2015 Atmel Corporation. All rights reserved.
*
* \atmel_crypto_device_library_license_start
*
* \page License
*
* Redistribution and use in source and bin... |
#include "stdlib.h"
#include "hdf5.h"
#include "getopt.h"
#include <string.h>
#define NAME_MAX 255
char filename[NAME_MAX];
char DATASETNAME[NAME_MAX];
char cb_buffer_size[NAME_MAX];
char cb_nodes[NAME_MAX];
int NDIMS=2;
int main(int argc, char **argv){
int mpi_size, mpi_rank;
MPI_Comm comm = MPI_COMM_WORLD... |
#include<stdio.h>
#include <stdlib.h>
#include <assert.h>
#include<time.h>
// Source: srand() and rand() functions in set_mine(mine); from http://www.tutorialspoint.com/c_standard_library/c_function_rand.htm
int row = 9;
int col = 9;
int num = 10;
struct posn {
int x;
int y;
};
struct llnode {
struct po... |
/*****************************************************************************\
** **
** FILE: actions.h **
** AUTHORS: Alexios **
**... |
/*
* Calcurse - text-based organizer
*
* Copyright (c) 2004-2016 calcurse Development Team <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of sourc... |
#include <pipes.h>
#include <semaphores.h>
#include <null.h>
#include <fd.h>
#define MAX_PIPES 100
int pipes[MAX_PIPES];
int pipe_open(int name){
return give_me_fd(name, 1);
}
int pipe_write(int fd, char * buff,int size){
return fd_write(fd, buff, size);
}
int pipe_read(int fd,char * buff, int size){
r... |
/***************************************************************\
* This file is a prototype for a host include file. *
* Take this file & modify it to suit your environment. *
* *
* It should be included in ALL source files, before anything *
* else. Its purpose is to #define the names of system include ... |
#include <stdio.h>
#include <stdlib.h>
typedef struct n{
int data;
int height;
struct n *left, *right;
} avl;
avl* createNode(int k){
avl *t = (avl *)malloc(sizeof(avl));
t->data = k;
t->left = t->right = NULL;
t->height = 1;
return t;
}
void inorderTraversal(avl* tree){
if(tree)... |
/*
* Copyright 2015 Red Hat, 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... |
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/random.h>
#include <sys/syscall.h>
#include <unistd.h>
#include "seccomp-bpf.h"
/**
* Activa los filtros BPF para el proceso dejando activos unicamente exit (sin
* restricciones) y execve (con restricciones en sus 6 param... |
/* hgExonerate - Convert Exonerate modified GFF files to BED format and load in database.. */
#include "common.h"
#include "cheapcgi.h"
#include "linefile.h"
#include "hash.h"
#include "dystring.h"
#include "jksql.h"
static char const rcsid[] = "$Id: hgExonerate.c,v 1.1 2006/07/26 03:59:24 markd Exp $";
void usage()
... |
/*
*
* Copyright (c) 2018 Huawei Technologies Co.,Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <montage.h>
#define MAXSTR 256
extern char *optarg;
extern int optind, opterr;
extern int getopt(int argc, char *const *argv, const char *options);
/******************************************************/
/* ... |
/*
Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
File modified October 3, 2003 by PathScale, Inc. to update Open64 C/C++
front-ends to GNU 3.3.1 release.
*/
/* Language-level data type conversion for GNU C.
Copyright (C) 1987, 1988, 1991, 1998, 2002 Free Software Foundation, Inc... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pico/stdlib.h"
#include "hardware/structs/systick.h"
#include "hardware/clocks.h"
#include "hardware/sync.h"
#include "hardware/gpio.h"
#include "pico/bootrom.h"
/*
* Control test behavior
*/
static int disable_interrupts = 1; // disable interrup... |
/*
* Copyright (c) 2012 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.
*/
#include <string.h>
#include "native_client/src/include/nacl_macros.h"
#include "native_client/src/shared/gio/gio.h"
#include "native_cli... |
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "cli.h"
#include "str.h"
static int print_spec_name(git_str *out, const cli_opt_spec *spec)
{
... |
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Notepad3.rc
//
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x601 /*_WIN32_WINNT_WIN7*/
#endif
#ifndef WINVER
#define WINVER 0x601 /*_WIN32_WINNT_WIN7*/
#endif
// ==========================================
// How to build a NON... |
#include <bc_uart.h>
#include <bc_irq.h>
#include <bc_module_core.h>
#include <stm32l0xx.h>
typedef struct
{
struct
{
bc_fifo_t *tx_fifo;
bc_fifo_t *rx_fifo;
} channel[3];
} bc_uart_t;
static bc_uart_t _bc_uart;
typedef struct
{
USART_TypeDef *USARTx;
uint32_t pupdr_mask;
ui... |
/* @source noredundant application
**
** Remove redundant sequences from an input set
** @author Copyright (C) <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... |
/*
Unix SMB/CIFS implementation.
Credentials popt routines
Copyright (C) <NAME> 2002,2003,2005
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
... |
/*
This file is part of the sgui samples collection. I, <NAME>,
author of this file hereby place the contents of this file into
the public domain.
*/
/*
This small programm is supposed to demonstrate how to create a window
an embedded Direct3D 11 rendering widget through sgui.
*/
#include "sgui.h"... |
#define MAX 50
#define INVALIDO -1
/** Dentro desse codigo temos uma diferença perto da aula3
* Temos um arranjo de elementos ( o elemento é a informação em si, o elemento util para o usuario) e a informação do proximo elemento
*
* E agora no arranjo de LISTA, nos temos o proprio ELEMENTO, e depois o inicio = para... |
/* --COPYRIGHT--,BSD,BSD
* Copyright (c) 2017, Texas Instruments Incorporated
* 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 ... |
#include <stdio.h>
#include "decrypt.h"
#include "params.h"
#include "vec256.h"
#include "fft_tr.h"
#include "benes.h"
#include "util.h"
#include "fft.h"
#include "bm.h"
#include <stdint.h>
static void scaling(vec256 out[][GFBITS], vec256 inv[][GFBITS], const unsigned char *sk, vec256 *recv)
{
int i, j;
vec128 sk... |
/*
Copyright 2015 <NAME>.P.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writi... |
/* $OpenBSD: check_expire.c,v 1.8 2004/04/20 23:21:23 millert Exp $ */
/*
* Copyright (c) 1997 Berkeley Software Design, 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:
* 1. Redistribu... |
#include <string.h>
#include "types.h"
#include "debug.h"
#include "wkreprog_impl.h"
#include <avr/boot.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
// This function should be in the NRWW section to allow it to write to flash
//void BOOTLOADER_SECTION avr_flash_program_page(uint32_t page, uint8_t *buf);
voi... |
/* -*- Mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*-
*
* testgdi.c : simple test hack
*
* Authors:
* <NAME> <<EMAIL>>
*
* Based on cairo test code.
*
* Modify the body of win_draw() to test your own code.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include "GdiPl... |
/*
Author: <NAME> (P1703177)
Class: DISM/FT/1A/21
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include <crypt.h>
#include <omp.h>
#include "functions_3177.h"
void printHelp(char *);
int isAllNumeric(char *);
void writefile(char ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.