text stringlengths 3.08k 10.5k |
|---|
#include <stdio.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <curses.h>
#include "race.h"
#include "client_session.h"
#include "utils.h"
int g_player_num;
int g_stage_num;
int g_soc;
int g_entry_num;
char g_send_data[PLAYER_INFO_SIZE];
char g_players_info[MAX_PLAYER*PLAYER_INFO_SIZE];
WI... |
/*
Copyright (c) 2020-present <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 use, copy, modify, merge, publish, distribute, ... |
/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope... |
/*------------------------------------------------------------------------------
*
* Copyright (c) 2011-2021, EURid vzw. All rights reserved.
* The YADIFA TM software product is provided under the BSD 3-clause license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... |
#pragma once
#include <fpioa.h>
#include <gpiohs.h>
#include <stdint.h>
#include <gpio.h>
#include <stdbool.h>
/* SHIFT REGISTER DEFAULTS */
#define DEFAULT_SREG_CLK_FUNC FUNC_GPIOHS10
#define DEFAULT_SREG_CLR_FUNC FUNC_GPIOHS11
#define DEFAULT_SREG_DAT_FUNC FUNC_GPIOHS12
#define DEFAULT_SREG_CLK_VIO 10
#define DEFA... |
#include "uart.h"
#include "gpio.h"
#include "sprintf.h"
/* Auxilary mini UART registers */
#define AUX_ENABLE ((volatile unsigned int*)(MMIO_BASE+0x00215004))
#define AUX_MU_IO ((volatile unsigned int*)(MMIO_BASE+0x00215040))
#define AUX_MU_IER ((volatile unsigned int*)(MMIO_BASE+0x00215044))
#define ... |
/*
* Fujitsu serial touchscreen driver
*
* Copyright (c) <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.
*/
#include <linux/errno.h>
#include <linux/ke... |
/* ====================================================================
* Copyright (c) 1996,1997 The Apache Group. 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 o... |
/*******************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only
* intended for use with Renesas products. No other uses are authorized. This
* software is owned by Renesas Electronics Corporation and is protecte... |
/* Copyright 2019 coseyfannitutti
*
* 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 distribut... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* kdc/kdc_preauth_encts.c - Encrypted timestamp kdcpreauth module */
/*
* Copyright (C) 1995, 2003, 2007, 2011 by the Massachusetts Institute of Technology.
* All rights reserved.
*
* Export of this software from the United States of America may
* ... |
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "jcor.h"
#include "base64.h"
#include "base16.h"
// shared with parse
#define WS_MAXLEN 16
extern const char *ws_table[24];
extern const uint8_t ws_tablen[24];
static size_t cn2on_part(uint8_t *in, size_t inlen, char *out, uint32_... |
/* Clipboard
*
* GdkClipboard is used for clipboard handling. This demo shows how to
* copy and paste text to and from the clipboard.
*
* It also shows how to transfer images via the clipboard or via
* drag-and-drop, and how to make clipboard contents persist after
* the application exits. Clipboard persistence ... |
/*
* 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 ... |
/* GNU/Linux/TILE-Gx specific low level interface, GDBserver.
Copyright (C) 2012-2016 Free Software Foundation, Inc.
This file is part of GDB.
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 Fou... |
/*
* various filters for ACELP-based codecs
*
* Copyright (c) 2008 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of th... |
/*
* librdkafka - The Apache Kafka C/C++ library
*
* Copyright (c) 2016 <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 ... |
/*
* util.c
*
* General-purpose utility functions.
*
* Written & released by <NAME> <<EMAIL>>
*
* This is free and unencumbered software released into the public domain.
* See the file COPYING for more details, or visit <http://unlicense.org>.
*/
void filename_extension(const char *filename, char *extensio... |
/* crypto/rsa/rsa_saos.c */
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long a... |
/* RX C ABI functions
Copyright (C) 2009 Free Software Foundation, Inc.
Contributed by Red Hat.
This file is part of GCC.
GCC 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, o... |
/*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include "esp_netif.h"
#include "lwip/sockets.h"
#include "esp_rom_md5.h"
#include "esp_tls_crypto.h"
#include "esp_... |
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
int child_process(char *filename, int sock);
int parent_process(int sock);
void copy_data(int form, int to);
int main(int argc, char **argv) {
int so... |
// example6.c - Demonstrates how to miniz's PNG writer func
// Public domain, April 11 2012, <NAME>, <EMAIL>. See "unlicense" statement at the end of tinfl.c.
// Mandlebrot set code from http://rosettacode.org/wiki/Mandelbrot_set#C
// Must link this example against libm on Linux.
// Purposely disable a whole bunc... |
/*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* Version 2, December 2004
*
* Copyright (C) 2012-2013 <NAME> <<EMAIL>>
*
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE F... |
/* (c) 2009, Quest Sofwtare, Inc. All rights reserved. */
#include <windows.h>
#include <sddl.h>
#include <stdio.h>
#include "errmsg.h"
#include "deleg.h"
/* Requires -ladvapi32 */
/* Returns a SID's use-type as a string. */
static const char *
use_to_string(SID_NAME_USE use)
{
static struct {
SID_... |
#include <avr/io.h>
//#include <util/delay.h>
#include "task_sched.h"
#include "tbouncer.h"
#include "task_tlv.h"
#define BLINK_DDR DDRD
#define BLINK_PORT PORTD
#define BLINK_PINR PIND
#define BLINK_PIN0 4
#define BLINK_PIN1 2
#define BLINK_INPUT_PINR PINB
#define BLINK_INPUT_PORT PORTB
#define BLINK_INPUT_PIN0 1
... |
#include "include/uart.h"
#include "include/string.h"
#include "include/utils.h"
#include "include/timer.h"
#include "include/mm.h"
#include "include/scheduler.h"
#include "include/fork.h"
#include "include/printf.h"
#include "include/irq.h"
#include "include/peripherals/uart.h"
#include "include/signal.h"
#include "in... |
#include "tools.h"
/* floating point radom number generator between 0 and 1 */
double randf()
{
return (double) rand () / (double) RAND_MAX;
}
/* Normal random variate vector generator, of mean m and std. dev. s */
double* gauss_rand(int num_vals, double mean, double std_dev)
{
double x1 = 0.0f, x2 = 0.0f, w... |
/* PipeWire
*
* Copyright © 2018 <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 use, copy, modify, merge, pu... |
/* snapconv.c: Convert snapshot formats
Copyright (c) 2003-2005 <NAME>
Copyright (c) 2014-2015 <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, o... |
/* FreeTDS - Library of routines accessing Sybase and Microsoft databases
* Copyright (C) 1998-1999 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version... |
/*
* uvc video capture example
*/
#include "example_media_tl.h"
#include "mjpeg2jpeg.h"
#include "ff.h"
#include <fatfs_ext/inc/ff_driver.h>
#include "sdio_host.h"
#include <disk_if/inc/sdcard.h>
void example_tl_fatfs_thread(unsigned char* write_buf, const int write_buf_len, const int iter){
u8 *tl_WRBuf;
con... |
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
typedef uint16_t wasi_errno_t;
#define WASI_ERRNO_SUCCESS (0)
#define WASI_ERRNO_NOENT (44)
#define WASI_ERRNO_NOTDIR (54)
struct wasi_vfs_embed_linked_storage {};
struct wasi_vfs_node;
struct was... |
/* $NetBSD: sbwdog.c,v 1.5 2003/07/15 02:43:41 lukem Exp $ */
/*
* Copyright (c) 2002 Wasabi Systems, Inc.
* All rights reserved.
*
* Written by <NAME> and <NAME> for Wasabi Systems, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... |
/*
Copyright (c) 2011 <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 THE AUTHOR DISCLAIMS ALL ... |
/*
* Copyright 2012 Red Hat Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, d... |
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2019-11-17 LiWeiHao First implementation
*/
#include "drv_mic.h"
#include "fsl_common.h"
#include "fsl_iocon.h"
#include "fsl_dmic.h"
#include "fsl_dma... |
// Physical memory allocator, intended to allocate
// memory for user processes, kernel stacks, page table pages,
// and pipe buffers. Allocates 4096-byte pages.
#include "types.h"
#include "defs.h"
#include "param.h"
#include "memlayout.h"
#include "mmu.h"
#include "spinlock.h"
#include "uart.h"
void freerange(void ... |
#if !defined (__STDC__) && !defined (_AIX)
#define signed /**/
#endif
char v_char;
signed char v_signed_char;
unsigned char v_unsigned_char;
short v_short;
signed short v_signed_short;
unsigned short v_unsigned_short;
int v_int;
signed int v_signed_int;
unsigned int v_unsigned_int;
long v_long;
signed long v_... |
#define _GNU_SOURCE
#include "../headers/receiver.h"
#include "../headers/handler.h"
bool init = false;
pthread_mutex_t receiver_mutex;
/*
* Refer to headers/receiver.h
*/
void rx_run_once(
rx_cfg_t *rcv_cfg,
uint8_t buffers[][MAX_PACKET_SIZE],
socklen_t addr_len,
struct sockaddr_in6 *addrs,
s... |
#include "ntru_crypto.h"
#include "ntru_crypto_ntru_poly.h"
#include <immintrin.h>
#define PAD(N) ((N + 0x0007) & 0xfff8)
static void
grade_school_mul(
uint16_t *res1, /* out - a * b in Z[x], must be length 2N */
uint16_t const *a, /* in - polynomial */
uint16_t const *b, /* in - polynomial */
ui... |
/*
* score.c
*
* Created: 7/3/2018 12:56:12 AM
* Author: danao
Header file for Set/Get high score for the
game. Also functions for reading and writing
the player name that got the high score. High
score is stored on the EEPROM IC using the I2C
interface
*/
#include <stdio.h>
#include "score.h"
#inclu... |
/**
* \file
*
* \brief Task to manage CPU load monitoring
*
* Copyright (C) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are me... |
/* ISC license. */
#include <errno.h>
#include <stdlib.h>
#include <skalibs/sgetopt.h>
#include <skalibs/bytestr.h>
#include <skalibs/uint.h>
#include <skalibs/diuint.h>
#include <skalibs/buffer.h>
#include <skalibs/strerr2.h>
#include <skalibs/stralloc.h>
#include <skalibs/genalloc.h>
#include <skalibs/djbunix.h>
#in... |
/*
* Copyright (c) 2004-2006 <NAME> <<EMAIL>>
* Copyright (c) 2006-2015 Sippy Software, Inc., http://www.sippysoft.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistribution... |
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
typedef struct PrivateKey PrivateKey;
typedef struct PublicKey PublicKey;
typedef struct Signature Signature;
/**
* Data structure which is used to store buffers of varying length
*/
typedef struct {
/**
* Pointer to the message... |
/*
* FreeRTOS Kernel V10.0.0
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, includ... |
/*
* Copyright (C) 2012 Intel Corporation. All rights reserved.
*
* 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.... |
/*----------------------------------------------------------------------------
* File: ooaofooa_SM_PEVT_class.c
*
* Class: Polymorphic Event (SM_PEVT)
* Component: ooaofooa
*
* your copyright statement can go here (from te_copyright.body)
*--------------------------------------------------------... |
#include "l.h"
void
listinit(void)
{
fmtinstall('A', Aconv);
fmtinstall('D', Dconv);
fmtinstall('S', Sconv);
fmtinstall('W', Wconv);
fmtinstall('P', Pconv);
}
int
Pconv(void *o, Fconv *fp)
{
char str[STRINGSZ];
Prog *p;
p = *(Prog**)o;
sprint(str, "\t%A\t%D,%D", p->as, &p->from, &p->to);
strconv(str, fp);... |
/*
MIT License
Copyright (c) 2018, <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 use, copy, modify... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* $Revision: 2 $
* $Date: 16/10/25 4:29p $
* @brief Use PDMA channel 2 to transfer data from memory to memory.
*
* @copyright SPDX-License-Identifier: Apache-2.0
* @copyright Copyright (C) 202... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*
*/
/*******************************************************************... |
/*
* Copyright (c) 2014 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation files
* (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
*... |
#define _CRT_SECURE_NO_WARNINGS
#pragma comment(lib, "crypt32.lib")
#include <windows.h>
#include <stdio.h>
#include "sqlite/sqlite3.h"
#include <Shlobj.h> /* CSIDL_LOCAL_APPDATA */
#define CHROME_APP_DATA_PATH "\\Google\\Chrome\\User Data\\Default\\Login Data"
#define TEMP_DB_PATH ".\\chromedb_tmp"
#define... |
/* ----------------------------------------------------------------------------
* SAM Software Package License
* ----------------------------------------------------------------------------
* Copyright (c) 2015, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in source and binary fo... |
#include "stdlib.h"
#include "list.h"
/*
* 本链表的实现采用哑结点的结构,实际应用中这样也有好处,
* list.manager-在生成一个链表时,首先生成一个哑结点(链表头),
* 同时将对应的地址转换成handler返回给调用者,后者对该List的所用的操作都以handler为标识符
*/
struct Node {
ElementType element;
Position next;
char load[CNT_M];
};
//创建一个链表
List CreateList(void)
{
Li... |
// os.c
// Runs on LM4F120/TM4C123/MSP432
// A very simple real time operating system with minimal features.
// <NAME>
// February 8, 2016
/* This example accompanies the book
"Embedded Systems: Real Time Interfacing to ARM Cortex M Microcontrollers",
ISBN: 978-1463590154, <NAME>, copyright (c) 2016
"Embedde... |
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, prop... |
#include <linux/kernel.h>
#include <linux/mmzone.h>
#include <linux/spinlock.h>
#include <linux/smp.h>
#include <asm/atomic.h>
#include <asm/sn/types.h>
#include <asm/sn/addrs.h>
#include <asm/sn/nmi.h>
#include <asm/sn/arch.h>
#include <asm/sn/sn0/hub.h>
#if 0
#define NODE_NUM_CPUS(n) CNODE_NUM_CPUS(n)
#else
#define ... |
/*
* DB usage options.
* Location and name of DB, type of DataSotre primary key type,
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include "mdhim_options.h"
// Default path to a local path and name, levelDB=2, int_key_type=1, yes_create_new=1
// and debug=1 (mlog_CRIT)
#defin... |
#include <immintrin.h>
#include <stdint.h>
#include <stdio.h>
#include <inttypes.h>
static uint64_t combine16(uint16_t m1, uint16_t m2, uint16_t m3, uint16_t m4) {
return (((uint64_t) m4) << 48) | (((uint64_t) m3) << 32) | (((uint64_t) m2) << 16) | ((uint64_t) m1);
}
uint64_t CompareEqualByAvx(uint32_t key, cons... |
#include "idt.h"
#include "ports.h"
#include <stdint.h>
#define PIC_MASTER_COMMAND_PORT 0x20
#define PIC_MASTER_DATA_PORT 0x21
#define PIC_SLAVE_COMMAND_PORT 0xA0
#define PIC_SLAVE_DATA_PORT 0xA1
struct idt_entry_t idt_entries[256] = { 0 }; //fill with zeroes
struct idt_ptr_t idt_ptr;
extern void load_idt(uint32_t i... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <stdio.h>
#ifdef PLATFORM_NOT_LINUX
#include <lwip/inet.h>
#else
#include <arpa/inet.h>
#endif
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <aos/log.h>
#include <aos/aos.h>
#include <netmgr.h>
#include <k_err.h>
#include... |
#include <rtems.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define BUF_SIZ 1024
/******************
** output_string **
*******************
** Displays a string on the screen. Also, if the flag
** write_to_file is set, outputs the string to the output file.
** Note, this routine presumes that you... |
/*
* Copyright (c) 2015, Intel Corporation
* Author: <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,
*... |
//---------------------------------------------------------------------------
// incextend.c
//
// Functions for extending boundary instances with respect to a reference graph
//
// Much of this code was derived from the standard extend code
//
// Subdue 5
//-------------------------------------------------------------... |
/****************************/
// NOME: <NAME>
// PRONTUÁRIO: CP-300354x
/****************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
typedef struct _vetor {
int capacidade;
int tamanho;
float *data;
} Vetor;
/******** FUNÇÕES JÁ IMPLEMENTADAS ********/
Vet... |
/*
** Jo Sega Saturn Engine
** Copyright (c) 2012-2020, <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 co... |
/*
* Copyright 2017 Rockchip Electronics Co. LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
/*
* This file is part of Foreign Linux.
*
* Copyright (C) 2014, 2015 <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 op... |
/*
* Double-precision log2(x) function.
*
* Copyright (c) 2018, Arm Limited.
* SPDX-License-Identifier: MIT
*/
#include <math.h>
#include <stdint.h>
#include "libm.h"
#include "log2_data.h"
#define T __log2_data.tab
#define T2 __log2_data.tab2
#define B __log2_data.poly1
#define A __log2_data.poly
#define InvLn2... |
/******************************************************************************
* Copyright (C) 2016-2018 <NAME> *
* *
* This software is provided 'as-is', without any express or implied *
* warra... |
#include <stdio.h>
#include <Windows.h>
// Error code
#define E_ARGS -1
#define E_OPENFILE -3
#define E_OPENDIR -6
#define E_SUBDIR -7
#define E_NO_FILE -8
#define E_WRITE -9
/*
* Check if the destination path is the source path's subdirectory or not
*/
int IsSubdirectory(LPCTSTR szSourcePath, LPCTSTR szDestination... |
/* hello from 1990 - please compile with h5cc -o fast_hdf5_eiger_read.c */
#include "bitshuffle.h"
#include <hdf5.h>
#include <hdf5_hl.h>
#include <limits.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include "red_diamond.h"
/* global variables */
// mutex to control HDF5 file access, total numbe... |
/* Copyright (c) 2017 <NAME>,
*
* All Rights Reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions an... |
/*
Copyright (c) 2015, SuperHouse Automation Pty 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, this list of conditions and... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#include "io.h"
#include "version.h"
#define MAXCONF 32
Mach *m = (Mach*)MACHADDR;
Proc *up = 0;
Vectorpage *page0 = (Vectorpage*)KZERO; /* doubly-mapped to AIVECADDR */
Conf conf;
extern ulong kern... |
#include "wasm_libc_wrapper/stdint.h"
#include "wasm_libc_wrapper/stdlib.h"
#include "wasm_libc_wrapper/stdio.h"
#include "wasm_libc_wrapper/string.h"
#include"fs/fs.h"
#include"cpu/cpu.h"
#include"devices/ram.h"
//static uint16_t gra_base_cs = 0x3960; // base of ega.gra
//static uint16_t fs4_base_cs = 0x1000; // base... |
//
// Copyright (c) 2017 Intel Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, p... |
/***
Project: Web Spider (C Version)
Version: 0.2
Filename: Main.c
Start Date: Aug. 4, 2019
About: After over a year, finally writing the main function for Web Spider!
TODO: Figure out get_page_links();
***/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "Crawler.h"
#include "HT... |
/*
* listfind: find a sublist in a list and return the index of the occurence (or indices if there are more)
*
* (c) 1999-2011 <NAME>, forum::für::umläute, institute of electronic music and acoustics (iem)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Gen... |
/*
*
* Copyright 2015 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... |
#include <stdlib.h>
#include "game/scenes/cutscene.h"
#include "resources/languages.h"
#include "game/gui/text_render.h"
#include "game/game_state.h"
#include "audio/music.h"
#include "video/video.h"
#include "resources/ids.h"
#include "utils/allocator.h"
#include "utils/log.h"
#define END_TEXT 992
#define END1_TEXT ... |
/*
The MIT License (MIT)
Copyright (c) 2017 <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 use, copy, modify, merge, publis... |
#include "driver.h"
BOOLEAN g_FakeFnActive = 0;
void ProcessA1644Buffer(BYTE* buf, ULONG size)
{
BYTE* pModifier = &buf[0];
BYTE* pKey1 = &buf[2];
BYTE* pKey2 = &buf[3];
BYTE* pKey3 = &buf[4];
BYTE* pKey4 = &buf[5];
BYTE* pKey5 = &buf[6];
BYTE* pKey6 = &buf[7];
BYTE* pSpecialKey = &buf[8];
// SwapFnCtrl mod... |
/****************************************************************************
*
* Copyright (c) 2009 Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General ... |
/**
* @file waterfall.c
*
* Waterfall/Fire effect
*
* Parameters:
* - hue: Basic hue for waterfall palette. Ignored when mode = WATERFALL_FIRE
* - cooling: How much does the air cool as it rises. Less cooling = taller flames,
* more cooling = shorter flames. Suggested range 20-100.... |
// Copyright 2018 The Emscripten Authors. All rights reserved.
// Emscripten is available under two separate licenses, the MIT license and the
// University of Illinois/NCSA Open Source License. Both these licenses can be
// found in the LICENSE file.
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#inclu... |
/*
* Phoenix-RTOS
*
* Operating system kernel
*
* pmap - machine dependent part of VM subsystem (ARMv7 with MPU)
*
* Copyright 2017, 2020 Phoenix Systems
* Author: <NAME>, <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include "pmap.h"
#include "syspage.h"
#include "spinlock.h"
#include "... |
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Resea... |
/*
* Copyright (c) 2016, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 4-5____rostring.c :+: :+: :+: ... |
/*
* Copyright (c) 2010-2012, Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this... |
/* GCVideo DVI Firmware
Copyright (C) 2015-2021, <NAME> <<EMAIL>>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice... |
#include "torture.h"
#include "animinfo.h"
#include <stdio.h>
#include <io.h>
#define exists(f) (!access((f),0))
static char *skip_space(char *src)
/*****************************************************************************
*
***************************************************************************... |
/*
* Open Surge Engine
* quest.c - quest scene
* Copyright (C) 2010, 2012-2013 <NAME> <alemartf(at)gmail(dot)com>
* http://opensnc.sourceforge.net
*
* 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 ... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/// A metatype.
typedef struct {
/// The name of the type.
const char* name;
/// The size (a.k.a. stride) of the type.
const int64_t size;
/// The type-erased zero-inititiazer for instances of the type.
///
/// If `NULL`, t... |
/////////////////////////////////////////
/// ///
/// TsGh By TsGh Sniper ///
/// ///
/////////////////////////////////////////
/*
####################################################################################
# ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.