text stringlengths 3.12k 18.7k |
|---|
#include "display.h"
#include <string.h>
#define N 5
#define M 4
static int MAX_X, MAX_Y;
static char num[][N][M] = {{{1,1,1,1},{1,0,0,1},{1,0,0,1},{1,0,0,1},{1,1,1,1}},
{{0,0,0,1},{0,0,0,1},{0,0,0,1},{0,0,0,1},{0,0,0,1}},
{{1,1,1,1},{0,0,0,1},{1,1,1,1},{1,0,0,... |
#include "geminc.h"
#include "gemprm.h"
#include "drwids.h"
#include "cds.h"
#define HURRICANE_WARNING 0
#define HURRICANE_WATCH 1
#define TROPICAL_STORM_WARNING 2
#define TROPICAL_STORM_WATCH 3
#define PLOT_TROPICAL_STORM_WATCH 0
#define PLOT_HURRICANE_WATCH 1
#define PLOT_TROPICAL_STO... |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2018 The FreeBSD Foundation
* All rights reserved.
*
* This software was developed by <NAME> <<EMAIL>>
* under sponsorship from the FreeBSD Foundation.
*
* Redistribution and use in source and binary forms, with or without
* modification, a... |
#include <assert.h>
#include <stdbool.h>
#include <math.h>
#include "include/BigBalls/collisionBody.h"
#include "include/BigBalls/physicsMathsCommon.h"
void CollisionBody_init(CollisionBody *collisionBody){
assert(collisionBody != NULL);
collisionBody->numOfColliders = 0;
collisionBody->numOfBoxColliders =... |
/******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... |
#include "morphing.h"
#include "compil.date"
#define BUCKSIZ 64
Info info;
static void excfun(int sigid) {
fprintf(stdout,"\n Unexpected error:"); fflush(stdout);
switch(sigid) {
case SIGABRT:
fprintf(stdout," Abnormal stop\n"); break;
case SIGBUS:
fprintf(stdout," ... |
#include <stdlib.h>
// #include "array_indexed.h"
#include "int.h"
#include "mesh.h"
int mesh_bd_nzmax(const mesh * m, int p)
{
int i, m_cn_p;
int * hyperfaces_a1;
int m_bd_nzmax;
jagged1 hyperfaces;
jagged3 m_cfn;
//jagged4 * m_cf;
m_cn_p = m->cn[p];
m_cfn.a0 = m->cf->a0;
m_cfn.a1 = m->cf->a1;
... |
#define _GNU_SOURCE
#include <assert.h>
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <SDL.h>
#include <GL/glew.h>
#include "mojodds.h"
// example how to use mojodds with OpenGL
// this program doesn't actually draw anything
// use a... |
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include "utils/stdlib_utils.h"
#include "utils/stdio_utils.h"
#include "utils/string_utils.h"
#include "utils/alist.h"
#include "utils/parser.h"
size_t insize;
char *inbuf;
struct a... |
#include <string.h>
# define nxstr "0,25,50,75,100"
int N_FILES = 0;
struct args {
char *version;
int nx_ints[101];
char **infile;
char *outfile;
long n_stop;
int pull_files;
};
// Default arguments
// We need the args object to be global because we pass args.infile to nftw
// function
stru... |
/*********************************************************************
* File Name: NNDIST.C
*
* Purpose: Calculates the nearest neighbor distance between all
* patches in a class using the following algorithm to
* calculate distance:
*
* distance = sqrt((x1-x2)(x1-x2) + (y1-y2)(y1-y2))
*
* Distan... |
#include <stdio.h>
#include <stdlib.h>
#include "common.h"
#include "compiler.h"
#include "scanner.h"
#include "debug.h"
#include "value.h"
#include "vm.h"
#include "object.h"
typedef struct {
Token current;
Token previous;
bool hadError;
bool panicMode;
Chunk* chunk;
} Parser;
typedef enum {
PREC_NONE,
PREC_... |
/**********************************/
/* */
/* Copyright 2002, <NAME> */
/* */
/* see LICENSE for more details */
/* */
/**********************************/
/* RAM and ROM memory modules */
#include <stdio.h>
#include <std... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <limits.h>
#include <dirent.h>
#include <libgen.h>
#include <errno.h>
#include <err.h>
#include "core_fs.h"
#include "core_io.h"
struct rm_args {... |
/*
* Copyright (c) 2019-2020 vanaur.
*
* This file is part of RCL
* (see https://github.com/vanaur/The-Runtime-Core-Library).
*
* 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
* r... |
/*****************************************************************************
*
* test_noise.c
*
* Test the basic lattice noise generator type.
*
* Edinburgh Soft Matter and Statistical Physics Group and
* Edinburgh Parallel Computing Centre
*
* (c) 2013-2016 The University of Edinburgh
*
* Contributi... |
/*----------------------------------------------------------------------------
* Copyright (c) <2016-2018>, <Huawei Technologies Co., Ltd>
* 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. R... |
/*
Author: <NAME>
Compile using: # requires postgresql-devel package
gcc -fpic -c mfpgex.c -I/usr/include/pgsql/server/
gcc -shared -o mfpgex.so mfpgex.o
*/
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "postgres.h"
#include "fmgr.h"
#include "utils/array.h"
#include "utils/builtins.h"
#include... |
#include <GLFW/glfw3.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
//Standard Libraries
#define _USE_MATH_DEFINES // M_PI constant
int L=TAM;
const int WINDOWS_WIDTH = WID;
const int WINDOWS_HEIGHT = 660;
typedef struct
{
GLfloat x, y, z;
GLfloat r, g, b, a;
} Vertex;
typedef str... |
#include "sithUnk4.h"
#include "Cog/sithCog.h"
#include "World/sithThing.h"
#include "Engine/sithAnimClass.h"
#include "Engine/sithSoundClass.h"
#include "Engine/sithPuppet.h"
#include "Engine/sithCollision.h"
#include "World/jkPlayer.h"
#include "World/sithThing.h"
#include "AI/sithAI.h"
#include "jk.h"
void sithUnk... |
/* -*- linux-c -*-
* (C) Copyright IBM Corp. 2005
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This
* file and program are licensed under a BSD style license. See
... |
#include <stdio.h>
#include <string.h>
static unsigned short one_to_two (int n);
static unsigned short color_one_to_two (int n, int odd);
static void printbin (unsigned short n);
int
main()
{
#if 0
printbin (color_one_to_two (0x1, 1));
printbin (color_one_to_two (0x1400, 1));
#else
int i, j, k;
static const... |
/**
* FreeRDP: A Remote Desktop Protocol client.
* NSCodec Codec
*
* Copyright 2011 Samsung, Author <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... |
/* $OpenBSD: audioctl.c,v 1.33 2016/06/21 22:35:39 jmc Exp $ */
/*
* Copyright (c) 2016 <NAME> <<EMAIL>>
*
* 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 cop... |
/*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "esp_log.h"
#include "nvs_flash.h"
#include "freertos/FreeRTOSConfig.h"
/* BLE */
#include "esp_nimble_hci.h"
#include "nimble/nimble_port.h"
#include "nimble/nimble_port_freertos.h"
#incl... |
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <errno.h>
/*
_ooOoo_
o8888888o
88" . "8... |
/* Test of titlecase mapping for UTF-32 strings.
Copyright (C) 2009, 2010 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, o... |
/*
Copyright 2010-2013 SourceGear, LLC
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, softwar... |
/*
* Copyright (C) 2017 - 2019 Xilinx, 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:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of ... |
#include "bool.h"
#include "config.h"
#include "list.h"
#include "log.h"
#include "mm.h"
#include "mm/alloc.h"
#include "mm/startup.h"
#include "uart.h"
#include <stddef.h>
#ifdef CFG_LOG_MEM_BUDDY
static const int _DO_LOG = 1;
#else
static const int _DO_LOG = 0;
#endif
#define NOT_AVAILABLE -9999
static inline int ... |
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "fors.h"
#include "utils.h"
#include "utilsx4.h"
#include "hash.h"
#include "hashx4.h"
#include "thash.h"
#include "thashx4.h"
#include "address.h"
static void fors_gen_sk(unsigned char *sk, const unsigned char *sk_seed,
uint... |
/*
* Routines for GF1 DMA control
* Copyright (c) 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 Free Software Foundation; either version 2 of the License, or
* (at your option)... |
/* altair_dsk.c: MITS Altair 88-DISK Simulator
Copyright (c) 1997-2010, <NAME>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the... |
/****************************************************************************
* config.c
*
* Genesis Plus GX configuration file support
*
* Copyright Eke-Eke (2007-2015)
*
* Redistribution and use of this code or any derivative works are permitted
* provided that the following conditions are met:
... |
/* ====================================================================
* Copyright (c) 2010 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of ... |
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <<EMAIL>> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a be... |
/**
* Copyright (c) 2017 - 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, th... |
//========================================================================
// Cursor & input mode tests
// Copyright (c) <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... |
// iLQG back pass c implementation of http://www.mathworks.com/matlabcentral/fileexchange/52069-ilqg-ddp-trajectory-optimization by <NAME>
// Copyright (c) 2016 <NAME>
//
// BIBTeX:
// @INPROCEEDINGS{
// author={<NAME>. and <NAME>. and <NAME>.},
// booktitle={Robotics and Automation (ICRA), 2014 IEEE International Conf... |
/**
* Sphere: the JavaScript game platform
* Copyright (c) 2015-2022, <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 abov... |
/*-
* Public Domain 2014-2015 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary,... |
/*
* <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*
* Trademarks are the property of their respective owners.
*/
#include <linux/delay.h>
#include <linux... |
//
// highOccBuilder.c
//
// SOAP2 / 2BWT
//
// Copyright (C) 2012, HKU
//
// 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... |
/* -*- c -*- *****************************************************************
** Copyright (C) 2003 Sandia Corporation
** Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
** the U.S. Government retains certain rights in this software.
**
** This source code is released under the New BSD License.
... |
/* Copyright (c) 2013-2015, Antmicro Ltd
* 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 condit... |
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
/*
* mountsnoop Trace mount and umount[2] syscalls
*
* Copyright (c) 2021 <NAME>
* 30-May-2021 <NAME> Created this.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <argp.h>
#include <errno.h>
#include <signal.h>
#include <string.h>
#include... |
#include <fudge.h>
#include <kernel.h>
#include <modules/base/base.h>
#include <modules/system/system.h>
#include <modules/ethernet/ethernet.h>
#include <modules/arch/x86/pic/pic.h>
#include <modules/arch/x86/io/io.h>
#include <modules/arch/x86/pci/pci.h>
#define PCIVENDOR 0x10EC
#define PCIDEVIC... |
/* Mixmaster version 3.1 -- (C) 1999 - 2016 Anonymizer Inc. and others.
Mixmaster may be redistributed and modified under certain conditions.
This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
ANY KIND, either express or implied. See the file COPYRIGHT for
details.
Menu-based user i... |
/*
* linux/arch/m68knommu/mm/init.c
*
* Copyright (C) 1998 <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>,
* Copyright (C) 2000 Lineo, Inc. (www.lineo.com)
*
* Based on:
*
* linux/arch/m68k/mm/init.c
*
* Copyright (C) 1995 <NAME>
*
* JAN/1999 -- hacked to support ColdFire (<EMAIL>)
... |
#include <stdlib.h>
#include <pthread.h>
#include "list.h"
/*
* Un oggetto di tipo list è composto da due puntatori, uno che punta alla testa
* e uno che punta alla coda di una linked-list, e da un mutex per serializzare
* l'accesso alla lista stessa.
*
* L'inserimento di un nuovo elemento avviene in coda mentre ... |
/* Copyright (c) 2007 by Errata Security, All Rights Reserved
* Programer(s): <NAME> [rdg]
*/
/*
NETBIOS NAMEING SERVICE
This file implements the NetBIOS naming service, a DNS-like protocol
that runs on UDP port 137.
*/
#include "platform.h"
#include "netframe.h"
#include "../squirrel.h"
#include "f... |
// SPDX-License-Identifier: GPL-2.0
/*
* linux/fs/hfs/btree.c
*
* Copyright (C) 2001
* <NAME> (<EMAIL>)
* (C) 2003 <NAME> <<EMAIL>>
*
* Handle opening/closing btree
*/
#include <linux/pagemap.h>
#include <linux/slab.h>
#include <linux/log2.h>
#include "btree.h"
/* Get a reference to a B*Tree and do some ini... |
#define _BSD_SOURCE
#define _XOPEN_SOURCE 500
#include <assert.h>
#include <fcntl.h>
#include <getopt.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include... |
/*
* This code was created by <NAME> '99
* (ported to Linux/SDL by <NAME> '01)
*
* If you've found this code useful, please let me know.
*
* Visit Jeff at http://nehe.gamedev.net/
*
* or for port-specific comments, questions, bugreports etc.
* email to <EMAIL>
*/
#include <stdio.h>
#include <stdlib.h>
#i... |
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id:$
//
// Copyright (C) 1993-1996 by 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... |
/* ccdsImport - import NCBI CCDS DB table dumps into a MySQL database */
/* Copyright (C) 2013 The Regents of the University of California
* See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
#include "common.h"
#include "options.h"
#include "sqlNum.h"
#include "jksql.h"
#include "err... |
/* D S P L I N E . C
* BRL-CAD
*
* Copyright (c) 2004-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 a... |
/*
* Copyright (c) 2013-2014, Google, 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 restriction,
* including without limitation the rights to use, c... |
/* $XConsortium: blend.c,v 1.9 94/04/17 20:39:08 rws Exp $ */
/**** module blend.c ****/
/******************************************************************************
Copyright (c) 1993, 1994 X Consortium
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated ... |
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <sys/time.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
typedef unsigned long long prime_t;
int prime_gen(prime_t *primes, int max, int number);
int prime_check(prime_t *pr... |
/*
* query.c
*/
#include "dns.h"
#include "kdns.h"
#include "domain_store.h"
#include "query.h"
#include "util.h"
struct additional_rr_types
{
uint16_t rr_type;
rr_section_type rr_section;
};
struct additional_rr_types default_additional_rr_types[] = {
{ TYPE_A, ADDITIONAL_SECTION },
{ 0, (rr_section... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* FireDTV driver (formerly known as FireSAT)
*
* Copyright (C) 2004 <NAME> <<EMAIL>>
* Copyright (C) 2008 <NAME> <<EMAIL>>
*/
#include <linux/device.h>
#include <linux/dvb/ca.h>
#include <linux/fs.h>
#include <linux/module.h>
#include <media/dvbdev.h>
#include "fi... |
#include "private.h"
/* structs */
struct ipa {
union {
bit32 addr;
char *dns;
} t;
int type;
};
/* macros */
#define IPAADDR 0
#define IPADNS 1
#define CONNECTIONATTEMPTS 5
/* globals */
static struct ipa ipaddrs[IPADDRSPRDOMAIN];
static int ipcnt;
static unsigned short dstport;
/* protos */
static int host... |
/*
stm32loader Open Source flash loader program for ST STM32 microcontrollers.
<<EMAIL>>
Copyright 2013 <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.... |
// pearson.c
//
// cite: Fast Hashing of Variable-Length Text Strings, <NAME>
// http://epaperpress.com/vbhash/download/p677-pearson.pdf
//
// Let h(i,k) be equivalent to pearson128(r,i,k,len(k)) and let a.b represent
// the concatenation of strings a and b... h(i,k) has the following property:
//
// h(i,a.b... |
/* A simple ray tracer */
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdbool.h> /* Needed for boolean datatype */
#include <SFML/Graphics.h>
#include <math.h>
/* Width and height of out image */
#define WIDTH 1024
#define HEIGHT 768
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
#define mi... |
/*
* Copyright (c) 2013, <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 condition... |
#define _XOPEN_SOURCE 700
#define _BSD_SOURCE
#include <stdio.h>
#include <traildb.h>
#include <Judy.h>
#include <stdbool.h>
#include <string.h>
#include <getopt.h>
#include "safeio.h"
#include "traildb_filter.h"
#define TRAIL_BUFSIZE 2000000
/* No reason for this particular number, just sanity check */
#define M... |
/* --COPYRIGHT--,BSD
* Copyright (c) 2012, Texas Instruments Incorporated
* 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 copy... |
/*++
Copyright (c) 2000 Microsoft Corporation
Module Name:
oemfolder.c
Abstract:
Create registry entries that identify the OEM folder using the data from WINBOM.INI file.
Author:
<NAME> 11/21/2000
Revision History:
Sankar 3/23/2001: Added support for Oem Branding link and ... |
/* $OpenBSD: pxa2x0_space.c,v 1.4 2008/05/15 22:17:08 brad Exp $ */
/* $NetBSD: pxa2x0_space.c,v 1.5 2004/06/07 19:45:22 nathanw Exp $ */
/*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc.
* All rights reserved.
*
* Written by <NAME> for Wasabi Systems, Inc.
*
* Redistribution and use in source and binary forms,... |
#ifndef lint
static const char RCSid[] = "$Id: m_mist.c,v 2.19 2018/11/13 19:58:33 greg Exp $";
#endif
/*
* Mist volumetric material.
*/
#include "copyright.h"
#include <string.h>
#include "ray.h"
#include "source.h"
#include "rtotypes.h"
/*
* A mist volume is used to specify a region in the scene where a ce... |
#include "game/scenes/newsroom.h"
#include "game/gui/menu_background.h"
#include "game/gui/dialog.h"
#include "resources/languages.h"
#include "game/gui/text_render.h"
#include "game/utils/settings.h"
#include "audio/music.h"
#include "resources/ids.h"
#include "resources/pilots.h"
#include "utils/allocator.h"
#include... |
#include "libblinkstick.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
bool print_debug = false;
#if _WINDOWS
#pragma warning(disable:4996)
#endif
void debug(const char* fmt, ...) {
if (print_debug) {
char buffer[256];
va_list ap;
va_start(ap, fmt);
vsprintf(buffe... |
/*
* Copyright <NAME> 2015
*
* This file implements a basic client for the name service
*/
#include <stdio.h>
#include <unistd.h>
#include <getopt.h>
#include <string.h>
#include <strings.h>
#include <ctype.h>
#include <signal.h>
#include "stk_env_api.h"
#include "stk_service_api.h"
#include "stk_sequence_api.h"
#i... |
#include <config.h>
#include <mono/utils/mono-logger-internals.h>
#include <mono/utils/mono-proclib.h>
#include <mono/utils/w32subset.h>
#include "log.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
typedef struct {
const char *event_name;
const int mask;
const int compat_mask;
} NameAndMask;
static NameAndMas... |
/*
* Copyright (c) 2014-2016 Alibaba Group. All rights reserved.
*
* Alibaba Group retains all right, title and interest (including all
* intellectual property rights) in and to this computer program, which is
* protected by applicable intellectual property laws. Unless you have
* obtained a separate written lic... |
#include "inpaint.h"
/** This algorithme uses a version proposed by <NAME>
*/
Inpaint_P initInpaint()
{
Inpaint_P inp = (Inpaint_P)malloc(sizeof(Inpaint_T));
//initial image
inp->initial = NULL;
// Nearest-Neighbor Fields
inp->nnf_SourceToTarget = NULL;
inp->nnf_TargetToSource = NULL;
//... |
// EGL Wayland App that renders a bitmap on PinePhone with Ubuntu Touch.
// To build and run on PinePhone, see egl2.sh.
// Bundled source files: shader.c, texture.c, util.c, util.h
// Sample log: logs/egl2.log
// Based on https://jan.newmarch.name/Wayland/EGL/
#include <stdio.h>
#include <stdlib.h>
#include <stri... |
// ----------------------------------------------------------------------------------
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
// Author: Shihua (<NAME>, <EMAIL>
// ---------------------------------------------... |
/* spks01.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__71 = 71;
static integer c__1 = 1;
/* $Procedure SPKS01 ( S/P Kernel, subset, type 1 ) */
/* Subro... |
/* $OpenBSD$ */
/*
* Copyright (c) 2007 <NAME> <<EMAIL>>
*
* 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 copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND... |
#include <string>
static const char* METRONOME[] = { "Attack Order",
"Bug Bite",
"Bug Buzz",
"Defend Order",
"Fell Stinger",
"Fury Cutter",
"Heal Order",
"Infestation",
"Leech Life",
"Megahorn",
"Pin Missile",
"Powder",
"Quiver Dance",
"Signal Beam",
"Silver Wind",
"Spider Web",
"Steamroller",
"Sticky Web",
"String Sho... |
/*
* Copyright (c) 2014, <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:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of... |
/* coap_io_lwip.c -- Network I/O functions for libcoap on lwIP
*
* Copyright (C) 2012,2014 <NAME> <<EMAIL>>
* 2014 chrysn <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*
* This file is part of the CoAP library libcoap. Please see
* README for terms of use.
*/
/**
* @file coap_io_lwip.c
*... |
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <time.h>
#include <stddef.h>
#include <assert.h>
#include <correct.h>
#include <fec.h>
// this program allows us to find all of the polynomials that come with libfec
// this way, we can provide compatibility with libfec-encoded s... |
#include <efi.h>
#include <efilib.h>
#include <string.h>
#include <stdint.h>
#include "shim.h"
typedef struct {
CHAR16 *VariableName;
EFI_GUID *VendorGuid;
VOID *Data;
UINTN Size;
} VARIABLE_RECORD;
UINTN measuredcount = 0;
VARIABLE_RECORD *measureddata = NULL;
static BOOLEAN tpm_present(efi_tpm_protocol_t *tpm... |
/*
* Copyright (c) 2011-2012, The Linux Foundation. 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 lis... |
/********************************************************************************/
/* */
/* TPM CMK_ApproveMA */
/* Written by <NAME> */
/* IBM Thomas J. Watson Research Center */
/* $Id: cmk_approvema.c 4741 2014-09-22 21:18:35Z kgoldman $ */
/* */
/* (c) Copyrig... |
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/select.h>
#include <fcntl.h>
#include <locale.h>
#include <pty.h>
#include <sys/resource.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <string.h>
#include <errno.h>
#include <sys/wait.h>
#include <time.h>
#include <strings.h>
#include "... |
/*
mpiP MPI Profiler ( http://llnl.github.io/mpiP )
Please see COPYRIGHT AND LICENSE information at the end of this file.
-----
14-mpiio.c -- MPI I/O test
*/
#ifndef lint
static char *svnid =
"$Id$";
#endif
#include <mpi.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#define TEST_O... |
/*
* Copyright (C) 2017 Ptarmigan Project
* SPDX-License-Identifier: Apache-2.0
*
* 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 lic... |
/*
* Shared Memory Communications over RDMA (SMC-R) and RoCE
*
* CLC (connection layer control) handshake over initial TCP socket to
* prepare for RDMA traffic
*
* Copyright IBM Corp. 2016
*
* Author(s): <NAME> <<EMAIL>>
*/
#include <linux/in.h>
#include <linux/if_ether.h>
#include <linux/sched/signal.h... |
// SPDX-License-Identifier: GPL-2.0
/*
* STM32 Timer Encoder and Counter driver
*
* Copyright (C) STMicroelectronics 2018
*
* Author: <NAME> <<EMAIL>>
*
*/
#include <linux/counter.h>
#include <linux/iio/iio.h>
#include <linux/iio/types.h>
#include <linux/mfd/stm32-timers.h>
#include <linux/module.h>
#include <li... |
/* zzekmloc.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__1 = 1;
/* $Procedure ZZEKMLOC ( EK, return integer metadata location ) */
/* Subroutine */ int ... |
/***********************************************************************
*
* plugin.c
*
* pppd plugin for kernel-mode PPPoE on Linux
*
* Copyright (C) 2001 by Roaring Penguin Software Inc., <NAME>
* and <NAME>.
*
* Much code and many ideas derived from pppoe plugin by Michal
* Ostrowski and <NAME>, which carries this c... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include "querydnslistentcp.h"
#include "querydnsbase.h"
#include "dnsrelated.h"
#include "dnsparser.h"
#include "dnsgenerator.h"
#include "common.h"
#include "utils.h"
#include "stringlist.h"
#include "excludedlist.h"
#include "addresslist.h"... |
/*
* Copyright (C) 2000, 2001 Broadcom Corporation
*
* Copyright (C) 2002 MontaVista Software Inc.
* Author: <EMAIL> or <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; eithe... |
/* This file is part of redbKIT.
* Copyright (c) 2016, Ecole Polytechnique Federale de Lausanne (EPFL)
* Author: <NAME> <<EMAIL>>
*/
#include "mex.h"
#include <stdio.h>
#include <math.h>
#include "blas.h"
#include <string.h>
#define INVJAC(i,j,k) invjac[i+(j+k*dim)*noe]
#define GRADREFPHI(i,j,k) gradrefphi[i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.