text stringlengths 3.08k 10.5k |
|---|
#include "audiostream_wrapper.h"
#include "mruby/data.h"
#include "mruby/class.h"
#include "mruby/string.h"
#include "mruby/array.h"
#include "mruby/variable.h"
//================================================================//
// AudioStream struct
//================================================================... |
void LogL10fromY() {} ;
void LogL10toY() {} ;
void LogL16fromY() {} ;
void LogL16toY() {} ;
void LogLuv24fromXYZ() {} ;
void LogLuv24toXYZ() {} ;
void LogLuv32fromXYZ() {} ;
void LogLuv32toXYZ() {} ;
void TIFFAccessTagMethods() {} ;
void TIFFCIELabToRGBInit() {} ;
void TIFFCIELabToXYZ() {} ;
void TIFFCheckTile() {} ;
v... |
#include "util.h"
#include "lddInt.h"
/** \brief BDD-style existential quantification */
LddNode *
Ldd_BddExistAbstract (LddManager * ldd,
LddNode * f,
LddNode * cube)
{
DdNode *res;
do
{
CUDD->reordered = 0;
res = lddBddExistAbstractRecur (ldd, f, cube);
} while (CUDD->reordered == 1... |
/*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright 2010-2022, Tarantool AUTHORS, please see AUTHORS file.
*/
#include <stdio.h>
#include "mp_extension_types.h"
#include "mp_interval.h"
#include "datetime.h"
#include "msgpuck.h"
#include "tt_static.h"
static_assert(DT_EXCESS == 0, "DT_EXCESS is not 0");
enu... |
/* ********************************************************* *
* By <NAME> aka (binaryONE) <EMAIL>
*
* website: code.computronium.io
*
* THIS SOFTWARE IS PROVIDED BY THE OWNER ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY ... |
#include <autoconf.h>
#include <manager/gen_config.h>
#include <side-bench/gen_config.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <stdio.h>
#include <stdint.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <sel4/sel4.h>
#include <simple/simple.h>
#include "../mastik_common/vlist.h"
#... |
/*
* i_system.c
*
* System support code
*
* Copyright (C) 1993-1996 by id Software, Inc.
* Copyright (C) 2021 <NAME>
* 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
* as published by the Free Software Found... |
// G4 Encoder demo
// Written by <NAME>
//
// Compresses a given Windows BMP fill into T.6 (CCITT G4) data
// It can output a block of raw compressed data or if the name given
// in the second parameter ends in ".tif", it will add a TIFF header
//
// Copyright 2022 BitBank Software, Inc. All Rights Reserved.
// Licens... |
/**
*********************************************************************************************************
* Copyright(c) 2015, Realtek Semiconductor Corporation. All rights reserved.
**********************************************************************************************************
* @file
* @b... |
#include <stdint.h>
#include "printf.h"
#include "panic.h"
#include "object.h"
#include "regops.h"
#include "smc.h"
#define SMC_REG(b, r) ((volatile uint32_t *)(((volatile uint8_t *)b) + (r)))
#define SMC__memc_status 0x000
#define SMC__mem_cfg_set 0x008
#define SMC__mem_cfg_clr ... |
/*
About Round Robin Scheduling:-
It is a CPU scheduling technique in which each process is given a fixed time quantum/slice.
Once the time quantum is over for a process, the CPU gets preempted to another process in the ready queue.
-It is a preemptive scheduling technique.
-As all processes get fair share... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) Zilogic Systems Pvt. Ltd., 2018
* Email : <EMAIL>
*/
/*
* Test statx
*
* This code tests the following flags:
* 1) AT_STATX_FORCE_SYNC
* 2) AT_STATX_DONT_SYNC
*
* By exportfs cmd creating NFS setup.
*
* A test file is created in server folde... |
/*
* @Description:
* @Sample Intput:
* @Output:
* @Author: GengchenXu
* @CreateDate: 2021-07-08 23:46:48
* @LastEditTime: 2021-07-08 23:47:28
*/
/*Test1:
1,2 3,5,0 0,-4 0,0
1,2 2,1 -9.8,-8 0,0
*/
/*Test2:
0,3 0,0
1,2 2,3 0,0
*/
/*Test3:
3,0 0,0
9.9,0 0,0
*/
#include<stdio.h>
#include<stdlib.h>
#define LEN s... |
/**********************************************************************
*
* This file is part of the AWeb-II distribution
*
* Copyright (C) 2002 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the AWeb Public License as included in this
* distribution.
*... |
#include "board.h"
#include <string.h>
// -------------------------------------------------------------
// Macro Definitions
#define CCAN_BAUD_RATE 500000 // Desired CAN Baud Rate
#define UART_BAUD_RATE 9600 // Desired UART Baud Rate
#define GMB_EDGES_PER_ROTATION 49 // Clock edges per wheel rota... |
/* $Header: /src386/bin/db/RCS/i8086c.c,v 1.2 93/03/11 07:45:47 bin Exp Locker: bin $
*
* The information contained herein is a trade secret of <NAME>
* Company, and is confidential information. It is provided under a
* license agreement, and may be copied or disclosed only under the
* terms of that agreeme... |
/*
* S86 -- A Simple 8086 Tool Chain
* Strip symbol tables
* <NAME>, 1993,1994,2013,2014
* In the public domain
*/
#include <stdlib.h>
#include <stdio.h>
#include "obj.h"
#include "exe.h"
#define unsigned char *
#define TMPFILE "st00000.tmp"
#define CBUFL 16384 /* DON'T CHANGE! */
char *symfile;
int o_force, ... |
#include "memlayout.h"
#include "mmu.h"
#include "global.h"
#include "types.h"
#include "def.h"
#include "x86.h"
extern char data[];
extern char end[];
static char *newend;
pte_t *
walkpgdir(pde_t *pgdir, const void *va, char *(*alloc)(void))
{
pde_t *pde;
pte_t *pte;
pde = &pgdir[PDX(va)];
if (*p... |
int pgwin32_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct timeval * timeout);
static char *
GetSharedMemName(void)
{
char *retptr;
DWORD bufsize;
DWORD r;
char *cp;
bufsize = GetFullPathNameA(DataDir, 0, NULL, NULL);
if (bufsize == 0)
return NULL;
retptr = mallo... |
/**************************************************************/
/*
* Copyright (c) 2014-2015, <NAME>, IBM Research
* 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... |
/* Copyright 2020 sekigon-gonnoc
*
* 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 is distribute... |
/* elf.c - load ELF files */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2003,2004,2005,2006,2007,2008,2009 Free Software Foundation, Inc.
*
* GRUB 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 Sof... |
/*!
* Hello2D Game Engine
* yoyo 2015 ShenZhen China
* repo:https://github.com/play175/Hello2D
* website:http://yoyo.play175.com
* MIT Licensed
*/
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include <time.h>
#include "h2d.h"
static struct node *_root = NULL;
static struct texture *_tex = NULL;
... |
#ifdef _CIVL
#include <civlc.cvh>
#endif
/* FEVS: A Functional Equivalence Verification Suite for High-Performance
* Scientific Computing
*
* Copyright (C) 2009-2010, <NAME>, <NAME>,
* University of Delaware
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU ... |
#include "stdio.h"
#define SL_IMPLEMENTATION
#include "sl.h"
#define RED "\033[1;31m"
#define RED_N "\033[0;31m"
#define GRN "\033[1;32m"
#define GRN_N "\033[0;32m"
#define RST "\033[0m"
#define TEST_PASS(name) \
fprintf(stdout, GRN "PASSED: %s in %s %s:%i"RST"\n",\
name, __func__, __FILE__, __LINE__)
... |
/*****************************************************************
* This copyrighted source code is freely distributed
* under the terms of the GNU General Public License. See
* the files COPYRIGHT and LICENSE for details.
*****************************************************************/
/* weight_main... |
/*
* This software is copyrighted as noted below. It may be freely copied,
* modified, and redistributed, provided that the copyright notice is
* preserved on all copies.
*
* There is no warranty or other guarantee of fitness for this software,
* it is provided solely "as is". Bug reports or fixes may be sent
... |
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <linux/input.h>
#include <string.h>
#include <stdio.h>
#include <termios.h>
int set(int s[6],int key);
int rem(int s[6], int key);
int remap(int n);
int modVal(int code);
void outputPrep(char out[30], int mods, int keys[6]);
int ma... |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 <NAME>
#include <errno.h>
#include <exc.h>
#include <lib/print.h>
#include <mm/as.h>
#include <mm/frame.h>
#include <mm/heap.h>
#include <proc/process.h>
#include <proc/scheduler.h>
#include <proc/thread.h>
#include <proc/userspace.h>
size_t id = 0;
static voi... |
#define thisprog "xe-math_gauss1"
#define TITLE_STRING thisprog" November.24.2011 [JRH]"
#define MAXLINELEN 1000
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
/*
<TAGS> math </TAGS>
??? need to update this code to perform gausscut function on raw input
??? this can then serve as template... |
#include <ximg/xtranslate.h>
#include <ximg/xras.h>
#include <ximg/xmap.h>
#include <ximg/xreader.h>
#include <stdio.h>
#include <stdlib.h>
static inline void copy_mapped_rgb8(struct xchan * data, struct xpal * palette, struct ximg * image, struct xras * raster){
struct xchan * channels[3];
channels[0] = xras_... |
/* $NetBSD: hmac.c,v 1.1.1.1 2011/04/13 18:14:50 elric Exp $ */
/*
* Copyright (c) 2006 - 2007 <NAME>
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... |
/*
**********************************************************************************************************
* uC/OS-II
* The Real-Time Kernel
*
* AVR Specific code
*
* File : AVR_ISR... |
/*************************************************************************************
* Copyright (C) 2017, <NAME> <<EMAIL>> *
* All rights reserved. *
* ... |
/*
* Ruby9i -- a Ruby library for accessing Oracle9i through the OCI
* Copyright (C) 2003-2004 <NAME> <<EMAIL>>
*
* This file is part of the Ruby9i library. This Library is free software;
* you can redistribute it and/or modify it under the terms of the license
* contained in the file LICENCE.txt. If you did no... |
/*
* << Haru Free PDF Library >> -- hpdf_string.c
*
* URL: http://libharu.org
*
* Copyright (c) 1999-2006 <NAME> <<EMAIL>>
* Copyright (c) 2007-2009 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* ... |
/**
* @file stringNotes.c
* @author <NAME> (<EMAIL>)
* @brief Notes on C-style strings with the string.h
*
* Command to compile and run on Windows:
* gcc -o CStringNotes.exe .\stringNotes.c
* ./CStringNotes
*
* @version 1.1
* @date 2021-02
*
* @copyright Copyright (c) 2021
*
*/
#include <stdio.h>
#inc... |
#include <tree_sitter/parser.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#define CMD_IDENTIFIER_MAX_LENGTH 32
enum TokenType {
CMD_IDENTIFIER,
HELP_COMMAND,
FILE_DESCRIPTOR,
EQ_SEP_CONCAT,
CONCAT,
CONCAT_BRACE,
CONCAT_PF_DOT,
};
void *tree_sitter_r2cmd_external_scanner_create() {
return NULL... |
#include "gamestates/game/spawn.h"
#include <ace/macros.h>
#include <ace/managers/log.h>
#include <ace/managers/blit.h>
#include "gamestates/game/game.h"
#include "gamestates/game/player.h"
#include "gamestates/game/team.h"
tSpawn *g_pSpawns;
UBYTE g_ubSpawnCount;
static UBYTE s_ubSpawnMaxCount;
void spawnManagerCrea... |
/*
* $Id: math_log1pf.c,v 1.4 2022-03-13 12:04:23 clib2devs Exp $
*
*
*
* PowerPC math library based in part on work by Sun Microsystems
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distri... |
/*****************************************************************************
*;++
* Name : $RCSfile: array.c,v $
* Title : ARRAY.C
* C Author : <NAME>
* Created : 21/04/95
*
* Copyright : 1995-2022 Imagination Technologies (c)
* License : MIT
*
* Description : Extenda... |
/**********************************************************************
//
// NAME: <NAME>
//
// HOMEWORK: 5
//
// CLASS: ICS 212
//
// INSTRUCTOR: <NAME>
//
// DATE: 4 Oct 2014
//
// FILE: fileio.c
//
// DESCRIPTION: Functions for reading and writing array of account
// stru... |
/*
** Most of the code was copied from official ldblib.c
** implementation of debug.sethook()
** The copied code is (C) Lua.org, PUC-Rio.
** The rest is mine, marked with //ADDED and //CHANGED
*/
#include <string.h>
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
//ADDED
/*
** The tailcall is unused in t... |
/*
This file is part of endlines' source code
Copyright 2014-2019 <NAME>
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... |
/*
* sound/soc/samsung/smdk_wm8994pcm.c
*
* Copyright (c) 2011 Samsung Electronics Co., Ltd
* http://www.samsung.com
*
* 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 ... |
/**
\brief An example CoAP application.
*/
#include "opendefs.h"
#include "cexample.h"
#include "opencoap.h"
#include "openqueue.h"
#include "packetfunctions.h"
#include "openserial.h"
#include "openrandom.h"
#include "scheduler.h"
//#include "ADC_Channel.h"
#include "idmanager.h"
#include "IEEE802154E.h"
#include "sc... |
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include "minerutils.h"
// Parameter len is bytes in rawstr, therefore, asciistr must have
// at least (len << 1) + 1 bytes allocated, the last for the NULL
void BinaryToASCIIHex(char * asciistr, con... |
// Copyright 2012 Google Inc. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the COPYING file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing project authors may
// be... |
/* A N I M _ L O O K A T . C
* BRL-CAD
*
* Copyright (c) 1993-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.... |
//getaddrinfo is an extension (not C99)
#if !defined(_WIN32) && !defined(__sun) && !defined(_POSIX_C_SOURCE)
#define _POSIX_C_SOURCE 200112L
#endif
//needed to expose inet_ntop
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0600
#endif
//see https://github.com/jeroen/openssl/issues/41
#if defined(__FreeBSD__) && !define... |
//
// Created by <NAME> on 7/28/20.
//
#include "EglContainer.h"
#include <string.h>
#include <dlfcn.h>
#include <math.h>
#include <stdlib.h>
#include <android_native_app_glue.h>
EglContainer container;
Drawable* compass = NULL;
void constructDraw(Container* container1) {
Drawable* canvas = (Drawable*)&container... |
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <ldns/ldns.h>
#include "my_alloc.h"
#include "ubuf.h"
#include "zonefile.h"
struct zonefile {
FILE *fp;
bool is_pipe;
bool valid;
ldns_rdf *domain;
ldns_rdf *origin;
ldns_rdf *prev;
ldns_rr *rr_soa... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <omp.h>
#if !defined(DOUBLE_PRECISION)
typedef float float_t;
#else
typedef double float_t;
#endif
#define NDIM 2
//-------------------- Data Structures --------------------------------------------------------
t... |
/* ====================================================================
* 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 t... |
//
// CubeSat.c
// CubeSat
//
// Created by <NAME> on 4/9/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#include <stdio.h>
#include "CubeSat.h"
#include <string.h>
#include "Endianness.h"
#include <math.h>
#define CSUint8CutOff(x) (x > 0 ? (x > 0xff ? 0xff:x):0)
void CSWholeOrbitDataLog(CSWholeOrbitD... |
/*
* This is sample code generated by rpcgen.
* These are only templates and you can use them
* as a guideline for developing your own functions.
*/
#include "up2UService.h"
void afficherClient(s_client client) {
printf("%s\n", client.nom);
printf("%s\n", client.prenom);
printf("%d %s %s\n", client.adresse.nu... |
/*
* QEMU Block driver for CLOOP images
*
* Copyright (c) 2004 <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
* ... |
/* source code courtesy of <NAME> */
/* calc3d.c: Generation of the graph of the syntax tree */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "calc3.h"
#include "y.tab.h"
int del = 1; /* distance of graph columns */
int eps = 3; /* distance of graph lines */
/* interface for drawing (can be r... |
/*
* Copyright 1997, Regents of the University of Minnesota
*
* refine.c
*
* This file contains the driving routines for multilevel refinement
*
* Started 7/24/97
* George
*
* $Id: refine.c,v 1.1 2004/08/05 21:33:58 ssherw Exp $
*/
#include <metis.h>
/******************************************************... |
#include "bootstrap.h"
#include "config.h"
#include "context.h"
#include "diag.h"
#include "elf.h"
#include "filesystem.h"
#include "linker-syms.h"
#include "mmu.h"
#include "numeric-utils.h"
#include "tinycstd.h"
#include "trap.h"
extern void* initial_stack_start();
void early_init() {
ppn_bump = paddr_to_ppn(ini... |
/* crypto/dso/dso_err.c */
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2000-2001 <NAME> <<EMAIL>>
* Copyright (c) 2001, 2007 <NAME> <<EMAIL>>
*
* USB/RS232 I-Force joysticks and wheels.
*/
/*
*/
#include "iforce.h"
void iforce_serial_xmit(struct iforce *iforce)
{
unsigned char cs;
int i;
unsigned long flags;
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct st_config_item {
const char *item_name;
const char *item_description;
const char *cmd_opt;
const char *macro_name;
const char *src_file;
const char *header_file;
int enabled;
} config_item;
static config_item items[]... |
/****************************************************************************
* modules/dnnrt/src-mpcomm/worker/dnnrt-mp/dnn_exec_function.c
*
* Copyright 2021 Sony Semiconductor Solutions Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... |
/*
* del2dx.c
* apbs
*
* Created by <NAME> on 3/17/10.
* Copyright 2010 Washington University. All rights reserved.
*
* Last updated by <NAME> on 08/29/2016:
* Added ability to output binary DX files
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <apbs.h>
char... |
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* 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 re... |
#include "glasstypes/glass-command.h"
#include "utils/copy-interface.h"
#include "utils/string.h"
#include <stdlib.h>
#include <stdio.h>
void *copy_command(const GlassCommand *cmd) {
GlassCommand *copy = malloc(sizeof(GlassCommand));
copy->type = cmd->type;
copy->filename = copy_string(cmd->filename);
... |
/*
* Copyright 2019 IBM
*
* 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.
*
* This program is distributed in the... |
/**
******************************************************************************
* File Name : ADC.c
* Description : This file provides code for the configuration
* of the ADC instances.
******************************************************************************
... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
/*
... |
/*
* Copyright 2018 The Hafnium Authors.
*
* 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 ... |
// This file is part of Deark.
// Copyright (C) 2018 <NAME>
// See the file COPYING for terms of use.
// Unifont HEX font
#include <deark-config.h>
#include <deark-private.h>
DE_DECLARE_MODULE(de_module_unifont_hex);
struct de_linereader {
dbuf *f;
i64 f_pos;
};
static struct de_linereader *de_linereader_create(d... |
/*-
* Copyright (c) 1999, 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 the above copyright
* notice, this list of condit... |
/*********************************FILE__HEADER*********************************\
* File: sorts.c
* Author: <NAME>
* Date: 02-06-2021
* Version: 1.0
* Description: Sorts and searches algorithms implementations tests file.
\********************... |
/*
* Copyright (C) 2009-2012
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <miiphy.h>
#include <asm/setup.h>
#include <asm/arch/cpu.h>
#include <asm/arch/soc.h>
#include <asm/arch/mpp.h>
#include "ds109.h"
DECLARE_GLOBAL_DATA_PTR;
int board_early_in... |
#include "obj.h"
#include <candle.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
////////////////////////////////////////////////////////////////////////////////
// .OBJ LOADER //
/////////////////////////////////////////////////////////////... |
#include "queue.h"
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#define LOG LEAF_LOG
#if 1
#define ASSERT LEAF_ASSERT
#else
#define ASSERT(x)
#endif
queue *queue_new(queue_size bytes) {
queue *x = calloc(1,sizeof(*x));
x->buf = calloc(1,bytes);
x->buf_size = bytes;
... |
// error.c
//
// Created on: Sept 15, 2020
// Author: <NAME>
#include "entity/native/error.h"
#include <stdint.h>
#include "alloc/arena/intern.h"
#include "debug/debug.h"
#include "entity/class/classes.h"
#include "entity/entity.h"
#include "entity/native/native.h"
#include "entity/object.h"
#incl... |
/* ch08-statfs.c --- demonstrate Linux statfs */
/* NOTE: GNU/Linux specific! */
#include <stdio.h>
#include <errno.h>
#include <mntent.h> /* for getmntent(), et al. */
#include <unistd.h> /* for getopt() */
#include <sys/types.h>
#include <sys/vfs.h>
/* Defines taken from statfs(2) man page: */
#define AFFS_SUPER_M... |
/*****************************************************************************
* snapshot.c : vout internal snapshot
*****************************************************************************
* Copyright (C) 2009 <NAME>
* $Id: f9bc106d73645774a1d5e2b0e5a59a344277b922 $
*
* Authors: <NAME> <gbazin _AT_ videolan... |
/**
* MIT License
* Copyright (c) 2020-present <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, mod... |
/**
* Copyright (c) 2016, <NAME> <<EMAIL>>
* ATtiny13/008
* Example of Software UART.
*/
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#define UART_RX_ENABLED (1) // Enable UART RX
#define UART_TX_ENABLED (1) // Enable UART TX
#ifndef F_CPU
# define F_CPU (1200000UL) /... |
/*****************************************************************************
* sections.c: Transport Stream sections assembler
*****************************************************************************
* Copyright (C) 2016 VLC authors and VideoLAN
*
* This program is free software; you can redistribute it and... |
#ifdef _WIN32
#include "windows/git2.h"
#else
#include "mac_os/git2.h"
#endif
#include <stdint.h>
#include "libgit_utils.h"
void oid_cmp(MEX_DEF_INPUT){
//1 - Compare two oid structures.
//
//int git_oid_cmp(const git_oid *a, const git_oid *b);
}
void oid_cpy(MEX_DEF_INPUT){
//2 - Copy an oid f... |
/*
* Copyright 2021 The UAPKI Project Authors.
* Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
*
* 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... |
/*
Author : <NAME>.(Lumnee boii)
Mentor : ShivaShanker.
College: Jaya Engneering College.
*/
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
void instruction();
int batting(int player);
int bowlling(int player);
int main()
{
clrscr();
srand(time(0));
int toss,to... |
#include <assert.h>
#include <stdint.h>
#include <string.h>
#include "entropy.h"
#include "insecure_memzero.h"
#include "sha256.h"
#include "crypto_entropy.h"
/**
* This system implements the HMAC_DRBG pseudo-random number generator as
* specified in section 10.1.2 of the NIST SP 800-90 standard. In this
* impl... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <netdb.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "mbedtls/md5.h"
#include "esp_log.h"
#include "esp_system.h"
#include "esp_ota_ops.h"
#include "updaterInternal.h"... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "shmdefs.h"
#include "one_round.h"
static struct one_round_attack_ctx attack_ctx;
static int ipc_fd;
static void *addr;
static struct shm_msg *cli... |
#include<stdio.h>
#include<stdint.h>
#include<string.h>
/*
Memory allocated based on data type:
Byte aligned, 16bits(2B/half word) algined,
4B/word/32bits aligned, 8B/double word/64bits aligned
*/
typedef struct __sbf {
uint8_t i:5;
uint8_t c:3;
}SBF;
/**
* Memory align & padding - for struct.
* compi... |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... |
/* cx25840 firmware functions
*
* 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 is distributed i... |
/*
* Copyright 2015-2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... |
#include <i2c.h>
int ac1,ac2,ac3,b1,b2,mb,mc,md;
unsigned int ac4,ac5,ac6;
long int x1,x2,b5,b3,x3,b6,b7;
unsigned long int b4;
long int up;
long int ut;
long pressure;
int ac1_hi,ac1_lo;
int ac2_hi,ac2_lo;
int ac3_hi,ac3_lo;
int ac4_hi,ac4_lo;
int ac5_hi,ac5_lo;
int ac6_hi,ac6_lo;
int b1_hi,b1_lo;
... |
#include "func.h"
void q1()
{
int algo;
float valor, h, retorno;
while(4){
menu();
scanf("%d", &algo);
getchar();
system("clear");
switch (algo){
case 1:
printf("Digite o valor do raio: ");
scanf("%f", &valor);
getchar();
... |
#include <errno.h>
#include "pkt.h"
/* Received into pkt->sll and pkt->raw[], using the previous alignment offset */
int
pkt_recv(int fd, struct pkt *pkt)
{
socklen_t slen = sizeof pkt->sll;
ssize_t len = recvfrom(fd, &pkt->raw[pkt->rawoff],
sizeof pkt->raw - pkt->rawoff, 0,
(struct sockaddr *)&pkt->sll, &slen)... |
#include "samd21.h"
void __iar_program_start(void);
int __low_level_init(void);
void Dummy_Handler(void);
void Reset_Handler(void);
/**
* \brief Default interrupt handler for unused IRQs.
*/
void Dummy_Handler(void)
{
while (1) {
}
}
/* Cortex-M0+ core handlers */
void NMI_Handler ( void );
v... |
/*INDENT OFF*/
/* Description: C source code for selection-related development */
/******************************************************************************
* This software is covered by the zlib/libpng license.
* The zlib/libpng license is a recognized open source license by
* the Open Source Initiative: http://... |
/* $NetBSD: sbgbus.c,v 1.1 2002/03/05 23:46:42 simonb Exp $ */
/*
* Copyright 2000, 2001
* Broadcom Corporation. All rights reserved.
*
* This software is furnished under license and may be used and copied only
* in accordance with the following terms and conditions. Subject to these
* conditions, you may downl... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
#include <fcntl.h>
#include <elf.h>
#include "header.h"
#include "section.h"
#include "contenuS.h"
#include "symbole.h"
#include "relocation.h"
Elf32_Sym *symb;
char *nomSym;
int main(int argc, char **argv){
int c;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.