text stringlengths 3.12k 18.7k |
|---|
/*
The MIT License (MIT)
Copyright (c) 2014 UnicornRaceEngineering
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, modif... |
#include <string.h>
#include "esp_system.h"
#include "esp_log.h"
#include "assert.h"
#include "MqttSub.h"
#include "mqtt_client.h"
/***************** LOCAL MACROS *****************/
// #define DEBUG_MQTT_TOPIC
/***************** LOCAL TYPES *****************/
typedef enum
{
enuMqttDisconnected,
enuMqttConne... |
/****************************************************************************
* bfs *
* Copyright (C) 2022 <NAME> <<EMAIL>> *
* *
* Permission to use, copy, modif... |
/*
* Copyright (c) 2017, <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... |
/*
* shell.c (C) P.Durif
*/
static const char *WHAT_STRING = "@(#)shell.c 1.2 (C) <NAME> 1994" ;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "erreurs.h"
#include "fs.h"
#include "fichier.h"
void usage (void)
{
printf ("usage: shell [nom_de_volume]\n") ;
}
struct CMD {... |
/**
* \file
*
* \brief Unit tests for AST driver.
*
* Copyright (c) 2012-2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... |
/* ###################################################################
** Filename : main.c
** Project : AudioBoot
** Processor : MKL02Z32VFM4
** Version : Driver 01.01
** Compiler : GNU C Compiler
** Date/Time : 2016-11-12, 18:36, # CodeGen: 0
** Abstract :
** ... |
/* GStreamer Wayland video sink
*
* Copyright (C) 2014 Collabora Ltd.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any ... |
/**
* \file flt_frameset.c
* \author <NAME>, <<EMAIL>>
*
* This plugin implements the forum view in a frameset
*/
/* {{{ Initial comments */
/*
* $LastChangedDate$
* $LastChangedRevision$
* $LastChangedBy$
*
*/
/* }}} */
/* {{{ Includes */
#include "cfconfig.h"
#include "defines.h"
#include <stdio.h>
#incl... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "backup.h"
#include "change_log.h"
#include "output.h"
#include "teams.h"
#include "players.h"
#include "player_attributes.h"
extern player_att_name_t player_att_names[];
#define PROGRAM_NAME "NHL95DBEditor"
#define CMD_ARG_INDEX 1
#define EXIT_IF_F... |
#include <avr/io.h>
#include <math.h>
#include <util/delay.h>
#include "timer_tools.h"
#include "serial_printf.h"
#include <avr/interrupt.h>
#include "adc_potenciometer.h"
#include "adxl345_i2c.h"
// #define MAX_SERVO 4000 // 2 ms // mão fechada
//#define MIN_SERVO 2000 // 1 ms // mão aberta
// #define MAX_POT 800
// #... |
/*
* Copyright (C) 1997 Massachusetts Institute of Technology
*
* This software is being provided by the copyright holders under the
* following license. By obtaining, using and/or copying this software,
* you agree that you have read, understood, and will comply with the
* following terms and conditions:
*
*... |
/*
favw.c
shared library for decode/encode gps/glonass terminal "Tracker for WinCE" messages
help:
see Tracker for WinCE project
compile:
make -B favw
*/
#include <stdlib.h> /* malloc */
#include <string.h> /* memset */
#include <errno.h> /* errno */
#include "glonassd.h"
#include "worker.h"
#incl... |
/*
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... |
#define _DEFAULT_SOURCE
#define _GNU_SOURCE
#include "conf.h"
#include <SDL.h>
#include <json.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define _BS 4096 /* buffer size */
static SDL_bool conf_default_general_debug = SDL_TRUE;
static unsigned int conf_default_ge... |
/* Copyright (c) 2015, The Linux Foundation. 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 conditions and... |
/* $Id$
Determine type and size of SCI topology, most notable multidimensional
torus topologies (the famous "n-ary k-cubes"). The result of this
query is written to a configuration file (config.h) and will be used
for this cluster - this means if the topology should change, be sure to
re-configure and ... |
// C Source File
// Created 21/Oct/03; 22:06:35
/*
Nibbles 68k v. 4.1 -- Nibbles Snake Game Clone
Copyright (C) 2000-2002 <NAME>
Based on Stilgar's Nibbles for Fargo
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as publ... |
/* $KAME: qop_fifoq.c,v 1.6 2001/12/03 08:20:55 kjc Exp $ */
/*
* Copyright (C) 1999-2000
* Sony Computer Science Laboratories, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Re... |
/* Subroutines for the gcc driver.
Copyright (C) 2006, 2007, 2009 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 Foundation; either version 3, or (at your opt... |
/**************************************************************************
*
* Copyright (c) Intel Corp. 2007.
* All Rights Reserved.
*
* Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
* develop this driver.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* cop... |
/*-------------------------------------------------------------------------
*
* delete.c: delete backup files.
*
* Copyright (c) 2009-2013, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
*
*-------------------------------------------------------------------------
*/
#include "pg_arman.h"
#include <dirent.h>
#inclu... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86xvmc.c,v 1.8 2005/10/14 15:16:34 tsi Exp $ */
/*
* Copyright (c) 2001-2003 by The XFree86 Project, Inc.
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation fil... |
/*
* Vzic - a program to convert Olson timezone database files into VZTIMEZONE
* files compatible with the iCalendar specification (RFC2445).
*
* Copyright (C) 2000-2001 Ximian, Inc.
* Copyright (C) 2003 <NAME>.
*
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modi... |
/*
Teem: Tools to process and visualize scientific data and images
Copyright (C) 2005 <NAME>
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License
(LGPL) as... |
/*-
* Copyright (c) 2021 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
#include <stdio.h>
#include <stdlib.h>
//Initialising board squares for the game board.
char boardSquare[10] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
//Creating stack. Stack adapted from Lab 3.
struct stack {
int maxsize;
int top;
int *items;
};
//Initalise stack.
struct stack* newStack(int capaci... |
#include <stdio.h>
#include "r_util.h"
void check(const char *exp, const char *act, const char *desc) {
if (strcmp(exp, act) == 0)
printf("\x1b[34m[+][%s]\x1b[39;49m test passed\n", desc);
else
printf("\x1b[31m[-][%s]\x1b[39;49m test failed (actual = %s\x1b[39;49m, expected = %s\x1b[39;49m)\n", desc, act, exp);... |
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdint.h>
#include <time.h>
//keccakf variables
#define c 512
#define r 1088
#define b 1600
//redefine modulo operator
static int modulo(int x, int y){
if(x<0)
{ //it only changes for negative values
x = x*-1;
return (y-(x%y))%y;
}
else
... |
/*
* game.c
* Part of Amuleta, a traditional roguelike - https://deveah.github.io/amuleta
* (c) <NAME>, <<EMAIL>>
* Licensed under the terms and conditions of the MIT License. Please consult
* the LICENSE file included with this project.
*/
#include <assert.h>
#include <stdlib.h>
#include <termbox.h>
#incl... |
/* Copyright (c) 2002-2005 <NAME>
*
* TERMS
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the f... |
/**
******************************************************************************
* File Name : CAN.c
* Description : This file provides code for the configuration
* of the CAN instances.
******************************************************************************
... |
/*
* fm.c - fm driver routines for ICE5 8-op FM design
* 06-11-16 <NAME>
*/
#include <stdio.h>
#include "fm.h"
#include "ice5.h"
/* FPGA bitstream */
extern uint8_t _binary_bitmap_bin_start;
extern uint8_t _binary_bitmap_bin_end;
/* predefined voices */
const operator_struct test_voice_0[8] =
{
// frq,atten,wv,a... |
#include"SimpleMOC_header.h"
// Allocates and initializes an array of 2D tracks
Track2D * generate_2D_tracks( Input I, size_t * nbytes )
{
// Allocate space for 2D tracks
Track2D * tracks = (Track2D *) malloc( I.ntracks_2D * sizeof(Track2D));
*nbytes += I.ntracks_2D * sizeof(Track2D);
// Fill weights with randomi... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <getopt.h>
#include <signal.h>
#include <pthread.h>
#include "psrfits.h"
struct dc_args {
int **c;
int c_k;
struct psrfits *pf_out;
struct psrfits *pf;
};
void usage()
{
printf(
"-h, --help print this \n"
"-o name, -... |
/* Module for handling DALLAS DS2438, smart battery monitor
Chip can store up to 40 bytes of user data in EEPROM,
perform temp, voltage and current measurements.
Chip also contains a unique serial number.
Always read/write LSb first
For documentaion, see data sheet for DS2438, 2438.pdf
By <EMAIL> 0... |
#include <assert.h>
#include <ctype.h>
#include <dlfcn.h>
#include <dirent.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <time.h>
#include "general.h"
#include "importer.h"
#include "string.h"
bool iImporter_isValid(iObject *self){
return iObject... |
/*
* lucihttp - HTTP utility library - urlencoded data parser component
*
* Copyright 2018 <NAME> <<EMAIL>>
*
* 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... |
/* BSD 2-Clause License */
/* Copyright (c) 2020, <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... |
/* -*- c -*- *******************************************************/
/*
* Copyright (C) 2011 Sandia Corporation
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
* the U.S. Government retains certain rights in this software.
*
* This source code is released under the New BSD License.
*/
/... |
/**
* To build this program, please make sure to reference linked library:
*
* gcc -lodccore -o odc-c-encode-custom odc_encode_custom.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include "odc/api/odc.h"
// Bitfield constants
#define... |
#include "firmware/app/control/control.h"
#include "firmware/shared/physics.h"
#include "firmware/shared/util.h"
/**
* Computes a scaling constant that can be used to maximize wheel force while obeying
* physical dynamics
*
* Note that this could scale the forces *down* if they exceed the physical capabilities
*... |
/*
* This file is part of libemqtt.
*
* libemqtt is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* libemqtt is distrib... |
#include "CuTest.h"
#include <stdlib.h>
#include "util.h"
static void
TestUtilStr(CuTest *tc)
{
char buffer[8];
str_t str;
str_init( &str, buffer, sizeof(buffer) );
CuAssertIntEquals( tc, 0, str_get_length(&str) );
CuAssertIntEquals( tc, 8, str_get_capacity(&str) );
CuAssertStrEquals( tc, "", str_get_string(&s... |
/*
* Copyright (c) 2014 Freescale Semiconductor, Inc.
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#define BOOTLOADER_HOST
#include "aes128_key_wrap_unwrap.h"
#if !defined(BOOTLOADER_HOST)
#include "security/aes_security.h"
#endif
#include "mbedtls/aes.h"
#if defined(BOOTLOADER_HOST)
// F... |
/*
Copyright (C) 2009-2019 Parallel Realities
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 distributed in t... |
#include "mupdf/fitz.h"
#include <string.h>
/* Return non-null terminated pointers to key/value entries in comma separated
* option string. A plain key has the default value 'yes'. Use strncmp to compare
* key/value strings. */
static const char *
fz_get_option(fz_context *ctx, const char **key, const char **val, c... |
/*
* QEMU PC System Firmware
*
* Copyright (c) 2003-2004 <NAME>
* Copyright (c) 2011-2012 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, incl... |
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include <driver/spi_master.h>
#include <driver/gpio.h>
#include "esp_log.h"
#include "sh1107.h"
#define TAG "SH1107"
#ifdef CONFIG_IDF_TARGET_ESP32
#define LCD_HOST HSPI_HOST
#define DMA_CHAN 2
#elif defined CONFIG_IDF_TARGET_ESP32S2
#d... |
/*
8bpl - Copyright © daltomi <<EMAIL>>
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from
the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applica... |
//
// Each DMA channel is double buffered.
// so one buffer can be in use while the other is being filled or emptied.
//
// Each DMA channel can be set in one of two directions, DmaIN or DmaOUT
// (device to memory, and memory to device, respectively)
//
// The endianess of the DMA transfer can be set.
//
//
//
// The... |
/* vim: set sw=4 ts=4 sts=4 et : */
/********************************************************************\
* 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 *
* ... |
/*
* FreeRTOS Kernel V10.2.0
* Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, includ... |
/*
** file IO update for lipsia programs
** lipsia programs can read files with extensions .v .v.gz .nii .nii.gz
** lipsia outputs files with extensions .v
**
** G.Lohmann, MPI-KYB, May 2017, updated Feb 2018
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <sys/stat.h>
#inc... |
// SPDX-License-Identifier: Unlicense
/*
* libinput calibration calculation
*/
#include <stdio.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_linalg.h>
/*
* Compute the (Moore-Penrose) pseudo-inverse of a matrix.
*
* PUBLIC DOMAIN by <NAME> <<EMAIL>>
*
* If the singular value decomposition (SVD) of A = UΣVᵀ ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct node* Position_S;
typedef struct node* List_S;
typedef struct node* Student;
typedef struct node_f* Faculty;
typedef struct node_f* List_F;
typedef struct node_f* Position_F;
struct node{
char Name[20];
char Faculty[20]... |
/*
* Simple Vulkan application
*
* Copyright (c) 2016 by <NAME>
*
* This code is licensed under the MIT license
* https://opensource.org/licenses/MIT
*/
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include "window.h"
// VULKAN
#include "util/vulkan.h"
bool isClosing = false;
VkSurfaceKHR s... |
/* $NetBSD: mach_machdep.c,v 1.18 2003/11/29 23:56:09 manu Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME> and <NAME>.
*
* Redistribution and use in source and binary forms, with or witho... |
#include <stdarg.h>
#include <setjmp.h>
#define xMESSAGE 0
#define xFATAL 1
#define xERROR 2
#define xWARNING 3
#define MAX_WARNING_LEVEL 3
#define DEFAULT_WARNING_LEVEL 2
#define msgUNABLE_TO_OPEN_FILE 0
#define msgUNABLE_TO_WRITE_FILE 1
#define msgUNABLE_TO_READ_FILE ... |
#include "header.h"
#include "tiles.h"
u32 *xfb = NULL;
GXRModeObj *rmode = NULL;
void video_init() {
VIDEO_Init();
rmode = VIDEO_GetPreferredMode(NULL);
xfb = MEM_K0_TO_K1(SYS_AllocateFramebuffer(rmode));
console_init(xfb, 20, 20, rmode->fbWidth, rmode->xfbHeight, rmode->fbWidth * VI_DISPLAY_PIX_SZ);
VIDEO_Conf... |
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id:$
//
// Copyright (C) 1993-1996 by id Software, Inc.
//
// This source is available for distribution and/or modification
// only under the terms of the DOOM Source Code License as
// publi... |
// Resources:
// SYSCLK - 32.667 MHz HFOSC0 / 1
// UART0 - 115200 baud, 8-N-1
// Timer1 - UART0 clock source
// P0.4 - UART0 TX
// P0.5 - UART0 RX
// Includes
//-----------------------------------------------------------------------------
#include <SI_EFM8BB2_Register_Enums.h>
#include "retargetserial.... |
/*
tKDCClient
CS 445G - Project 2
<NAME> and <NAME>
Created by <NAME> on 4/28/18.
Copyright © 2018 <NAME>. All rights reserved.
client.c - the implementation of the client application.
*/
#include "client.h" // the header "companion" file for this file.
// int main(int argc, const char * arg... |
/******************************************************************************
* __ __ _____ __ __ _____
* \ \ / / | ____| \ \ / / | ____|
* \ \/ / | |__ \ \/ / | |__
* } { | __| \ / | __|
* / /\ \ | |___ / / | |___
* /_/ \_\ |_____| /_/ |_____|... |
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <getopt.h>
#include <dirent.h>
#include <sys/stat.h>
#include <pthread.h>
#include "bitset.h"
#include "graph.h"
#include "graph6.h"
#include "vertice_queue.h"
#define MAX_PATH_LENGTH 4096
typedef struct {
bool aggregate;
i32 max_cop;
u8 wo... |
/*
* Copyright (c) 2014-2018 Cesanta Software Limited
* 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
*
* ... |
/*
* This file is part of the ESO Common Pipeline Library
* Copyright (C) 2001-2017 European Southern Observatory
*
* 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 ... |
/*-
* BSD LICENSE
*
* Copyright(c) 2016-2017 Intel 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 co... |
#include <stdio.h>
#include <string.h>
#include "crc.h"
#include "flash.h"
#include "fpga.h"
#include "pin.h"
#include "serial.h"
#define SERIAL_GPIO GPIOA
#define SERIAL_TX_PIN 2
#define SERIAL_RX_PIN 3
#define SERIAL_ALT_FUNC 7
#define SERIAL_USART USART2
#define SERIAL_RX_RING_LEN 512
static volatile uint8_t g_s... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "defs.h"
#include "externs.h"
#include "protos.h"
/* ----
* symhash()
* ----
* calculate the hash value of a symbol
*/
int
symhash(void)
{
int i;
char c;
int hash = 0;
/* hash value */
for (i = 1; ... |
//=============================================================================
//Read .bed datasets, and then find all overlaps
//by <NAME> 09/05/2018
//Decomposition & simplication: 11/26/2018
//-----------------------------------------------------------------------------
#include "AIList.h"
#include <sys/stat.h>
#... |
#include <malloc.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <stdio.h>
#include <libavutil/imgutils.h>
#include "frame_buffer.h"
#include "replay_player.h"
void FrameBuffer_clear(FrameBuffer *buffer, sfColor color)
{
for (unsigned x = 0; x < buffer->s... |
/* Extended Module Player
* Copyright (C) 1996-2018 <NAME> and <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to... |
/**************************************************************************//**
* @file Smpl_DrvSYS.c
* @version V2.00
* $Revision: 5 $
* $Date: 12/08/09 7:12p $
* @brief M051 Series Global Control and Clock Control Driver Sample Code
*
* @note
* Copyright (C) 2011 Nuvoton Technology Corp. All ... |
#include <windows.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
#include <stdlib.h>
#include <fcntl.h>
#include <jvmw32os.h>
#define min(a, b) (((a) < (b)) ? (a) : (b))
int MakeShortFromLongPath( char * longpath, char **sh_path );
void ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// This module provides functions for dealing with command-line arguments in
// attribute=value format. The functions expect the user to provide
// an array of arg_t structures. (arg_t is defined in argParser.h)
// The... |
/*
** mouse:~ppr/src/pprdrv/ppr-gs.c
** Copyright 1995--2013, Trinity College Computing Center.
** Written by <NAME>.
**
** This file is part of PPR. You can redistribute it and modify it under the
** terms of the revised BSD licence (without the advertising clause) as
** described in the accompanying file LICENSE.txt... |
#include "ebi.h"
/**************************************************************
* EBI Functionality
* ------------------------------------------------------------
* This file contains all the functions for utilizing the
* EBI bus to the FPGA on the EFM32GG.
******************************************************... |
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 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 copyr... |
#include <stdbool.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
enum jtype { JSTR, JINT, JSYM, JFLOAT, JBOOL, JID };
struct jlex_st {
const char *ptr;
size_t line, col; /* line and column */
};
struct jtok {
enum jtype type;
const char *ptr;
size_t len; ... |
/*
* Copyright 2017-2018, Intel Corporation
*
* 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 conditions and ... |
/*
* A single file can contain multiple streams; a container can multiplex multiple streams. To select the proper stream,
* the metadata info is needed. In this example, streams in a file and their metadata are recovered. Switching streams
* is allowed via a customized playbin.
*/
#include <gst/gst.h>
#include <st... |
/*
* Copyright (C) 2009-2011 by <NAME> (<EMAIL>)
*
* Released under the MIT license, see LICENSE.txt
*/
#include <assert.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <time.h>
#include <getopt.h>
#include "cactus.h"
#include "commonC.h"
#include "... |
/* Definitions of target machine for GNU compiler, for MIPS NetBSD systems.
Copyright (C) 1993, 1995, 1996, 1997, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License... |
#include <stdio.h>
#include "basic.h"
#include "macrosurface3d.h"
#include "helmholtzbem3d.h"
#include "krylovsolvers.h"
static void cube_parametrization(uint i, real xr1, real xr2, void * data, real xt[3]);
pmacrosurface3d new_square_macrosurface3d(real ax, real bx);
static void cube_parametrization(uint i, real x... |
#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... |
/**************************************************************************************************
* messages *
* *
* Version Description Date *
* ------- ------------------------------------------------------------------------- -------- *
* 1.00.00 Preliminary program d... |
/*
* Copyright (c) 2017 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribut... |
/* query.c: The query widgets
Copyright (c) 2004-2008 <NAME>, <NAME>
Copyright (c) 2015 <NAME>
$Id: query.c 817 2016-07-18 11:56:29Z fredm $
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Fou... |
/*
* Copyright © 2009 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, pub... |
#include "kvm/kvm-cpu.h"
#include "kvm/symbol.h"
#include "kvm/util.h"
#include "kvm/kvm.h"
#include "kvm/virtio.h"
#include "kvm/mutex.h"
#include "kvm/barrier.h"
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/eventfd.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#incl... |
/*
sshunixfdstream.c
Author: <NAME> <<EMAIL>>
Copyright:
Copyright (c) 2002, 2003 SFNT Finland Oy.
All rights reserved
Created: Tue Aug 20 10:43:37 1996 ylo
Streams interface interfacing to file descriptors on Unix.
*/
#include "sshincludes.h"
#include "sshfdstream.h"
#include... |
#include <stdio.h>
#include <time.h>
#include <sqlite3.h>
#include <sys/stat.h>
#include <errno.h>
#include <syslog.h>
#include "utils.h"
#include "backend.h"
/* DB schema */
#define EGA_SCHEMA_FMT "CREATE TABLE IF NOT EXISTS users ( \
username TEXT UNIQUE PRIMARY KEY ON... |
/**
* The MIT License
*
* Copyright (c) 2019-2020 <NAME> (https://github.com/ilwoong)
*
* 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 l... |
#include <GL/glut.h>
#include <math.h>
#include<time.h>
#include <stdio.h>
#define MAX_CPTS 12
GLfloat cpts[MAX_CPTS][3];
int ncpts = 0;
static int width = 500, height = 500;
int flag=1;
typedef struct {
GLfloat x;
GLfloat y;
GLfloat z;
}Point;
//disegna cerchio x e y punti di origine
v... |
#include "greatest.h"
#include <assert.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include "common/common.h"
#include "common/event_loop.h"
#include "common/io.h"
#include "plasma.h"
#include "plasma_client.h"
#include "plasma_manager.h"
SUITE(plasma_manager_tests);
const char *manager_a... |
#include <linux/module.h>
#include <linux/device.h>
#include <linux/fs.h>
#include <linux/cdev.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <linux/mm.h>
#include <linux/kfifo.h>
#include <linux/firmware.h>
#include <linux/syscalls.h>
#include <linux/uaccess.h>
#include... |
/*
*
* Copyright 2017 Samsung Electronics 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 require... |
#include "type.h"
typedef struct Vor Vor;
struct Vor
{
Rectangle I;
char s1[10];
char s2[10];
char s3[10];
char s4[10];
Point obs;
Point freq;
Point dme;
Point from;
Nav** np;
Nav** gs;
ushort* ob;
ushort* q;
int nx;
int ny;
};
static Vor v1, v2;
void vupdate(Vor*);
void vinit(Vor*, int, ... |
/* Copyright (c) 2019-2020, Codership Oy. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This program is distributed in the hope that ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.