text stringlengths 3.12k 18.7k |
|---|
/*
* string.c - string support functions for cawf(1)
*/
/*
* Copyright (c) 1991 Purdue University Research Foundation,
* West Lafayette, Indiana 47907. All rights reserved.
*
* Written by <NAME> <<EMAIL>>, Purdue
* University Computing Center. Not derived from licensed software;
* derived from awf(1) by <NA... |
#include <gtk/gtk.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#elif defined (G_OS_WIN32)
#include <io.h>
#endif
static GdkTexture *
render_paintable_to_texture (GdkPaintable *paintable)
{
GtkSnapshot *snapshot;
GskRenderNode *node;
int width, height;
cairo_surface_t *surface;
cairo_t *cr;
GdkTexture *text... |
/* Feel free to use this example code in any way
you see fit (Public Domain) */
#include <sys/types.h>
#ifndef _WIN32
#include <sys/select.h>
#include <sys/socket.h>
#else
#include <winsock2.h>
#endif
#include <microhttpd.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <jans... |
/*
* Copyright © 2002 <NAME> Holdings Limited. All rights reserved.
*/
#include <lib9.h>
#include <bio.h>
/* CBC, ECB, integrate, SSL */
#define KEYLEN 52
#define MODA 0x10000
#define MODM 0x10001
#define MASKA (MODA-1)
#define OP1(x, y) ((x) ^ (y))
#define OP2(x, y) (((x) + (y)) & MASKA)
#define OP3(x, y) ... |
/*
* $Id$
*
* (C) 1993 by Argonne National Laboratory and Mississipi State University.
* See COPYRIGHT in top-level directory.
*/
#include "mpiimpl.h"
#include "sbcnst2.h"
#define MPIR_SBfree MPID_SBfree
/* pt2pt for MPIR_Type_xxx */
#include "mpipt2pt.h"
#include "type_ff.h"
#ifndef MPIR_TRUE
#define MPI... |
/*
* Copyright (c) 2000-2001, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
/* pknots.c
*
* Fold RNAs including knots.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "pknots_config.h"
#include <easel.h>
#include <esl_alphabet.h>
#include <esl_getopts.h>
#include <esl_random.... |
#include <SDL2/SDL.h>
#define __USE_POSIX199309
#include <time.h>
#include <assert.h>
#include <stdbool.h>
#define UNREACHABLE() \
do { \
fprintf(stderr, "Unreachable triggered ... |
/* DECODE.C - Decode blocks of received data. */
/* Copyright (c) 1995-2012 by <NAME>.
*
* Permission is granted for anyone to copy, use, modify, and distribute
* these programs and accompanying documents for any purpose, provided
* this copyright notice is retained and prominently displayed, and note
* is made o... |
/*
* Copyright (c) 2016 Unwired Devices <<EMAIL>>
* 2017 Inria Chile
* 2017 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 drivers_... |
#include "cardutility.h"
#include "carddefs.h"
#include "structhelper.h"
#include <stdlib.h>
#include <time.h>
#include <string.h>
/* Define constants from carddefs.h */
const char *CARD_UTF_PREFIX = "\xf0\x9f";
const char *CARD_SUFFIXES[4] = { "\x83\x91", "\x83\x81", "\x82\xb1" , "\x82\xa1" };
const char *CARD_BACK ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h> // usleep
#include <dlfcn.h>
#include <dirent.h>
#include <net/if.h>
#include <netdb.h>
#include <sys/resource.h>
#include <sys/stat.h>
#include <signal.h>
#include <glib.h>
#include "plugin.h"
#define SHLIB_EXT ".so"
static GMainContext *... |
/* $Id: strpt.c,v 1.1 2017/01/18 06:46:57 root Exp $ */
#include "mysock.h"
#include <nlist.h> /* knlist() */
#include <netinet/ip_var.h>
#define TCPSTATES
#include <netinet/tcp_fsm.h>
#include <netinet/tcp_seq.h>
#define TCPTIMERS
#include <netinet/tcp_timer.h>
#include <netinet/tcp_var.h> /* struct tcpcb */
#include ... |
#include "game_tool.h"
#include <stdio.h>
#include <process.h>
////////////////////////////////////////////////////
// INITIALIZER //
////////////////////////////////////////////////////
#ifdef _MSC_VER
#define INITIALIZER(f) \
static void f();\
static int __f1(){f();return ... |
/*
* Lab 2.c
*
* Created: 10/5/2017 12:54:48 PM
* Author : ralme
*/
#define F_CPU 8000000UL // 8 MHz
#include <avr/io.h>
#include <avr/interrupt.h>
#include "usart_ATmega1284.h"
#include "nokia5110.c"
unsigned char nokia_num_blue = 0;
unsigned char nokia_num_green =0;
unsigned char nokia_num_red =... |
/*-
* FreeBSD, VLB/ISA product support functions
*
* Copyright (c) 2004 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above... |
#include "uint.h"
#include "vfs.h"
#include "allocator.h"
#include "cpio.h"
#include "string.h"
#include "list.h"
#include "mini_uart.h"
#include "thread.h"
#include "scheduler.h"
struct mount* rootfs;
struct link_list* filesystem_pool = NULL;
struct device *dv[100];
struct filesystem* find_filesystem(const char *na... |
/*
* Copyright (C) 2017 XRADIO TECHNOLOGY 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. Redistributions of source code must retain the above copyright
* notice,... |
/******************************************************************************
* File: NTPUDPClient.c
*
* Authors: Microchip; re-assembled for the needs of ELAK d.o.o.
* (<NAME>)
*
* Description:
*
* Can be integrated into a PIC powered unit with a crystal oscillator and a
* network interface to... |
/* GStreamer interactive test for the gdkpixbufsink element
* Copyright (C) 2008 <NAME> <tim centricular net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 o... |
/**
* @file video_capture/switcher.c
* @author <NAME> <<EMAIL>>
*/
/*
* Copyright (c) 2014-2021 CESNET z.s.p.o.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted provided that the following conditions
* are met:
*
* 1. Redistributions... |
/*
This file is part of drd, a thread error detector.
Copyright (C) 2006-2017 <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 yo... |
/*****************************************************************************
** **
** COPYRIGHT (C) 2000, 2001 MKNET CORPORATION **
** DEVELOPED FOR THE MK7100-BASED VFIR PCI CONTROLLER. **
** **
****************************************************************... |
/* Copyright (c) 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 list of con... |
/* The MIT License
Copyright (c) 2008 Genome Research Ltd (GRL).
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... |
/* ULP Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include ... |
/*
* BlueALSA - a2dp-ldac.c
* Copyright (c) 2016-2021 <NAME>
*
* This file is a part of bluez-alsa.
*
* This project is licensed under the terms of the MIT license.
*
*/
#include "a2dp-ldac.h"
#include <errno.h>
#include <pthread.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <string... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <dlfcn.h>
#include <mach/mach.h>
#include <spawn.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <CoreFoundation/CoreFoundation.... |
#ifndef F_CPU
#define F_CPU 4915200UL //This is just a macro, it has no data type.
#endif
#include <stdio.h>
#include <stdlib.h>
#include <avr/io.h>
#include <util/delay.h>
#include "UART_driver.h"
#include "SRAM_driver.h"
//#include "memory_layout.h"
#include "ADC_driver.h"
#include "joystick_driver.h"
#include "bi... |
#include <../../nrnconf.h>
/******************************************************************************
*
* File: expfit.c
*
* Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990
* Duke University
*
******************************************************************************/
#ifndef LINT
static char ... |
/*-
* Copyright (c) 2018 Intel Corporation
*
* 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 follow... |
#include "mupdf/pdf.h"
typedef struct globals_s
{
pdf_document *doc;
fz_context *ctx;
} globals;
static int
string_in_names_list(fz_context *ctx, pdf_obj *p, pdf_obj *names_list)
{
int n = pdf_array_len(ctx, names_list);
int i;
char *str = pdf_to_str_buf(ctx, p);
for (i = 0; i < n ; i += 2)
{
if (!strcmp(pd... |
/*
* Copyright (c) 2016, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file fxlc95000_accel_i2c.c
* @brief The fxlc95000_accel_i2c.c file implements the ISSDK FXLC95000 sensor driver
* example demonstration as for I2C Mode.
... |
/*
*
* Copyright 2016 gRPC authors.
*
* 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 agree... |
/*
* Copyright (c) 2016 Idein Inc. ( http://idein.jp/ )
* All rights reserved.
*
* This software is licensed under a Modified (3-Clause) BSD License.
* You should have received a copy of this license along with this
* software. If not, contact the copyright holder above.
*/
#include "mkl.h"
#include <stdio.h>
#... |
/*****************************************************************************
* Ledger App Bitcoin.
* (c) 2021 Ledger SAS.
*
* 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
*
* ... |
/*
* get_device_by_label.h
*
* Copyright 1999 by <NAME>
* Copyright 1999, 2000 by <NAME>
*
* This file may be redistributed under the terms of the GNU Public
* License.
*
* Taken from aeb's mount, 990619
* Updated from aeb's mount, 20000725
* Added call to ext2fs_find_block_device, so that we can find device... |
/*
Copyright (c) 2003-2004 <NAME> <<EMAIL>>
Copyright (c) 2004 Sun Microsystems, 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 rig... |
#include "main.h"
#include "gameScreen.h"
int gameSplash(FILE *file, SDL_Renderer *m_renderer, SDL_Event event) {
int obstacle = 0, i, instant, lane = 2, count = 0, count2 = 0;
long int score = 0, speed = 2, mark = 50;
int choice = getCarColor(file), choice2 = getTrack();
int randomTruck[2], randomLane... |
#include "game2.h"
#include "pause_screen.h"
#include "gameState.h"
#include "hw_dependent/joystick.h"
#include "hw_dependent/display.h"
#include <stdlib.h>
#include <stdio.h>
#define OPT_LEN 10
#define MAXL 100
Graphics_Rectangle getRectangle(int x, int y)
{
Graphics_Rectangle rect;
rect.xMin = x - 2;
re... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "lexer.h"
#include "tokens.h"
void init_lexer(Lexer *lexer, const char *source) {
lexer->start = source; // Point the start of the lexer to the start of the source string
lexer->current = source; // Point the current char ... |
/* GELL 15.26: include file for the module: "carcdr" */
/* translation done: "Wed June 30 93 17:34:34 " */
/* impure LLM3 predefined */
extern Ptr GIdlink, GIllink, GIfcons, GIevalst;
extern Ptr GIfcons;
extern Ptr GIbvar;
Ptr GMfcar = 0;
Ptr GMfcdr = 0;
Ptr GMca2r = 0;
Ptr GMcadr = 0;
Pt... |
#include <font.h>
#include <videoDriver.h>
#include <videoModeInfo.h>
#include <stdint.h>
#include <time.h>
static unsigned char ** start_video_position = (unsigned char**)0x0005C28;
static int x_resolution;
static int y_resolution;
Color background_color={176,224,230};
Color font_color={0,0,0};
Position screen_pos... |
/* Definitions of target machine GNU compiler. IA-64 version.
Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>> and
<NAME> <<EMAIL>>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms... |
/*
* File: papi_preset.c
* CVS:
* Author: <NAME>
* <EMAIL>
* Mods: <your name here>
* <your email address>
*/
#include "papi.h"
#include "papi_internal.h"
#include "papi_memory.h"
/* Defined in papi_data.c */
extern hwi_presets_t _papi_hwi_presets;
/* This routine copies values from a ... |
#include"cjson.h"
#include<assert.h>
#include<stdlib.h>
#include<math.h>
#include<errno.h>
#include<string.h>
#ifndef C_PARSE_STACK_INIT_SIZE
#define C_PARSE_STACK_INIT_SIZE 256
#endif
#define EXPECT(c,ch) do{assert(*c->json == (ch));c->json++;}while(0)
#define ISDIGIT(ch) ((ch) >= '0' && (ch) <= '9')
#define ... |
/* atomic-install -- journal support
* (c) 2011 <NAME>
* 2-clause BSD-licensed
*/
#include "config.h"
#include "journal.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h>
#include <fcntl.h>
#includ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/wait.h>
#ifdef USE_READLINE
#include <readline/readline.h>
#include <readline/history.h>
#endif
typedef enum {APPEND, OVERWRITE} appendMode;
typedef struct {
char* cmd;
char** args... |
// SPDX-License-Identifier: GPL-2.0
/*
* Earthsoft PT3 driver
*
* Copyright (C) 2014 <NAME> <<EMAIL>>
*/
#include <linux/dma-mapping.h>
#include <linux/kernel.h>
#include <linux/pci.h>
#include "pt3.h"
#define PT3_ACCESS_UNIT (TS_PACKET_SZ * 128)
#define PT3_BUF_CANARY (0x74)
static u32 get_dma_base(int idx)
{
... |
#include "lib/buddy/memory.h"
#include "common.h"
#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "lib/vector/vector.h"
#include "memory/hashmap.h"
#include "arena/meta.h"
#include "lru/lruq.h"
#include "wal/wal.h"
#include "server/message.h"
#include "uni... |
// #include <CDX_LogNDebug.h>
#define LOG_TAG "AacMuxer.c"
#include <utils/plat_log.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <encoder_type.h>
#include <record_writer.h>
#include "AacMuxer.h... |
#include <stdint.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <stdio.h>
#include "fast-gpio.h"
uint8_t *memmap;
char *strUnknownMux="UNKNOWN";
char *strInputMux="INPUT";
char *strOutputMux="OUTPUT";
char *muxNames[76][4]={
"TWI0_SCK", NULL, NULL, NULL,
"TWI0_SDA", NULL, NULL, NULL,
"PW... |
/*
This file is for Niederreiter decryption
*/
#include "decrypt.h"
#include "benes.h"
#include "bm.h"
#include "fft.h"
#include "fft_tr.h"
#include "params.h"
#include "util.h"
#include <stdio.h>
static void scaling(vec128 out[][GFBITS], vec128 inv[][GFBITS], const unsigned char *sk, vec128 *recv) {
int i, j... |
/*
* Summary: ebt_vlan - IEEE 802.1Q extension module for userspace
*
* Description: 802.1Q Virtual LAN match support module for ebtables project.
* Enables to match 802.1Q:
* 1) VLAN-tagged frames by VLAN numeric identifier (12 - bits field)
* 2) Priority-tagged frames by user_priority (3 bits field)
* 3) Enca... |
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <netdb.h>
#include <fcntl.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#in... |
/**
* @file cset.c
*
*/
#include <cset.h>
#include <stdlib.h>
#include <stdbool.h>
#include <assert.h>
#define max(a, b) ((a) > (b) ? (a) : (b))
enum Direction { left = 0, right = 1 };
struct CSetImplementation {
struct Node *root;
size_t data_size;
CmpFn cmp;
CleanupFn cleanup;
};
struct Node {
stru... |
// Copyright 2017 The Australian National University
//
// 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 appli... |
#include <math.h>
#include <time.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <syslog.h>
#include <exanic/exanic.h>
#include "common.h"
#include "phc_phc.h"
#define SAMPLES 8
struct phc_phc_sync_state
{
char name[16];
int clkfd;
char name... |
#include <string.h>
#include <stdlib.h>
#include "rubiks_cube.h"
//checks if the given values i, j, and k is valid or not
boolean is_i_j_k_valid(int i, int j, int k){
if((i>=0 && i<DIMENSION) && (j>=0 && j<DIMENSION) && (k>=0 && k<DIMENSION))
return true;
else
return false;
}
//checks if the given in... |
/**************************************************************************//**
* @file main.c
* @version V1.00
* @brief Use USB Host core driver and HID driver. This sample demonstrates how
* to support mouse and keyboard input.
*
* @copyright (C) 2019 Nuvoton Technology Corp. All rights reserv... |
#include <pebble.h>
#define CENTER GPoint(72, 84)
typedef struct {
int hours;
int minutes;
} Time;
static Window *s_main_window;
static Layer *s_canvas_layer;
static GRect s_window_bounds;
static GFont s_hours_font;
static GFont s_minutes_font;
static uint8_t s_hours_height;
static uint8_t s_minutes_height;
sta... |
/*
* Copyright (c) 2011 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* This test ensures that the front/middle/backends can deal with the
* math.h functions which have builtins and llvm intrinsics.
*
... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
#pragma ident "$Id: wavreq.c,v 1.10 2006/08/15 01:27:44 dechavez Exp $"
/*======================================================================
*
* Service a request for waveform records.
*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Copyright (c) 1997 Regents of the University of C... |
/*
##########################################
##### MultiProtocol nRF24L01 Tx ######
##########################################
# by goebish on rcgroups #
# #
# Parts of this project are derived #
# from existing work, thanks to: #
# ... |
/* LaCrosse Color Forecast Station (model C85845), or other LaCrosse product
* utilizing the remote temperature/humidity sensor TX141TH-Bv2 transmitting
* in the 433.92 MHz band. Product pages:
* http://www.lacrossetechnology.com/c85845-color-weather-station/
* http://www.lacrossetechnology.com/tx141th-bv2-temperat... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2019 SUSE LLC <<EMAIL>>
*/
/*
* Tests misaligned fallocate()
* Test scenario:
* 1. write() several blocks worth of data
* 2. fallocate() some more space (not aligned to FS blocks)
* 3. try to write() into the allocated space
* 4. deallocate misali... |
/*
Copyright (C) 1994-2016 Lawrence Livermore National Security, LLC.
LLNL-CODE-425250.
All rights reserved.
This file is part of Silo. For details, see silo.llnl.gov.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* R... |
/**
* Copyright (c) 2014,2015,2016 Enzien Audio Ltd.
*
* 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 T... |
#include "list_helper.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include <wchar.h>
#include "../include/helper.h"
#include "general_collection_helper.h"
#include "env_var.h"
#define PTR_SYMBOL select_char_unicode(L'⌃', L'^')
void print_bounding_box(wchar_t **buf, int offset,... |
// Gocart Race by <NAME> Ver 7-Apr-2008
#include <curses.h>
#include <time.h>
#define XSIZE 79
#define YSIZE 24
// Start Track Data
#define NUMLEVELS 3
char* track[NUMLEVELS] = {
"3!-?!*?!*?!(1!,?!!\"~}$~r!!!/o!!!+7!\"3!`1!%~3P3!&~o/70~~O$7P~y!0O/3!-1+z!!$7"
"-7!!/s(7!!Ps(?!-3+t03l~v't03h~u%r/3!!!-3!!P!H!!/7#?!!`7&q!!... |
/*
* Copyright (c) 2006-2010,2014 Apple Inc. All Rights Reserved.
*/
#include <CoreFoundation/CoreFoundation.h>
#include <Security/SecItem.h>
#include <Security/SecBase.h>
#include <utilities/array_size.h>
#include <utilities/SecCFWrappers.h>
#include <stdlib.h>
#include <unistd.h>
#include "Security_regressions.h"... |
/**************************************************************************/
/* */
/* Copyright (c) Microsoft Corporation. All rights reserved. */
/* */
/* Thi... |
#include "vusen.h"
#include <stdlib.h>
#include <stdio.h>
#include "geometry.h"
/// //////////// POINT //////////////////
/// Point constructor
void setPoint(Point* p,int color,double x, double y, double z){
p->color = color;
p->x = x;
p->y = y;
p->z = z;
}
void printPoint(Point* p){
printf("(%lf,%l... |
#include <sys/types.h>
#include <arpa/inet.h>
#include <bsd/md5.h>
#include <err.h>
#include <linux/limits.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#define HOST_NAME_MAX 255
#define CONFIG_PATH "/soul/soul.conf"
#define XDG_CONFIG_DE... |
#pragma once
#include <windef.h>
#include <evntprov.h>
REGHANDLE RegHandle;
const char* Manifest = "<instrumentationManifest xmlns=\"http://schemas.microsoft.com/win/2004/08/events\">\n"
" <instrumentation xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:win... |
#ifndef _POSIX_C_SOURCE
#define _POSIX_C_SOURCE 199309L
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <errno.h>
#include <unistd.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <ncurses.h>
#include <time.h>
#include <sys/socket.h>
#include <... |
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "options.h"
#include "picture.h"
#include "region.h"
#include "characters.h"
//parsing functions
char* flagStart = "--";
char optValueDelim = '=';
char* fontSizeOpt = "font-size";
char* fontNameOpt = "font";
char* outputFile = "output";
char* useQ... |
/*
* gs_one_to_all.c
*
* Created on: 16.03.2015
* Author: gorlorom
*/
/* XXX Is this behavior desirable
* Note: A core can inject a flit as soon as the injection queue is empty thus a node can possibly send more than 1 flit per cycle, which poses no problem though
* Note: The cycles overlap (meaning: west... |
/*
* Copyright (c) 2013 ASMlover. 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 ofconditions ... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 - 2017 CNES
*
* 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... |
/*
* Nullsoft Streaming Video demuxer
* copyright (c) 2004 by <NAME> <<EMAIL>>
* Based on A'rpis G2 work
*
* seeking and PCM audio not yet supported
* PCM needs extra audio chunk "miniheader" parsing
*
* This file is part of MPlayer.
*
* MPlayer is free software; you can redistribute it and/or modify
* it un... |
#include "zygotew.h"
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <android/log.h>
#define LOG_TAG "Zygote watchdog"
#define ZYGOTE_SYSCALL_TRACE_FILE "/data/local/tmp/zygote_strace.txt"
#define WHITELIST_FILE "/data/local/tmp/whitelist.txt"
typedef struct process PROCE... |
/*
* This file is a part of Pcompress, a chunked parallel multi-
* algorithm lossless compression and decompression program.
*
* Copyright (C) 2012-2013 <NAME>. All rights reserved.
* Use is subject to license terms.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms o... |
#include "potential.h"
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "three_algebra.h"
#include "object.h"
#include "utilities.h"
#include "error.h"
#include "ddcMalloc.h"
#include "mpiUtils.h"
void *mgpt_parms(POTENTIAL *);
void *eam_parms(POTENTIAL *);
vo... |
/* $Id$ */
/*
* Copyright (c) 2002, 2003 Cluster File Systems, Inc.
*
* This file is part of the Lustre file system, http://www.lustre.org
* Lustre is a trademark of Cluster File Systems, Inc.
*
* You may have signed or agreed to another license before downloading
* this software. If so, you are bound... |
#pragma once
#define MAX_IMAGES 1024
#define BLOCKSIZE_W 11 + 1 // +1 for the gradient computation
#define BLOCKSIZE_H 11 + 1 // +1 for the gradient computation
#define WIN_RADIUS_W (BLOCKSIZE_W) / (2)
#define WIN_RADIUS_H (BLOCKSIZE_H) / (2)
#define BLOCK_W 32
#define BLOCK_H (BLOCK_W/2)
#define TILE_W BLO... |
#ifdef _CH_
#pragma package <opencv>
#endif
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#include <ctype.h>
#endif
IplImage *image = 0, *hsv = 0, *hue = 0, *mask = 0, *backproject = 0, *histimg = 0;
CvHistogram *hist = 0;
int backproject_mode = 0;
int select_object = 0;
int track_object = 0;
... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "libs/layout.h"
#include "libs/warning.h"
#include "libs/core.h"
#define SYSTEM_NAME "Medical History - Blood Pressure"
/** Screen header **/
void header(char* menu);
/** Main menu **/
void mainMenu();
void printMainMenu();
/** Ad... |
//
// General-purpose Photovoltaic Device Model gpvdm.com - a drift diffusion
// base/Shockley-Read-Hall model for 1st, 2nd and 3rd generation solarcells.
// The model can simulate OLEDs, Perovskite cells, and OFETs.
//
// Copyright 2008-2022 <NAME> https://www.gpvdm.com
// r.c.i.mackenzie at googlemail.com
//
// Pe... |
/* FASTSD - FAST SD Card Controller for Patmos
* Changes by:
* - <NAME>
* - <NAME>
*
* Based upon the WISHBONE SD Card Controller IP Core
* provided by <NAME>:
*
* WISHBONE SD Card Controller IP Core
*
* ocsdc.c
*
* This file is part of the WISHBONE SD Card
* Controller IP Core project
* http://openco... |
/*
* zsocket zonename relative-zone-path global-zone-path: create a Unix domain
* socket bound to "relative-zone-path" inside zone "zonename", then connect to
* the Unix domain socket at "global-zone-path" and send the bound socket.
*
* This is used to reliably, securely create a UDS bound inside a zone.
*/
#inc... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
#include "file.h"
#include "inode.h"
#include "dentry.h"
#include "buffer.h"
_u8 mgfs_file_open_root(_mgfs_context_t *p_cxt, /* in */
_h_file_ hroot, /* out */
_h_lock_ hlock
) {
_u8 r = 0;
hroot->hdentry.hb_dentry = (_h_buffer_)p_cxt->fs.inv_pattern;
hroot->hdentry.p_dentry = 0;
if(mgfs_inode_open(p... |
/*
* Copyright (C) 2017 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... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sqlite3.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include "project.h"
#include "tasks.h"
#include "task_utils.h"
struct test_results{
int p;
int n;
};
int clear_db(sqlite3 *tdb){
sqlite3_stmt... |
#include "sod.h"
void sod_print_animation_channel(SODAnimationChannel *channel, uint8_t offset)
{
sod_print_identifier(channel->node_id, "Node", offset);
printf("%*cDuration: %f\n", offset, ' ', channel->period);
printf("%*cKey frames: %u\n", offset, ' ', channel->nkeyframes);
for (int i = 0; i < chann... |
/** WEP/WPA key setting tool for MadWifi driver, version 0.5
*
* (C) 2008-03-28 <NAME> <<EMAIL>>
*
* This program can be used to debug the MadWifi Key Cache. Use with caution
* and without warranty!
*
* Instructions:
*
* gcc -I/usr/src/madwifi-ng -Wall wpakey.c -o wpakey
* ./wpakey -h
*
* This c... |
/*
* Adaptation of BCLoopSearch (routines in BCscore3_PT.c) by <NAME>, MTi, 2016
*
* BCLoopSearch/BCSearch/BCScore author: <NAME>, MTi
* Citations:
* Fast protein fragment similarity scoring using a Binet-Cauchy Kernel, Bioinformatics, <NAME> and <NAME>, doi:10.1093/bioinformatics/btt618
*
*
* gcc -share... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
//#include <sys/types.h>
//#include <sys/stat.h>
#include <string.h>
#include <dirent.h>
#include <pcap.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
//#include <signal.h>
#include <wait.h>
/*
typedef struct {
char **key;
int *value;
size_t key_us... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.