text stringlengths 3.12k 18.7k |
|---|
/*
Copyright 2003, CyberTAN Inc. All Rights Reserved
This is UNPUBLISHED PROPRIETARY SOURCE CODE of CyberTAN Inc.
the contents of this file may not be disclosed to third parties,
copied or duplicated in any form without the prior written
permission of CyberTAN Inc.
This software should be used as a reference... |
#include <pthread.h>
#include "ipfs/routing/routing.h"
#include "libp2p/routing/kademlia.h"
#include "libp2p/peer/providerstore.h"
#include "libp2p/utils/vector.h"
#include "ipfs/ipfsaddr/ipfs_addr.h"
/**
* Routing using Kademlia and DHT
*
* The go version has "supernode" which is similar to this:
*/
/**
* Put ... |
/* This file contains the following:
ReadRealImage
XCWavecal
internal:
FindOffset
*/
# include <stdio.h>
# include "hstio.h"
# include "stis.h"
# include "hstcalerr.h"
static void FindOffset (CmplxArray *, int, int, double *, double *);
/* ReadRealImage allocates memory for z->data, copies the SCI extension
o... |
#include "server.h"
#include <errno.h>
#include <inttypes.h>
#include <libgen.h>
#include <stdio.h>
#include <SDL2/SDL_assert.h>
#include <SDL2/SDL_timer.h>
#include "config.h"
#include "command.h"
#include "log.h"
#include "net.h"
#define SOCKET_NAME "scrcpy"
#define SERVER_FILENAME "scrcpy-server.jar"
#define DEF... |
#include <atmel_start.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>
#include <stdio.h>
#include <util/delay.h>
#include <avr/io.h>
#include <QTouchADC.h>
#include <SX1243.h>
#include <rstctrl.h>
//ATtiny817
/********************************************************************************************************... |
/*
* cawf.h - definitions 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 <NAME> of the Univ... |
/*
$Id$
Copyright 1989-2014 <NAME>
This file is part of PIPS.
PIPS 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
any later version.
PIPS is distributed in... |
#include <time.h>
#include "SDL2/SDL.h"
#include "tetris.h"
#include "tetris_ui.h"
#include "tetris_ui_sdl.h"
static void update_level_score_lines(tetris_app_t *app, tetris_move_response_t *response, stone_type_t *type) {
if ( !response->was_moved ) {
/* redundant points code */
if (response->full_lines != NULL... |
/********************************************************************
Copyright 2010-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 3 of the License, or
(at your... |
/*
* $Id: oglx.c,v 1.1 2005-09-18 22:06:22 dhmunro Exp $
* GL window management for X11, using GLX
* for yorick-gl package - this source unused and may be out of date
*/
/* Copyright (c) 2005, The Regents of the University of California.
* All rights reserved.
* This file is part of yorick (http://yorick.sourcefo... |
#define NONE 0
#define EXPRESSION 1
#define VARIABLE 2
#define ARRAY_VARIABLE 3
#define STATEMENT 4
#define ASSIGNMENT 5
#define STRING 6
#define INTEGER 7
#define BOOLEAN 8
#define CONSTANT 9
#define RESERVED 10
#define FUNCTION 11
#define INPUT 12
#define OUTPUT 13
#define READ 14
#define WRITE 15
#define BREAK 1... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* curses.c :+: :+: :+: ... |
/*
INTEL CONFIDENTIAL
Copyright 2009 Intel Corporation All Rights Reserved.
The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and l... |
/* Convert OpenEXR to VIPS
*
* 1/5/06
* - from im_png2vips.c
* 17/5/06
* - oops, buffer calcs were wrong
* 19/5/06
* - added tiled read, with a separate cache
* - removed *255 we had before, better to do something clever with
* chromaticities
* 4/2/10
* - gtkdoc
TODO
- colour management
- attri... |
//list of header files
#include "general_functions.h"
#include "core_functions.h"
//#include<general_functions.h>
//#include<core_functions.h>
int main(){
login = fopen("password.dat","rb");
if(login == NULL){
gotoxy(10,9);
printf("Database Do not exits. Be an adminstrator. Sign U... |
#include <stdio.h>
#include <stdlib.h>
#include<string.h>
#include<conio.h>
#define MAX 20
#define VACIO 0
#define ACTIVO 1
#define BORRADO 2
struct agenda{
char nombre [50];
long int dni ;
char email[25];
char direccion [20];
int edad ;
int estado;
};
typedef struct agenda... |
// Copyright 2014 Silicon Laboratories, Inc.
#include PLATFORM_HEADER
#include "stack/include/ember-types.h"
#include "hal/hal.h"
#include "hal/micro/key-matrix-driver.h"
#ifndef KEY_MATRIX_COLUMNS_AS_OUTPUTS
#define KEY_MATRIX_COLUMNS_AS_OUTPUTS 0
#endif
#ifndef KEY_MATRIX_PINS_ACTIVE_HIGH
#define KEY_MATRIX_PINS_AC... |
#include "feed.h"
void init_feed(feed_t *feed) {
feed->agencies = NULL;
feed->agency_count = 0;
feed->calendar_dates = NULL;
feed->calendar_dates_count = 0;
feed->calendar_records = NULL;
feed->calendar_records_count = 0;
feed->fare_attributes = NULL;
feed->fare_attributes_count = 0;
... |
/*
* Copyright (c) 2016, Technische Universität Dresden, Germany
* 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... |
/*
SYR2 - Projet - Partie 2
<NAME>
<NAME>
*/
#include <clientserver.h>
/**
* If an error is encountered, display it on the server
* And also send a message to the client
*
* Parameters:
* - int err_socket => The file descriptor to the server socket
* - int err_type => The error type
* ... |
/*
** SPDX-License-Identifier: MIT
**
** Copyright (c) 2018 Toshiba Corporation
**
*************************************************************************
** This file contains the implementation of the blob key hash-table
** implementation used by row lock feature. Memory allocator can be
** specified.
*/
#include ... |
/* Id: man.c,v 1.187 2019/01/05 00:36:50 schwarze Exp */
/*
* Copyright (c) 2008, 2009, 2010, 2011 <NAME> <<EMAIL>>
* Copyright (c) 2013-2015, 2017-2019 <NAME> <<EMAIL>>
* Copyright (c) 2011 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee i... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* 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 ... |
#include <parg.h>
#include <parwin.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
static const int WINSIZE = 256;
static const int NASTEROIDS = 3;
#define TOKEN_TABLE(F) \
F(P_BACKGROUND, "p_background") \
F(P_ASTEROIDS, "p_asteroids") \
F(P_PARTICLES, "p_particles") \
... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2013 - 2014 Texas Instruments Incorporated - https://www.ti.com
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Gpio controlled clock implementation
*/
#include <linux/clk-provider.h>
#include <linux/export.h>
#include <linux/slab.h>
#include ... |
/*
* m68k/copylock.c
*
* Copylock extracter.
*
* Written in 2011 by <NAME>
*/
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <time.h>
#include <ut... |
/*
* Copyright (c) 2019 Fastly, <NAME>
* Copyright (c) 2020 RWTH Aachen University, COMSYS Network Architectures Group, <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 ... |
/*
Copyright (C) 2017 <NAME>
This file is part of kAFL Fuzzer (kAFL).
QEMU-PT 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.
QEMU-PT is ... |
#include "struct/tree/avltree.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#define NIL (&nil)
static avlnode nil = { .parent = NULL, .left = NIL, .right = NIL, .bfactor = 0 };
bool avlnode_is_nil(avlnode *node) {
return node == NIL;
}
avltree* avltree_create(size_t node_size, avltree_comp_fun... |
/**
* @file hula_lib.c
*
* Implements lua wrappers for using hsm_machine in lua
*
* A note on naming:
* hula_*() are functions called from lua
* the rest, with the exception of luaopen_hsm_statechart,
* are called from the c-side.
*
* \internal
* Copyright (c) 2012, everMany, LLC.
* Al... |
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <libamc/libamc.h>
#include <stdlibadd/assert.h>
#include <libnet/libnet.h>
#include <libport/libport.h>
#include "tls.h"
#define SEQUENCE_TAG 0x10
#define CONSTRUCTED_SEQUENCE_TAG SEQUENCE_TAG | (1 << 6)
... |
/*
* sha1.c
*
* Originally witten by <NAME> <<EMAIL>>
*
* Modified by <NAME> <<EMAIL>>
*
* NO COPYRIGHT - THIS IS 100% IN THE PUBLIC DOMAIN
*
* The original unmodified version is available at:
* ftp://ftp.funet.fi/pub/crypt/hash/sha/sha1.c
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CO... |
#pragma once
#include <stdint.h>
#include <float.h>
#include <stdbool.h>
// Basic data types
typedef int8_t i8;
typedef int16_t i16;
typedef int32_t i32;
typedef int64_t i64;
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef intptr_t isize;
typedef uintptr_t usize;
t... |
/**********************************************************************
Author: <NAME> (<EMAIL>)
Filename: dynamic_malloc.c
Topic: Implementaton of dynamic memory allocation using "first-fit" scheme
Implements:
void *my_malloc( size_t size);
void my_free( void *p );
In reality program gets memory... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <time.h>
#include <pthread.h>
#include "read_ppm.h"
#include <stdbool.h>
#include <sys/time.h>
#include <string.h>
#include <sys/types.h>
#include <math.h>
#define MAX 1000
static unsigned long long maxCount = 0;
pthread_mutex_t mu... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
#define _USE_MATH_DEFINES
#include <assert.h>
#include <math.h>
#include <survive_reproject.h>
#include <survive_reproject_gen2.h>
#pragma GCC push_options
#pragma GCC optimize("Ofast")
#include "survive_reproject.generated.h"
/***
Using plane equation:
A*x + B*y + C*z + D = 0;
If you are looking at the light... |
/*
* Copyright (c) 2009-2021, Google LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
/*
* 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... |
/**
*
* \file
*
* \brief Functions to detect which devices are attached to the host MCU and pre-configure
* their corresponding crypto device.
*
* Copyright (c) 2016-2017 Microchip Technology Inc. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and ... |
/********************************************************************
* *
* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENS... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
void print_matrix(int **G, int N) {
int i, j;
for (i = 1; i <= N; i++) {
for (j = 1; j <= N; j++) {
printf("%d ", *(G[i] + j));
}
printf("\n");
}
printf("\n");
}
void print_vector(int *v, i... |
//
// Copyright 2016-2020 <NAME>
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commercial ... |
#include "script_parse.h"
#include <json.h>
#include <stdlib.h>
#include <string.h>
static const uint8_t kmap[256] = {
['-'] = 1,
['.'] = 1,
['0' ... '9'] = 1,
['A' ... 'Z'] = 1,
['a' ... 'z'] = 1,
['_'] = 1
};
int parse_is_key(const char *restrict s)
{
return (int) kmap[*(const uint8_t *) s];
}
const char* p... |
/**
* @file mpu6500.c
* @author <NAME>.
* @date 2020/4/12
* @version 0.1
*/
#include "mpu6500.h"
/// number of calibration
#define NUMBER_CALIBRATION 256
/**
* @enum MPU6500_DEF
* @brief
* define MPU6500 use data.
*/
enum MPU6500_DEF
{
MPU6500_WHO_AM_I = 0x70,
MPU6500_POWER_ON = ... |
/*
analog_value.c
output analog values
Hello World for ATTINY84 Controller
Universal 8bit Graphics Library
Copyright (c) 2012, <EMAIL>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are... |
/**
* Copyright (c) 2015 - present LibDriver All rights reserved
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without lim... |
#include <stdio.h>
#include <stdlib.h>
#include "elf.h"
#include "elf_header.h"
#include "elf_ident.h"
Elf_Internal_Ehdr *get_elf_header(const unsigned char *buf) {
static Elf_Internal_Ehdr header;
for (int i = 0; i < EI_NIDENT; i++) {
header.e_ident[i] = buf[i];
}
if (buf[EI_CLASS] == ELFCLASS64) {
... |
/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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 3
of the License, or (at your option) ... |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME> for Adafruit Industries
* Copyright (c) 2019 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentatio... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <errno.h>
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/uio.h>
#include "rp.h"
#define PORT 7538 //The port on which to listen for incoming data
#define SWAP_UINT32(x)... |
/*
* Copyright (c) 2019 SK Telecom Co., Ltd. All rights reserved.
*
* 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 requir... |
/* File: Builtins
* Builtin tinypy functions.
*/
#include "tp.h"
#include "builtins.h"
#include "dict.h"
#include "misc.h"
#include "tp_list.h"
#include "tp_string.h"
#include "vm.h"
tp_obj* tp_print() {
unsigned char n = 0;
tp_obj* e;
tp_list_* lst=TP_TO_LIST(tp->params->obj);
int l = lst->val->le... |
// SPDX-FileCopyrightText: 2021 deroad <<EMAIL>>
// SPDX-License-Identifier: LGPL-3.0-only
#include "md4.h"
#include <rz_types.h>
#include <rz_endian.h>
#include <rz_util.h>
#define XAX(x, y, z) (z ^ (x & (y ^ z)))
#define AAA(x, y, z) ((x & y) | (x & z) | (y & z))
#define XXX(x, y, z) (x ^ y ^ z)
#define md4_round(... |
/*
* ***** 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 ... |
/*
BSD 2-Clause License
Copyright (c) 2020-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 "l.h"
void
dodata(void)
{
int i;
Sym *s;
Prog *p;
long t, u;
if(debug['v'])
Bprint(&bso, "%5.2f dodata\n", cputime());
Bflush(&bso);
for(p = datap; p != P; p = p->link) {
s = p->from.sym;
if(s->type == SBSS)
s->type = SDATA;
if(s->type != SDATA)
diag("initialize non-data (%d): %s\n%P\n",... |
/**
* @file main.c
* @author <NAME>
* @date 2013.06.15
* @brief Main program
*
* MIT License
*
* Copyright (c) 2022 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* i... |
/*Unit of measure is millimeter*/
#include <stdlib.h>
#include <stdio.h>
#include "drawing.h"
void draw_cube_20mm(){
FILE *arquivo;
arquivo = fopen("cube.stl","w");
begin_draw(arquivo);
//if puts height = 1, will draw a cube with 0.1 x 0.1 x 0.1
//draw_rectangle(arquivo,0,0,0,200);
//drawing a cube 2 cm x... |
// Inferno utils/5l/asm.c
// http://code.google.com/p/inferno-os/source/browse/utils/5l/asm.c
//
// Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
// Portions Copyright © 1995-1997 <NAME> (<EMAIL>)
// Portions Copyright © 1997-1999 Vita Nuova Limited
// Portions Copyright © 2000-2007 Vita Nuova Ho... |
/*******************************************************************/
/** MAC 438 - Programação Concorrente */
/** IME-USP - Primeiro Semestre de 2016 */
/** Prof. <NAME> */
/** ... |
/*---
This software is copyrighted by the Regents of the University of
California and Ashok Sudarsanam. The following terms apply to all files
associated with the software unless explicitly disclaimed in
individual files.
... |
#include <string.h>
#include <stdlib.h>
#include <socket.h>
#include <ethernet.h>
#define SOCKET_BUF_SIZE 8192
#define ROW_NUM 32
int socket_next_id;
struct socket_receive_row sockt_receive_row[ROW_NUM];
int row_cur;
static unsigned short port;
struct socket *current_saddr, *saddr_ready_queue;
int init_socket(i... |
// Copyright (C) 2015-2021 <NAME>, 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,... |
/*
* File system server main loop -
* serves IPC requests from other environments.
*/
#include <inc/x86.h>
#include <inc/string.h>
#include "fs.h"
#define debug 0
// The file system server maintains three structures
// for each open file.
//
// 1. The on-disk 'struct File' is mapped into the part of memory
// ... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses t... |
/*************************************************************************
* *
* Module: ReadHSP *
* *
* Loading High-sco... |
#include <pebble.h>
#define KEY_CHOICE 0
#define CHOICE_ROCK 0
#define CHOICE_PAPER 1
#define CHOICE_SCISSORS 2
#define CHOICE_WAITING 3
#define KEY_RESULT 1
#define RESULT_LOSE 0
#define RESULT_WIN 1
#define RESULT_TIE 2
static Window *s_main_window;
static BitmapLayer *s_choice_layer;
static GBitma... |
#include <avr/io.h>
#include <util/delay.h>
#include <ctype.h>
#define LCDsData PORTB
#define LCDsControl PORTC
#define ENABLE 4
#define ReadWrite 3
#define RS 2
#define LcdDataDir DDRB
#define DataDirLCDsControl DDRC
void wait(void){
//enable the lcd
LCDsControl |= (1 << ENABLE)... |
//
// ldns-3597
//
// Converts (supported) RR type presentation formats
// to RFC3597 notation
//
// Written by <NAME> for SIDN
//
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <getopt.h>
#include <ldns/ldns.h>
#define MAX_LEN 4096
void
usage() {
printf("usage: ldns-3597 [types]\n");
... |
#include "hconverter.h"
#include "hc_internal.h"
#include <stdio.h>
#include <string.h>
typedef struct abs_heb_time {
long abs_date;
int hour;
int part;
} hc_abs_heb_time;
int hc_set_hc_heb_time(heb_time* htime, int hours, int parts)
{
htime->hour = hours;
htime->part = parts;
return hours >= 0 && hou... |
/*
* "git rm" builtin command
*
* Copyright (C) <NAME> 2006
*/
#include "cache.h"
#include "builtin.h"
#include "dir.h"
#include "cache-tree.h"
#include "tree-walk.h"
#include "parse-options.h"
#include "submodule.h"
static const char * const builtin_rm_usage[] = {
N_("git rm [options] [--] <file>..."),
NULL
};
... |
#include <stdio.h>
#include <Windows.h>
#include <tlhelp32.h>
#define HAT_WINDOW L"LaunchUnrealUWindowsClient"
#define HAT_TITLE L"A Hat in Time (64-bit, Final Release Shipping PC, DX9, Modding)"
#define HAT_EXE_NAME L"HatinTimeGame.exe"
#define PE_SECTION_PTR (0x3C)
#define PE_TS_OFFSET (0x08)
enum {
D... |
#include "hw_addrs.h"
#include "unp.h"
#include <linux/if_ether.h>
#include <linux/if_packet.h>
#include <netinet/ip.h>
#define ETH_HDRLEN 14 // Ethernet header length
#define IP4_HDRLEN 20 // IPv4 header length
#define ARP_HDRLEN 28 // ARP header length
#define ARPOP_RESPONSE 2 // Taken from <linux/i... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*
* cli.c
*
* Created on: 7. 9. 2014
* Author: ondra
*/
#include <stddef.h> // NULL
#include <string.h> // strcmp, strtok
#include <stdio.h> // sniprintf
#include <libopencm3/cm3/assert.h> // For cm3_assert()
#include <mouros/common.h> // ARRAY_SIZE()
#include <mouros/tasks.h> // os_tas... |
#include "sqlbrowser_util.h"
#include "sqlite_source/sqlite3.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sqlite_source/sqlite3.h"
/*following routines extracted from shell.c for dump support*/
/*
** Determines if a string is a number of not.
*/
static int isNumber(const char *z, int *real... |
/* C implementation of <NAME>'s card cipher, "Solitaire".
<NAME> <<EMAIL>>, 1999
This program is placed in the public domain.
This program is mainly for performing statistical tests on
Solitaire's output; the actual ability to encrypt text is added
only so that the implementation correctness can be v... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
//-----------------------------------------------------------------------------
// FILE NAME : FUMH2.c
// FUNCTION : MH Compress and MH2 Compress
// AUTHER : 1996.08.08 FPL)Y.YUTANI
// NOTE : for Windows NT V4.0
// MODIFY : Reduce data size Oct.31,1996 H.Ishida
// MODIFY : for NT5.0 Minidriver Sep.3... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <curl/curl.h>
#include "kadimus.h"
#include "memory/alloc.h"
#include "regex/pcre.h"
#include "net/utils.h"
#include "io/utils.h"
#include "globals.h"
#include "out... |
/* Extended Module Player
* Copyright (C) 1996-2018 <NAME> and <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* 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... |
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <hwf4/usart.h>
#define HX_FBO 0x7e
#define HX_CEO 0x7c
#define HX_ESC(_x) (_x^0x20)
#define HX_STATE_IDLE 0
#define HX_STATE_FSTART 1
#define HX_STATE_DATA 2
#define HX_STATE_ESC 3
// FIFO status
#define BUF_FULL(_which) (((_which##_in... |
/*
* formatIP.c
*
* RFC 4291 section 2.2
*
* Copyright 2002, 2008 by <NAME>. All rights reserved.
*/
/***********************************************************************
*** No configuration below this point.
***********************************************************************/
#include <com/snert/lib... |
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <ctype.h>
#include <errno.h>
#include <unistd.h>
#include <time.h>
#include <getopt.h>
#include <signal.h>
#include <mcrx/libmcrx.h>
static volatile int stopping = 0;
static void
stopping_sighandler(int sig, sig... |
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* Audio Output Virtual Channel
*
* Copyright 2009-2012 <NAME>
* Copyright 2010-2012 <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 th... |
/******************************************************************************
*
* 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... |
/**
* librouteros - src/registration_table.c
* Copyright (C) 2009 <NAME>
*
* 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 ... |
#include <xcb/xcb.h>
#include "../xcbft/xcbft.h"
static xcb_render_fixed_t
float_to_fixed(float f)
{
return f * 0x10000;
}
static xcb_pixmap_t
create_same_size_pixmap(xcb_connection_t *c, xcb_drawable_t drawable)
{
xcb_get_geometry_cookie_t cookie;
xcb_generic_error_t *e;
xcb_get_geometry_reply_t *geom;
xcb_pi... |
/*
* lib/cache_mngr.c Cache Manager
*
* This library 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 version 2.1
* of the License.
*
* Copyright (c) 2003-2008 <NAME> <<EMAIL>>
*/
/**
* @ingrou... |
/*
* _HMC_SEND_C_
*
* HYBRID MEMORY CUBE SIMULATION LIBRARY
*
* MEMORY SEND FUNCTIONS
*
* COPYRIGHT (c) 2018 TEXAS TECH UNIVERSITY
* SEE LICENSE FOR DETAILS
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hmc_sim.h"
/* ----------------------------------------------------- FUNCTIO... |
/* crest.c
<NAME> (<EMAIL>), 07 Jun 2016
FreeBSD-style copyright and disclaimer apply
*/
#include "crest.h"
#include "utils/errors.h"
#include <microhttpd.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#if MHD_VERSION < 0x00095009
#define MHD_USE_EPOLL MHD_USE_EPOLL_LINUX_ON... |
/** \file list.h
** \brief Defines Array and List related macros.
**/
#include "container.h"
#include "pair.h"
#include "stdioplus.h"
#include "stdlibplus.h"
#include "stringplus.h"
#define ASSERT_ARRAY(array,size,cap) \
ASSERT(array); \
ASSERT(array->size < cap)
#define ASSERT_LIST(list,size,cap) ASSERT_A... |
/*
* Copyright (c) 2015 <NAME>
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#pragma once
#define USB0_BASE 0x40006000
#define USB_CMD 0x140
#define USB_STS 0x144
#define USB_INTR ... |
#define __STDC_FORMAT_MACROS
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <arpa/inet.h>
#include "loader.h"
#include "debug.h"
struct parse_hdr {
uint32_t sec_id;
uint32_t sec_len;
} parse_hdr_instance;
struct vtable {
uint32_... |
/*
TPatterns
Copyright (C) <NAME> 1998-2002
<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) any later vers... |
/*
* Using first-fit FSMP because it is easy.
* Upon add to freed space, create new free space entry with leftover space
* Upon delete to last entry, set free_start to the start of that entry
* Upon delete, make sure any adjacent free spaces are merged
* We ensure there will never be two or more contiguous free sp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.