text stringlengths 5.8k 28.2k |
|---|
/*
* OLSR ad-hoc routing table management protocol GUI front-end
* Copyright (C) 2003 <NAME> (<EMAIL>)
*
* This file is part of olsr.org.
*
* uolsrGUI 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; e... |
/*
* File: sysinit.c
* Purpose: Kinetis Configuration
* Initializes processor to a default state
*
* Notes:
* This version of sysinit.c contains a modified version of the
* original pll_init() function, originally found in the mgc.c
* source file. I moved that PLL startup... |
/****************************************************************************
* @file main.c
* @version V2.0
* $Revision: 3 $
* $Date: 17/05/04 1:54p $
* @brief Read the SIM phone book from SC0 port.
* @note
* Copyright (C) 2016 Nuvoton Technology Corp. All rights reserved.
*********************... |
/**
* Copyright 2011 LiveProfile
*
*
* 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 ag... |
/* fpopdi.f -- translated by f2c (version 20190311).
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 end of... |
#include "pynogil.h"
duk_ret_t _duk_print(duk_context *ctx) {
printf("%s", duk_to_string(ctx, 0));
return 0; /* no return value (= undefined) */
}
void _duk_fatal(void *udata, const char *msg) {
(void) udata; /* ignored in this case, silence warning */
/* Note that 'msg' may be NULL. */
fprintf(std... |
/*-
* Copyright (c) 2006 Verdens Gang AS
* Copyright (c) 2006-2014 Varnish Software AS
* All rights reserved.
*
* Author: <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... |
// NOTE: This program demonstrates the GL_LINE_LOOP bug in etnaviv on the GCW Zero.
// The bug is that drawing anything with a GL_LINE_LOOP seems to freeze all
// rendering once eglSwapBuffers() is called. Drawing things with
// GL_LINE_STRIP works fine, however. I have only tested with GLES 1.1,
//... |
/*****************************************************************************
* media_dir.c
* this file is part of https://github.com/ouistiti-project/putv
*****************************************************************************
* Copyright (C) 2016-2017
*
* Authors: <NAME> <<EMAIL>>
*
* Permission is her... |
/*
Copyright (C) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
Portions Copyright (C) 2007-2012 <NAME>. All Rights Reserved.
Portions Copyright 2012 SN Systems Ltd. All rights reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2.1 of the GNU ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void goster();
void goster2();
void goster3(); ///Funksyonlarin prototipleri
void goster4();
void goster5();
int main()
{
system("title Otomobil Satis Sistemi v1.0");
system("color 0b");///Ekranin rengi degisiyor
float vergisiz_fiy,mtv,satis... |
/* This file is part of the YAZ toolkit.
* Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* \file
* \brief ISO-5428:1984 encoding and decoding
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <assert.h>
#include <errno.h>
#include <string.h>
#include "iconv-p.h"
static unsigned lo... |
#include <curses.h>
#include <stdlib.h>
#include "sc.h"
#include "marks.h"
#include "macros.h"
#include "color.h" // for set_ucolor
#include "xmalloc.h" // for scxfree
#include <sys/types.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <unistd.h>
#include <curses.h>
srange * ranges = NULL;
ex... |
/**
* interface.c
*
* Contains implementation of amiibrOS's main interface. Features a cool logo
* and an indicator for amiibo NFC.
* The indicator (referred to as touch indicator or TI), pulses, fading in and
* out and switching colors.
*
* <NAME> (<EMAIL>)
*/
#include <stdio.h> // sprintf
#include <mat... |
/*
* Copyright (c) 2006-2021, <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 conditi... |
#include "flashStore.h"
#include "../includes.h"
// #include "STM32_Flash.h"
#define TSC_SIGN 0x20200923 // DO NOT MODIFY
#define PARA_SIGN 0x20201111 // (YYYMMDD) If a new setting parameter is added,
// modify here and initialize the initial value
// in the "... |
/*
* Copyright (c) 2009-2010, <NAME>
* http://www.bjoernknafla.com/
* 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 copyrig... |
/** @addtogroup adc_file ADC peripheral API
@ingroup peripheral_apis
@version 1.0.0
@author @htmlonly © @endhtmlonly 2009
<NAME> <<EMAIL>>
@author @htmlonly © @endhtmlonly 2012
<NAME> <<EMAIL>>
@date 18 August 2012
This library supports the A/D Converter Control System in the STM32F1xx series
of ARM Corte... |
#include "rand.h"
#include "tests/tree.h"
#include "block_alloc.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <time.h>
#include <assert.h>
void printf_f(FILE *outf, const char *fmt, ...) {
va_list args;
va_start(args, fmt);
vprintf(fmt, args);
va_end(args);... |
#include <signal.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
// applibs_versions.h defines the API struct versions to use for applibs APIs
#include "applibs_versions.h"
#include <applibs/log.h>
#include <applibs/networking... |
/* zxidhrxmlwsc.c - ID-SIS HR-XML WSC
* Copyright (c) 2007-2009 Symlabs (<EMAIL>), All Rights Reserved.
* Author: <NAME> (<EMAIL>)
* This is confidential unpublished proprietary source code of the author.
* NO WARRANTY, not even implied warranties. Contains trade secrets.
* Distribution prohibited unless authori... |
/*
textfunc.c - Handles most console I/O and interface tasks
Copyright (C) 2000-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 Lice... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
#include <curl/curl.h>
#include <json/json.h>
#include <apr-1/apr_errno.h>
#include <apr-1/apr_pools.h>
#include <apr-1/apr_tables.h>
#include <apr-1/apr_strings.h>
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include <ctype.h>
// aws credentials
static struct
{
char access_key_id[128];
char secret_access_key... |
/*
* getentry.c
*
* <NAME> 1/31/89
*
* Get an outfit and team entry request from user.
*
* Modified
* mjk - June 1995 - Supports improved queue structure
*/
#include "copyright.h"
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#i... |
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#include <inttypes.h>
#include "stat_screen.h"
#include "layout.h"
#include "interface.h"
#include "decoder/decoder.h"
#include "menu.h"
#include "screen.h"
#include "actionbar.h"
#include "monitor.h"
#include "system_information.h"
#include "ringbuffer.h"
#de... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include "grb2.h"
#include "wgrib2.h"
#include "fnlist.h"
/*
* Fcst_ave
*
* v 0.1 experimental
*
* based on Ave_test.c 4/2010 (public domain Wesley Ebisuzaki)
* v 0.2 4/2013 added PDT=4.1
* v 0.3 12/2014 set use_sca... |
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
//
// 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 applic... |
/*
* Copyright (C) 2015-2017 <NAME>
*
* 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 net_gnrc
* @{
*
* @file
* @brief Implementation of internal/pkt.h
*
* @a... |
/*
Common utility routines independant of NFS version
Copyright (C) 2003 <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 ... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2012 secunet Security Networks AG
*
* 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 of
* the License.
*
* Th... |
#include <unistd.h> /* close */
#include <errno.h> /* errno */
#include <sys/select.h> /* select */
#include <sys/socket.h> /* struct addrinfo */
#include <netdb.h> /* struct addrinfo */
#include <sys/time.h> /* struct timespec */
#include <pthread.h> /* pthread_t pthread_mutex_t */
#include <stdlib.... |
/*
* erlxsl.c
*
* -----------------------------------------------------------------------------
* Copyright (c) 2008-2010 <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 Sof... |
/*
Copyright (c) 2017 <NAME> <<EMAIL>>
Copyright (c) 2017 Center for Bioinformatics, University of Hamburg
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all c... |
/*
* Copyright (c) 2002 <NAME> <<EMAIL>>
*/
#include <stdarg.h>
#include "arm-dis.h"
#include "arm-codegen.h"
static ARMDis* gdisasm = NULL;
static int use_reg_alias = 1;
const static char* cond[] = {
"eq", "ne", "cs", "cc", "mi", "pl", "vs", "vc",
"hi", "ls", "ge", "lt", "gt", "le", "", "nv"
};
const stati... |
/*
* Copyright (c) 1995-1998 <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 o... |
/**********************************************************************
*
* PostGIS - Spatial Types for PostgreSQL
* http://postgis.net
*
* PostGIS 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... |
#include <dirent.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/inotify.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
#include <utime.h>
#include "Synchinterface.h"
#include "listInterface.h"
#include "watchInterface.h"
#define EV... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* This notice applies to any and all portions of... |
/*-
* Copyright (c) 2012-2013 <NAME>
* Copyright (c) 2013 SRI International
* Copyright (c) 2013 <NAME>
* Copyright (c) 2015 <NAME>
* All rights reserved.
*
* This software was developed by SRI International and the University of
* Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
* ("CT... |
#define _RTL8195AS_RECV_C_
#include "autoconf.h"
#include "drv_types.h"
#include "8195_desc.h"
#include "8195_sdio_reg.h"
#include "recv_osdep.h"
#include "rtl8195a_recv.h"
#include "rtl8195a_cmd.h"
#ifdef PLATFORM_ECOS
extern void rtw_triggered_wlan_rx_tasklet(_adapter *priv);
#endif
#ifdef CONFIG_SDIO_RX_COPY
stat... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions o... |
/************************************************************************************************************
* Copyright (c) 2018, Dolby Laboratories Inc.
* All rights reserved.
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditio... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program */
/* TCLIQUE --- Algorithm for Maximum Cliques */
... |
/* daswfr.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 logical c_false = FALSE_;
static integer c__1 = 1;
/* $Procedure DASWFR ( DAS write file record ) */
/* Subroutin... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lex.h"
#include "syntax.h"
/* fonction principale d'analayse lexicale */
int analyse_lexicale(){
/* allocation mémoire de temp de type la structure class */
temp=(class *)malloc(sizeof(class));
/* lecture ... |
#include <stdlib.h>
#include <math.h>
#include "sattypes.h"
#include "vector.h"
#include "satspec.h"
#define XMO (sat->elem->se_XMO)
#define XNODEO (sat->elem->se_XNODEO)
#define OMEGAO (sat->elem->se_OMEGAO)
#define EO (sat->elem->se_EO)
#define XINCL (sat->elem->se_XINCL)
#define XNO (sat->elem->se_XNO)
#define XND... |
/* Copyright (c) <NAME>, 1997. */
/* This program is freely distributable without licensing fees and is
provided without guarantee or warrantee expressed or implied. This
program is -not- in the public domain. */
/* compile line: cc -o showtxf showtxf.c -I/usr/X11R6/include -L/usr/X11R6/lib -lglut -lGLU -lGL ... |
#include "my_sender.h"
// variables for congestion control
uint cwnd_start = 1; // Packet sequence starts with 1
uint cwnd_size = CWND_INIT_SIZE;
uint dup_acks = 0;
//slow start threshold size, ssthresh
uint ssthresh = SSTHRESH_INIT_SIZE;
uint MINIMUM_THRES = 16;
uint MAX_WINDOW_SIZE = 128;
int state = SLOW_START;
... |
/*
* apcstatus.c
*
* Output STATUS information.
*/
/*
* Copyright (C) 1999-2005 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General
* Public License as published by the Free Software Foundation.
*
* This program is distributed ... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 d... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_>... |
/*
* Copyright (c) 1980, 1993
* The Regents of the University of California. 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 copyr... |
/*
* This file is an optional part of Libsvgtiny
* Licensed under the MIT License,
* http://opensource.org/licenses/mit-license.php
*
* It allows you to omit colors.gperf as a way of binding the named colors.
*
* Copyright 2016 by <NAME>
*/
#include <stdlib.h>
#include <string.h>
#include "svgti... |
/*
Copyright (c) 2001-2006, <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 and the foll... |
#include "cambadge.h"
#include "globals.h"
// stuff to do with AVI,BMP formats etc.
unsigned long fgetword(unsigned long offset) { // get a word from offset in file
unsigned long d;
FSfseek(fptr, offset, SEEK_SET);
FSfread(&d, 1, 4, fptr);
return (d);
}
unsigned long mgetword(unsigned long offset) /... |
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenSDK/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
/*
* Feature : VPWS with match range of VLANs at customer port
*
* Usage : BCM.0> cint vpws_match_range.c
*... |
/*
* Copyright 2015 <NAME> <<EMAIL>>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <backtrace.h>
#include <stdlib.h>
#include <string.h>
/* Thi... |
/******************************************************************************
*
* Copyright (C) 2009 - 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... |
#define _DEFAULT_SOURCE
#define _GNU_SOURCE
#include <dirent.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <linux/input.h>
#include <poll.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/select.h>
#include <termios.h>
#... |
/* ========================================================================
* Copyright 2016 - <NAME>
* Copyright 1988-2006 University of Washington
*
* 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... |
/* featureExtraction.c Contains definitions of function relevant to audio feature extraction
* Copyright (c) 2017 <NAME>
* Copyright (c) 2017 University of Rochester
*
* This file is part of Musical Mood Detector and Visualizer
*
* Musical Mood Detector and Visualizer is free software: you can
* redistrib... |
/* @(#) Program to calculate the best possible tie points
* @(#) in the overlapping part between the primary and the secondary picture
* @(#)
* @(#) Right call:
* @(#) int im_lrmosaic( reference, secondary, out, bandno,
* @(#) xref, yref, xsec, ysec, halfcorrelation, halfarea )
* @(#) IMAGE *reference, ... |
/**
* startup.c : TM4C startup code for use with the GNU Build System
* (Will likely work with other Tiva/Stellaris boards as well)
*
* With credit to:
* <NAME> (http:`bit.ly/2pxKw8x)
* TI's TivaWare
* The uctools Project (http://bit.ly/2oIRO9y)
*
* Author: <NAME>
* Modified: April 18t... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "hash.h"
#include "memory.h"
#include "bdd.h"
#define ID_VAL 0
#define ID_AND 1
#define ID_OR 2
#define ID_NOT 3
#define ID_EXISTS 4
#define ID_FORALL 5
#define ID_IMPLIES 6
#define ID_EQUIVALENT 7
... |
/*
* Copyright 2019 The Opentls Project Authors. All Rights Reserved.
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENS... |
/*
* Copyright (c) 2008-2018, <NAME> <<EMAIL>>
* Copyright (c) 2008, <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 retai... |
/* id32_dboot.c: Interdata 32b simulator disk bootstrap
Copyright (c) 2000-2008, <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 li... |
/* GStreamer
* Copyright (C) <2007> Nokia Corporation (contact <<EMAIL>>)
* <2007> <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 version 2 as published by the Free Software Foundation.
*
* ... |
/*
* tfmx_audio.c
* Paula emulator.
* jhp 20Mar96
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
#include "tfmx_audio.h"
#include "tfmx_player.h"
static void conv_s16(TfmxState* state, S32* buf... |
/*
** lproj: projgram to exercise library of cartographic projections
**
** Copyright (c) 2003, 2005, 2006 <NAME>
*/
static const char
RCS_ID[] = "$Id$";
/*
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of this software and associated documentation files (the
** "Software"), to de... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#define TAMBLOQUE 127
// para los datos
// estructuras
struct dato{
char* nombre;
int tam;
};
// funciones
int leer();
// variables globales
struct dato* datos;
int sizeDatos;
// para las listas
// estructuras
typedef struct snodo... |
#include <klee/klee.h>
#include <string.h>
#include "rte_stubs.h"
#include "../flow.h"
int rte_errno;
uint64_t rte_get_tsc_hz(){
return 0;
}
unsigned rte_lcore_id(){
return 0;
}
uint64_t rte_rdtsc(){
//TODO: this prevents the simulation of sending leftover packets, (or all?)
return 0;
}
struct str_fiel... |
/*
* Copyright (c) 2020-2021, <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT... |
//=========================================================
// src/InitDevice.c: generated by Hardware Configurator
//
// This file will be regenerated when saving a document.
// leave the sections inside the "$[...]" comment tags alone
// or they will be overwritten!
//=================================================... |
/**
\file verify_CRC32.c
\author <NAME>
\date 2020-12-25
\version 0.1
\brief implementation of verify via CRC32 routines
implementation of routines to verify memory via comparing CRC32 checksums.
*/
// include files
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "main.h"
#include "h... |
/* rfile.c
=======
Author: R.J.Barnes
*/
/*
LICENSE AND DISCLAIMER
Copyright (c) 2012 The Johns Hopkins University/Applied Physics Laboratory
This file is part of the Radar Software Toolkit (RST).
RST is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General ... |
/************************************************************************************
* 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... |
//system headers
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <malloc.h>
//custom headers
#include "sha1.h"
#ifdef __i386__
#define stricmp strcasecmp
#endif
//define relevant q2 data types
typedef unsigned char byte;
typedef enum {false, true} qboolean;
... |
/////////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1997 Active Voice Corporation. All Rights Reserved.
//
// Active Agent(r) and Unified Communications(tm) are trademarks of Active Voice Corporation.
//
// Other brand and product names used herein are tr... |
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
static int notify_fd = -1;
//ngx_event_t notify_event;
//static ngx_connection_t notify_conn;
static int ep = -1;
ngx_uint_t ngx_use_epoll_rdhup;
static ngx_uint_t nevents = 512;
static struct epoll_event *event_lis... |
/*******************************************************************************
/* ODBCSQL: a sample program that implements an ODBC command line intrepreter.
/*
/* USAGE: ODBCSQL DSN=<dsn name> or
/* ODBCSQL FILEDSN=<file dsn> or
/* ODBCSQL DRIVER={driver name}
/*
/*
/* Copyright(c) 1991 - 1999 by Micro... |
/* GTK - The GIMP Toolkit
* Copyright (C) 1995-1997 <NAME>, <NAME> and <NAME>
*
* GtkVWrapBox: Vertical wrapping box widget
* Copyright (C) 1999 <NAME>
*
* 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 Fr... |
/*-------------------------------------------------------------------------
*
* nbtutils.c
* Utility code for Postgres btree implementation.
*
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
*... |
#include <citro2d.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#define SCREEN_WIDTH 400
#define SCREEN_HEIGHT 240
#define BOTTOM_SCREEN_WIDTH 320
#define BOTTOM_SCREEN_HEIGHT 240
#define BTN_CLICKED 1
#define BTN_NOT_CLICKED 0
#define BTN_SELECTED 1
#define BTN_NOT_SELECTED 0
#define BTNCOUNT 12... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/*
* testpalette.c
*
* A simple test of runtime palette modification for animation
* (using the SDL_SetPalette() API).
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
/* This isn't in the Windows headers */
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#include "SDL.h"... |
/*
* Copyright (c) 2003 <NAME>
* Copyright (c) 2003 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 License, or
* (at your ... |
/* Modified version of "Buddy system" from
"The Art of Computer Programming" by D.Knuth, vol 1, ch 2.5.
Shared memory functions align all allocated memory to the system memory page size,
which is usually 4KB.
This has two implications for the algorithm:
1. Minimum storage block size is equal to 4096... |
/**
* *****************************************************************************
* @file lhal_bl702_adc.c
* @version 0.1
* @date 2020-06-19
* @brief
* *****************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT(c) 2020 Bouffalo Lab<... |
/*
* MOV, 3GP, MP4 muxer RTP hinting
* Copyright (c) 2010 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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,... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee a... |
/* $FreeBSD: releng/11.0/lib/libmagic/config.h 302221 2016-06-27 01:29:17Z delphij $ */
/* Get __FreeBSD_version. */
#include <osreldate.h>
/* Only specific versions of FreeBSD support xlocale */
#if __FreeBSD_version >= 1000002 || (__FreeBSD_version < 1000000 && __FreeBSD_version >= 900506)
#define FREEBSD_XLOCALE_S... |
/*
* 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
* of Tennessee Resea... |
/* Copyright (C) 2005, 2007, 2008, 2013 by <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 copyright notice, this
* list of conditions and the follo... |
/* -*- Mode: c; tab-width: 8; indent-tabs-mode: 1; c-basic-offset: 8; -*- */
/*
* Copyright (c) 1994, 1995, 1996, 1997, 1998
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
/* Copyright 2013-2017 Free Software Foundation, 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 3 of the License, or
(at your option) any later version.
This progr... |
#line 185 "/home/zhy/work/test/splash2-master/codes/null_macros/c.m4.null.POSIX_BARRIER"
#line 1 "water.C"
/*************************************************************************/
/* */
/* Copyright (c) 1994 Stanford University ... |
/*!The Treasure Box Library
*
* 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 wr... |
#include "geometry.h"
#include <assert.h>
#include <stdlib.h>
enum
{
FD_QUADRATIC_SOLUTION_NONE,
FD_QUADRATIC_SOLUTION_ALL,
FD_QUADRATIC_SOLUTION_TOUCH,
FD_QUADRATIC_SOLUTION_ONE,
FD_QUADRATIC_SOLUTION_TWO,
};
static uint32_t solve_quadratic(float a, float b, float c, float *x1, float *x2)
{
float discriminant ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.