text stringlengths 3.12k 18.7k |
|---|
#include <sys/types.h>
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "events.h"
#include "network.h"
#include "netbuf.h"
#include "netbuf_ssl_internal.h"
/*
* Set to NULL here; initialized by netbuf_ssl if SSL is being used. This
* allows us to avoid needing to link lib... |
#include "header.h"
int min(int a, int b){ // Utility function to calculate min
if(a<b)return a;
return b;
}
////////////////////////// company ////////////////////////////
void delay_random(){
int t = rand() % 3 + 2;
sleep(t);
}
void * company_procedure(void * temp){ // the comp... |
// CS17BTECH11022 Assignment 4
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
struct Node{
struct Node* left;
int data;
struct Node* right;
};
struct BSTNode{
struct BSTNode* parent;
/* struct Node* head;
struct Node* tail; */
struct BSTNode* leftchild;
unsigned int data;
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <inttypes.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
#include "logger.h"
#include "shared_func.h"
#include "sched_thread.h"
#include "ini_file_reader.h"
#include "fast_mblock.h"
#include "s... |
/* malloc.c - a malloc(3) and free(3) implementation.
*
* This is an extremely simple implementation of the malloc(3) and free(3)
* library functions, responsible for allocatiing memory from the heap to
* a process.
*
* This implementation uses a very basic algorithm as described in
* "The Linux Programming Inte... |
/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, <NAME> <<EMAIL>>.
* Copyright (c) 2012-2019, <NAME> <<EMAIL>>.
*/
#include "taisei.h"
#include <SDL.h>
#include <zlib.h>
#include "rwops_zlib.h"
#include "rwops_util.h"
#in... |
/* Implementation of the GETARG and IARGC g77, and
corresponding F2003, intrinsics.
Copyright (C) 2004-2017 Free Software Foundation, Inc.
Contributed by <NAME> and <NAME>.
This file is part of the GNU Fortran 95 runtime library (libgfortran).
Libgfortran is free software; you can redistribute it and/or
mod... |
/**
* || ____ _ __
* +------+ / __ )(_) /_______________ _____ ___
* | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
* +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
* || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
*
* Crazyflie control firmware
*
* Copyright (C) 2011-2012 Bi... |
/*
* Copyright (c) 2015, Intel Corporation
*
* 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 t... |
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <NAME> <<EMAIL>> wrote this file. As long as you retain
* this notice you can do whatever you want with this stuff. If we meet some day,
* and you think this stuff is worth it, you can buy... |
/*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* 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 requir... |
#include "thread.h"
pthread_mutex_t mutexsum;
matrix_t matA, matB, matC; // Matrici per i calcoli
int sum; // Somma el di C
pthread_mutex_t mutexsum; // Semaforo
pthread_t *threads; // Lista dei thread
void scheduling_t(char **argv)
{
// Mi prendo dalla lista dei parametri la dimensione della matrice.
//... |
/**
* @file
*
* This file contains the implementation of the Spinner specific BSP functions for STM32F411 Discovery.
*/
#include <math.h> // For fabsf()
#include <libopencm3/cm3/assert.h> // For the cm3_assert macros.
#include <libopencm3/stm32/gpio.h> // For the GPIO manipulation functions.
#include <libopencm3/... |
// SPDX-License-Identifier: GPL-2.0
/*
* HID driver for the Creative SB0540 receiver
*
* Copyright (C) 2019 Red Hat Inc. All Rights Reserved
*
*/
#include <linux/device.h>
#include <linux/hid.h>
#include <linux/module.h>
#include "hid-ids.h"
MODULE_AUTHOR("<NAME> <<EMAIL>>");
MODULE_DESCRIPTION("HID Creative SB0... |
/*
GAUSSHEX.C
version 1.0 du 19 octobre 1991
Turbo C++ sous MSDOS 5.00
(c) <NAME> 1990, 1991
Formule de Gauss:
π=48*Arctan(1/18)+32*Arctan(1/57)-20*Arctan(1/239)
Méthode de calcul:
■ Le développement en série entière d'Arctan donne:
Arctan(1/t)=t∙Σ (-1)ⁿ∙(1/t²)^(n+1)/(2n+... |
///
/// @copyright Copyright (c) 2016-, <NAME> <<EMAIL>>
/// All rights reserved.
///
/// Redistribution and use in source and binary forms, with or without
/// modification, are permitted provided that the following conditions
/// are met:
///
/// 1. Redistributions of source code must retain the above copyright
/// ... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/*
* mm/memory.c
*
* This file is part of JunOS Operating System.
*
* Copyright (C) 2016, <NAME> <<EMAIL>>
* Licensed under MIT, http://opensource.org/licenses/MIT.
*/
#include <junos/junos.h>
#define HIGH_MEM 0x800000
static unsigned long memsize;
static unsigned long NR_PAGE;
static s... |
/*
Fri Aug 15 16:29:47 EDT 1997
This is a STREAMING translator to be used for *LARGE*
Harwell-Boeing files with REAL or COMPLEX data.
(use 'hbmat2mtx' for PATTERN matrices)
*** CONVERSION ROUTINE ***
Harwell-Boe... |
#include "graphics.h"
#include <SDL2/SDL_image.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Animation anim_new(TextureRegion *frames, size_t num_frames, size_t steps_per_frame) {
ArrayList list = al_prealloc(sizeof(TextureRegion), frames, num_frames);
list.length = num_frames;
return (Animation) {... |
/*==========================================================================*\
*
* curlstream.c - cURL stream processing for flasher.
* flasher (C) 2006 <NAME>
*
\*==========================================================================*/
#include <errno.h>
#include <curl/curl.h>
#include <unistd.h>
#include... |
/* MIT License
*
* Copyright (c) 2016-2020 INRIA, CMU and Microsoft Corporation
*
* 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 r... |
/* Author: <NAME> <<EMAIL>>
* Date : May 2009
*
* Copyright 2010 Howard Hughes Medical Institute.
* All rights reserved.
* Use is subject to Janelia Farm Research Campus Software Copyright 1.1
* license terms (http://license.janelia.org/license/jfrc_copyright_1_1.html).
*/
#include <stdio.h>
#include <stdlib.h... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_otbn.h"
#include "sw/device/lib/runtime/hart.h"
#include "sw/... |
/* KogMo-RTDB: Real-time Database for Cognitive Automobiles
* Copyright (c) 2003-2007 <NAME> <matthias.goebl*goebl.net>
* Lehrstuhl fuer Realzeit-Computersysteme (RCS)
* Technische Universitaet Muenchen (TUM)
* Licensed under the Apache License Version 2.0.
*/
/*! \file kogmo_rtdb_housekeeping.c
* \brief ... |
/*
Ruby Objects to C Datatypes:
int NUM2INT(Numeric) (Includes type check)
int FIX2INT(Fixnum) (Faster)
unsigned int NUM2UINT(Numeric) (Includes type check)
unsigned int FIX2UINT(Fixnum) (Includes type check)
long NUM2L... |
#pragma config(Hubs, S1, MatrxRbtcs, none, none, none)
#pragma config(Sensor, S1, , sensorI2CMuxController)
#pragma config(Sensor, S2, irSensor, sensorHiTechnicIRSeeker1200)
#pragma config(Motor, mtr_Matrix_S1_1, wheelRt, tmotorMatrix, PIDControl, reversed, encoder)
#pragma c... |
/**
* || ____ _ __
* +------+ / __ )(_) /_______________ _____ ___
* | 0xBC | / __ / / __/ ___/ ___/ __ `/_ / / _ \
* +------+ / /_/ / / /_/ /__/ / / /_/ / / /_/ __/
* || || /_____/_/\__/\___/_/ \__,_/ /___/\___/
*
* Crazyflie 2.0 NRF Firmware
* Copyright (c) 2014, Bitcraze ... |
/*
* This file is part of MPlayer.
*
* MPlayer 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.
*
* MPlayer is distributed in th... |
//#include "tiffio.h"
#include <stdio.h>
#include <stdint.h>
#include "tiffio.h"
#include "omp.h"
#include "mex.h"
//mex -v COPTIMFLAGS="-O3 -fwrapv -DNDEBUG" CFLAGS='$CFLAGS -O3 -fopenmp' LDFLAGS='$LDFLAGS -O3 -fopenmp' '-I/global/home/groups/software/sl-7.x86_64/modules/libtiff/4.1.0/libtiff/' '-L/global/home/groups/... |
#include <3ds.h>
#include <citro3d.h>
#include <stdio.h>
#include <string.h>
#include "particle_shbin.h"
#define CLEAR_COLOR 0
#define DISPLAY_TRANSFER_FLAGS \
(GX_TRANSFER_FLIP_VERT(0) | GX_TRANSFER_OUT_TILED(0) | GX_TRANSFER_RAW_COPY(0) | \
GX_TRANSFER_IN_FORMAT(GX_TRANSFER_FMT_RGBA8) | GX_TRANSFER_OUT_FORMAT(GX_... |
#include <cstreamgeo/cstreamgeo.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <math.h>
#include <assert.h>
/**
* General functions for interacting with a single stream.
* Includes resampling, filtering, sparsity, etc.
*/
stream_t* stream_create(const size_t n) {
s... |
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include <memory.h>
#include <stdlib.h>
#include <progressbar.h>
#include "cg_api.h"
#include "cg_enums.h"
#include "cg_types.h"
#include "cg_plot.h"
#define PROFILER_DEFINE
#include "profiler.h"
//#include "cg_math.h"
#include "csv.h"
struct CGNode* si... |
#include <time.h>
#include <sys/time.h>
#include <string.h>
#include "io.h"
#include "log.h"
#include "system.h"
#define DEC2BCD(x) ( ((x/10)<<4) | (x % 10) )
#define BS_STATUSB_BCDBIN 2
#define BS_STATUSB_24H 1
typedef struct {
uint8 indexreg;
uint8 resetcode;
struct {
int divider;
int rate;
... |
/* crack natural satellite files from BDL */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include "astro.h"
#include "bdl.h"
typedef enum {I, F, NL} ScanType;
#define SCANFLD(f,w,vp) if(readField(fp,f,w,(void *)vp,ynot)<0) return (-1)
static int readField (FILE *... |
/*******************************************************************************
*
* demoAdc.c
*
* Simple adc demo.
*
* <NAME>
*
* Copyright (C) 2012 www.laswick.net
*
* This program is free software. It comes without any warranty, to the extent
* permitted by applicable law. You can redistribute it and/or modify it ... |
/*
* 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... |
/*
** EPITECH PROJECT, 2017
** flags
** File description:
** flags
*/
#include <getopt.h>
#include <stdlib.h>
#include "stacktrace.h"
#include "functions.h"
#include "structs.h"
#include "my.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdbool.h>
#include <ctype.h>
void disp_en_help(char *... |
/*
* sha256_core.c
* Author: <NAME> <<EMAIL>>
* Date: 2015-07-12
*/
#include "sha256_core.h"
#include "int_util.h"
/* table for SHA-256 and SHA-224 */
static const uint32_t table[64] = {
0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5,
0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5, /* 8 */
0xD807AA98, 0x12835... |
#pragma once
/*
----- WORLD -----
World API functions.
*/
#include <gint/display.h>
#include <stdbool.h>
#include "inventory.h"
#include "render.h"
#include "entity.h"
#include "chest.h"
#include "save.h"
#include "npc.h"
#define MAX_FRIENDS 8
enum SupportTypes {
SUPPORT_NONE,
SUPPORT_KEEP,
SUPPORT_NEED,
SUPP... |
/************************************************************
Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copie... |
#include "paging.h"
/* Frame Allocation
* Bitset for frame allocation more info here https://en.wikipedia.org/wiki/Bitset
*
* There will be four function set, test, clear and find first frame
*
* Two helper macros INDEX_FROM_BIT and OFFSET_FROM_BIT to control
* by pointer frames
*
* These will be internal ... |
/*
* Copyright 2010 Rapleaf
*
* 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... |
#include "common.h"
#include "tools.h"
// ========================
Array newArray(
/*size_t typeSize,*/ int initCount,
int growConstant, bool addNotMultiplySize)
{
Array array;
array.used = 0;
array.size = initCount;
// array.typeSize = typeSize;
array.growConstant = growConstant;
arra... |
/*
Tomato Firmware
Copyright (C) 2006-2009 <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <bcmnvram.h>
#include "utils.h"
#include "shared.h"
const char *led_names[] = { "wlan", "diag", "white", "am... |
/* PURPOSE: Extension and migration of buffer content -- Nested.
*
* The test operates on the following functions:
*
* Buffer_nested_extend() tested in self_common_single_migration()
* Buffer_nested_migrate() tested in self_common_single_extension()
*
* 'Nested' means, that the initial buffer ... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* ... |
/** @file
Implements filesystem searching via search trees.
*/
#include "search.h"
#include <stdlib.h>
#include <string.h>
#include "informations.h"
#include "safe-math.h"
#include "safe-wrappers.h"
#include "error-handling.h"
/** A simple string buffer. */
typedef struct
{
/** A null-terminated buffer, contain... |
#include "common.h"
#include "posix_utils.h"
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <time.h>
#include <sys/select.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
enum FdActionEnum { FD_ACTION_RD = 10, FD_ACTION_WT };
/**
* NOTE: Funcao 'privada'... |
#include "tcp_client.h"
#include "sys/sendfile.h"
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/time.h>
#include <netinet/tcp.h>
#include <pthread.h>
#include <math.h>
#define MAX_READ 1000000
/* Temprorarily...... |
/*
* Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*
*/
#include "orte_config.h"
#include "orte/constants.h"
#include <string.h>
#include <sys/types.h>
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
#include <stdio.h>
#ifd... |
#include <unistd.h>
#include <pwd.h>
#include <string.h>
#include <stdio.h>
#include <dirent.h>
#include <stdbool.h>
#include <ctype.h>
#include <stdlib.h>
#define len(list) sizeof(list) / sizeof(list[0])
#define show true // If show is true script will only show you the matches
#define execute true // If execute i... |
#include <tros/hal/idt.h>
#include <tros/hal/io.h>
#include <tros/klib/kstring.h>
#include <tros/tros.h>
static idtr __idtr;
static idt_descriptor __idt_descriptors[MAX_INTERRUPTS];
#define IDT_DESC_BIT16 0x06
#define IDT_DESC_BIT32 0x0E
#define IDT_DESC_RING1 0x40
#define IDT_DESC_RING2 0x20
#define IDT_DESC_RING3 ... |
/* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
*/
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compli... |
/* spam.h 2.14 - header file for spam subroutines */
struct parameter {
char *name; /* pointer to name of keyword */
int value_type; /* expected value: int(0),real,str,key */
int required_flag; /* 1 if required value */
int... |
#include "render.h"
#include <assert.h>
#include <string.h> // memcpy
#include <math.h> // floor
#include <stb_image.h>
#include <bgfx/bgfx.h>
#include "utils.h"
#include "shaders/tex_color_vs.h"
#include "shaders/tex_color_fs.h"
// TODO: ?
#define MAX_TEXTURES 1024
#define MAX_SPRITES 1024
typedef struct spri... |
/*
* diff -- computes the difference between two strings
* (the minimal number of changes needed to make one equal the other where
* a change is one of the following:
* - replacing a character by another one
* - inserting a character
* - deleting a character
* - swapping two consecutive characters)
*
... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2019 NXP
*/
#include <common.h>
#include <errno.h>
#include <log.h>
#include <malloc.h>
#include <asm/io.h>
#include <mmc.h>
#include <spi_flash.h>
#include <nand.h>
#include <asm/arch/image.h>
#include <asm/arch/sys_proto.h>
#include <asm/mach-imx/boot_mode.h>
#d... |
/*
*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*
* File: techsupport.h
* Purpose: This file contains the declarations of all the functions and
* da... |
/*
* library.c
*
* metapixel
*
* Copyright (C) 1997-2009 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later versi... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/* Copyright (c) 2013, The Linux Foundation. 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... |
// RUN: %clang_cc1 %s -O0 -triple=x86_64-apple-darwin -ffreestanding -target-feature +avx512dq -emit-llvm -o - -Werror | FileCheck %s
#include <immintrin.h>
__m512i test_mm512_mullo_epi64 (__m512i __A, __m512i __B) {
// CHECK-LABEL: @test_mm512_mullo_epi64
// CHECK: mul <8 x i64>
return (__m512i) ((__v8di) __A *... |
// vim: softtabstop=4 :shiftwidth=4 :expandtab
/*******************************************************************************
*
* sig2img
* write an audiobuffer as a sequence of image files
* can be usefull for an audio-based texture in a 3D
* application.
* 062011 <EMAIL>
*
* todo:
* - pixelbuffer > audiobu... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* SPI master driver for ICP DAS LP-8841 RTC
*
* Copyright (C) 2016 <NAME>
*
* based on
*
* Dallas DS1302 RTC Support
* Copyright (C) 2002 <NAME>
* Copyright (C) 2003 - 2007 <NAME>
*/
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/module.h>
#i... |
/*
* 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 ... |
/*** coff information for 80960. Origins: Intel corp, natch. */
/* NOTE: Tagentries (cf TAGBITS) are no longer used by the 960 */
/********************** FILE HEADER **********************/
struct external_filehdr {
char f_magic[2]; /* magic number */
char f_nscns[2]; /* number of sections */
char f_timdat[4]... |
/*
* Test bit count routines
*
* This work is licensed under the terms of the GNU LGPL, version 2 or later.
* See the COPYING.LIB file in the top-level directory.
*
*/
#include "qemu/osdep.h"
#include "qemu/host-utils.h"
struct bitcnt_test_data {
/* value to count */
union {
uint8_t w8;
... |
/* See LICENSE file for copyright and license details. */
#include "servers-master.h"
#include "servers-crtc.h"
#include "servers-gamma.h"
#include "servers-coopgamma.h"
#include "util.h"
#include "communication.h"
#include "state.h"
#include <sys/socket.h>
#include <errno.h>
#include <fcntl.h>
#include <poll.h>
#incl... |
/*
* Copyright 2013 Red Hat Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, d... |
/*
* file: difftbl.c
*
* (c) <NAME> 1998 - 2004
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2,
* or (at your option) any later version.
*
*/
#define my_VERSION "1.04"
#d... |
/*
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL... |
/*
* This file is part of the flashrom project.
*
* Copyright (C) 2009 <NAME> <<EMAIL>>
* Copyright (C) 2010, 2011 <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... |
/* getnam.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__2 = 2;
static integer c__1 = 1;
/* $Procedure GETNAM ( GET body NAMe for BRIEF display ) */
/* Subrout... |
//////////////////////////////////////////////////////
// //
// Include Individual Frames //
// //
//////////////////////////////////////////////////////
// We Love TS (Mode 0)
#include "we_love_ts/... |
/******************************************************************************/
/* */
/* Copyright (c) International Business Machines Corp., 2005 */
/* ... |
#include "dados.h"
void limpa_save(gravacao_st *gravacao)
{
gravacao->identificador = 0;
gravacao->totalpts = 0;
gravacao->ultimafase = 0;
gravacao->vidas = 0;
for ( int i = 0; i < 9; i++ ) {
gravacao->nome_jogador[i] = '\0';
}
gravacao->inicio = 0;
gravacao->final = 0;
}
voi... |
#define CPU_CLK LATDbits.LATD4
#define CPU_RST LATAbits.LATA6
#define CPU_RW PORTCbits.RC5
#define CPU_IRQ PORTCbits.RC4
#define CPU_D0 PORTBbits.RB4
#define CPU_D1 PORTBbits.RB3
#define CPU_D2 PORTBbits.RB2
#define CPU_D3 PORTBbits.RB1
#define CPU_D4 PORTBbits.RB0
#define CPU_D5 PORTDbits.... |
#include <assert.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Specific to this test - File will already be in memory on Taygete.
// 6 char float, 2 char int, newline, return
#define CHARS_PER_LINE (256*7 + 10*2 + 2)
#define DATASET_N_ITEMS... |
#include <ctype.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
/*
* The usage information of the program
*/
#define USAGE \
"usage: graph [EQUATION] [FLAG]\n" ... |
/**
* @file
* Copyright (c) 2011-2019, CESNET z.s.p.o
* Copyright (c) 2011, Silicon Genome, LLC.
*
* 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 cod... |
/*
emu10kx.audio - AHI driver for SoundBlaster Live! series
Copyright (C) 2002-2005 <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 ... |
/*
enum PRINTINFO_ENUM { PLENGTH,PMASS,PTIME,PCURRENT,PTEMPERATURE,PAMOUNT,PLUMINOUS_INTENSITY,PENERGY,PPRESSURE,PVOLUME,PFORCE,PENERGYFLUX,NUNITS};
static char *unitnames[] = { "LENGTH","MASS","TIME","CURRENT","TEMPERATURE","AMOUNT","LUMINOUS_INTENSITY","ENERGY","PRESSURE","VOLUME","FORCE","ENERGYFLUX"... |
/*
* Copyright (c) 2017 Qualcomm Technologies, Inc.
* All Rights Reserved.
*/
// Copyright (c) 2018 Qualcomm Technologies, Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below)
// provided t... |
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <string.h>
#include <zlib.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <oscdb.h>
/*************************************
* internal prototypes
*************************************/
osc_object_t* os... |
/**
* \file enhancedProtocol.c
*
* \brief Implementation of ehnanced protocol
*
*
* Copyright (c) 2020 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Micro... |
char *fetchBuiltInCode()
/* Return a string with the built in stuff. */
{
return
"readable string programName;\n"
"readable array of string args;\n"
"readable bit true=1, false=0;\n"
"\n"
"global flow _printBit(bit i);\n"
"global flow _printByte(byte i);\n"
"global flow _printShort(short i);\n"
"global flow _printInt(... |
/*
@jxvtrl
Exercicio Número 1 do Trabalho 1 de Introdução a Programação
*/
#include <stdio.h>
#include <stdlib.h>
// Declarando Variáveis
//Entrada de variavel USUARIO
int DiaInicial,MesInicial,AnoInicial,DiaFinal,MesFinal,AnoFinal;
// controles
int anobi, DIAMAX, ano; ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "AT_parser.h"
int zmienna_external = 12;
// wskaznik na tablice ze strukturami komend AT
static t_cmd *AT_command_array = 0;
// ilosc elementow w tablicy komend
static int AT_commands_number = 0;
//! funkcja rejestrujaca tablice z komendami AT
//!... |
// Copyright 2012 Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and... |
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <libavutil/mem.h>
#include <math.h>
typedef struct {
uint8_t *data;
int w;
int h;
} Image;
int loadImage(Image *img, char *filename) {
FILE *pFile;
pFile = fopen(filename, "rb");
if (pFile == NULL) {
r... |
/**
*****************************************************************************
* @file cmem7_efuse.c
*
* @brief CMEM7 EFUSE source file
*
*
* @version V1.0
* @date 3. September 2013
*
* @note
*
*************************************************************************... |
/*
Copyright (c) 2019 <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, distribute,... |
/* Copyright 2018 Canaan 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 agreed to in ... |
/*
* 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... |
/*
* fib.c
* Does not use finish EDTs
* Originally written in Feb 2012 by <NAME>
* Modified for OCR 0.9 by <NAME>
*/
#include "ocr.h"
#include "ocr-std.h"
#include "stdlib.h"
ocrGuid_t complete(u32 paramc, u64* paramv, u32 depc, ocrEdtDep_t depv[]) {
u64 arg = (u64)paramv[0];
ocrGuid_t inDep;
u32 i... |
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/route.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <arpa/inet.h>
#include <assert.h>
#include <err.h>
#include <errno.h>
#include <inttypes.h>
#include ... |
//;File: cvtnum.c
// ========================================================================
// PIC Floating point library
// ========================================================================
// Copyright (C) 1991,1997,1998,1999,2000,2001,2002,2003 <NAME>
// All rights reserved.
//
// Redistribution and use... |
/*
* Copyright 2011, The TenDRA Project.
* Copyright 1997, United Kingdom Secretary of State for Defence.
*
* See doc/copyright/ for the full copyright terms.
*/
#include <stdio.h>
#include <string.h>
#include <shared/bool.h>
#include <shared/check.h>
#include <shared/error.h>
#include <shared/string.h>
#includ... |
#include "fff_BPmatch.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
static int _fff_swapindex(fff_array *idx, const fff_graph *G);
static int _fff_matrix_normalize_rows(fff_matrix* A);
static int _fff_swapindex(fff_array *idx, const fff_graph *G)
{
int V = G->V;
int e,i, E = G->E;
fff_arra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.