text stringlengths 3.08k 10.5k |
|---|
#include "util.h"
#include "species.h"
#include "base.h"
struct gf_list {
int size, fgap, sgap;
struct gf_list *next;
};
struct chain_list {
int cid;
char fchr[50], schr[50];
int fbeg, fend, sbeg, send, slen;
char forient, sorient;
struct gf_list *gf;
struct chain_list *next;
};
static struct chain_list *cha... |
#include "globvars.h"
/*********** INPUT PARAMETERS *********/
double CC; /* halo concentration */
double V200; /* circular velocity v_200 */
double LAMBDA; /* spin parameter */
double MD; /* disk mass fraction */
double MBH; /* central black hole mass fraction */
double JD; /* disk spin fraction */
... |
#include<stdint.h>
#include<stdio.h>
#include<string.h>
//main entrypoint
typedef enum {
COM_BOOLEAN,
COM_UINT8,
COM_UINT16,
COM_UINT32,
COM_UINT64,
COM_UINT8_N,
COM_UINT8_DYN,
COM_SINT8,
COM_SINT16,
COM_SINT32,
COM_SINT64
} Com_SignalType;
typedef enum {
COM_BIG_ENDIAN,... |
/*-
* BSD LICENSE
*
* Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
* 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 retai... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Monkey HTTP Server
* ==================
* Copyright 2001-2017 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
/*
This file is part of GNUnet.
Copyright (C) 2011 GNUnet e.V.
GNUnet 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, or (at your
option) any later version.
G... |
/*
* Copyright (c) 2007 by <NAME> (F4DWV)
*
* $Id: getmesg.c,v 1.3 2007/03/28 06:26:05 f4dwv Exp $
*
* This code is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License version 2
* published by the Free Software Foundation.
*
* This p... |
/*
* $Id$
*
* This program uses the PortAudio Portable Audio Library.
* For more information see: http://www.portaudio.com/
* Copyright (c) 1999-2000 <NAME> and <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (the "... |
/*
* Copyright (C) 2006, British Broadcasting Corporation
* All Rights Reserved.
*
* Author: <NAME>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above... |
#include <stdio.h>
#include <stdlib.h>
// C:\Users\takee\Desktop\test.txt
typedef struct {
int y;
int x;
} Name;
typedef struct element {
Name elName;
struct element* f[4];
} Element;
typedef Element* ElementPtr;
void searchAround (char[][4], ElementPtr, ElementPtr[][4]);
void graphize (char Board[][4], int yP... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* check_rcl.c :+: :+: :+: ... |
/**
* @file
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <assert.h>
#include <client.h>
#include <server.h>
#include <move.h>
#include <tile.h>
#include <utils/graph.h>
#include <utils/heap.h>
#include <utils/list.h>
#include "hack.h"
static int my_move_is_valid_of_mi... |
/**********************************************************************
*
* ctty : 2013-03-20
*
* emptymonkey's tool for mapping sessions by their controlling tty.
*
*
* Example use:
* empty@monkey:~$ ctty /dev/pts/3
* /dev/pts/3:empty:3099:3099:3099:0,1,2,255
* /dev/pts/3:empty:3099:3158:31... |
/*
* Copyright (c) 2012-2015 Etnaviv Project
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge... |
#include <pebble.h>
#include <pebble_fonts.h>
#include "datastream_layer.h"
Window *window;
TextLayer* datetime;
static char time_str[16] = "12:12\0";
static char* const MSG_TYPE_SETTINGS = "settings";
static char* const MSG_TYPE_DATA = "data";
#define DATASTREAM_SLOTS 1
static DataStreamLayer* ds[DATASTREAM_SLOTS]... |
/**
* \file flt_bbcodes.c
* \author <NAME>, <<EMAIL>>
*
* This plugin handles some bbcodes
*/
/* {{{ Initial comments */
/*
* $LastChangedDate$
* $LastChangedRevision$
* $LastChangedBy$
*
*/
/* }}} */
/* {{{ Includes */
#include "cfconfig.h"
#include "defines.h"
#include <stdio.h>
#include <stdlib.h>
#incl... |
#include <lip/core.h>
#include <lip/core/vm.h>
#include <stdarg.h>
#include "vm_dispatch.h"
#include "utils.h"
size_t
lip_vm_memory_required(const lip_vm_config_t* config)
{
lip_memblock_info_t os_block, env_block, cs_block;
lip_memblock_info_t mem_layout =
lip_vm_memory_layout(config, &os_block, &env_block, &cs_b... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "opus.h"
struct pageData{
int length;
int packetsTableLength;
int readPointer;
int residual;
int preSkip;
int packetsTable[256]; //256, as the page has up to 255, and then we may add the last frame of the previous frame too
};
void readRa... |
/*
* Project: Compiler for imperative programing language IFJ20
*
* File: codegen_stack.h
* Brief: Stack that holds up unique labels for jumps in if/else and for
*
* Authors: <NAME> <EMAIL>
* <NAME> <EMAIL>
* <NAME> <EMAIL>
* <NAME> <EMAIL>
*/
#include <stdio.h>
#include ... |
/**
* @file
* @brief Connect two STM32F4_Discovery boards with attached
* NRF24L01+ modules
*
* @date 23.06.18
* @author <NAME>
*/
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <util/log.h>
#include "stm32f4_discovery.h"
#include <libs/nrf24.h>
#define MAX... |
/** @file atom.c
*
* @author <NAME>, <<EMAIL>>
* @copyright 2015
* @license This project is released under the MIT License.
*/
#include "atom.h"
#include <unistd.h>
#include <sys/wait.h>
#include <time.h>
#include <stdlib.h>
int atom_init(atom_t* at) {
if (
( sem_init(&at->io_mutex, 1, 1) == -1 ) ||
(... |
/*
* Copyright (c) 2001 by <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 version.
*
* This program is distrib... |
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <limits.h>
#include "ped.h"
#include "deriv.h"
int count_deriv(peda_t *peda, int i, char s, int *infor, int *share)
{
int j, k;
char ref[4] = {'A','C','G','T'};
int ac = 0; // Keep track of test sample
unsigned long l... |
/**
* Copyright 2018 <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, distri... |
#include <stdint.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include "json_utils.h"
#if 0
#define JSMN_MAX_TOKEN_COUNT 300
static jsmntok_t t[JSMN_MAX_TOKEN_COUNT];
static jsmn_parser jsmn;
static char json_buf[128];
#endif
/*
* jsmn_convert_line_breaks() - convert the strings "\\n" into a "\n" ... |
// Standard libraries
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
#include <math.h>
// User defined libraries
#include "sketch/count_median.h"
#include "sketch/sketch.h"
#include "util/xutil.h"
#include "util/hash.h"
#include "util/median.h"
... |
/***************************************************************************
* Copyright (C) 2010 <NAME> *
* <EMAIL> *
* *
* This program is free soft... |
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//#include "../bootProto.h"
/*
* FNCACHE -- Maintain a cache of system logical filenames (e.g., <config.h>)
* and their associated virtual filenames (e.g., "host$hlib/conf... |
/*
Copyright (c) 2021-2022 jdeokkim
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... |
#include <stdint.h>
#include <lib.h>
#include <string.h>
#include <process.h>
/* TO DO
base pointer de primer proceso??
ERROR handling en schedule()
*/
//Define el tamaño del stack
#define STACK_SIZE 2000
#define MAX_PID 50
//Este .c va a crear un proceso nuevo y administrar los existentes. Para que esto suceda se v... |
#include "ompi_config.h"
#include <stdlib.h>
#include <stdio.h>
#include <dlfcn.h>
#include <stdarg.h>
#include "ompi/mpi/c/bindings.h"
#include "ompi/mpiext/mpiext.h"
#include "hiddenComms.h"
#include "ompi/mpiext/XCLFrame/c/mpiext_XCLFrame_c.h"
#include "taskMap.h"
XCLtask* taskList; // Global Variable declared ... |
/*
* Copyright (c) 2001-2004 <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:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
#include "mio.h"
#ifdef __APPLE__
#define GLSL_VERT_PROLOG "#version 150\n"
#define GLSL_FRAG_PROLOG "#version 150\n"
#else
#define GLSL_VERT_PROLOG "#version 130\n"
#define GLSL_FRAG_PROLOG "#version 130\n"
#endif
const char *gl_error_string(GLenum code)
{
#define CASE(E) case E: return #E; break
switch (code)
{
... |
/*
* Phoenix-RTOS
*
* Operating system kernel
*
* PCI driver
*
* Copyright 2018, 2019, 2020 Phoenix Systems
* Author: <NAME>, <NAME>, <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include "../../include/errno.h"
#include "cpu.h"
#include "pci.h"
#include "spinlock.h"
struct {
spinlock... |
#include <stdint.h>
#include <libc.h>
#include <typeDefs.h>
#include <syscalls.h>
#include <game.h>
#include <ps_comm.h>
#define MAX_INPUT 256
//para borrar
char * v = (char*)0xB8000 + 79 * 2;
extern char bss;
extern char endOfBinary;
static char user[] = "PoorUser:$ ";
char buffer[MAX_INPUT] = {0};... |
/*
** $Id: coolbar.c 557 2008-03-04 08:41:17Z malin $
**
** coolbar.c: The CoolBar control demo program.
**
** Copyright (C) 2001 ~ 2002 <NAME>.
** Copyright (C) 2003 ~ 2007 Feynman Software.
**
** Create date: 2001/11/01
*/
/*
** This source is free software; you can redistribute it and/or
** modify it under the te... |
#include "dpdk_picoquicdemo.h"
static const int default_server_port = 4443;
static const char* default_server_name = "::";
static const char* ticket_store_filename = "demo_ticket_store.bin";
static const char* token_store_filename = "demo_token_store.bin";
static int server_loop_cb(picoquic_quic_t* quic, picoquic_pac... |
/**
* @file gdt.h
* @brief Function prototypes and structs for gdt
*
* These structs are representing the gdt, gdt_ptr or a gdt_entry.
* The functions are used to create an appropriate gdt and initialises it with correct values
*/
#include <cernel/init/idt.h>
#include <stdint.h>
#include <stddef.h>
#include <... |
#include "Actuator_Lib.h"
#include <math.h>
#define N_SAMPLES 20.0
#define RPM_CLOCK_FREQ 5e5 // In Hz
#define PI 3.1415926535
#define BRAKE_ENABLE GPIO_PIN_RESET
#define BRAKE_DISABLE GPIO_PIN_SET
static TIM_HandleTypeDef *ht_rpm, *ht_pwm;
static uint32_t rw_FWD_REV_Pin, rw_BRAKE_Pin, tr_FWD_REV_Pin, tr_... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#define num_threads 27
int threads[num_threads] = {0};
typedef struct {
int row;
int column;
} parameters;
int sudoku[9][9];
// 1-9 arasinda ki sayilarin kontrolunu yapan fonksiyon
void *Column(void* param) {
parameters *params =... |
/*************************************************************************
* Microsoft Windows NT *
* *
* Copyright(c) Microsoft Corp., 1994 *
* ... |
/*
* Starter code modified by <NAME>1198 and Teona tr1328
* <NAME>
* <NAME>
* email: <EMAIL>
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <assert.h>
#i... |
/* Lab07_FSMmain.c
* Runs on MSP432
*
* Student name: <NAME>
* Date:
* Redesigned by Capt <NAME>
* Date: 9 September 2020
* Student version of FSM lab, FSM with 2 inputs and 2 outputs.
* Utilizes center IR sensors and motors.
* Daniel and <NAME>
* July 11, 2019
*/
/* This example accompanies the book
"Emb... |
/***********************************************************************
*
* Copyright 1996, University Corporation for Atmospheric Research.
*
* gridxobj.c
*
* Cross section object creation and destruction functions.
*
* History:
*
* 11/96 COMET Original copy
* 3/97 COMET Added XXSECTIONGRIDFILLOBJECT
* ... |
/*
* Dijkstra-shortest-path.c
*
* Copyright 2022 chehw <<EMAIL>>
*
* The MIT License (MIT)
*
* 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 witho... |
/*
(c) Copyright 2012-2013 DirectFB integrated media GmbH
(c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<... |
/**
* \file
*
* \brief UART Sleepwalking Example for SAM.
*
* Copyright (c) 2013-2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions a... |
//#include "pt.c"
double W_kappa(double a, double fK, double nz);//complete lens efficiency weight
double W_source(double a, double nz); //source redshift distribution (radial weight for IA,source clustering)
double W_gal(double a, double nz); //complete weight for galaxy statistics
double C_cl_tomo(double l, int ni,... |
#include "aos/linux_code/ipc_lib/shared_mem.h"
#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <errno.h>
#include <stdlib.h>
#include <assert.h>
#include "aos/linux_code/ipc_lib/core_lib.h"
#include "aos/common/logging/logging.h"
#inc... |
/*
The MIT License (MIT)
Copyright (c) 2022 <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, publis... |
#include <ctype.h>
#include <stdbool.h>
#include <string.h>
#include "clint.h"
static char *global_var_prefix;
static char *global_fn_prefix;
static char *typedef_suffix;
static char *struct_suffix;
static char *union_suffix;
static char *enum_suffix;
static enum {NONE, UNDER_SCORE} style;
static int minimum_length;
... |
#include "lib.h"
#include "shell.h"
#include "int80.h"
#include "game.h"
#include "syscall.h"
char auxer = 0;
int time = 0;
int quitF = 0;
void shell(){
osInit();
while(!quitF){
write(1,"SoundblasterOS> ",16);
int i = 0;
char buffer[75];
auxer = 0;
do{
... |
/* Copyright (C) 2002, 2003 <NAME> <mmj at mmj.dk>
*
* $Id$
*
* 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, cop... |
/*
* Source.c
*
* Created on: 2014-8-24
* Author: <NAME>
*/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#define BUFFER_SIZE 1024
#define TRUE 1
#define FALSE 0
typedef int bool;
char* stripExtension(const char* scriptFile, char* buffer);
char* ucFirst(char* name, char* bu... |
#define _GNU_SOURCE
#include <stdio.h>
#include <sched.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <sys/mount.h>
#include <sys/prctl.h>
#include <sys/stat.h>
#include <wait.h>
#include <memory.h>
#include <syscall.h>
#include <errno.h>
#include "util.h"
#include "netns.h"
static void prepar... |
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... |
/*$
Copyright (c) 2014-2017, Azel
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... |
/*
$RCSfile$
Copyright (C) 1996-1997 Id Software, Inc.
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 i... |
/***************************************************************************************************
Raspberry Pi Fanshim Service
Original Author : <NAME>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to de... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* key_hook.c :+: :+: :+: ... |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2011 The University of Tennessee and The University
* ... |
/**
* VampirTrace
* http://www.tu-dresden.de/zih/vampirtrace
*
* Copyright (c) 2005-2012, ZIH, TU Dresden, Federal Republic of Germany
*
* Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
* Centre, Federal Republic of Germany
*
* See the file COPYING in the pa... |
//
// JKMacro.h
// JKOCProjectToolDemo
//
// Created by 王冲 on 2018/12/7.
// Copyright © 2018年 JK科技有限公司. All rights reserved.
//
#pragma mark 1、NSLog的宏
/** 1、NSLog的宏 */
#ifdef DEBUG
#define JKLog(...) NSLog(@"%s 第%d行: %@\n\n",__func__,__LINE__,[NSString stringWithFormat:__VA_ARGS__])
#else
#define JKLog(...)
#endif... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/tcp.h> //For tcp_nodelay
#include <pthread.h>
#include <poll.h>
#include <assert.h>
#include "Network.h"
#include "Input.h"
#include "MB_ITQ.h"
#include "Gamestate.h"
#define... |
/* Programming Assignment 4: Exercise A
*
* In this assignment, you will implement a thread package.
*
* In this first exercise, you will learn how to use some basic mechanisms
* for building threads, specifically, the functions setjmp and longjmp.
* These are standard C library functions that support "non-local ... |
#include "linux.h"
#include "user.h"
extern void linux_syscall_entry(void);
static struct sigaction act_pf;
void linux_init(void)
{
map_pages(USYSCALL_START, PAGE_SIZE, PTE_P | PTE_W);
memcpy((void *)USYSCALL_START, linux_syscall_entry, PAGE_SIZE);
/* enable access to fs/gs segment base */
lcr4(rcr4... |
//
// Created by adeshchoudhar on 26/07/21.
//
#include "tern.h"
unsigned int tern_count = 0;
unsigned long int tern_memory = 0;
void tern_init() {
TERN = NULL;
}
tern_node *tern_new_node(char character) {
tern_node *new_node = (tern_node *) malloc(sizeof(tern_node));
if (!new_node) {
tern_unloa... |
/**********************************************************************
Copyright(c) 2011-2016 Intel Corporation All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source co... |
/* 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 "compat.h"
#include <stdio.... |
/*
The MIT License (MIT)
Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <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
... |
/* $NetBSD: autoconf.c,v 1.32 2002/02/12 20:38:35 scw Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1982, 1986, 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* the Systems Programming Group ... |
/*-
* Copyright (c) 2001 <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 conditions a... |
/* www.yoics.com
*---------------------------------------------------------------------------
*! \file file_config.c
* \brief Configuration file reader
*
*---------------------------------------------------------------------------
* Version ... |
#include <R.h>
#include <Rinternals.h>
#include <stdlib.h> // for NULL
#include <R_ext/Rdynload.h>
/* FIXME:
Check these declarations against the C/Fortran source code.
*/
/* .Call calls */
extern SEXP h5_CloseAttribute(SEXP);
extern SEXP h5_CloseDataset(SEXP);
extern SEXP h5_CloseDataspace(SEXP);
extern SEXP h5_Clo... |
/************************************************************************************
* Copyright (c) 2015, University of Arkansas - Hybridthreads Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are... |
/******************************************************************************
* Copyright (c), 2012~2016 iot.10086.cn All Rights Reserved
* @file RFDataPoint.c
* @brief 数据点操作接口封装,提供上报数据点的功能
* @author 宋伟<<EMAIL>>
* @date 2016/05/24
* @version 1.0.0
* @par Revision History:
* Date Author Revis... |
/* Date: 12/05/2018
Description: Project 3 - Hash Table
Version 3.0
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define N 17
#define SIZE 43680
#define hashSIZE 87211
#define transactions 1000000
const char digits[15] = "0123456789ABCD", fillString[N] = "AVAILAB... |
/*
* Copyright 2017 Advanced Micro Devices, 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, m... |
#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <limits.h>
#include <stdint.h>
#include "interval_tree.h"
#include "interval_tree_generic.h"
struct g_data
{
uint32_t start; //region start
uint32_t end; ... |
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#define NUMBER 256
#define PLUS 257
#define STAR 258
#define LPAREN 259
#define RPAREN 260
#define END 261
#define EXPRESSION 0
#define TERM 1
#define FACTOR 2
#define NIL -1
#define ACC 1000
//parsing table
int actionTable[12][6] = {// [상태번호][심볼] / 양의 정수 : S... |
/*
* rofdump
*
* Utility program for reading ROF binary files from Rigol 8xx series lab
* power supplies.
*
* Copyright (C) 2017 <NAME> (<EMAIL>)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the standard MIT license. See COPYING for more details.
*/
#incl... |
/* Shared library add-on to iptables to add devgroup matching support.
*
* Copyright (c) 2011 <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <xtables.h>
#include <linux/netfilter/xt_devgroup.h>
static void devgroup_help(void)
{
printf(
"devgroup match opt... |
#include <string.h>
#include "sample_decode.h"
#include "i2pix.h"
void print_info(ST_SECT ss[], int sn) {
int i, j, k;
unsigned long long *ull;
int *ii;
unsigned short *us, *n;
printf("========== SECTION %1.1d ===========\n", (sn >= 2) ? sn + 1 : sn);
for (i = 0, j=1; i < ss[sn].num; j += *(ss[sn].len+i)... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <stdarg.h>
#include <fcntl.h>
#include "minicpio.h"
#include "utils.h"
typedef unsigned char byte;
int check_cpio_magic(const char *magic, const ... |
#include <stddef.h>
#include <stdlib.h>
#include "bit_array.h"
#include <stdio.h>
//Function definitions:
bit_array *create_bit_array(size_t size)
/**
* Description: This function creates and initializes a bit_array data structure.
* Its size is 'size' and each bit is initialized with value 0. The user must call
*... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... |
/*
* Copyright 2017 <NAME>.
*
* 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 conditions and the following disclaimer... |
#include"JsObject.h"
#include"JsContext.h"
#include"JsEngine.h"
#include"JsVm.h"
#include"JsList.h"
#include"JsValue.h"
#include"JsSys.h"
#include"JsDebug.h"
#include"JsException.h"
#include"JsAst.h"
#include"JsParser.h"
#include"JsEval.h"
#include"JsWeb.h"
#include"JsAsync.h"
#include<stdlib.h>
#include<stdio.h>
#incl... |
/*
qcrypt is a set of wrapper functions allowing kdb+ to interface with openssl
cryptographic functions including
1) Random number generation - qrand
2) hashing algorithms - md5, sha1, sha224, sha256, sha384, sha512 - hash
3) Key stretching - pbkdf2
Example compile line (change location and version of openssl libra... |
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <limits.h>
#define EIGHT_K 8192
#define HALF_A_GIG 536870912
#define PRIMES_SIZE HALF_A_GIG //EIGHT_K //256
#define MAX_PRIME ((unsigned long)PRIMES_SIZE * 8)
#define BYTE_TO_BINARY_PATTERN "%c%c%c%c%c%c%c%c"
#define BYTE_TO_BINARY(... |
/*-------------- Telecommunications & Signal Processing Lab ---------------
McGill University
Routine:
GenTone [options] AFile
Purpose:
Generate an audio file containing a sine wave
Description:
This program generates a sine wave of a given amplitude and phase. The samples
of the... |
// :vim ts=4 sw=4 noet:
/*
==================================================================================
Copyright (c) 2019 Nokia
Copyright (c) 2018-2019 AT&T Intellectual Property.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Lice... |
/*
* planet-2views.c
* This program by Sumanta modifies planet.c to show two views
* in two windows. The sun is replaced with a teapot as an asymmetrical
* object is prefered to show up different views. One view is exactly as
* before (in the original planet.c) from a point in space beyond
* the orbit of ... |
/**
* \file
*
* \brief Unit tests for EIC driver.
*
* Copyright (c) 2012-2018 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 Microchip products.
*... |
/*
* (C) Copyright 2007-2013
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
* wangwei <<EMAIL>>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <sys/time.h>
#include "orp.h"
#define ERROR(...) do{fprintf(stderr,__VA_ARGS__); exit(1);}while(0)
#define MAX_FILENAME_LENGTH 256
#define NOT_DEFINED -1
static void print_help(char *argv)
{
fprintf(stderr, "%s ... |
// Copyright 2017 Silicon Laboratories, Inc.
#include CONFIGURATION_HEADER
#include PLATFORM_HEADER
#include EMBER_AF_API_STACK
#ifdef EMBER_AF_API_DEBUG_PRINT
#include EMBER_AF_API_DEBUG_PRINT
#endif
#include EMBER_AF_API_ZCL_CORE
#include EMBER_AF_API_BULB_PWM_DRIVER
#include "led-dim-pwm-transform.h"
... |
/**
* 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... |
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 2018 Gandi SAS
* Copyright (c) 1999 <NAME>
* Copyright (c) 1982, 1986, 1989, 1990, 1991, 1993
* The Regents of the University of California.
* (c) UNIX System Laboratories, Inc.
* Copyright (c) 2000-2001 <NAME>.
* All rights reserved.
*
* Redistri... |
/**
* Afrimesh: easy management for B.A.T.M.A.N. wireless mesh networks
* Copyright (C) 2008-2009 Meraka Institute of the CSIR
* 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. Redist... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.