text stringlengths 3.08k 10.5k |
|---|
/*
* NAppGUI Cross-platform C SDK
* 2015-2022 <NAME>
* MIT Licence
* https://nappgui.com/en/legal/license.html
*
* File: arrpt.h
* https://nappgui.com/en/core/arrpt.html
*
*/
/* Arrays of pointers */
#define arrpt_create(type)\
arrpt_##type##_create((uint16_t)sizeof(type*))
#define arrpt_copy(array, fun... |
/* Subroutines for insn-output.c for NetWare.
Contributed by <NAME> (<EMAIL>)
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
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 Found... |
/*
* A program to demonstrate simple graphical operations
*/
/* This line allows the compiler to understand the
* graphics functions
*/
#include <graphics_lib.h>
int draw_stickman(user_x,user_y,colour)
{
GFX_InitWindow(2000,1000); // bring up the window
switch (colour)
{
case 1:
... |
/*
# This file is part of libkd.
# Licensed under a 3-clause BSD style license - see LICENSE
*/
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "kdtree.h"
#include "kdtree_fits_io.h"
#include "ioutils.h"
#include "fitsioutils.h"
#include "errors.h"
#include "... |
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <png.h>
#define HLEN 8
typedef unsigned char Uint8;
typedef unsigned short Uint16;
typedef unsigned int Uint32;
typedef unsigned long Uint64;
typedef struct {
char name[256];
png_structp imgptr;
png_infop infoptr;
Uint8 hea... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <sqlite3.h>
#include "mex.h"
#include "structlist.h"
#define TYPECHECK(ARRAY, ...) \
do { \
mxClassID got = mxGetClassID(ARRAY); \
mxClassID expect[] = { __VA_ARGS__ }; \
int i, n = sizeof expect / ... |
#include <asf.h>
#include "board_io.h"
#include "conf_board.h"
// default values for DAC, pots
typedef struct {
uint16_t i0_dac;
uint16_t v0_adc;// not used
uint16_t i0_adc;// not used
uint16_t p1_simv;
uint16_t p2_simv;
} ch_params;
static const ch_params def_data = {
.i0_dac = 26600,
.... |
//
// main.c
// Test1
//
// Created by <NAME> on 30/10/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include "run.h"
#include "input.h"
#define DIRECT_N_CONST(condutivity) (sqrt(2)/(sqrt(2)+1))*(1-condutivi... |
๏ปฟ#define _CRT_SECURE_NO_WARNINGS
#include "header.h"
int uiShowMyInfo(Account* login, int login_id_num) {
int triangle;
char ch;
system("cls");
gotoxy(5, 3);
printf("=====================================================================================\n");
gotoxy(5, 4);
printf("\t\t\t\t\t My Info"); // ํ
5๊ฐ... |
#include "drivers/vgatext.h"
#include "io.h"
#include "libk/libk.h"
volatile char *k_vgatext_offset_ptr = (char *)K_VGATEXT_START;
volatile u16 k_vgatext_offset_row = 0;
volatile u16 k_vgatext_offset_column = 0;
volatile u8 k_vgatext_color = K_VGATEXT_COLOR_WHITE;
void k_vgatext_fill(u8 color, char fill) {
char *p... |
/**
* @file gui_w_led.c
* @brief led implementation
* @author <NAME> <<EMAIL>>
* @version 0.1b
* @date (yyyy-mm-dd) 2013-07-13
* Licence: MIT
*/
#include "gui_w_led.h"
/**
* led
*/
typedef struct {
uint8_t /*@null@*/ *str; /*string associated to the led*/
const uint8_t *pState; /*pointer to ... |
/*
* Hardware cursor support for TCX
*
* Copyright 2000 by <NAME> <<EMAIL>>.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without
* fee, provided that the above copyright notice appear in all copies
* and that both that copyrig... |
#include "session_list.h"
anjay_node* insert_anjay_node(organizer_node* Gateway,
int InternalID, uint8_t* GlobalID, int LengthOfGlobalID, int mid) {
// organizer ไธanjay่็นๅ่กจไธบ็ฉบ๏ผๅๆทปๅ ๅจๅคด้จ
if(Gateway->anjay_client_node == NULL) {
Gateway->anjay_client_node = (anjay_node*) malloc(sizeof(anjay_node));
... |
/* ui_item.c
<NAME> (<EMAIL>), 23 Jun 2021
FreeBSD-style copyright and disclaimer apply
*/
#include "common.h"
#include "render/ui.h"
#include "ui/ui.h"
#include "game/chunk.h"
#include "items/config.h"
// -----------------------------------------------------------------------------
// core
// -----------------... |
/*
linphone
Copyright (C) 2016 Belledonne Communications SARL
(<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 version.
This... |
#include "server.h"
#include "rpc_logging.h"
#include "commondefs.h"
#include "re_collect_named.h"
#include <arpa/inet.h>
#include <unistd.h>
#include <stdio.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <signal.h>
int glob... |
// FILE: dg_comm.c
// This file contains routines to hand MUD to player communication.
#include "conf.h"
#include "sysdep.h"
#include "structs.h"
#include "dg_scripts.h"
#include "utils.h"
#include "comm.h"
#include "handler.h"
#include "db.h"
#include "spells.h"
#include "constants.h"
extern struct room_data *world... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<stdlib.h>
#include <time.h>
#include <stdbool.h>
#include "Generate_data.h"
/*Helper functions are written in the file to create the required data set to be streamed and send to console*/
#if (!UNITTEST)
bool GenRandomParameter(int *randomNo)
{
... |
/*
* Copyright 2012 ARM Limited
* 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 conditi... |
/*
* ldvector.c - platform dependent DSO containing freebl implementation.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifdef FREEBL_NO_DEPEND
extern int ... |
/*--------------------------------------------------------------------------------------------------
*
* ybc_builtin.c
* Commands to call YugaByte builtin functions.
*
* Copyright (c) YugaByte, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in ... |
/*
* e_bpf.c BPF exec proxy
*
* This program is free software; you can distribute 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.
*
* Authors: <NAME> <<EMAIL>>
*... |
#include "dm_mem.h"
#include "platform/dm_platform.h"
#include "dm_logger.h"
#include "core/dm_logger.h"
#include <string.h>
#include <stdio.h>
typedef struct dm_mem_db
{
size_t allocs[DM_MEM_UNKNOWN];
size_t total;
} dm_mem_db;
static const char* mem_tag_str[] = {
"ENGINE ",
"PLATFORM ",
... |
/*****************************************************************************
*
* \file
*
* \brief IMA/DVI ADPCM functions usage
*
* Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use ... |
//#############################################################################
//! \file /examples/common/examples_setup.c
//!
//! \brief Initialization routines for the FPU library examples
//! \author <NAME>
//! \date Feb 26, 2015
//
// Group: C2000
// Target Family: F2837x
//
//###############... |
/*
* 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... |
#include <stdio.h>
#include <string.h>
#include "../include/tctl_vector.h"
#include "../include/tctl_pointer_iterator.h"
#include "../include/tctl_algobase.h"
#include "../include/tctl_int.h"
#include "../include/auto_release_pool.h"
#include "../include/tctl_arg.h"
#include "../include/tctl_any.h"
#define Import VECT... |
#include "captest.h"
#include <fsm/alloc.h>
#include <fsm/capture.h>
#include <fsm/pred.h>
#if CAPTEST_RUN_SINGLE_LOG
#include <fsm/print.h>
#endif
#define FAIL(MSG) \
fprintf(stderr, "FAIL: %s:%d -- %s\n", \
__FILE__, __LINE__, MSG); \
exit(EXIT_FAILURE)
int
captest_getc(void *opaque)
{
struct captest... |
#include "skat/reizen.h"
#undef REIZEN_HDR
#define REIZ_PHASE_HDR_TO_STRING
#include "skat/reizen.h"
#include "skat/card.h"
#include "skat/skat.h"
#define REIZWERTE_LENGTH (63)
const uint16_t reizwerte[REIZWERTE_LENGTH] = {
18, 20, 22, 23, 24, 27, 30, 33, 35, 36, 40, 44, 45,
46, 48, 50, 54, 55, 5... |
/*
** mouse:~ppr/src/pprdrv/pprdrv_nup.c
** Copyright 1995--2005, Trinity College Computing Center.
** Written by <NAME>.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions are met:
**
** * Redistributions of source code must r... |
/*
* Double-precision erfc(x) function.
*
* Copyright (c) 2019-2022, Arm Limited.
* SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
*/
#include <stdint.h>
#include <math.h>
#include <errno.h>
#include "math_config.h"
#define AbsMask (0x7fffffffffffffff)
#define xint __erfc_data.interval_bounds
#d... |
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <libgen.h>
// squashfuse headers
#include "fuseprivate.h"
#include "ll.h"
#include "nonstd.h"
// app headers
#include "commands.h"
#define PIPE_STATUS_MSG_LENGTH 1
/**
* Prepare low level filesystem operations struct to be used by fuse
*/
struct... |
//
// Created by maxim on 5/13/19.
//
#include "score.h"
int levels[MAX_LEVELS * MAX_ENEMIES] = {
// tic body zombie slug ghost slicer
10, 5, 0, 0, 0, 0,
10, 10, 0, 0, 0, 0,
10, 10, 5, 0, 0, 0,
10, ... |
/*
* bsp.c
*
* Created on: Feb 10, 2017
* Author: baram
*/
#include "bsp.h"
#include "hw.h"
#include "led.h"
//-- Internal Variables
//
USBD_HandleTypeDef USBD_Device;
//-- External Variables
//
//-- Internal Functions
static void SystemClock_Config(void);
//-- Exter... |
/* $OpenBSD: mips64_machdep.c,v 1.2 2010/11/24 21:16:28 miod Exp $ */
/*
* Copyright (c) 2009, 2010 <NAME>.
*
* 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... |
/*
* Copyright 2018-2019 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "wwd.h"
#include "wwd_wiced.h"
/*******************************************************************************
* Definitions
******************************************************************************/
#de... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <limits.h>
#include <math.h>
#include "ReversePolishNotation.h"
//////////////////////////////////////////////////
const RPNE_t operators[] = {
// operator/operand, ใใใใpriority, type
// {OPERAND, INT_MAX, ... |
/*
* Software Development Kit for Fisilink
* @file: rbmem.c
* @description:
* @note: Copyright (C) 2020
*
* You should have received a copy of the Fisilink License
* along with this program; if not, write to Fisilink
*/
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <inttypes.h> //... |
#include <fcntl.h>
#include <stdio.h>
#include <unistd.h>
#include "sdb_private.h"
int fd_usb;
int id_process = 0;
SDBQueue sdb_usb_queue_send;
SDBQueue sdb_usb_queue_receive;
static unsigned char *mcs_to_usb(const struct SDBPacket *sdb_packet,
int *usb_packet_size)
{
unsigned cha... |
/*
* copyright 2015 <NAME>
*
* licensed under the apache license, version 2.0 (the "license");
* you may not use this file except in compliance with the license.
* you may obtain a copy of the license at
*
* http://www.apache.org/licenses/license-2.0
*
* unless required by applicable law or agreed to in wr... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "logic_symbol.h"
#include "parser.tab.h"
logsym* symtab;
int num_symbols;
void add_symbol(int num, bool value);
void read_symtab(const char* file);
void destroy_symtab(logsym* sym);
void insert_into_logtab(char* tab);
void prin... |
#ifndef CIRCULAR_BUFFER
#define CIRCULAR_BUFFER
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
typedef struct
{
bool is_empty;
unsigned char * data_... |
#include <string.h>
#include <ncurses.h>
#include "utils.h"
#include "Gameoflife.h"
static WINDOW * gameWin = NULL; /* Window for game grid */
static WINDOW * borderWin = NULL; /* Window for border */
static unsigned char * cur_tab = NULL;
static unsigned char * tmp_tab = NULL;
static unsigned char * t1 = NULL; /* ... |
#include "core/io.h"
#include <avr/eeprom.h>
#include <avr/io.h>
#include <stdlib.h>
#include <string.h>
#include "core/log.h"
#define NOT_A_PORT 0
const uint16_t port_to_input[] = {
NOT_A_PORT, NOT_A_PORT, (uint16_t)&PINB, NOT_A_PORT, NOT_A_PORT,
(uint16_t)&PINC, NOT_A_PORT, NOT_A_PORT, (uint... |
extern bool g_suspend_state;
extern rgb_config_t rgb_matrix_config;
void set_layer_color(int layer) {
#define SET_COLOR(H, S, V) hsv.h = H; hsv.s = S; hsv.v = V;
for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
uint8_t color = pgm_read_byte(&ledmap[layer][i]);
HSV hsv;
if (color == COLOR_TRANS) { continu... |
/*
Copyright 2015 Google Inc. 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 required by applicable law or agreed to in wri... |
/****************************************************************************
* wb_uart_uex_drv.c
****************************************************************************/
#include "uex.h"
#include "wb_uart_dev.h"
static void wb_uart_dev_irq(struct uex_dev_s *devh) {
wb_uart_dev_t *dev = (wb_uart_dev_t *)devh;
... |
/*
** Copyright (c) 2018, <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 c... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <iksemel.h>
#define STACK_SIZE 8192
iksparser *p;
iksfilter *filter;
iks *presence_tag = NULL;
int default_timeout = 1;
int had_bytes_in = 0;
iks *roster_node = NULL;
char s_err [1024];
int verbose = 0; /* if =1 then print XML stream to stderr */
... |
/*
Copyright (C) 2006-2009 <NAME>
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "util.h"
#define XC_LDA_X_1D 21 /* Exchange in 1D */
typedef... |
/* $Header: /home/schj/src/vamps_0.99g/src/util/RCS/utout.c,v 1.12 1999/01/06 12:13:01 schj Alpha $ */
/* $RCSfile: utout.c,v $
* $Author: schj $
* $Date: 1999/01/06 12:13:01 $
*/
static char RCSid[] =
"$Id: utout.c,v 1.12 1999/01/06 12:13:01 schj Alpha $";
#include "vamps.h"
#include "swatsoil.h"
#include "def... |
/****************************************************************************
*
* $Id: v2u_png.c 10849 2010-09-06 10:45:37Z monich $
*
* Copyright (C) 2003-2010 Epiphan Systems Inc. All rights reserved.
*
* Implements the v2u_write_png function
*
*********************************************************... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <time.h>
#include <signal.h>
#include "common.h"
#include "server.h"
int main() {
if (atexit(close_queue) == -1) {
EXIT_MSG("Server: registering server's at... |
/***
Copyright 2014 <NAME>
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, Ve... |
/**
* @file keyboardtest.c
* @author <NAME> (<EMAIL>)
* @brief N64 test ROM for RandNET Keyboard peripheral
*/
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <stdint.h>
#include <time.h>
#include <libdragon.h>
#define KEYBOARD_IDENTIFIER 0x0002
const char * format_controller_identifier( uint... |
/**
* 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... |
/*
* Copyright (c) 2017-2018 ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <errno.h>
#include <common/debug.h>
#include <drivers/delay_timer.h>
#include <lib/mmio.h>
#include <sunxi_mmap.h>
#define RSB_CTRL 0x00
#define RSB_CCR 0x04
#define RSB_INTE 0x... |
/*++ BUILD Version: 0001
*
* WOW v1.0
*
* Copyright (c) 1991, Microsoft Corporation
*
* WMMSTRUC.H
* WOW32 16-bit MultiMedia structure conversion support
*
* History:
* Created 13-Feb-1992 by <NAME> (miketri) after jeffpar
*
--*/
/*++
Hack to make the code work with current MIPS ... |
#include "simplify.h"
#include <stdbool.h>
#include "mesh.h"
#include "q.h"
#include "edges.h"
#include "preserve_bounds.h"
#include "valid_pairs.h"
#include "targets.h"
#include "pair_heap.h"
#include "mesh_inversion.h"
#include "contract_pair.h"
#include "clean_mesh.h"
// #define DEBUG
#include <time.h>
void _sim... |
/***************************************************************************
Jaleco color blend emulation
****************************************************************************
This implements the behaviour of color blending/alpha hardware
found in a small set of machines from the late 80's.
T... |
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include "app.h"
#include "stack/ble/ble.h"
extern uint8_t ota_is_working;
extern uint8_t ble_connected; // bit 0 - connected, bit 1 - conn_param_update, bit 2 - paring success, bit 7 - reset device on disconnect
#define ADV_BUFFER_SIZE 28
typedef struct __attrib... |
#include "cpio.h"
#include "uart.h"
typedef struct{//cpio_newc_header
char c_magic[6];
char c_ino[8];
char c_mode[8];
char c_uid[8];
char c_gid[8];
char c_nlink[8];
char c_mtime[8];
char c_filesize[8];
char c_devmajor[8];
char c_devminor[8];
char c_rdevmajor[8];
char c_rdevminor[8];
char c_namesize[8];
c... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dolos2x.h"
#define CMD_READ 0x0
#define CMD_ERASE_SETUP 0x60
#define CMD_ERASE_CONFIRM 0xD0
#define CMD_WRITE_SETUP 0x80
#define CMD_WRITE_CONFIRM 0x10
#define BLOCK_SZ 512
static FILE* nandFp;
static void* nandRegs;
static int addrCounter = 0;
st... |
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* High-level firmware API for loading and verifying rewritable firmware.
* (Firmware portion)
*/
#include "sysincludes.h"
#include "bmpblk_h... |
#include <iopcontrol.h>
#include <iopheap.h>
#include <kernel.h>
#include <sifrpc.h>
#include <loadfile.h>
#include <stdio.h>
#include <unistd.h>
#include <time.h>
#include <string.h>
#include <libcdvd.h>
#include <fcntl.h>
#include <sbv_patches.h>
#include <libpad.h>
#include <stdio.h>
#include <debug.h>
#include <f... |
#include "../includes/functions.h"
void error_and_die(const char errormsg[]){
perror(errormsg);
close(listenfd);
free(buf);
exit(EXIT_FAILURE);
}
void die(const char msg[]){
printf("%s\n", msg);
close(listenfd);
free(buf);
exit(EXIT_FAILURE);
}
void ctrlc(){
fprintf(stdout,"Bye\n");
close(listenfd);
free(... |
#include <errno.h>
#include <stdio.h>
#include <dmacman.h>
#include <dev9.h>
#include <intrman.h>
#include <loadcore.h>
#include <modload.h>
#include <stdio.h>
#include <sysclib.h>
#include <thbase.h>
#include <thevent.h>
#include <thsemap.h>
#include <irx.h>
#include <smapregs.h>
#include <speedregs.h>
#include <net... |
#include "SocketFunc.h"
#include <unistd.h>
unsigned short checksum(unsigned short * buffer, int bytes)
{
unsigned long sum = 0;
unsigned short answer = 0;
int i = bytes;
while(i>0)
{
sum+=*buffer;
buffer+=1;
i-=2;
}
sum = (sum >> 16) + (sum & htonl(0... |
/*
* (C) 2016 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or withโ
* out modification, are permitted provided that the following conโ
* ditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and th... |
/*
* Copyright (c) 2011 <NAME>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, arepermitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of co... |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
/* See LICENSE file for copyright and license terms. */
/*
* file_signature.c: implementation of functions related to the file
* signature section in the EPAI format.
*/
#include "../common.h"
#include "../epai.h"
/* According to spec, all file signatures must be of exactly this length. */
static const int file... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/vga256/drivers/s3v/s3v_misc.c,v 1.1.2.3 1997/05/28 13:12:53 dawes Exp $ */
/*
*
* Copyright 1995-1997 The XFree86 Project, Inc.
*
*/
/*
* Various functions used in the virge driver.
* Right now, this only contains the PCI probing function.
*
* Created 18/03/97 by... |
/*
* diskio.c
*
* Created on: Jul 31, 2014
* Author: liyixiao
*/
#include "fatfs_dri.h"
#include <t_syslog.h>
#include "syssvc/serial.h"
#include "../starterware_c6748_mmcsd/src/mmcsd_proto.h"
#include "../ff10b/src/ff.h"
#include "../ff10b/src/diskio.h"
/**
* Device Control Interface for FatFS
*/
/* Fa... |
//
// encoding.c
//
// Copyright ยฉ 2020 by Blockchain Commons, LLC
// Licensed under the "BSD-2-Clause Plus Patent License"
//
#include "slip39-errors.h"
#include "wordlist-english.h"
#include "util.h"
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
/////////////////////////////////... |
/*
* $id: ssl.c <NAME> <<EMAIL>>
*
* 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 ... |
/*
This file is part of GNUnet.
Copyright (C) 2009, 2010, 2016 GNUnet e.V.
GNUnet 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, or (at your
option) any later vers... |
/*
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/lice... |
/*
* Copyright 2018 Digital Media Professionals Inc.
* 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 applica... |
/* mdioBootLoadCLD.c */
/************************************************************************************
* Copyright (c) 2015 Aquantia
*
* 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 p... |
#include "my_top.h"
/*
* Verifica se o nome do diretรณrio รฉ um nรบmero
*/
int is_number(char input[]) {
for (int i = 0; i < strlen(input); i++) {
if (isdigit(input[i]) != 0) { return 0; }
}
return 1;
}
/*
* Ordena os processos pela % CPU
*/
void sort_proc(t_my_top my_top[], int n) {
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <locale.h>
#include <wchar.h>
#include "printc.h"
#include "termwidth.h"
#include "checkalloc.h"
#include "getinput.h"
#include "strtrm.h"
// ====================================
// ------- ๐๐ช๐ฃ๐๐ฉ๐๐ค๐ฃใ๐ฟ๐๐๐๐ฃ๐๐ฉ๐๐ค๐ฃ๐จ ... |
/*
* sync fence tests with one timeline
* Copyright 2015-2016 Collabora Ltd.
*
* Based on the implementation from the Android Open Source Project,
*
* Copyright 2012 Google, Inc
*
* 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 "vector.h"
#include "table.h"
#include "error.h"
#include "node.h"
static char *prefix = NULL;
extern Vector *string_list;
Node *new_node(u_int8_t kind, int value, Symbol *symbol, void *p_union, Node *rhs)
{
Node *node = malloc(sizeof(Node));
if (node == NULL)
fu... |
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "../rules/rules.h"
#include "../tagger/tags.h"
#include "../rules/rule_io.h"
#include "../util/fileio.h"
#define MAX_TRIGGER_FN_STR_LEN 34
char *trigger_fns[13]= {
"prev_tag_is",
"next_tag_is",
"prev_... |
/*********************************************************************
* _ _ _
* _ __ | |_ _ | | __ _ | |__ ___
* | '__|| __|(_)| | / _` || '_ \ / __|
* | | | |_ _ | || (_| || |_) |\__ \
* |_| \__|(_)|_| \__,_||_.__/ |___/
*
* www.rt-labs.com
* Copyright 2021 rt-labs AB, Sweden.
... |
/*
* 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 ... |
/**
* @file
* @brief ใฒใผใ ใฎใณใณใใญใผใฉใผ
*/
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "glut.h"
#include "config.h"
#include "state.h"
#include "scene/game/game.h"
#include "scene/game/enemy.h"
#include "scene/game/player.h"
#include "scene/game/render.h"
... |
/*
+--------------------------------------------------------------------------+
| CHStone : a suite of benchmark programs for C-based High-Level Synthesis |
| ======================================================================== |
| |
| * Colle... |
#include "sasm.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int sasm_write_byte(FILE *fp, uint8_t byte)
{
if(fp == NULL)
return 0;
uint8_t *byte_ptr = malloc(sizeof(uint8_t));
if(byte_ptr == NULL)
return 0;
*byte_ptr = byte;
return fwrite(byte_pt... |
/***************************************************************************/
/* */
/* gxvmorx.c */
/* */
/* ... |
/*
* Copyright 2014-2019 Real Logic 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
/*
* 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... |
/* ptp-private.h
*
* Copyright (C) 2011 <NAME> <<EMAIL>>
*
* 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; either
* version 2 of the License, or (at your option) any later version.... |
#include "wrappers.h"
#ifndef MAXJOBS
#define MAXJOBS 16
#endif
#define MAXCMD 16
void reap_all_children();
static pid_t parse_pid(char *arg);
static void print_terminated_job(pid_t pid);
extern pid_t jobs[];
extern pid_t fg_job;
/* local globals */
static char job_status[MAXJOBS] = {0}; /* 0: Running, 1: Stoppe... |
/**********************************************************************
*
* PROJECT: Mylly GUI Test App
* FILE: UnitTest.ElementList.c
* LICENCE: See Licence.txt
* PURPOSE: A window with a list of elements to test.
*
* (c) <NAME> 2013
*
*******************************************************************... |
/* This program is designed to simulate the game of life,
we have coded three functions that help in the game.
the first function helps calculating the number of live neighbours by checking all the elements around the current element.
If the surrounding element is on the board, then it checks if it live or dead.
To upd... |
#include "pix.h"
#include "gl3w.h"
typedef struct Color
{
char r;
char g;
char b;
} Color;
HWND g_window_handle;
HDC g_device_context;
HGLRC g_rendering_context;
GLuint g_screen_texture;
Color* g_pixels;
GLuint g_geometry;
GLuint g_shader;
GLuint g_shader_texture_samler_id;
unsigned g_window_width;
unsign... |
/***************************************************************************//**
* @file main_s0.c
* @brief Use the ADC to take a nonblocking measurements in EM1. The PRS
* redirects GPIO signals to start ADC single conversions. The DMA moves
* completed conversions to a SW buffer
*********************************... |
/*-
* Copyright (c) 2006,2008 <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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.