text stringlengths 3.08k 10.5k |
|---|
/*
Labels of LCD pins must be as follows.
LCD_D7
LCD_D6
LCD_D5
LCD_D4
LCD_RS
LCD_E
In LCD_SetCursor first argument is row's number and second argument is columns number. (they start from 1)
In LCD_CreateChar, first argument is Char's location and second argument is an array containing data for every row of charact... |
/* <NAME>
* March 19, 2017
* Part of my A* project
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "Astar.h"
int** pathToArray(path* p, int** blank)
{
for (int i = 0; i < p->length; i++){
int c;
if(i == 0)
c = 10;
else if(i == p->length -1)
c = 11;
else
c... |
/*
* Copyright (c) 2004, National ICT Australia
*/
/*
* Copyright (c) 2007 Open Kernel Labs, Inc. (Copyright Holder).
* All rights reserved.
*
* 1. Redistribution and use of OKL4 (Software) in source and binary
* forms, with or without modification, are permitted provided that the
* following conditions are met... |
#include "common.h"
#include "math3d.h"
#include "objfile.h"
#define LINEBUF_SIZE 1024
static
bool read_line(char* to, const char** data)
{
char* wp = to;
const char* buf = *data;
while (wp == to) {
if (!*buf)
return false;
// skip whitespace
while (*buf && isspace(*buf))
++buf;
// skip comments
if... |
/*-
* Copyright (c) 1997 <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, this list of co... |
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferab... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "generic_vector.h"
#include "mystring.h"
#include "dictionary.h"
// I use TRUE / FALSE in a few functions to represent "0" and "1"
#define TRUE 1
#define FALSE 0
/* This function will return a vector of a vector of mystrings. It ... |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2021 <NAME> for Adafruit Industries
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... |
/*
* QTest testcase for fuzz case
*
* Copyright (c) 2020 <NAME> <<EMAIL>>
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
#include "qemu/osdep.h"
#include "libqos/libqtest.h"
/*
* This used to trigger the assert in scsi_dma_c... |
#include <stdlib.h> // just to define NULL ptr
typedef struct __subsum { //list element containing information about subarray sum
int sum;
int start; // summing from start
int end; // to end (not including end itself)
struct __subsum *next;
} subsum;
subsum ss_EMPTY = {0,0,0,NULL}; //just an 'empty' element
... |
/* $OpenBSD: trace.c,v 1.3 2015/01/16 16:18:07 deraadt Exp $ */
/*
* Copyright (c) 2013 <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 copies.
*
... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/queue.h>
#include "types.h"
#include "gc.h"
#define USE_GC 0 // switch this to 1 to use your gc(...)
extern RValue our_code_starts_here() asm("our_code_starts_here");
extern void error(RValue code, RValue v) asm("error");
exter... |
//
// spi.c
// Copyright (c) 2017 <NAME> Silva
// Este arquivo estรก sob a licenรงa MIT
//
//
// Este arquivo define as funรงรตes e dados necessรกrios
// para interfacear com o mรณdulo LCD
//
#include "default.h"
#include <util/delay.h>
#define E_PORT PORTB
#define E_BIT 0
#define B1_PORT PORTB
#define B1_BIT 3
#define B... |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2016 INRIA.
*
* 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
*
*... |
/* GTK - The GIMP Toolkit
* gtkfilechooserembed.h: Abstract sizing interface for file selector implementations
* Copyright (C) 2004, Red Hat, Inc.
*
* 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 Softw... |
/*
Copyright (c) 2014 Tightrope Media Systems inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the r... |
/*
* Copyright (c) 2002-2018 "Neo4j,"
* Neo4j Sweden AB [http://neo4j.com]
*
* This file is part of Neo4j.
*
* 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.... |
/**
* Soundlib - Library for playing sounds, the TinyAVRLib Project.
*
* @author <NAME>
*
* This is part of the Tinusaur/TinyAVRLib project.
*
* Copyright (c) 2018 <NAME>, The Tinusaur Team. All Rights Reserved.
* Distributed as open source software under MIT License, see LICENSE.txt file.
* Retain in your sou... |
/*!
* @file
* @brief sensor handling, for user code
*
* ...
*
* @author <NAME>
* @date 2018-12-05
*
* @copyright © 2018 ubirch GmbH (https://ubirch.com)
*
* ```
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... |
/* vim:ts=4:sw=4:expandtab
* (No tabs, indent level is 4 spaces) */
/*****************************************************************************
* File: fm_api_event_intr.c
* Creation Date: May 4, 2007
* Description: FocalPoint interrupt handler wrapper task
*
* Copyright (c) 2005 - 2014, Inte... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h> //apenas pra acentuaรงรฃo em conjunto com a primeira linha do main
#define QNT_PESSOAS 10
typedef struct data{
char nome[11];
char telefone[9];
int idade;
}Pessoa;
Pessoa pessoas[QNT_PESSOAS];
void* menu_age... |
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */
#include "pubnub_ntf_callback.h"
#include "pubnub_internal.h"
#include "pubnub_assert.h"
#include "pbntf_trans_outcome_common.h"
#include "pubnub_timer_list.h"
#include "pubnub_log.h"
#include "pbpal.h"
#include "sys_tmr.h"
#include <stdlib.h>
#include ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
/**
@file ckks_asym.h
*/
#pragma once
#include <complex.h>
#include <stdbool.h>
#include "ckks_common.h"
#include "defines.h"
#include "modulo.h"
#include "parameters.h"
#include "rng.h"
#ifdef SE_USE_MALLOC
/**
Returns... |
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <stdarg.h>
#include <dirent.h>
#include <sys/time.h>
#include "logwrap.h"
#define LOGBUF_SIZE 1024
char logbuf[LOGBUF_SIZE];
/* Dir structure could be bigger than FILENAME_MAX
but this is ... |
/**
* \file ibeacon_app.c
*
* \brief iBeacon application
*
* Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip products.
... |
/* mpc_inp_str -- Input a complex number from a given stream.
Copyright (C) 2009, 2010, 2011 INRIA
This file is part of GNU MPC.
GNU MPC is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 o... |
#include <pebble.h>
#include "date2textEsp.h"
char *int2stringEsp(int h, char* tmp_num, int opcio){
switch (h) {
case 0: strncpy(tmp_num, "doce", 20); break;
case 1: if (opcio == 1) strncpy(tmp_num, "un", 20); else strncpy(tmp_num, "una", 20); break;
case 2: strncpy(tmp_num, "dos", 20); break;
case 3... |
/*----------------------------*/
/* Cipher Text Stealing mode */
/*----------------------------*/
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "square.h"
#include "sqcts.h"
#define D(p) ((word32 *)(p))
#define COPY_BLOCK(target, source) \
{ \
(target)[0] = (source)[0]; \
(... |
/* Copyright (C) 1999-2017 <NAME>, <NAME>, Suresh
* Jagannathan, and <NAME>.
* Copyright (C) 1997-2000 NEC Research Institute.
*
* MLton is released under a HPND-style license.
* See the file MLton-LICENSE for details.
*/
#include <stdatomic.h>
/* AG_NOTE the following SC atomics should be converted to R/A *... |
#include "../include/entry.h"
#include "../include/uart.h"
#include "../include/irq.h"
#include "../include/peripherals.h"
#include "../include/util.h"
#include "../include/timer.h"
//#include "../include/TIMERS.h"
extern void core_timer_handler();
extern void core_timer_enable();
void irq_cmd()
{
local_timer_in... |
/*
*
* Copyright (c) 2016 <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, me... |
/*************************************************************************/
/* */
/* Centre for Speech Technology Research */
/* University of Edinburgh, UK */
/* ... |
/****************************************************************************
* Copyright (c) [2019] [<EMAIL>] *
* [Soft Timer] is licensed under Mulan PSL v2. *
* You can use this software according to the terms and conditions of *
* the Mulan PSL v2. ... |
/*
* tun-win32.c
*
* Copyright (c) 2001 <NAME> <<EMAIL>>
*
* $Id: tun-win32.c,v 1.1 2002/02/25 06:21:59 dugsong Exp $
*/
#include "config.h"
#include <dnet.h>
#include <event.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tun.h"
#define USER_DEVICE_DIR "\\\\.\\"
#define NETCARD_REG_... |
/*
* Copyright (c) 2009-2019 Josef 'Jeff' Sipek <<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, ... |
#if !defined(_POSIX_C_SOURCE)
/* required for for fileno(), ftello(), maybe others */
# define _POSIX_C_SOURCE 200112L
#endif
/*
whio_stream wrapper implementation for FILE handles.
*/
#include <stdlib.h> /* malloc()/free() */
#include <string.h> /* strstr() */
#include <stdio.h> /* (FILE*) */
#include <wh/whio/wh... |
/* File: dynamic_stack.c
** Author(s): <NAME>
** Contact: <EMAIL>
**
** Copyright (C) The Research Foundation of SUNY, 1986, 1993-1998
**
** XSB 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 Foundatio... |
#include "positioning.h"
#include "stm32f4xx_tim.h"
#include "stm32f4xx_rcc.h"
#define GYRO_COM COM3
#define GYRO_BAUDRATE 115200
//#define raw_data_mode
/*** Command List ***/
#define SEND_START 0x05
#define SEND_X 0x11
#define SEND_Y 0x12
#define SEND_A 0x13
#define SEND_END 0x06
#define outputScali... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 <NAME>
* Copyright (c) 2019 <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 limitatio... |
//
// main.c
// CMPT-300
//
// Created by <NAME> on 9/11/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
#include "awesome.h"
#include "mypipe.h"
extern const char data[];
extern const char data2[];
extern const char owari[];
extern const char finish[];
extern const char filled[];
int main(int argc, cons... |
/***************************************************************************
* Nipper - The network infrastructure parser *
* Copyright (C) 2006 - 2008 by <NAME> *
* <EMAIL> *
* ... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <time.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <string.h>
#include "../common.h"
#include "gioco.h"
#include "commands.h"
void handle_connection(int, const char *client_addr_str, const int p... |
#include "common.h"
#include "imageutils.h"
#include "bootsector.h"
#include "fat.h"
#include "sharedmemory.h"
#include "fileio.h"
#include "sectors.h"
#include "global_limits.h"
///@brief An array to hold files found.
FILE_HEADER_REG* fileList[MAX_LISTABLE_FILES];
///@brief A function to compare two pointers to FI... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "functions.h"
#include <time.h>
struct board{
char **matrix;
int height;
int width;
};
struct ship{
char type;
int size;
};
int main(int argc, char *argv[ ]) {
char *filename;
srand(time(0));
char orientation,sta... |
#include "gadget-hid.h"
#include <errno.h>
#include <stdio.h>
#include <linux/usb/ch9.h>
#include <usbg/usbg.h>
#include <usbg/function/hid.h>
static char report_desc[] = {
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x06, // USAGE (Keyboard)
0xA1, 0x01, // COLLECTION (Application)
// ... |
//#include "List.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <string.h>
#include <assert.h>
#include "stringptr.h"
typedef struct {
char text_RIFF[4];
unsigned int filesize_minus_8;
char text_WAVE[4];
char text_fmt[4];
u... |
/* Test and measure string and memory functions.
Copyright (C) 1999, 2002, 2004, 2008, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by <NAME> <<EMAIL>>, 1999.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Le... |
/*******************************************************************************
* GR-SAKURA LIBRARY LICENSE. LIMITATION and DISCLAIMER of WARRANTY
*
* This software is supplied by Tokushu Denshi Kairo Inc. and is only intended
* for use with Gadget Renesas projects. No other uses are authorized.
* This software is o... |
/*
PoC for BrakTooth V13: Invalid Max Slot Type
(CVE-2021-34145).
The MacBook terminates all connections.
The iPhone 11+12 have the short hopping artifacts until the LMP
Detach, but no terminated connections.
Testing on a packet-level against the MBP:
len=31: we still receive replies from the MBP but the MBP doesn... |
/* helper.c
This file written 2018 by <NAME>
For copyright and licensing, see file COPYING*/
#include <stdint.h>
#include <pic32mx.h>
#include "definitions.h"
// ANd array with the different objects we want on the screen
static const Object_Type objects[] = { BOX, SHOT, ARROW};
// A power functio... |
/**
* Authors: <NAME>, <NAME>
*/
#include "include/isr.h"
int G_MUSIC_TIMER = 0;
int G_GAME_TIMER = 0;
int G_SHOT_TIMER = 0;
int G_SHOT_MOVE_TIMER = 0;
int G_ARMADA_MOVE_TIMER = 0;
int G_KEY_REPEAT_TICKS = 0;
bool G_RENDER_REQUEST = true;
bool G_RENDER_MOUSE_REQUEST = false;
Vector vbl_vector;
Vector ikbd_vector;
... |
/* 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/. */
/**
* This code is used to generate a binary file for every request type
* which can be sent from a client to th... |
#include <drivers/keyboard.h>
static char keyBuffer[256];
char lastBuffer[256];
uint8_t coutkey = 0;
uint8_t coutleft = 0;
uint8_t shift = 0; // is shift key pressed
uint8_t state = 0;
uint8_t upArrowPressed = 0;
char* sc_name[] = {"ERROR", "Esc", "1", "2", "3", "4", "5",
"6", "7", "... |
#if 0
/*โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ To the extent possible under law, <NAME> has waived โ
โ all copyright and related or neighboring rights to this file, โ
โ as it is written in the following disclaimers: โ
โ โข http://unlicense.org/ ... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <stdbool.h>
#include <time.h>
#include <assert.h>
#include "square.h"
const unsigned buffer_size = 1024;
const char placeholder_char = '.';
char* read_file(char* filename) {
char* buffer = (char*)(malloc(sizeof(char) * buffer_s... |
/*
Does the following work correctly in OpenCL ?
unsigned __int128
It's shorter to write
__uint128_t
I avoid 64-bit numbers in my kernel here since I know they have arithmetic issues (see testBug64.c).
Windows and macOS have problems using AMD and Intel GPUs.
Ubuntu (using beignet-dev package) doesn't seem to s... |
/**
* Not "pure" C - only works with ASCII
*/
#include <ctype.h>
#include <stdlib.h>
#include <qr/bitstream.h>
#include <qr/data.h>
#include "constants.h"
static void write_type_and_length(struct qr_data * data,
enum qr_data_type type,
size_t ... |
/*
* Copyright 2009 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
#include "native_client/src/include/portability.h"
#if NACL_OSX
#include <crt_externs.h>
#endif
#ifdef _WIN64 /* TODO(gregoryd): remove th... |
/*---------------------------------------------------------------------------+
| poly_tan.c |
| |
| Compute the tan of a FPU_REG, using a polynomial approximation. |
| ... |
/*!
* @file main.c
* @brief LoadCell6 Click example
*
* # Description
* This library contains API for the Load Cell 6 Click driver.
* The library initializes and defines the SPI bus drivers to read status and ADC data.
* The library also includes a function for tare, calibration and weight measurement.
*
* Th... |
//*****************************************************************************
// ThundeRatz Robotics Team 2015. Some rights reserved.
// Code licensed under a Creative Commons Attribution 4.0 International License
// (http://creativecommons.org/licenses/by/4.0/).
//
// You are free to:
// Share โ copy and redistribut... |
//
// C implementation of arithmetic in GF(p^m) via precomputed
// tables of Zech's logarithms.
//
// This is here in case if you want to do arithmetic in fixed fields
// (the tables can be exported by the Haskell library) in a C program.
//
#include <stdio.h>
#include <stdlib.h>
#include "zech.h"
// struct ZechT... |
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <fcntl.h>
#include <time.h>
#include "config.h"
#include "core.h"
#include "error_utils.h"
#inclu... |
/*
*******************************************************************
*
* Copyright 2016 Intel Corporation All rights reserved.
*
*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... |
/*
* Mach Operating System
* Copyright (c) 1992,1991,1990,1989 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies ... |
#include "cpaux.h"
/* --- declarations ----------------------------------------- */
/* stuffing the rest of icmp packet with alphabet */
static inline size_t icmp_stuffing(unsigned char *buf, size_t len);
/* --- auxiliary routine definitions ------------------------ */
/* see http://www.faqs.org/rfcs/rfc1071.html ... |
/*
* Copyright (c) 2012, JANET(UK)
* 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 condit... |
/*
* 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... |
/*
* Configuration File Processing Functions
*
* <EMAIL>
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "prsconf.h"
#include "protos.h"
feedEntryType feed;
int curGroup = 0;
monitorEntryType monitors[MAX_MONITORS];
int curMonitor = 0;
/*
* parseString()
*
* ... |
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Display helpers for generic filesystem items
*
* Author: <NAME> <<EMAIL>>
*
* Copyright (c) 2020, Oracle and/or its affiliates.
*/
#include <linux/fs.h>
#define show_fs_dirent_type(x) \
__print_symbolic(x, \
{ DT_UNKNOWN, "UNKNOWN" }, \
{ DT_FIFO, "FIFO" }, \
... |
/* $Id: _updown.c,v 1.1 2005/07/21 20:42:57 ken Exp $
*
* THIS IS OBSOLETE - It is no longer functionally identical to the scripts
*
*
* This program is replacement for /usr/local/lib/ipsec/_updown script
* and its functionality is identical.
*
* Installation:
* 1. Compile with "gcc -O2 -o updown updown.c"
* ... |
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <console.h>
#include <errno.h>
#include <syslinux/loadfile.h>
/* Macros */
#define ROWS_PER_PAGE 24
#define COLS_PER_ROW 16
#define BYTES_PER_PAGE (ROWS_PER_PAGE * COLS_PER_ROW)
/* Functions declarations */
stat... |
#include <stdio.h>
#include <errno.h>
#define SHOW(x, s) printf("%-16s %3d %s\n", # x, x, s)
int main() {
// /usr/include/asm-generic/errno-base.h
SHOW(EPERM, "Operation not permitted");
SHOW(ENOENT, "No such file or directory");
SHOW(ESRCH, "No such process");
SHOW(EINTR, "Interrupted system call"... |
/* SPDX-License-Identifier: Apache-2.0 */
/*
* Copyright (C) 2013 Intel Corporation
*
*/
#include <endian.h>
#include <hardware/bluetooth.h>
#define MAX_UUID_STR_LEN 37
#define HAL_UUID_LEN 16
#define MAX_ADDR_STR_LEN 18
static const char BT_BASE_UUID[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
0x80... |
/**
* Modified version of the audio.c/audio.h found in the FlappyBird N64 repo
*
* Copyright 2017, <NAME>
*
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* Modified (slightly) <NAME>.
*
* >>>Changes
* Added the ability to tag sounds that are currenlty playing in each channel.
*
* Methods:
... |
/*
** Zabbix
** Copyright (C) 2001-2019 Zabbix SIA
**
** 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 pro... |
#include "proto.h"
void write_file_patch (int from_file, unsigned to_file) {
if (from_file < 0)
builder_state -> file_data[to_file].data_label = write_rainbow_file_patch(to_file);
else
builder_state -> file_data[to_file].data_label = write_individual_file_patch(from_file, to_file);
builder_state -> file_... |
//
// Copyright (c) 2007 Tridium, Inc.
// Licensed under the Academic Free License version 3.0
//
// History:
// 22 Aug 06 <NAME> Creation
// 07 May 07 <NAME> Port from C++ old Sedona
//
#include "inet_util_std.h"
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
#endif
//
// Connect this socket to the specified I... |
/*
Unix SMB/CIFS implementation.
error packet handling
Copyright (C) <NAME> 1992-1998
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 ... |
/******************************************************************************
Copyright (c) 1992, 1995, 1996 Xerox Corporation. All rights reserved.
Portions of this code were written by <NAME>, aka ghond.
Use and copying of this software and preparation of derivative works based
upon this software are permi... |
/**********************************FILE-HEADER*********************************\
* File: cbuffer_test.c
* Author: <NAME>
* Date: 30/03/2021
* Version: 1.0 (After Review)
* Reviewer: Kobi
* Description: Circular Buffer implementation t... |
/* Sniffit Data File */
/**** Network Devices *******************************************************/
/* Older configuration system of Sniffit */
/* ether: 14 */
/* ppp : 4 */
/* slip : 16 ... |
#include "cache.h"
/*
* Do not use this for inspecting *tracked* content. When path is a
* symlink to a directory, we do not want to say it is a directory when
* dealing with tracked content in the working tree.
*/
int is_directory(const char *path)
{
struct stat st;
return (!stat(path, &st) && S_ISDIR(st.st_mo... |
#include <lib9.h>
#include <ctype.h>
extern int shell_exec(void (*)(void *), void *, char *, char **, int);
extern int main(int, char **);
/*
* libc routines
*/
/*
#define ctime kctime
#define asctime kasctime
#define localtime klocaltime
#define gmtime kgmtime
*/
extern Tm* gmtime(long);
extern Tm* localtime... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "v_tab.h"
#include "ia-utils.h"
static graph_s *cmp_g;
int neighb_cmp(const void *a, const void *b)
{
int i1 = (*(int*)b);
int i2 = (*(int*)a);
int c = cmp_g->neighb_count[i1] - cmp_g->neighb_count[i2];
for(int n = 0; n < cmp_g->neighb_count[i1]; ... |
/*
* Copyright 2019 University of Washington, Max Planck Institute for
* Software Systems, and The University of Texas at Austin
*
* 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 withou... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* File....: random.c */
/* Name....: Random number functions */
... |
//
// Macros.h
// MicroFilm
//
// Created by wyz on 16/3/12.
// Copyright ยฉ 2016ๅนด wyz. All rights reserved.
//
// App Frame
#define Application_Frame [[UIScreen mainScreen] applicationFrame]
#define Application_KeyWindow [UIApplication sharedApplication].keyWindow
// App Frame Height&Width
#define App_Frame... |
// Andromeda: https://www.spacetelescope.org/images/heic1502a/
//
// https://www.spacetelescope.org/static/archives/images/publicationtiff40k/heic1502a.tif
#include <stdlib.h>
#ifdef __linux__
#define _GNU_SOURCE
#endif
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <string.h>
#include <unistd.h>
... |
//
// Created by lauril on 3/24/17.
//
#include "nrf_ravel_fs.h"
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "nordic_common.h"
#include "nrf.h"
#include "app_error.h"
#include "nrf_gpio.h"
#include "softdevice_handler.h"
#include "boards.h"
#include "fds.h"
#include "fstorage.h"
#define NR... |
/**
* @file
* @brief ใฒใผใ ใชใผใใผใทใผใณใฎใณใณใใญใผใฉใผ
*/
#define _CRT_SECURE_NO_WARNINGS
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "glut.h"
#include "config.h"
#include "state.h"
#include "scene/game-over/game-over.h"
#include "scene/scene.h"
#include "render/transition.h"
#incl... |
/* A radio Maliarte (https://anchor.fm/maliarte) estรก comemorando Aniversario! Como presente a radio disponibilizarรก um pequeno questionario promocional, seguido da opiniao do publico computada de acordo com o seguinte rรณtulo:
1.รtimo, 2.Regular, 3.Bom, 4.Ruim. Para parcipar, o ouvinte fornece idade,
sexo (1.FEMININ... |
/**********************************************************************
Each of the companies; Qualcomm, and Lucent (hereinafter
referred to individually as "Source" or collectively as "Sources") do
hereby state:
To the extent to which the Source(s) may legally and freely do so, the
Source(s), upon submission of a ... |
// OSCopper.e
// Native graphics example using OS friendly copperlist
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include <string.h>
#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/intuition.h>
#include <proto/graphics.h>
#include <graphics/gfxbase.h>
#include <graph... |
#include <stdio.h>
#include <stdint.h>
#include <wmmintrin.h>
// Hard coding types and alignment
typedef long long v2di __attribute__((vector_size(16)));
typedef union {
unsigned long long v[2];
v2di m;
} mm128i;
int need_stop(mm128i *var) {
if (var->v[0] >= 0xEEEEFFFFFFFFEEEFULL) {
if (var->v[1] ... |
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "runtime.h"
#include "malloc.h"
// Lock to protect finalizer data structures.
// Cannot reuse mheap.Lock because the finalizer
// maintenance require... |
/*********************************************************
* Copyright (c) 2005 <NAME> *
* Proyecto : Space Planning con Branch and Bound *
* Alumno : <NAME> *
* *
* Profesor : Dr. <NAME> ... |
#include <klib/kbool.h>
#include <klib/kassert.h>
#include <klib/string.h>
#include <kernel/multiboot/multiboot.h>
#include <kernel/heap/kheap.h>
#include <kernel/console/console.h>
#include <arch/x86/paging.h>
page_dir_t* k_page_dir;
uint32_t nFrames;
uint32_t* Frames;
uint32_t placement_addr;
void map_page(uint32_t v... |
extern unsigned int v_unpack_connect(const char *data, size_t length);
extern unsigned int v_unpack_connect_accept(const char *data, size_t length);
extern unsigned int v_unpack_connect_terminate(const char *data, size_t length);
extern unsigned int v_unpack_ping(const char *data, size_t length);
extern unsigned int v_... |
/**
* \file
*
* \brief AFEC temperature sensor example for SAM.
*
* Copyright (c) 2013-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 condit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.