text stringlengths 3.08k 10.5k |
|---|
/*
****************************************************************
File: "smath.c" --
Author: <NAME>
Date: 15 January 1997
Definitions of basic arithmetic narrowing primitives
core arithmetic (+,*,^2)
comparisons (=,<,<=,<>)
type constraints (integer(X), ... |
/* Prototypes for exported functions of Andes NDS32 cpu for GNU compiler
Copyright (C) 2012-2017 Free Software Foundation, Inc.
Contributed by Andes Technology Corporation.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public... |
/*
* COMP20007 Design of Algorithms
* Semester 1 2016
*
* <NAME> (<EMAIL>)
*
* This provides all the functionality related to hash tables.
*
*/
#include <stdlib.h>
#include <assert.h>
#include "hashtable.h"
#include "list.h"
#include "array.h"
#define MAX_LINE_LEN 256
/* Create a new arbitra... |
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <errno.h>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include "mmt_core.h"
#include "tcpip/mmt_tcpip_protocols.h"
#include "processing.h"
/**
* Returns 1 if the given session is a microflow, O otherwise
* @param expired_s... |
/**
* Copyright (C) 2010 <NAME> (aka r3gis - www.r3gis.fr)
* This file is part of pjsip_android.
*
* 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/license... |
#define _LARGEFILE64_SOURCE /* required for GLIBC to enable stat64 and friends */
/* I read somewhere that this is needed on HP-UX */
#define _INCLUDE_HPUX_SOURCE
#define _INCLUDE_POSIX_SOURCE
#define _INCLUDE_XOPEN_SOURCE
#define _INCLUDE_XOPEN_SOURCE_EXTENDED
#define _INCLUDE_AES_SOURCE
#include <errno.h>
#incl... |
#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) 2014 Texas Instruments Incorporated
*
* All rights reserved. Property of Texas Instruments Incorporated.
* Restricted rights to use, duplicate or disclose this code are
* granted through contract.
*
* The... |
/*
** Splint - annotation-assisted static program checker
** Copyright (C) 1994-2003 University of Virginia,
** Massachusetts Institute of Technology
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by the
** Free Sof... |
/*
* File: general-tree.c
* Author: <NAME> (99074)
* Description: Functions to manipulate a n-ary tree.
*/
#include "auxiliary.h"
/* Initializes the n-ary tree. Returns a pointer to the tree's root. */
Node *init_tree() {
Directory directory;
Node *node;
directory = initialize_directory(directory,... |
/** @file storage_intf.c
*
* @brief This module manages non-volatile storage opeations for BMDware
*
* @par
* COPYRIGHT NOTICE: (c) Rigado
*
* All rights reserved. */
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "app_error.h"
#include "pstorage.h"
#include "pstorage_platfo... |
#include <string.h> // memcpy
#include <nds/system.h>
#include "module_params.h"
#include "patch.h"
#include "find.h"
#include "common.h"
#include "locations.h"
#include "cardengine_header_arm7.h"
#include "debug_file.h"
//#define memcpy __builtin_memcpy
extern u32 forceSleepPatch;
u32 savePatchV1( const cardengineA... |
/*
* Copyright (C) 2012 <NAME> <<EMAIL>>
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use,... |
#include <btc.h>
#include <ecc_key.h>
#include <sha2.h>
#include <utils.h>
#include <bloom.h>
#include <sqlite3.h>
#define SIZEOUT 128
#define MAX_BUF BTC_ECKEY_PKEY_LENGTH + 1 // add a byte for the null terminator
#define PRIVATE_KEY_TYPES 3 // # of private keys we generate from a given seed
#define UPDATE 0
#defi... |
/**
* collectd - src/write_redis.c
* Copyright (C) 2010 <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,... |
#include "writer.h"
#include <sys/stat.h>
#include "fql.h"
#include "misc.h"
#include "fqlsig.h"
#include "record.h"
#include "expression.h"
/**
* For the most part, I'm just mimicing libcsv writer functions.
* basically, we always want to write to a temp file. When we
* are done, we rename. Anything goes wrong, a... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <getopt.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <string.h>
#include <time.h>
#include <signal.h>
#include "al_deamon.h"
#include "al... |
/*****************************************************************************\
* ANALYSIS PERFORMANCE TOOLS *
* Extrae *
* Instrumentation package for parallel applications *
**... |
/*
sshrandom.c (originally in sshcryptocore/genrand.c)
Copyright:
Copyright (c) 2002, 2003 SFNT Finland Oy.
All rights reserved
*/
#include "sshincludes.h"
#include "sshcrypt.h"
#include "sshcrypt_i.h"
#include "sshrandom_i.h"
#include "sshgetput.h"
#include "sshhash/sshhash_i.h"
#include "sshhash/md5.... |
/* vi: set sw=4 ts=4: */
/*
* Mini df implementation for busybox
*
* Copyright (C) 1999-2004 by <NAME> <<EMAIL>>
* based on original code by (I think) <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
... |
/*
* Copyright (c) 2020 <NAME>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "uros.h"
#include <rcl/rcl.h>
#include <rclc/rclc.h>
#include <rclc/executor.h>
#include <zephyr.h>
#include <stdlib.h>
#define UROS_THREAD_STACK_SIZE 16384
#define UROS_THREAD_PRIORITY 3
#define RCCHECK(fn) ... |
#include <stdio.h>
#include <time.h>
#include <pthread.h>
#include <stdlib.h>
int arrradix[10000];
int array[10000];
struct data
{
int arr[10000];
int n;
};
struct count_sort_data
{
struct data *d;
int exp;
};
int getMax(int arr[], int n)
{
int mx = arr[0];
for (int i = 1; i < n; i++)
if (arr[i] > mx)
mx =... |
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include "dns_decode.h"
/*
* The following macros set num to the host version of the number pointed to
* by buf and increment the buff (usually a pointer) and count (usually and
* int counter)
*/
#define SET_UINT16( num,... |
// Sachin
// Aug 1, 2020
// compile: gcc snake.c -lncurses
// run: ./a.out
#include <ncurses.h>
#include <stdint.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <wchar.h>
// Store each snake segment as a double linked list
struct segment
{
uint32_t x;
uint32_t y;
struct segment *next;
struct... |
#include <sorts.h>
#include <monstres.h>
#include <personnage.h>
#include <listes.h>
/**
* \file sorts.c
* \author <NAME> (<EMAIL>)
* \brief Fichier contenant toutes les fonctions concernant les sorts
* \version 0.1
* \date 22/03/2022
* \copyright Copyright (c) 2022
*/
void detruire_sort(sort_t ** sort){
f... |
/*
* NMH's Simple C Compiler, 2014
* Optimizer
*/
#include <limits.h>
#include "defs.h"
#include "data.h"
#include "decl.h"
static int Opt_sum_lim;
void opt_init(void) {
int i, k;
Opt_sum_lim = 1;
k = sizeof(int) < BPW? sizeof(int): BPW;
k = k*8 - 1;
for (i=1; i<k; i++)
Opt_sum_lim <<= 1;
}
static node *... |
#include <stdlib.h>
#include <stdio.h>
/* Possible upgrades :
* - ignore whitespaces when loading the file
* - better bracket-couple allocation
* - other things
*/
#define BUFSIZE 4096
#define DATA_SIZE 30000
struct Bracket
{
ssize_t open;
ssize_t close;
};
void brainfuck(char *src_code, ssize_t src_cod... |
// list.c
// includes
#include "board.h"
#include "list.h"
#include "move.h"
#include "util.h"
// functions
// list_is_ok()
bool list_is_ok(const list_t * list) {
if (list == NULL) return FALSE;
if (list->size >= ListSize) return FALSE;
return TRUE;
}
// list_clear()
void list_clear(list_t * list) {... |
// ----------------------------------------------------------------------------
/*!
Copyright (C) 2002 by the SGADE authors
For conditions of distribution and use, see copyright notice in SoLicense.txt
\file SoMeshCube.c
\author <NAME>
\date Jun 10 2001
\ingroup SoMesh
See the \a SoMesh module for more inf... |
/*
* ipmi_si_pci.c
*
* Handling for IPMI devices on the PCI bus.
*/
#include <linux/module.h>
#include <linux/pci.h>
#include "ipmi_si.h"
#define PFX "ipmi_pci: "
static bool pci_registered;
static bool si_trypci = true;
module_param_named(trypci, si_trypci, bool, 0);
MODULE_PARM_DESC(trypci, "Setting this to z... |
/*
* mathlib.h
* This header gets #included by the floating point math library routines.
* This is the proper place to put machine dependencies.
*/
#include <errno.h>
#include <float.h>
#include <math.h>
#if defined(__IEEE_FP__)
#include <ieee.h>
#endif /* defined(__IEEE_FP__) */
/* Expand polynomials of orders ... |
#include <stdio.h>
#include <stdlib.h>
#include "..\Components\structs\struct.h"
#include "..\Components\structs\add\createBooks.h"
#include "..\Components\structs\show\showBooks.h"
#include "..\Components\structs\show\filtre.h"
#include "..\Components\structs\delete\deleteBooks.h"
#include "..\Components\struct... |
#include "util.h"
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
int u_decval(int c) {
return c - '0';
}
int u_hexval(int c) {
return isdigit(c) ? c - '0' : tolower(c) - 'a' + 10;
}
// Returns the numeric value of the character `c` for a given radix.
// Returns -1 if the character is outside the ... |
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "../qdpll.h"
static void
print_relevant_assumptions (LitID *assumptions)
{
LitID *p;
for (p = assumptions; *p; p++)
printf ("%d ", *p);
printf ("0");
}
static unsigned int
count_relevant_assumptions (LitID *assumptions)
... |
#include "elffile.h"
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
ELFFile file_init(const char* path)
{
ELFFile file;
FILE* fp = fopen(path, "r");
fseek(fp, 0, SEEK_END);
file.filesize = ftell(fp);
file.data = (unsigned char*)malloc(file.filesize);
fseek(fp, 0,... |
//
// Copyright (c) 2017 Intel 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
// rights to use, copy, modify, merge, p... |
//cyc:Finished on 2017/7/27, Test with FIPS180-2, PASSED!
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
unsigned int state[5]={0x0};
static const unsigned char padding[64] = {
0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x0... |
/*
* @file colorpal.c
*
* @author <NAME>
*
* @version 0.55
*
* @copyright
* Copyright (C) Parallax, Inc. 2012. All Rights MIT Licensed.
*
* @brief Simplifies reading Parallax ColorPAL sensor.
*/
#include "simpletools.h"
#include "colorpal.h"
#include "fdserial.h"
//void colorPal_reset(colorPal *device);
/... |
/* fileread.c: Functions for reading the puzzle files.
*
* Copyright (C) 2000 by <NAME>, under the GNU General Public
* License. No warranty. See COPYING for details.
*/
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "gen.h"
#include "cblocks.h"
#include "movelist.h"
#include "dirio.h"
#includ... |
// <NAME>
// 111601021
// useful standard libraries included.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define inf 1000000000
int min(int a, int b){
return (a <= b ? a : b);
}
// struct to be used for circular linked list.
struct Node{
int data;
struct Node* next;
};
typedef struct Node... |
//CS330 Assignment 2
//Name : <NAME>
//Roll No : 170195
#include<pipe.h>
#include<context.h>
#include<memory.h>
#include<lib.h>
#include<entry.h>
#include<file.h>
/***********************************************************************
* Use this function to allocate pipe info && Don't Modify below function
********... |
/*
* GStreamer
*
* unit test for mpeg4videoparse
*
* Copyright (C) 2011 Nokia Corporation. All rights reserved.
*
* Contact: <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Soft... |
/*
* Copyright 2014, 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 cond... |
/*
* iLBC - a library for the iLBC codec
*
* createCB.c - The iLBC low bit rate speech codec.
*
* Adapted by <NAME> <<EMAIL>> from the reference
* iLBC code supplied in RFC3951.
*
* Original code Copyright (C) The Internet Society (2004).
* All changes to produce this version Copyright (C) 2008 by <NAME>
* Al... |
#include <stdlib.h>
#include <gtk/gtk.h>
#include <epoxy/gl.h>
#include <gthree/gthree.h>
#include "utils.h"
GthreeScene *scene;
GthreeMesh *marine, *knight;
GthreeScene *
init_scene (void)
{
GthreeGeometry *marine_geometry, *knight_geometry;
GthreeBasicMaterial *material_wireframe, *material_texture;
Gthre... |
#include <string.h>
#include <math.h>
#include "sf2d_private.h"
//stolen from staplebutt
void GPU_SetDummyTexEnv(u8 num)
{
GPU_SetTexEnv(num,
GPU_TEVSOURCES(GPU_PREVIOUS, 0, 0),
GPU_TEVSOURCES(GPU_PREVIOUS, 0, 0),
GPU_TEVOPERANDS(0,0,0),
GPU_TEVOPERANDS(0,0,0),
GPU_REPLACE,
GPU_REPLACE,
0xFFFFFFFF);
}
... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* vs_func.c :+: :+: :+: ... |
/*
* Copyright 2020-2021 <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, d... |
/*
* Copyright (C) 2003-2010 Neverball authors
*
* NEVERBALL 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 pro... |
// https://www.hackerrank.com/challenges/ctci-find-the-running-median
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
#define MIN 0
#define MAX 10000
#define PARENT(i) (i - 1) / 2
#define LEFT(i) 2 * i + 1
#define RIGHT(i) 2 * ... |
/* vim: set et sw=4 sts=4 ts=4 : */
/********************************************************************\
* 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 *
* ... |
/*
* Copyright (c) 2016, ARM Limited and Contributors. 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 o... |
/*
Author: <NAME> <<EMAIL>>
Copyright (c) 2015 Cromulence LLC
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, m... |
#include <inttypes.h>
#include <string.h>
#include <stdio.h>
#include "grisu3_parse.h"
#include "grisu3_print.h"
#define TEST(x, s) do { \
if (!(x)) { \
fprintf(stderr, ... |
/*
* =============================================================================
* HSA Runtime Conformance Release License
* =============================================================================
* The University of Illinois/NCSA
* Open Source License (NCSA)
*
* Copyright (c) 2014, Advanced Micro Devi... |
/*
** Splint - annotation-assisted static program checker
** Copyright (C) 1994-2003 University of Virginia,
** Massachusetts Institute of Technology
**
** This program is free software; you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by the
** Free Sof... |
/*
* dump_psb. (c) 2004, <NAME>, Red Hat Inc.
* Licensed under the GPL v2.
*/
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define _GNU_SOURCE
#include <getopt.h>
#include <sys/mman.h>
#define LEN (0x100000 - 0xc0000)
#define OFFSET (0xc0000)
#ifndef __packed... |
/* $NetBSD: rz.c,v 1.18 2001/09/24 13:22:33 wiz Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> of Lawrence Berkeley Laboratory and <NAME>.
*
* Redistribution and use in source ... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include "cartoStrUtils.h"
#ifndef MAX
#define MAX(a,b) (((a)>(b))?(a):(b))
#endif
void rztrim( char * buf )
{
int len;
char *p;
len = strlen(buf);
p = &buf[len-1];
while (*p=='0'&&*(p-1)!='.') { *p = (char)0; p--; }
re... |
//
// Created by chaos on 3/4/2021.
//
#include "perm.h"
/// Based on https://cs.stackexchange.com/a/67669
/// \param perm The permutation to set.
/// \param ordinal The ordinal as the input.
/// \param mismatches How many bits to set.
/// \param subkey_length How big the actual bit string is in bits
void decodeOrdin... |
/*
* Project: syncvlc
* File: network.c
*
* UIUC ECE438 Fall 2017 Final Project
* Synchronized Video Playback Control
*
* Author: <NAME> (ceguo2)
* <NAME> (xinyix6)
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/time.h>
#include <stdint.h>... |
#include "hw/hw.h"
#include "console.h"
#include "audio.h"
typedef struct {
QEMUFile *f;
int bytes;
char *path;
int freq;
int bits;
int nchannels;
CaptureVoiceOut *cap;
} WAVState;
/* VICE code: Store number as little endian. */
static void le_store (uint8_t *buf, uint32_t val, int len)
{
... |
/*******************************************************************************
Dr. Micro (c) 1983 Sanritsu
Video hardware
driver by Uki
*******************************************************************************/
#include "driver.h"
static int flipscreen;
static UINT8 *drmicro_videoram;
static tilem... |
#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) 2014 - 2020 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/****************************************************************... |
/*
Copyright (C) 2004,2005,2006 (<NAME>) <<EMAIL>>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later
version.
This program is distrib... |
/*
* Copyright (C) 2020 <NAME>. All rights reserved.
*
* 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 applicabl... |
#include <stdarg.h>
#include <stdint.h>
#include "libtinyc.h"
#include "../../asm/devices.h"
#define UART_DATA *((volatile char*)DEV_UART_DATA)
#define UART_RREADY *((volatile char*)DEV_UART_RX_READY)
#define UART_WREADY *((volatile char*)DEV_UART_TX_READY)
void printf_c(char c) {
// wait until serial interface is... |
/* Play music from Bluetooth device
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... |
#include "include/kb_driver.h"
#include <stdint.h>
#include "../include/fileSystem.h"
#include "../include/scheduler.h"
#include "asm/libasm.h"
#include "include/console.h"
#include "include/kb_layout.h"
#define BUFF_SIZE 0xFF
fd_t* stdin = NULL;
// Non-Shifted scan codes to ASCII:
static unsigned char ... |
/*
* MIT License (MIT)
*
* Copyright (C) 2017 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use,... |
/* O_*, F_*, FD_* bit values. NaCl version.
Copyright (C) 2015-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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 Softw... |
#include "first.h"
#include "array.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
static data_unset *data_config_copy(const data_unset *s) {
data_config *src = (data_config *)s;
data_config *ds = data_config_init();
ds->comp = src->comp;
buffer_copy_buffer(ds->key, src->key);
buffer_copy_buffer(... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*
*
*/
#include <aos/aos.h>
#include <hal/base.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vfs_conf.h>
#include <vfs_err.h>
#include <vfs_register.h>
#include "common.h"
#include "sensor.h"
#include "sensor_drv_api.h"
#include "sens... |
/* emulación de servidor de archivos para minimOS
* v0.5b1
* (c) 2015-2022 <NAME>
* modificado 20150202-1438 */
#include <stdio.h>
#include <string.h>
void to_hex(long x, char* c)
{
int i;
char h[16] = "0123456789ABCDEF";
for (i=3; i>=0; i--)
{
c[i] = h[x % 16];
x >>= 4;
}
c[4] = '\0';
}
int main(void... |
/*
* OpenVPN -- An application to securely tunnel IP networks
* over a single UDP port, with support for SSL/TLS-based
* session authentication and key exchange,
* packet encryption, packet authentication, and
* packet compression.
*
* Copyright (C) 2002-2017 Ope... |
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#define TITLE_STRING "title"
#define ARTIST_STRING "artist"
#define ALBUM_STRING "album"
#define YEAR_STRING "year"
typedef enum Sizes
{
TAG_SIZE = 3,
YEAR_SIZE = 4,
ARTIST_SIZE = 30,... |
/**
* collectd - src/types_list.c
* Copyright (C) 2007 <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; only version 2 of the License is applicable.
*
* This program is distribu... |
/*
* (C) Copyright 2000-2011
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* SPDX-License-Identifier: GPL-2.0+
*/
/*
* IDE support
*/
#include <common.h>
#include <blk.h>
#include <config.h>
#include <watchdog.h>
#include <command.h>
#include <image.h>
#include <asm/byteorder.h>
#include <asm/io.h>
#if defi... |
/*
* MIT License
*
* Copyright (c) 2021 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy,... |
#include <assert.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "aead.h"
#include "../chacha20/chacha20.h"
#include "../poly1305/poly1305.h"
static void
bcrypto_aead_pad16(bcrypto_aead_ctx *aead, uint64_t size);
void
bcrypto_aead_init(bcrypto_aead_ctx *aead) {
memset(&... |
# include "ldefs.h"
extern int nine;
void
phead1(void)
{
Bprint(&fout,"typedef unsigned char Uchar;\n");
if (nine) {
Bprint(&fout,"# include <u.h>\n");
Bprint(&fout,"# include <libc.h>\n");
}
else {
Bprint(&fout,"# include <lib9.h>\n");
}
Bprint(&fout,"# include <bio.h>\n");
Bprint(&fout,... |
/*! Testing for proper read of little-endian variables in an hdf4 file.
*
* Added to debug issue NCF-332. Based on code submitted by
* https://github.com/Unidata/netcdf-c/issues/113.
*/
#include <stdio.h>
#include <config.h>
#include <nc_tests.h>
#include <hdf5.h>
#include <H5DSpublic.h>
#include "mfhdf.h"
#defin... |
/* $OpenBSD: ppbreg.h,v 1.2 2001/11/14 21:04:46 mickey Exp $ */
/* $NetBSD: ppbreg.h,v 1.3 2001/07/06 18:07:16 mcr Exp $ */
/*
* Copyright (c) 1996 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditio... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* $Revision: 7 $
* $Date: 15/09/14 4:22p $
* @brief Demonstrate how to use WDT time-out interrupt event to wake-up system.
* @note
* Copyright (C) 2014~2015 Nuvoton Technology Corp. All ... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define to dummy `main' function (if any) required to link to the Fortran
libraries. */
/* #undef FC_DUMMY_MAIN */
/* Define if F77 and FC dummy `main' functions are identical. */
/* #undef ... |
/* -*- C -*- */
/*
* Copyright (c) 2014-2020 Seagate Technology LLC and/or its Affiliates
*
* 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... |
/**
* @file smp.h
* Security Manager Protocol implementation header
*/
/*
* Copyright (c) 2015-2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
struct bt_smp_hdr {
u8_t code;
} __packed;
#define BT_SMP_ERR_PASSKEY_ENTRY_FAILED 0x01
#define BT_SMP_ERR_OOB_NOT_AVAIL 0x02
#define... |
#include <lcom/lcf.h>
#include <lcom/vbe.h>
#include <lcom/video_gr.h>
//#include <machine/int86.h>
#include "videog.h"
#include "vbe.h"
#include "keyboard.h"
static char *video_mem; /* Process (virtual) address to which VRAM is mapped */
static unsigned h_res; /* Horizontal resolution in pixels */
static unsigned ... |
/* triangulate.c written by <NAME> */
#include <stdlib.h>
#ifdef UNIX
#include "matlab.h"
#endif
#include "matrix.h"
#include "mex.h"
#include "elim.h"
#include "map.h"
#include "misc.h"
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]){
int dims [2];
int i, j, k,... |
/* calcGap - calculate gap scores. */
/* Copyright (C) 2011 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
double scale = 200;
int maxGap = 100;
int near = 0;
char *s... |
/*
* Copyright (c) 2014-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 notice,
* this list ... |
#include "types.h"
#include "sys/kinfo.h"
#include "sys/system.h"
#include "sys/kheap.h"
#include "sys/paging.h"
#include "sys/binfmt_elf.h"
#include "sys/task.h"
#include "sys/multiboot.h"
#include "vga/svga.h"
static void kernel_preload(void);
extern multiboot_info_t* sys_multiboot_info;
extern uint32_t __kern_siz... |
#include "sexp.h"
#include "utility/utility.h"
typedef enum { SEXP_NIL, SEXP_PAIR, SEXP_SYMBOL, SEXP_NUMBER } SexpKind;
struct struct_Sexp {
SexpKind kind;
union {
const void *nil;
struct {
Sexp *car, *cdr;
} pair;
const char *symbol;
int number;
} data;
};
typedef struct struct_Sexp ... |
/*
* Copyright (c) 2003, 2007-14 <NAME>
* Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Licens... |
/*
* disk/cyberblast.c
*
* Custom format as used on Cyberblast by Innerprise.
*
* Written in 2015 by <NAME>
*
* RAW TRACK LAYOUT:
* u16 0x4448,0xa5a4,0xa5a4 :: Sync
* u32 csum,track
* u32 data[0x600]
*
* Checksum is EOR of all non-sync longs.
*
* TRKTYP_cyberblast data layout:
* u8 sector_data[1... |
// Copyright (c) 2004-2020 Microchip Technology Inc. and its subsidiaries.
// SPDX-License-Identifier: MIT
#include <unistd.h>
#include <stdio.h>
#include "cli.h"
#include "example.h"
#include "microchip/ethernet/switch/api.h"
static struct {
mesa_iflow_id_t iflow_id;
mesa_ingress_cnt_id_t icnt_id;... |
/*
* subfont.c
*
* This file is part of the ttf2pk package.
*
* Copyright 1997-1999 by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h> /* for size_t */
#include <ctype.h>
#include <string.h>
#include "filesrch.h"
#include "subfont.h"
#i... |
#include <stddef.h>
#include <stdint.h>
#include <limits.h>
#include "../common/bip32.h"
#include "../common/buffer.h"
#include "../common/read.h"
#include "../common/script.h"
#include "../common/segwit_addr.h"
#ifndef SKIP_FOR_CMOCKA
#include "../crypto.h"
#endif
int get_script_type(const uint8_t script[], size_t ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.