text stringlengths 5.8k 28.2k |
|---|
/*
* Oracle Linux DTrace.
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
int mycallee(int i) {
return i ^ 1;
}
int myfunc_30() {
int i = 1;
/* call another function to preven... |
/*
* Copyright (c) 2016 Motorola Mobility, LLC.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of co... |
// SPDX-License-Identifier: GPL-2.0+
//
// neo1973_wm8753.c - SoC audio for Openmoko Neo1973 and Freerunner devices
//
// Copyright 2007 Openmoko Inc
// Author: <NAME> <<EMAIL>>
// Copyright 2007 Wolfson Microelectronics PLC.
// Author: <NAME>
// <EMAIL> or <EMAIL>
// Copyright 2009 Wolfson Microelectronics
#i... |
//
// solver_test.c
// indigo
//
// Created by <NAME> on 10/01/2021.
// Copyright © 2021 CloudMakers, s. r. o. All rights reserved.
//
// link with solver_test_image.c, indigo_bus.c, indigo_raw_utils.c,
// indigo_cat_data.c, indigo_token.c, indigo_io.c, indigo_align.c
#include <stdio.h>
#include <stdlib.h>
#inclu... |
/*
* Copyright 2017 <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 required by applicable law or agreed to ... |
/*
Ballistic: a software to benchmark ballistic models.
AUTHORS: <NAME>.
Copyright 2018, AUTHORS.
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,... |
/******************************************************************************
*
* Copyright (C) 2011 - 2014 Xilinx, Inc. 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 Softw... |
#include "bgen/bgen.h"
#include "cass.h"
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void test_file(void);
void test_geno(void);
int main(void)
{
test_file();
test_geno();
return cass_status();
}
void test_file(void)
{
const char filename[] =... |
/****************************************************************************
* Copyright (c) 2012 Freescale Semiconductor, 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:
*
* ... |
void update_cosmopara (cosmopara *C);
void update_gal (galpara *G);
void update_nuisance (nuisancepara *N);
//conditions for recomputing look-up tables
int recompute_expansion(cosmopara C);
int recompute_Delta(cosmopara C);
int recompute_cosmo3D(cosmopara C);
int recompute_cosmo3D_CLASS(cosmopara C);
int recompute_zpho... |
#include <stdio.h>
#include <string.h>
#include "type.h"
#include "object.h"
#include "lex.h"
Token makeToken(const char *atom, size_t size, uint32_t type)
{
Token ret = (Token)malloc(sizeof(struct token_t));
ret->type = type;
ret->data = NULL;
if (atom == NULL) {
ret->atom = NULL;
} else... |
#include "argus.h"
int pid;
int timeout=0;
int tempoexecucao=9999;
int ctrc_c_counter=0;
int killed = 0;
void sigint_handler(int signum){
char msg[100] = "\nAre you sure you want to quit?\nYES: Press CTRL + C\n";
if(ctrc_c_counter < 1)
if(write(1,msg,strlen(msg)) < 0){
perror("write");
exit(1);
}
ctrc_c... |
#include "bitboard.h"
#include <ctype.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bitscan.h"
#include "move.h"
#define IN_CHECK_UNKNOWN -1
#define IN_CHECK_FALSE 0
#define IN_CHECK_TRUE 1
// generate a 64-bit random number
static inline uint64_t ... |
/** Analyse base quality scores of a set of sequencing reads.
*/
/****************************************************************************
****************************************************************************
* *
* Copyright (C) 2... |
/**
* Copyright 2013-2016 by 2013-2015 by Explorer kernel Developers. All rights reserved.
* made by <NAME><<EMAIL>>
* Explorer loader Storage Management
* Explorer loader/boot/storage.c
* 2014.7.18 5:48 PM
*/
#define STORAGE_C_
#include "../configure.h"
#include "../problem.h"
#include "lib/stdlib.h"
#include "... |
//**********************************************************************;
// Copyright (c) 2015, 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:
//
// 1. Redistributions of s... |
/*************************************
*
*
* PROGRAMA QUE L� O LOG DO SIMULADOR MARS E GERA UM VHDL COM A
* INICIALIZA��O DOS BLOCOS DE MEM�RIA
*
* <NAME> - 16/11/2007
* Alterado para o MARS por
* <NAME> - 16/11/2007
* <NAME> - 30/OUT/2012 - leitura de dois arquivos
* <NAME> - 01/jun/2013 - getline2 ao inves... |
/*
************************************************************
**
** Created by: codebench 0.55 (19.10.2017)
**
** Project: AmiMarkdown
**
** File: search_gadget.c
**
** Date: 13-01-2021 14:57:13
**
************************************************************
*/
#include <string.h>
#include <clib/alib_protos.h>
#... |
/*
* FreeRTOS V202002.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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 ... |
/*
* Copyright (c) 2012 <NAME>
*
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later versio... |
/* ../netlib/zlahrd.f -- translated by f2c (version 20100827). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the en... |
/* dnsmasq is Copyright (c) 2000 <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; version 2 dated June, 1991.
This program is distributed in the hope that it will be useful,
but... |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2014 <NAME> <<EMAIL>>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any ... |
/**
* tcoap_tcp.c
*
* Author: <NAME>, <EMAIL>
* Copyright 2017 <NAME>. All rights reserved.
*
*/
#include "tcoap_tcp.h"
#include "tcoap_utils.h"
#define TCOAP_MIN_TCP_HEADER_LEN 2u
#define TCOAP_TCP_LEN_1BYTE 13
#define TCOAP_TCP_LEN_2BYTES 14
#define TCOAP_TCP_LEN_4BYTES 15
#d... |
/*
* FreeRTOS V202107.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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, incl... |
/* crypto/cms/cms_pwri.c */
/*
* Written by Dr <NAME> (<EMAIL>) for the OpenSSL
* project.
*/
/* ====================================================================
* Copyright (c) 2009 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* m... |
/*s: networking/ip/httpd/man2html.c */
#include <u.h>
#include <libc.h>
#include <bio.h>
#include "httpd.h"
#include "httpsrv.h"
/*s: global [[hout]] */
static Hio *hout;
/*e: global [[hout]] */
/*s: global [[houtb]] */
static Hio houtb;
/*e: global [[houtb]] */
/*s: global [[connect]]([[(networking/ip/httpd/man2htm... |
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME>ung (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following condition... |
/**
* \file mcaspPlayBk.c
*
* \brief McASP example application
*
*/
/*
* Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
*/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redi... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2015, <NAME> <<EMAIL>>
* Copyright (C) 2015, Huawei Inc.
*/
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <linux/err.h>
#include "debug.h"
#include "llvm-utils.h"
#include "config.h"
#include "util.h"
#include <sys/wait.... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Demonstrate how to read phone book information in the SIM card.
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Copyright (C) 2021 Nuvoton Technology Corp. All rights re... |
/**
* (C) Copyright 2020 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
/* $NetBSD: i82557.c,v 1.11 2008/12/14 18:46:33 christos Exp $ */
/*
* Copyright (c) 1998, 1999
* <NAME>. All rights reserved.
* Copyright (c) 1995, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following co... |
/*
*
*
* Copyright (C) 2005 <NAME> <<EMAIL>>
* Copyright (C) 2004 <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
*
* This prog... |
/* wninsd.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__2 = 2;
/* $Procedure WNINSD ( Insert an interval into a DP window ) */
/* Subroutine */ int wninsd_(do... |
#include "stdio.h"
#include "stdlib.h"
#include "stdint.h"
#include "svdpi.h"
#include "softfloat.h"
#include "genCases.h"
#define MAX_ERR_COUNT 10
uint32_t recorded_stim_idx[MAX_ERR_COUNT];
uint64_t recorded_opa[MAX_ERR_COUNT];
uint64_t recorded_opb[MAX_ERR_COUNT];
uint32_t recorded_fp_format[MAX_ERR_COUNT];
uint32... |
/* Mmap management. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 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 Software Foundation, either version 3 of the L... |
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/* Copyright (c) 2021 Google LLC.
*
* Based on klockstat from BCC by <NAME> and others
* 2021-10-26 <NAME> Created this.
*/
/* Differences from BCC python tool:
* - can specify a lock by ksym name, using '-L'
* - tracks whichever task had the max time for... |
/*
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 2004-2017 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
* ... |
#include <tcrdb.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <simplehttp/queue.h>
#include <simplehttp/simplehttp.h>
#include <json/json.h>
#define RECONNECT 5
#define MAXRES 1000
double geo_distance(double lat1, double lng1, double ... |
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#include "gsPlatformSocket.h"
#include "gsPlatformUtil.h"
#include "gsMemory.h"
// mj-ToDo: remove these and include the files int the linker instead.
// remo... |
/*
* Copyright (c) 2011-2014, <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 con... |
/* Copyright (c) 2010 - 2020, Nordic Semiconductor ASA
* 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
* l... |
#include "chip8.h"
char STOP = 0;
int icount = 0;
char draw;
uint8_t font4x5[] = {
0xF0, 0x90, 0x90, 0x90, 0xF0, // 0
0x20, 0x60, 0x20, 0x20, 0x70, // 1
0xF0, 0x10, 0xF0, 0x80, 0xF0, // 2
0xF0, 0x10, 0xF0, 0x10, 0xF0, // 3
0x90, 0x90, 0xF0, 0x10, 0x10, // 4
0xF0, 0x80, 0xF0, 0x10, 0xF0, // 5
0xF0, ... |
//---------------
// mini-c, by <NAME> (c) 2015
// MIT license
//---------------
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include <stdbool.h>
//No enums :(
int ptr_size = 4;
int word_size = 4;
FILE* output;
//==== Lexer ====
char* inputname;
FILE* input;
int curln;
char curch... |
#include "mpi.h"
#include <stdio.h>
#define MAX2(a,b) (((a)>(b)) ? (a) : (b))
int GlobalReadInteger();
void Hello();
/*
void Ring();
void Stress();
void Globals();
*/
int main( int argc, char **argv )
{
int me, option;
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD,&me);
fprintf(stderr,"Pro... |
/*
* Oracle Linux DTrace.
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <linux/perf_event.h>
#include <s... |
/*
* CDL_F77.H -- header file for the CDL Fortran interface. Fortran compilers
* on various platforms may append one or more trailing underscores to
* symbol names, we'll use macros for the interface names and use defines
* to see what the symbol name is.
*/
#ifdef _NO_US_
#define CDF_OPEN cfopen
#defin... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* 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 app... |
/*
* CMUCS AFStools
* dumpscan - routines for scanning and manipulating AFS volume dumps
*
* Copyright (c) 1998 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice... |
// ScriptStruct LauncherSocialTypes.ChatChromeColorScheme
// Size: 0x50 (Inherited: 0x00)
struct FChatChromeColorScheme {
struct FLinearColor ChatEntryBackgroundColor; // 0x00(0x10)
struct FLinearColor NoneActiveTabColor; // 0x10(0x10)
struct FLinearColor TabFontColor; // 0x20(0x10)
struct FLinearColor TabFontColor... |
/*
* Copyright (C) 2015-2021 IoT.bzh Company
* Author: <NAME> <<EMAIL>>
*
* $RP_BEGIN_LICENSE$
* Commercial License Usage
* Licensees holding valid commercial IoT.bzh licenses may use this file in
* accordance with the commercial license agreement provided with the
* Software or, alternatively, in accordance... |
/* $Id$
$Log$
Revision 1.1.1.1 2004/03/29 19:09:08 jsiegel
Test Copy
Revision 1.1.1.1 2003/02/11 23:26:41 mhuang
gcc-3.2.1
Revision 1.3 2002/01/03 04:57:56 rodrigc
2001-01-02 <NAME> <<EMAIL>>
PR bootstrap/5117
* configure.in (AC_CHECK_HEADERS): Check for stdlib.h.
... |
/*
* Copyright 2017 <NAME>
*
* See LICENCE for the full copyright terms.
*/
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <lf/lf.h>
#define MAX_STATUS 0xffffU /* minimum UINT_MAX */
#define ERR(code) \
*e = LF_ERR_ ## code; \
return 0;
stru... |
#include "esp_log.h"
#include "mqtt_client.h"
#include "mqtt.h"
#include "jsmn.h"
#include "string.h"
#include "driver/gpio.h"
typedef struct {
char messageId[20]; /*消息ID*/
char deviceId[20]; /*设备ID*/
char function[20]; /*控制消息*/
char speed[5]; /*速度*/
char name[10];
ch... |
/**
* mat4.c
*
* Copyright (c) 2016 <NAME>.
* Subject to the MIT License.
*/
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "../vector/vec3.h"
#include "../vector/vec4.h"
#include "mat4.h"
void cgm_mat4_fill(cgm_mat4* m, float val) {
for (int i = 0; i < 16; i++) {
... |
/*
* Copyright 2012-15 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... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
* This is GNU Go, a Go program. Contact <EMAIL>, or see *
* http://www.gnu.org/software/gnugo/ for more information. *
* *
* Copyright 1999, 2000, 2001, 2002, 2003... |
/****************************************************************************
*
* Copyright (c) 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 sourc... |
/**
* Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
*
* 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 no... |
/* KallistiOS ##version##
rdtest.c
(c)2001 <NAME>
Test romdisk filesystem reader. This is a functional duplicate of fs_romdisk, but
designed to run on a PC for testing.
*/
/****************************** LINUX SPECIFIC CODE ***********************************/
#include <stdio.h>
typedef unsigned char ... |
#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... |
/* Reading PO files, abstract class.
Copyright (C) 1995-1996, 1998, 2000-2009, 2015 Free Software
Foundation, Inc.
This file was written by <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 F... |
/* Extended Module Player
* Copyright (C) 1996-2021 <NAME> and <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... |
/*
* Copyright (c) 2003, 2007-11 <NAME>
* Copyright (c) 1999-2003, 2007-8 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 Li... |
//------------------------------------------------------------------------------
// GB_add_phase2: C=A+B or C<M>=A+B
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
//---------... |
/*
This source file is part of the Geophysical Fluids Modeling Framework (GAME), which is released under the MIT license.
Github repository: https://github.com/OpenNWP/GAME
*/
/*
The momentum diffusion acceleration is computed here (apart from the diffusion coefficients).
*/
#include <stdlib.h>
#include <stdio.h>
#in... |
#if HAVE_CONFIG_H
#include <config.h>
static char* ver = VERSION;
#endif
/*
*robotfindskitten: A Zen simulation
*
*Copyright (C) 1997,2000 <NAME>
* <EMAIL>
* http://www.crummy.com/devel/
*
* This program is free software; you can redistribute it and/or
* modif... |
/*
* Copyright (C) 2002 <NAME> (<EMAIL>)
* Licensed under the GPL
*/
#include "linux/sched.h"
#include "linux/signal.h"
#include "linux/kernel.h"
#include "linux/interrupt.h"
#include "linux/ptrace.h"
#include "asm/system.h"
#include "asm/pgalloc.h"
#include "asm/ptrace.h"
#include "asm/tlbflush.h"
#include "irq_u... |
/**********************************************************
* Copyright 2008-2009 VMware, Inc. 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
* restrict... |
/*
* Driver for Nuvoton Technology Corporation w83667hg/w83677hg-i CIR
*
* Copyright (C) 2010 <NAME> <<EMAIL>>
* Copyright (C) 2009 Nuvoton PS Team
*
* Special thanks to Nuvoton for providing hardware, spec sheets and
* sample code upon which portions of this driver are based. Indirect
* thanks also to <NAME>, ... |
/*
SDCard/USB Mass Storage Wrappers - Test and usage example
Copyright 2018 <NAME> (<EMAIL>)
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 c... |
#include <ncursesw/curses.h>
#include <curses.h>
#include <locale.h>
#include <glib.h>
#include <wchar.h>
#include <wctype.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/time.h>
#includ... |
/* type1.c -- translate human readable text to a type 1 font */
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#ifdef _MSC_VER /* defined by Microsoft Compiler */
#include <fcntl.h>
#include <io.h>
#endif
#define streq(s, t) (strcmp(s, t) == 0)
#define length_of(arra... |
/*
* Simple SUNRISET application
*
* (c) <NAME>, 1989 - December 1992, released to the public domain
* (c) <NAME>, December 2017, released to the public domain
* (c) <NAME>, January 2020, released to the public domain
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <err.h>
#include <getopt.h>
#include <mat... |
/*
*
* This file is part of the ALPBench Benchmark Suite Version 1.0
*
* Copyright (c) 2005 The Board of Trustees of the University of Illinois
*
* All rights reserved.
*
* ALPBench is a derivative of several codes, and restricted by licenses
* for those codes, as indicated in the source files and the ALPB... |
/* #pragma ident "@(#)auth_time.c 1.4 92/11/10 SMI" */
/*
* auth_time.c
*
* This module contains the private function __rpc_get_time_offset()
* which will return the difference in seconds between the local system's
* notion of time and a remote server's notion of time. This must be
* possible without calling any... |
#undef __BLOCKS__
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <netinet/in.h>
#include <pthread.h>
#include <Ieee154.h>
#include <signal.h>
#include "serialsource.h"
#include "serialprotocol.h"
#include "sfsource.h"
#include "lib6lowpan/blip-pc-includes.h"
#include "lib6lowpan/lib6lowpan.h"
#... |
#include "rudp.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdio.h>
//#define GENERAL_PACKAGE 512
#define GENERAL_PACKAGE 128
struct message {
struct message * next;
uint8_t *buffer;
int sz;
int cap;
int id;
int tick;
};
struct message_queue {
struct message *h... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//functions prototyping
int Checking(int,int);
void printl(int,int);
int ChecKBalance(int,int);
typedef struct CardNO
{
char Name[20];
int pin,accountNo,Balance,cardd;
int type;
//1. saving account
//2. current account
} Car... |
/*
Thu Aug 8 1996 msiegler
<NAME>
Building filenames, opening and closing them.
Read blocks, write blocks, all other i/o.
Right now, everything is converted to int16.
*/
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <math.h>
/* for fstat */
#include <sys/types.h>
#include <sys/stat.h>
#inclu... |
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <getopt.h>
#include <string.h>
#include <sys/select.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <curses.h>
#include <math.h>
#include "config.h"
#include "spectool_container.h"
#include "spectool_ne... |
/* SPDX-License-Identifier: BSD-2-Clause */
#include <tilck_gen_headers/mod_console.h>
#include <tilck/common/basic_defs.h>
#include <tilck/common/printk.h>
#include <tilck/kernel/fs/vfs_base.h>
#include <tilck/kernel/fs/devfs.h>
#include <tilck/kernel/sched.h>
#include <tilck/kernel/term.h>
#include <tilck/kernel/k... |
#include "ls_color.h"
#include "stretchy_buffer.h"
// Holds a named color; used when parsing a color STRING from the theme file
struct ls_color_named {
char* name; // The color name (e.g. gray93)
uint8_t color_idx; // the 256-color index
};
struct ls_color_named ls_... |
/* Boolector: Satisfiability Modulo Theories (SMT) solver.
*
* Copyright (C) 2007-2021 by the authors listed in the AUTHORS file.
*
* This file is part of Boolector.
* See COPYING for more information on using this software.
*/
#include "btordumpaig.h"
#include "btorabort.h"
#include "btoraigvec.h"
#include... |
//#include <stddef.h>
#include "gcs.h"
#include "interface/vcos/vcos_stdbool.h"
#include "interface/vcos/vcos_inttypes.h"
#include "interface/mmal/mmal.h"
#include "interface/mmal/mmal_logging.h"
#include "interface/mmal/util/mmal_connection.h"
#include "interface/mmal/util/mmal_util.h"
#include "interface/mmal/util/m... |
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <pthread.h>
#include <sched.h>
#include <GL/freeglut.h>
#include <unistd.h>
#define sleep(x) usleep((x)*1000)
#define LIMIT(x, min, max) ((x) > (max) ? (max) : (x) < (min) ? (min) : (x))
#define MAX(x, min) ((x) < (min) ? (min) : (x))... |
/*-
* Copyright (c) 1994-2000
* <NAME>. All rights reserved.
*
* PC-98 port by <NAME> & FreeBSD(98) porting team.
*
* 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 retai... |
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the l... |
////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2016 <NAME>. //
// ... |
/*
* (C) Copyright 2013 Kurento (http://kurento.org/)
*
* 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 applicab... |
#include "window.h"
/*========================= INIT AL ==========================*/
void must_init(bool test, const char *description)
{
if(test) return;
printf("couldn't initialize %s\n", description);
exit(1);
}
/*========================= DISPLAY ==========================*/
void disp_init()
{
al... |
/*
* video_out_pgm.c
* Copyright (C) 2000-2003 <NAME> <<EMAIL>>
* Copyright (C) 2003 <NAME> <<EMAIL>>
* Copyright (C) 1999-2000 <NAME> <<EMAIL>>
* MD5 code derived from linux kernel GPL implementation
*
* This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
* See http://libmpeg2.sourceforge.n... |
#define MAXCLIENTS 256 // in a multiplayer game, can be arbitrarily changed
#define MAXPLAYERS 32 // in a multiplayer game, can be arbitrarily changed
#define DEFAULTCLIENTS 6
#define MAXTRANS 5000 // max amount of data to swallow in 1 go
#define CUBE_DEFAULT_SERVER_... |
/*
avidump.c
simple format info and dump utility for jpeg codestreams
Copyright (C) 2006 <NAME>. All rights reserved.
Distributed under the terms of the GNU GPL.
See http://www.gnu.org/ for details.
*/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
/* JPEG marker code... |
#include <stdio.h>
#include <string.h>
#include <stlink.h>
#include "common_flash.h"
#define L1_WRITE_BLOCK_SIZE 0x80
#define L0_WRITE_BLOCK_SIZE 0x40
int stm32l1_write_half_pages(stlink_t *sl, stm32_addr_t addr, uint8_t *base,
uint32_t len, uint32_t pagesize) {
unsigned int count, off;... |
/* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, propaga... |
/*
Copyright 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 required by applicable law or agreed to in writing, software
distribu... |
/**
* Auto initialization for used modules
*
* Copyright (C) 2013 INRIA.
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*
* @ingroup sys_auto_init
* @{
* @file
* @brief initializes a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.