text stringlengths 5.8k 28.2k |
|---|
/*
* Copyright (c) 2012-2015 Etnaviv Project
*
* 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... |
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <assert.h>
#include "tuya_log.h"
#include "system_interface.h"
#include "network_interface.h"
#include "transport_interface.h"
#include "core_http_client.h"
#include "core_json.h"
#include "cJSON.h"
#include "aes_inf.h"
#include "uni_md5.h"
#include "... |
/*
* jpeg_read.c
*
* JPEGOBJ = JPEG_READ(FILENAME)
*
* Returns JPEGOBJ, a Matlab struct containing the JPEG header information,
* quantization tables, and the DCT coefficients.
*
* This software is based in part on the work of the Independent JPEG Group.
* In order to compile, you must first build IJG's JPEG T... |
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: <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;... |
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "common.h"
#include "git2/blob.h"
#include "git2/submodule.h"
#include "diff.h"
#include "diff_f... |
#include <rmt_core.h>
#include <signal.h>
#define TEST_MAX_KEY_LEN 64
#define TEST_MAX_STRING_LEN 128
#define TEST_MAX_FIELD_LEN 128
/* Object types */
#define TEST_TYPE_REDIS_STRING (1<<0)
#define TEST_TYPE_REDIS_LIST (1<<1)
#define TEST_TYPE_REDIS_SET (1<<2)
#define TEST_TYPE_REDIS_ZSET... |
/**
* @file uds.h
* @brief UDS(NWMUDS) local-WLAN service. https://3dbrew.org/wiki/NWM_Services
*/
#pragma once
/// Maximum number of nodes(devices) that can be connected to the network.
#define UDS_MAXNODES 16
/// Broadcast value for NetworkNodeID / alias for all NetworkNodeIDs.
#define UDS_BROADCAST_NETWORKNODEI... |
/*
*--------------------------------------
* Program Name: SCOGGER CE
* Porter: Rodger "Iambian" Weisman
* License: BSD (See LICENSE file)
* Description: Hop across all the lilipads
*--------------------------------------
*/
#define VERSION_INFO "v0.1"
#define TRANSPARENT_COLOR 0xF8
#define GM_TITL... |
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
#include "calc3.h"
#include "y.tab.h"
#include "strmap.h"
static int lbl = 0; // label
extern int errno; // error number
static int scanning = 0; // 1 for scanning; 0 for execution
static int flevel = 0; // current function call level
/* pr... |
/*
Modified sdl.c from QEMU
Sends video data over ethernet to the FPGA thin client.
Receives and processes keyboard scancodes.
The ethernet MAC address to send to is hard coded.
*/
#ifndef _WIN32
#include <signal.h>
#endif
#include "qemu-common.h"
#include "console.h"
#include "sysemu.h"
#include "x_keymap.h"
#incl... |
#ifndef CTAP_H
#define CTAP_H
#define CTAP_VERSION_MAJOR 2
#define CTAP_VERSION_MINOR 0
#define CTAP_VERSION_REV 0
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdint.h>
#include <unistd.h>
#define CTAP_NORM 0x0000
#define CTAP_TODO 0x0001
#define CTAP_SKIP 0x0002
int ... |
#include "sithSoundClass.h"
#include "stdPlatform.h"
#include "General/stdHashTable.h"
#include "Engine/sithNet.h"
#include "Engine/sithSound.h"
#include "Engine/sithSoundSys.h"
#include "Win95/stdSound.h"
#include "World/sithWorld.h"
static const char* sithSoundClass_aKeys[96] = {
"--reserved--",
"create",
... |
/* This file contains the main program of the process manager and some related
* procedures. When MINIX starts up, the kernel runs for a little while,
* initializing itself and its tasks, and then it runs PM and VFS. Both PM
* and VFS initialize themselves as far as they can. PM asks the kernel for
* all free mem... |
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "ps4.h"
#include "ps4_int.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "time.h"
#define BYTE_TO_BINARY_PATTERN "%c%c%c%c%c%c%c%c"
#define BYTE_TO_BINARY(byte) \
(byte & 0x80 ? '1' : '0')... |
/*
** February 23, 2022
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*******************... |
//###########################################################################
//
// FILE: Example_2806xHRPWM.c
//
// TITLE: High Resolution PWM Example
//
//! \addtogroup f2806x_example_list
//! <h1>High Resolution PWM (hrpwm)</h1>
//!
//! This example modifies the MEP control registers to show edge displacement
... |
/*
Native File Dialog
http://www.frogtoss.com/labs
*/
#define NFD_MAX_STRLEN 256
#define _NFD_UNUSED(x) ((void)x)
#define NFD_UTF8_BOM "\xEF\xBB\xBF"
// NFD_COMMON
// Disable warning using strncat()
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS)
# define _CRT_SECURE_NO_WARNINGS
#endif
#include <s... |
#include "mrloop.h"
#include <netinet/tcp.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netdb.h>
#include <time.h>
static int mrfd;
static char tmp[32*1024];
static int tmplen = 32*1024;
static int num_sqes = 0;
uint64_t nr_of_sqes = 0;
uint64_t nr_of_read_... |
#include "Charging.h"
#include "Def.h"
#include "App.h"
#include "Transaction.h"
// Global variables
extern Gpu_Hal_Context_t* g_pHalContext;
extern E_LANG g_language;
static int SLIDER_X = 660;
static const int MAX_ENERGY = 250;
static const int MAX_TIME = 120;
static const int MAX_COST = 32;
static const int MAX... |
#include <curses.h>
#include <stdlib.h>
#include "screen.h"
#include "buffer.h"
#include "marks.h"
#include "macros.h"
#include "cmds.h"
#include "conf.h"
#include "color.h" // for set_ucolor
#include "hide_show.h"
#include "shift.h"
#include "yank.h"
#include "history.h"
#include "interp.h"
#ifdef UNDO
#include... |
/*
* Copyright (c) 2014-2016 IBM Corporation.
* 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... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
* Copyright (c) 2010-2011 NVIDIA Corporation
* NVIDIA Corporation <www.nvidia.com>
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
#include <log.h>
#include <asm/io.h>
#include <cl... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/* Interpolation for the algorithm Toom-Cook 6.5-way.
Contributed to the GNU project by <NAME>.
THE FUNCTION IN THIS FILE IS INTERNAL WITH A MUTABLE INTERFACE. IT IS ONLY
SAFE TO REACH IT THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST
GUARANTEED THAT IT WILL CHANGE OR DISAPPEAR IN A FUTURE GNU MP ... |
//-----------------------------------------------------------------------------
// datetime.c
//
// Project: EPA SWMM5
// Version: 5.1
// Date: 03/20/14 (Build 5.1.001)
// 08/01/16 (Build 5.1.011)
// Author: <NAME>
//
// DateTime functions.
//
// Build 5.1.011
// - decodeTime() n... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <ctype.h>
#include <time.h>
#include "mem.h"
#include "defs.h"
#include "buffer.h"
#include "common.h"
#include "context.h"
#include "bitio.h"
#include "arith.h"
#include "arith_aux.h"
/////////////////////////////... |
/*
Copyright 2015 <NAME>.P.
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 writi... |
int tesla_radar_status = 0; //0-not present, 1-initializing, 2-active
uint32_t tesla_last_radar_signal = 0;
const uint32_t TESLA_RADAR_TIMEOUT = 1000000; // 1 second between real time checks
char radar_VIN[] = " "; //leave empty if your radar VIN matches the car VIN
uint8_t tesla_radar_can = 0; // 0, 1 ... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "parmt_utils.h"
#ifdef PARMT_USE_INTEL
#include <mkl_cblas.h>
#else
#include <cblas.h>
#endif
#include "iscl/memory/memory.h"
/*!
* @brief Converts the NED based fundamental faults to Green's functions which
* scale the NED based moment tensor ... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* leds-lp3944.c - driver for National Semiconductor LP3944 Funlight Chip
*
* Copyright (C) 2009 <NAME> <<EMAIL>>
*/
/*
* I2C driver for National Semiconductor LP3944 Funlight Chip
* http://www.national.com/pf/LP/LP3944.html
*
* This helper chip can drive up to 8 leds... |
/*
* Copyright (c) 2009-2018 NLNet Labs.
* 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 con... |
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <float.h>
#include <mpi.h>
#include "../src/utilities/tools.h"
#include "../src/utilities/timers.h"
#include "../src/particles/struct_particles.h"
#include "../src/run_params/struct_run_params.h"
#include "../src/run_params/run_params... |
/*
* This file is part of libwildebeest
*
* Copyright © 2020 Serpent OS Developers
*
* 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 t... |
/*
* YUV4MPEG format
* Copyright (c) 2001, 2002, 2003 <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 the License, or ... |
/*
* The software for the x0xb0x is available for use in accordance with the
* following open source license (MIT License). For more information about
* OS licensing, please visit -> http://www.opensource.org/
*
* For more information about the x0xb0x project, please visit
* -> http://www.ladyada.net/make... |
/*
* 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, STMicroelectronics - All Rights Reserved
*
* This file is part of VL53L1 Core and is dual licensed,
* either 'STMicroelectronics
* Proprietary license'
* or 'BSD 3-clause "New" or "Revised" License' , at your option.
*
****************************************************************************... |
/* 10G controller driver for Samsung SoCs
*
* Copyright (C) 2013 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* Author: <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 F... |
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* (C) Copyright 2020 Cortina Access Inc..
*/
/* Cortina NAND definition */
#define NAND_BASE_ADDR 0xE0000000
#define BCH_GF_PARAM_M 14
#define BCH_DATA_UNIT 1024
#define FLASH_SHORT_DELAY 100
#define FLASH_LONG_DELAY 1000
#define FLASH_WIDTH 16
#define BBT_PAGE_MASK 0x... |
/*
Seng 265 - Assignment 1
icsout.c
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#define MAX_LINE_LEN 132
#define MAX_EVENTS 500
/*
typdef structure used to group together data in a event data type.
*/
typedef struct event {
char dt_start[MAX_LINE_LEN]; //DTSTART
char d... |
/* hunter's webserver
* this is a simple webserver
* created April 4th 2016 by <NAME>
*/
#include <stdio.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <ctype.h>
#include <string.h>
#include <strings.h>
#include <sy... |
/**
Copyright © 2021 <NAME>
*/
///////////////////////////////////////////////////////////////////////////////
// Slots
//
struct lu_s_slot_1 {
Lu_S_Base_Cell one;
};
struct lu_s_slot_2 {
Lu_S_Base_Cell one;
Lu_S_Base_Cell two;
};
struct lu_s_slot_4 {
Lu_S_Base_Cell one;
Lu_S_Base_... |
/*
* Copyright (c) 2002-2004 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file exce... |
#include <stdint.h>
#include <string.h>
#include <avr/pgmspace.h>
#include <avr/eeprom.h>
#include "keycode.h"
#include "serial.h"
#include "host.h"
#include "action.h"
#include "action_util.h"
#include "lufa.h"
#include "rn42_task.h"
#include "print.h"
#include "debug.h"
#include "timer.h"
#include "wait.h"
#include "... |
/*
* tests-main.c: shared main() & friends for SVN test-suite programs
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for add... |
/*! @file bbsmod.h
@brief Entry points for BBS modules.
@author Alexios
This header defines the main entry (and exit) points for Megistos
modules. It handles initialising different subsets of the API depending on
the type of module.
Please be aware that this part of the library is und... |
/****************************************************************************
* arch/arm/src/stm32l5/stm32l5_lowputc.c
*
* 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 copy... |
/*
* Copyright (c) 1996-2001 <NAME>, <NAME>.
* This file is used by the simultaneous confidence band
* additions to Locfit.
*
*/
#include "local.h"
extern INT cvi;
static double *fd, *ft, *lij, *d1a;
static INT par;
void assignk0(z,d,n) /* z should be n*(2*d*d+2*d+2); */
double *z;
INT d, n;
{ d1a= z; z ... |
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <libdstr/libdstr.h>
#include <libcrypto/libcrypto.h>
#include <libditm/libditm.h>
#include "fake_pop_server.h"
char g_username[] = "<EMAIL>";
char g_password[] = "b";
unsigned int fps_pop_port = 2000;
unsigned int fps_ver_maj = 0;
unsigned int fps_v... |
/*
* 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 ... |
/*
u8x8_d_ld7032_60x32.c
Note: Flip Mode is NOT supported
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2016, <EMAIL>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following con... |
/****************************************************************************************
Y.G.THIEN
29 AUG 2012
This file contains functions related to placement macros. The term "placement macros"
refers to a structure that contains information on blocks that need special treatment
during placement ... |
/*
* Copyright (C) 2010-2013 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
*
* ... |
/*
* This file is part of nmealib.
*
* Copyright (c) 2008 <NAME>
* Copyright (c) 2011 <NAME>
*
* 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.1 of the License... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <wayland-client.h>
#include <wayland-server.h>
#include <wayland-client-protocol.h>
#include <wayland-egl.h>
#include <EGL/egl.h>
#include <GLES2/gl2.h>
#include <pthread.h>
#include <signal.h>
static char * tabs[] = {
"",
"\t",
"\t\t",
"\t\t\t",
... |
/*
Copyright (c) 2011, 2012, <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 PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
WARRANTIE... |
/*
* 1394-Based Digital Camera Control Library
*
* Juju backend for dc1394
*
* Written by <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.... |
/* keygen.c - Key generation utilities. See smime.c for user interface.
*
* Copyright (c) 1999 <NAME> <<EMAIL>>, All Rights Reserved.
* License: This software may be distributed under the same license
* terms as openssl (i.e. free, but mandatory attribution).
*
* This borrows quite heavily ideas and co... |
/*
* Copyright (c) 2019 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
*/
#include "hid_keymap.h"
#include "key_id.h"
/* This configuration file is included only once from hid_state module and holds
* information about mapping between buttons and generated reports.
*/
/* T... |
/*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* 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 TouchSensing\TouchSensing_1touchkey\Src\main.c
* @author MCD Application Team
* @brief Main program body
******************************************************************************
* @attention
*
... |
/*
Unix SMB/Netbios implementation.
smbd globals
Copyright (C) <NAME> 2009
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 option) an... |
#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... |
/*
* Copyright (c) 2015-2018 Nexenta Systems, inc.
*
* This file is part of EdgeFS Project
* (see https://github.com/Nexenta/edgefs).
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informat... |
/*********************************************************
Konami 054539 PCM Sound Chip
A lot of information comes from Amuse.
Big thanks to them.
*********************************************************/
#include "driver.h"
#include "k054539.h"
#include <math.h>
/* Registers:
00..ff: 20 bytes/channel, 8 ch... |
/*
* Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause OR Arm's non-OSI source license
*
*/
#include "cc_pal_types.h"
#include "cc_pal_mem.h"
#include "cc_common_math.h"
#include "cc_ecpki_types.h"
#include "pka.h"
#include "ec_wrst.h"
#include... |
/* pgmtopbm.c - read a portable graymap and write a portable bitmap
**
** Copyright (C) 1989 by <NAME>.
**
** Permission to use, copy, modify, and distribute this software and its
** documentation for any purpose and without fee is hereby granted, provided
** that the above copyright notice appear in all copies and tha... |
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <zephyr/types.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/conn.h>
#include <bluetooth/uuid.h>
#include <bluetooth/gatt.h>
#include <bluetooth/hci.h>
#include <sys/byteorder.h>
#include <logging/log.h>
LOG_MODUL... |
/* Constains #defined constants only. Note that this file
* has no effect on memory usage, as the table of defined
* values is removed from memory when compiling the .c files
* is complete. The .h extension could just as easily be
* .c, but as it has no actual code in it, .h seemed more
* appropriate.
*/
#defi... |
#include "mpu6000.h"
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <libopencm3/cm3/common.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/memorymap.h>
#include <libopencm3/stm32/spi.h>
#include "MadgwickAHRS.h"
#include "clock.h"
#include "leds.h"
#define GYRO_FACTOR 16.4f
#defi... |
#include "zjHttp.h"
#include <string.h>
#ifdef _ZJ_WIN32
#include <process.h>
#define CloseSocket(socket) closesocket((socket))
#define StrCaseCmp stricmp
#define CreateThreadEx(pthread,func,args) _beginthreadex(NULL, 0, ((unsigned int (__stdcall *)(void *))(func)), (args), 0, (pthread));
#define HandleThreadExcept(x)... |
#include "glut.h"
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/osmesa.h>
#include <inttypes.h>
#include <stdio.h>
#include <malloc.h>
#include <memory.h>
#include <time.h>
#include <float.h>
#include <string.h>
#include <limits.h>
#include "TypeConverts.h"
#include "ds.h"
#include "RWObj.h"
#include "Bitmap.h"... |
#include <stdint.h>
#include <stdio.h>
#include <avr/interrupt.h>
#include <avr/eeprom.h>
#include <avr/io.h>
#include "reset.h"
#include "DCC_Decoder.h"
#include "DCC_Packet.h"
#include "DCC_Config.h"
#include "Motor.h"
#include "FX.h"
#include "globals.h"
#define CONSIST_MATCH 0x01
#define ADDRESS_MATCH 0x02
//TODO... |
// +build linux
#include <errno.h> // for errno reporting
#include <stdint.h> // for uintptr_t
#include <stdlib.h> // for calloc
#include <net/if.h> // for if_nametoindex
#include <unistd.h> // for getpagesize
#include <string.h> // for memcpy, strerror
#include <poll.h> //... |
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of this file
* that are no... |
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
struct coordinates{
int x;
int y;
};
typedef struct coordinates coordinates;
struct snakes{
char xStart;
char yStart;
char xEnd;
char yEnd;
};
typedef struct snake snake;
struct ladders{
char xStart;
char ySt... |
/**
Copyright (c) 2010-2015, <NAME> and CONTRIBUTORS
The AEGeAn Toolkit is distributed under the ISC License. See
the 'LICENSE' file in the AEGeAn source code distribution or
online at https://github.com/standage/AEGeAn/blob/master/LICENSE.
**/
#include <getopt.h>
#include <string.h>
#include "genometools.h"
#inclu... |
/*
* Copyright (C) 2020 Southern Storm Software, Pty Ltd.
*
* 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, ... |
#include "stm32l476xx.h"
#include <stdio.h>
//***************************************************************
// BlueScribe microcontroller software
// This file, when compiled and loaded with Keil uVision 5
// programs the STM32L476G microcontroller on the Discovery Board
// used to control the laser engraver.
... |
/*****************************************************************************
* Copyright 2005 <NAME> *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may n... |
/*
* Copyright (c) 2016 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, ... |
#include "drally.h"
#include "drally_keyboard.h"
#pragma pack(1)
enum e_difficulty {
SPEED_MAKES_ME_DIZZY,
I_LIVE_TO_RIDE,
PETROL_IN_MY_VEINS
};
typedef byte name_t[12];
typedef struct dr_cfg {
byte soundtype;
byte soundirq;
byte sounddma;
dword soundaddr;
byte key;
... |
#include <pebble.h>
// Default value
#define STEPS_DEFAULT 1000
#define R0OX 72
#define R0OY 3
#define R0IX 72
#define R0IY 33
#define R0MX 72
#define R0MY 53
#define R1OX 102
#define R1OY 11
#define R1IX 87
#define R1IY 37
#define R1MX 77
#define R1MY 54
#define R2OX 123
#define R2OY 33
#define R2IX 97
#define R2I... |
/* $Id: log-vbox.cpp $ */
/** @file
* VirtualBox Runtime - Logging configuration.
*/
/*
* Copyright (C) 2006-2015 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify i... |
/* Fine Offset Electronics sensor protocol
*
* Copyright (C) 2017 <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, or
* (at your option) any later ve... |
/*
* File: tls-ccm-record.c
* Description: TLS record layer using CCM for encryption and authentication.
* Author(s): <NAME>
*
* Copyright 2010 by Ember Corporation. All rights reserved. *80*
*/
// TLS is described in RFC 5246.
#include "core/ember-stack.h"
#include "mac/802.15.4/802-15-4-ccm.h"
... |
/*
* This file is part of TISEAN
*
* Copyright (c) 1998-2007 <NAME>, <NAME>, <NAME>
*
* TISEAN 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... |
/*
* ***** 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 d... |
/*
* gstvp8parser.c - VP8 parser
*
* Copyright (C) 2013-2014 Intel Corporation
* Author: <NAME> <<EMAIL>>
* Author: <NAME> <<EMAIL>>
*
* 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 Fo... |
/******************** (C) COPYRIGHT 2013 **************************************
* File Name : gate.c
* Author : deh
* Date First Issued : 07/22/2013
* Board : sensor board RxT6 w STM32F103RGT6
* Description : sensor w FTDI for a PC<->CAN gateway
********************************... |
/*
* @file ym_atarist_oldtable.c
* @brief YM-2149 emulator
* @author http://sourceforge.net/users/benjihan
*
* Copyright (C) 1998-2011 <NAME>
*
* Time-stamp: <2011-11-05 11:39:38 ben>
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public ... |
#include <stdbool.h>
#include <stdint.h>
#include <tice.h>
#include "game.h"
#include "gfx.h"
#include "logic.h"
#include "tile.h"
#include "util.h"
/* Check if the tile at (x,y,z) can be removed */
bool is_removable(uint8_t x, uint8_t y, uint8_t z) {
/* Fail if the tile has already been removed */
if(!get_type(... |
/*
* Copyright 2018-2019 Redis Labs Ltd. and Contributors
*
* This file is available under the Redis Labs Source Available License Agreement
*/
#include "ast_build_op_contexts.h"
#include "ast_build_ar_exp.h"
#include "../util/arr.h"
#include "../arithmetic/repository.h"
#include "../arithmetic/arithmetic_expressi... |
/*
*
* u8x8_d_st75263.c
*
* Copyright (c) 2015-2020 ACOINFO Co., Ltd.
* All rights reserved.
*
* Author: Yu.Kangzhi <<EMAIL>>
*
* ST75263: provides 2 kinds of display mode 4-Gray/Monochrome sacle mode
* The built-in DDRAM is an addressable memory array with 256 columns by
* 81 rows (256 x 81 x 2 bit). For ex... |
/*
* Copyright (c) 2010-2012 Balabit
* Copyright (c) 2009-2011 <NAME>
*
* 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, or (at your option) any later version.
*
* This program ... |
#include "geminc.h"
#include "gemprm.h"
#include "Nxm.h"
#include "vgstruct.h"
#include "drwids.h"
#include "pgprm.h"
#include "hints.h"
#include "proto_xw.h"
#define THRESHOLD 0.0001
static int _maxAllowPts = MAXPTS; /* functional limit */
static float *_dcX, *_dcY;
static int _dcN;
static int _ne... |
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
** Software License B, Version 1.1 (the "License"), the contents of this
** file are subject only to the provisions of the License. You may not use
** this file except in co... |
#include <stdio.h>
#include <sys/wait.h>
#include <getopt.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <string.h>
#include <locale.h>
#include <sys/time.h>
#include <time.h>
#include <sys/queue.h>
#include <math.h>
#include <errno.h>
#include "glo... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "bst.h"
void print_arr(int *a, int n) {
int i;
printf(" [");
for(i = 0; i < n; i++)
printf(" %i ", a[i]);
printf("]\n");
}
void swap(int *a, int *b) {
int tmp = *a;
*a = *b;
*b = tmp;
}
void pe... |
/***************************************************************************//**
* @file
* @brief Implements the communication core functionality
* for the EZSP SPI protocol
*******************************************************************************
* # License
* <b>Copyright 2022 Silicon Laboratories ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.