text stringlengths 3.12k 18.7k |
|---|
#include <netinet/in.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <pthread.h>
#define sport 8000
#define ipadr INADDR_ANY
#define BUFLEN 2048
#de... |
#include "../mex/stresslet_real_rc.h"
#include "stresslet_real_rc_new.h"
#ifdef BEENAKKER
#include "beenakker_op_fd.h"
#else
#error "Must provide -D<method> to compiler"
#endif
// ******************************** compute_rsrc_direct ******************
// ***************************************************************... |
#include "microphone_lib.h"
#include "custom_board.h" // Needed for the Pin configuration
#include "adc_lib.h"
#include "debug_lib.h"
#include "systick_lib.h" // Needed for microphone_selftest()
#include "nrf_gpio.h"
#define ABS(x) (((x) >= 0)? (x) : -(x))
#define MICROPHONE_ZERO_OFFSET 125 /**< The zero noi... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "mpi.h"
typedef struct {
int a;
float b;
char str[100];
}EST;
void imprimeCadena(char arr[], int tam);
void Concatena(char arrA[], char arrB[], char arrC[]);
void llenaCadena(char arr[]);
int RandomNumber(int... |
/**
* Copyright (c) 2015 Google 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. Redistributions of source code must retain the above copyright notice,
* this list of conditions an... |
/*
* LIBOIL - Library of Optimized Inner Loops
* Copyright (c) 2003,2004 <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 ... |
#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) 2009-2016 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... |
/* ===========================================================================
* Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005
*
* Use of this software is controlled by the terms and conditions found in the
* license agreement under which this software has been supplied.
* ==============... |
#include <mpi.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_runtime_api.h>
#include <cublas.h>
#include <cufft.h>
extern int pipe_xfer;
extern int min_kb_xfer;
extern char host_name[MPI_MAX_PROCESSOR_NAME];
extern char mybus[16];
extern int together;
extern MPI_Request *send_requests;
extern MPI_Requ... |
#include "gba.h"
#include "mbc.h"
#include "mem.h"
#include "apu.h"
#include "cpu.h"
#include "gpu.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
gba_t *gba_new(const void *rom_data, size_t rom_size)
{
gba_t *gba = calloc(sizeof(*gba), 1);
if (!gba)
return NULL;
gba->mbc = mbc_new(rom_data, rom_s... |
#include <Python.h>
#include <structmember.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include "numpy/arrayobject.h"
double __dist( long i3, long j3, double *xyz ) {
return( sqrt(
( xyz[i3] - xyz[j3] ) * ( xyz[i3] - xyz[j3] ) +
( xyz[i3... |
/*****************************************************************************\
* input_file.c
*****************************************************************************
* Copyright (C) 2002-2005 The Regents of the University of California.
* Produced at the Lawrence Livermore National Laboratory.
* Written ... |
#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <setjmp.h>
#include <png.h>
#define ABS(x) ({ \
__typeof__(x) _x = (x); \
_x >= 0 ? _x : -_x; \
})
#define CMP(op, a, b) ({ \
__typeof__(a) _a = (a); \
__typeof__(_a) _b = (b); \
(_a op _b) ? _a : _b; \
})
#define MIN(a, b) CM... |
//
// Created by os on 1/3/22.
//
#include "types.h"
#include "param.h"
#include "memlayout.h"
#include "riscv.h"
#include "spinlock.h"
#include "defs.h"
#include "schedulers.h"
#include "proc.h"
struct scheduling_queues sched_queues;
void swap(struct heapnd* a, struct heapnd* b) {
struct heapnd tmp = *b;
*b ... |
/* C K O T E L -- Kermit stub to fake IBM Telnet and IBM TelnetPM */
/*
Author: <NAME> (<EMAIL>, <EMAIL>),
Columbia University Academic Information Systems, New York City.
<NAME> <<EMAIL>>
Secure Endpoints Inc., New York City
Copyright (C) 1996,2004 Trustees of Columbia Univers... |
// Copyright (C) 2015-2021 Virgil Security, 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) Redistributions of source code must retain the above copyrigh... |
/* $OpenBSD: main.c,v 1.6 2008/08/17 18:40:13 ragge Exp $ */
/*
* Copyright (c) 2002 <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 ... |
/*
* Copyright (C) 2009-2012 <NAME> <nick<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE A... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
// Define the colors for the terminal
#define KNORMAL "\x1B[0m"
#define KRED "\x1B[31m"
#define KGREEN "\x1B[32m"
#define KYELLOW "\x1B[33m"
#define KBLUE "\x1B[34m"
#define KMAGENTA "\x1B[35m"
#define K... |
#include <stdio.h>
#include <limits.h>
#include "idl_export.h"
struct my_arr
{
IDL_ULONG *data;
int size;
};
void swap(int *indexes, int a, int b)
{
int temp=indexes[a];
indexes[a]=indexes[b];
indexes[b]=temp;
}
void quicksort(IDL_ULONG* arr, int izq, int der, int *indexes) /*Se llama con: qu... |
/* musl-1.1.12/src/time/*.c */
/* musl as a whole is licensed under the following standard MIT license:
*
* ----------------------------------------------------------------------
* Copyright (C) 2005-2014 <NAME>, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software ... |
#include <stdint.h>
#include <sys/queue.h>
#include <semaphore.h>
#include "map.h"
#include "bitmap.h"
#include "debug.h"
#include "InfiniBandRDMA.h"
#define BLOCK_MAP_SIZE 1024
#define LOG_MAP_SIZE 64
#define SNAPSHOT_MAP_SIZE 64
#define MAX_INMEM_BLOG_ENTRIES 16384
#define MAX_FLUSH_BATCH 128
typedef char* page_t;
... |
/*
* Copyright (C) 2010 <NAME>.
* 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 rights to use, copy, mo... |
//
// TTYReader.c
// Drone-Foundation
//
// Created by <NAME> on 2013-07-14.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#include "TTYReader.h"
#pragma mark -
#pragma mark Private
//----------------------------------------------------------------------------//
// PRIVATE VARIABLES / ... |
#include "communication.h"
#include "stm32f4xx_hal.h"
#include "cmsis_os.h"
#include "crc.h"
#include "usbd_cdc_if.h"
#include "usbd_cdc.h"
#include "XV11_LiDAR.h"
#include "Encoders.h"
#include "RCReceiver.h"
#define DISABLE_TRANSMITTER
osThreadId CommunicationTransmitterTaskHandle;
osThreadId CommunicationReceiverT... |
#include <avr/io.h>
#include <avr/pgmspace.h>
#include <util/delay.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
// Custom library files
#include "lib/iopins.h"
#include "lib/usart.h"
#include "lib/nsdelay.h"
// --- Pin assignments ---
// RGB data
#define WS_PIN 7
// Sonars
#d... |
/* System Programming Project 2
**<NAME> - 150150067
**<NAME> - 150160026
**<NAME> - 150140061
** Compilation:
** gcc fs.c -o fs -ansi -std=c99 -g -ggdb -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -lfuse -lmagic -lansilove
**
** Mount: ./sysproj -d src dst Unmount: fusermount -u dst
*/
#define FUSE_USE_VERSION 26
#include <... |
/*
* SGT-Packer.c
* 2006 (C) Sylvain "Asle" Chipaux
*/
/* testSGT() */
/* Rip_SGT() */
/* Depack_SGT() */
#include "globals.h"
#include "extern.h"
/* rudimentary tests .. shall add others */
int16_t testSGT ( void )
{
/* test 1 */
if ( (PW_i<43) || ((PW_Start_Address+43)>PW_in_size) )
{
return BAD;
}
... |
/*
* 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... |
/* ----------------------------------------------------------------------- *
*
* Copyright 2007-2008 <NAME> - All Rights Reserved
* Copyright 2009-2010 Intel Corporation; author: <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated docum... |
#include "main.h"
#include "usage.h"
// Global to entire program
char *key;
char *token;
char *argv_0;
// Global to this file
action_t action;
state_t state;
int favorited = -1;
char **with_tags = NULL;
char **without_tags = NULL;
int with_tags_len = 0;
int without_tags_len = 0;
time_t before_date = 0;
time_t sinc... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file FLASH/FLASH_DualBoot/Src/main.c
* @author MCD Application Team
* @brief This example provides a description of how to boot from bank1 or bank2
* of the STM32L5xx FLASH.
****... |
/*
* Copyright (c) 2020-, szstonelee <szstonelee at vip qq com>
* All rights reserved.
*
* mainly based on Redis & Rocksdb, please check their rights
* redis: https://github.com/antirez/redis/blob/unstable/COPYING
* rocksdb: https://github.com/facebook/rocksdb/blob/master/COPYING
* and other 3rd libaries:
* sn... |
/*
* Copyright 2010 <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
* on the rights to use, copy, modify, merge, pub... |
/*
* hashtable.c
* Configurable hash map
*
* Copyright (c) 2015 <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 ri... |
/*-
* Copyright (c) 2015 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/***************************************************************************//**
* @file GP_Gateway_Host_callback.c
* @brief (optional)
* @version (optional)
*******************************************************************************
* # License
* <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b>
*****... |
#include "header.h"
struct sockaddr_in myaddr; /* our address */
struct sockaddr_in remaddr; /* remote address */
socklen_t addrlen = sizeof(remaddr); /* length of addresses */
int recvlen; /* # bytes received */
int fd; /* our socket */
int msgcnt = 0; /* count # of messages we received */
unsigned char buf[B... |
// bmp.h
//
// created by J.Chavan on 26th February,2020
#define MAX_IMAGE_NAME_LENGTH 256 // use '<' not '<='
#define MAX_RELATIVE_PATH_LENGTH 4097
// supported DIB header versions
// BITMAPINFOHEADER
#define BITMAPINFOHEADER 0
#define BITMAPINFOHEADER_SIZE 40
// BITMAPV4HEADER
#define BITMAPV4HEAD... |
#include <stdlib.h>
#include <curses.h>
#include <unistd.h>
#include <string.h>
#include "board.h"
#define WHITE_TILE_COLOR 1
#define BLACK_TILE_COLOR 2
#define NONE_TILE_COLOR 3
#define BORDER_COLOR 4
#define X_END BOARD_WIDTH * 4
#define Y_END BOARD_HEIGHT * 2
void color_on(Board *board, WINDOW *window, int color... |
/**
* Echo server (RFC 862)
*/
/* stdlib */
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <string.h>
#include <getopt.h>
#include <errno.h>
#include <time.h>
/* system */
#include <pwd.h>
#include <grp.h>
/* networking */
#include <arpa/inet.h>
#include <sys/types.h>
#incl... |
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
// JSONP mimetype
ngx_str_t ngx_http_jsonp_mimetype = ngx_string("text/javascript");
// Variable name
ngx_str_t ngx_http_jsonp_callback_variable_name = ngx_string("jsonp_callback");
// Default applicable mimetypes
ngx_str_t ngx_http_jsonp_default_mim... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
#include <stdio.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include <raylib.h>
#include <math.h>
#include "client.h"
double getRadius(struct Player* player){
re... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
#include <exec_once.h>
#include <voba/value.h>
#include "syn.h"
#include "ast.h"
#include "keywords.h"
#include "match.h"
#include "syn2ast_report.h"
#include "syn2ast_basic.h"
#include "syn2ast_match.h"
static inline voba_value_t compile_for_sub(ast_for_t* _for, voba_value_t la_syn_form, voba_value_t env, voba_value_t... |
#include "../common/term.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
void exception_call(char *msg) {
printf("Exception occured: %s\nAborting...\n", msg);
exit(-1);
}
int evalterm(u8 *input, double varVal, double *out) {
int syntaxErrRes = term_checkSyntax(input);
if (syntaxErrRes > -1... |
/*
*/
#include "window.h"
#include <stddef.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h> // TODO: replace with calls into ACurses_*
#include <stdlib.h>
#include <assert.h>
#include "server.h"
#include <ctype.h>
struct sMessage
{
struct sMessage *Next;
time_t Timestamp;
enum eMessageClass Class;
ch... |
/*-
* SPDX-License-Identifier: BSD-2-Clause-FreeBSD
*
* Copyright (c) 2016 <NAME> <<EMAIL>>
* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* 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... |
/*
* Copyright (c) 2022, <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
#include "main.h"
#define ACPLY_CLIENT_LIST clients
#define ACPLY_DEF_CLIENT_LIST AcplyClientList *ACPLY_CLIENT_LIST = &self->clients;
#define ACPLY_CLIENT ACPLY_CLIENT_LIST->items[i]
#define ACPLY_FOREACH_CLIENT for(AcplyClient *client = list->top; client != NULL; client = client->next) {
AcplyClient *acply_newClie... |
/* Hello World Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include ... |
#define _XOPEN_SOURCE 500
#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdint.h>
#include <pthread.h>
#include "maleta.h"
#define N_INTENTOS 4
#define TOLERANCIA 1.7
// ----------------------------------------------------
// Funcion... |
/**
* Replaces GEDCOM language names to BCP 47 language tags
*
* Current implementation is picky, requiring exact case and no leading
* or trailing whitespace. Perhaps it should be changed to fit after
* enum-normalization to avoid some of those issues?
*
*
* Should happen after `ged_tagcase` to reliably ident... |
/* ../netlib/v3.9.0/clarfy.f -- translated by f2c (version 20160102). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at... |
/*Compiles with gcc -Wall -O2 -o wavwrite wavwrite.c*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <limits.h>
/*
The header of a wav file Based on:
https://ccrma.stanford.edu/courses/422/projects/WaveFormat/
*/
typedef struct wavfile_header_s
{
char ChunkID[4]; /* 4 */
int32_... |
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2.1 of the GNU Lesser General Public License
as published by the Free Software Foundation.
This program is distributed in the hope tha... |
#include "include/astar.h"
#include "include/AnalyzeLiDAR.h"
#include "include/navigation.h"
void reposition(rover * robot) {
Point secondClose = {6,6};
int angle;
Point curr;
// Point curr_input;
curr = get_curr_loc_input(robot->heading, &angle, &secondClose);
printf("curr: (%d, %d)\n",... |
/*
* This file is part of the 'csv-parser' project
* (see https://github.com/mle86/csv-parser).
*
* SPDX-License-Identifier: MIT
* Copyright © 2017-2020 <NAME>
*/
#include "aux.h"
#include "const.h"
#include "input.h"
#include "global.h"
#include <stdio.h>
#include <stdlib.h>
static void invalid_arg (const char... |
void initializeVideoProMode(void){
inPointIsSet=false;
outPointIsSet=false;
enableDriver();
steps=0;
stepsPlus=0;
stepsMinus=0;
stepsToMove=0;
}
void pointIsBeingDefinedVideoProMode(void) {
// Creamos condición que nunca llegará para un movimiento continuo
steps=0;
stepCounter=2147483647;
if (lastMenuItem... |
#include "main.h"
int main(void)
{
//Hardware Initializations
init_board_leds();
init_i2c();
init_campsense();
int8_t* btn;
int32_t sld_status;
int brightness = 400; //initial brighness of the leds
while(true)
{
//checking the status of the buttons and the slider
btn = getBtn... |
/*! @file : K32L2B31A_Project.c
* @author <NAME>
* @version 0.0.000
* @date 23/08/2021
* @brief Funcion principal main
* @details
* v0.0.000 Proyecto base creado usando MCUXpresso
*
*
*/
/*******************************************************************************
* Includes
**********************... |
/* ----------------------------- MNI Header -----------------------------------
@NAME : lookup.c (CMEX)
@INPUT : oldx, oldy - lookup table
newx - vector of values to lookup
@OUTPUT : newy - vector of values looked up in oldx/oldy table
using newx
@RETURNS :
@DESCRI... |
// oscrecvtest.c - test o2_osc_port_new()
//
// this test is designed to run with oscsendtest.c
#include "o2.h"
#include "stdio.h"
#include "string.h"
#include "assert.h"
#ifdef WIN32
#include "usleep.h" // special windows implementation of sleep/usleep
#else
#include <unistd.h>
#endif
// Here's what is sent
// ... |
#include <Arduino.h>
int8_t answer;
char aux_str[50];
char feed_host[18]="io.adafruit.com";
char feed_key[8]="615157";
char message_content_length[4];
char feed_value[3];
char message_header[170];
char message_header1[18]="POST /api/feeds/";
char message_header2[25]="/data HTTP/1.1\r\nHOST: ";
char message_header3[105... |
/* Topology Builder <NAME>
IUPUI Physics Dept. NMR Center
402 N. Blackford St.
Indianapolis, IN 46202
USA
utility functions utilities.c
Functions are:
get_name Get a name and return progress in
the string from which it came.
... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/errno.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#define SOCKET_ERROR -1
#define BUFFER_SIZE 512
#define HOST_NAME_SIZE 255
#define M... |
/***************************************************************************//**
* @file
* @brief ZigBee 3.0 ota server test harness functionality
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
**********... |
/*--------------------------------------------------------------------------*/
/*
NewVersion @(#)comdefs.h 3.9 07/20/98
This file contains the common defines that are included in every model
configuration.
*/
/*--------... |
/* Solves the knight tours using backtracking */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <ctype.h>
#if __STDC_VERSION__ < 199901L
#define restrict
#define inline
#endif
#if defined(__GNUC__) || defined(__clang__)
#define USE_BUILTIN 1... |
/**
* This file contains directives for a Fixture that makes creating microcontroller
* drivers easier and simpler to read. A Fixture is just a wrapper.
*
* So this file is weird. This fixture allows for the .spec file and the .driver
* file to do what they do.
*
* For the .spec file, you might notice a lot of #... |
#include "custom-elements.h"
void
ui_piemenu(
struct nk_context *ctx,
struct nk_command_buffer *output,
float x,
float y,
int d
)
{
nk_fill_circle(output, nk_rect(x, y, d, d), nk_rgb(50,50,50));
}
void
ui_signal_plot(
struct nk_context *ctx,
signal_array *signals_array,
unsigned in... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdarg.h>
#include <time.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_timer.h>
#include <SDL2/SDL_image.h>
// picture width is 640px
#define WINDOW_WIDTH (640)
// picture height is 640px
#define WINDOW_HEIGHT (480)
#define BAT_X (0)
#define BAT_Y ... |
/*-------------------------------------------------------------------------
*
* nodeNestloop.c
* routines to support nest-loop joins
*
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* $Head... |
#include "data_structures.h"
// ISO stencils spatial blocking
void iso_ref_split( const int shape[3], const int xb, const int yb, const int zb, const int xe, const int ye, const int ze,
const real_t * restrict coef, real_t * restrict u,
const real_t * restrict v, const real_t * restrict roc2, stencil_CTX ... |
/*
* Copyright (C) 2021, Xilinx Inc - All rights reserved
* Xilinx SDAccel Media Accelerator API
*
* 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://www.apache.org/lice... |
/*
Glidix GUI
Copyright (c) 2014-2017, <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of condition... |
/*
* Copyright (C) 2017 – 2018 Xilinx, 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 rights
* to use... |
/*******************************************************************************
* Filename:
* ---------
* eemcs_rpc_ut.c
*
* Project:
* --------
* MOLY
*
* Description:
* ------------
* Implements the CCCI RPC unit test functions
*
* Author:
* -------
*
* =========================================... |
#include "lexer.h"
const char* tok2str(token_type_t type) {
switch(type) {
case TOKEN_EOF: return "<eof>";
case TOKEN_NEWLINE: return "<newline>";
case TOKEN_SPACE: return "<space>";
case TOKEN_WORD: return "<word>";
case TOKEN_STRING: return "<string>";
case TOKEN_N... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION 1
#include "stb_image_write.h"
#define BCDEC_IMPLEMENTATION 1
#include "bcdec.h"
#define BCDEC_FOURCC(a, b, c, d) ((a) | ((b) << 8) | ((c) << 16) | ((d) << 24))
#define BCDEC_FOURCC_DDS BCDEC_FOURCC('D', 'D', 'S', '... |
/*
Copyright (c) 2009-2013 <NAME> <<EMAIL>>
Copyright (c) 2012 <NAME> <<EMAIL>>
Copyright (c) 2009-2013 Center for Bioinformatics, University of Hamburg
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyrigh... |
/*
* Copyright (C) 2020 <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 3 of the License, or
* (at your option) any later version.
*
* This library is dist... |
/*
* AWS IoT EduKit - Core2 for AWS IoT EduKit
* Factory Firmware v2.1.2
* clock.c
*
* Copyright (C) 2020 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 "Softwa... |
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <bpmp_ipc.h>
#include <debug.h>
#include <delay_timer.h>
#include <errno.h>
#include <mmio.h>
#include <stdbool.h>
#include <string.h>
#include <tegra_def.h>
#include <utils_d... |
/*
* ai-server.c
*
* Copyright 2020 <NAME> <<EMAIL>>
*
* The MIT License (MIT)
*
* 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... |
/*
* COPYRIGHT (c) 1989-2000.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be found in
* the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*/
#include <bsp.h>
#include <assert.h>
#include <pthread.h>
#include... |
// Copyright 2020 <NAME>. All rights reserved.
// SPDX-License-Identifier: BSD-2-Clause
#include "avifjpeg.h"
#include <setjmp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "jpeglib.h"
#include "iccjpeg.h"
struct my_error_mgr
{
struct jpeg_error_mgr pub;
jmp_buf setjmp_buffer;
};
t... |
/*
** Copyright (C) 2008-2014 <NAME> <<EMAIL>>
** Copyright (C) 2008-2010 <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:
**
** * Redistributions of source code must retain th... |
#pragma once
#ifdef _WIN32
#define WIN32_MEAN_AND_LEAN
#include <windows.h>
#endif
#include <stdint.h>
#include <stdbool.h>
#include "pt2_header.h"
// for .WAV sample loading/saving
typedef struct wavHeader_t
{
uint32_t chunkID, chunkSize, format, subchunk1ID, subchunk1Size;
uint16_t audioFormat, numChannels;
uin... |
/* toc.c -- table of contents handling.
$Id: toc.c,v 1.6 2004/04/11 17:56:47 karl Exp $
Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
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... |
/**
* Copyright (c) 2016 - 2019, Nordic Semiconductor ASA
*
* 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 no... |
#include "git-compat-util.h"
#include "cache.h"
#include "config.h"
#include "branch.h"
#include "refs.h"
#include "remote.h"
#include "commit.h"
#include "worktree.h"
struct tracking {
struct refspec spec;
char *src;
const char *remote;
int matches;
};
static int find_tracked_branch(struct remote *remote, void *... |
/***********************************************************************************
PIC32MX Starter Kit Example Code - PORT Input Output
***********************************************************************************
* FileName: port_io.c
* Dependencies: None
* Company: Micro... |
// Copyright 2019 Shift Cryptosecurity AG
//
// 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 ... |
/*
* MPEG1 / MPEG2 video parser
* Copyright (c) 2000,2001 <NAME>
* Copyright (c) 2002-2004 <NAME> <<EMAIL>>
*
* 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 Found... |
// SPDX-License-Identifier: GPL-2.0+
/*
* FB driver for the ST7789V LCD Controller
*
* Copyright (C) 2015 <NAME>
*/
#include <linux/bitops.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <video/mipi_display.h>
#include "fbtft.h"
#define DRVNAME "fb... |
#include "plugin.h"
#include "log.h"
#include "response.h"
#include "stat_cache.h"
#include <string.h>
#include <errno.h>
#include <ctype.h>
typedef struct {
/* unparsed pieces */
buffer *path_pieces_raw;
/* pieces for path creation */
size_t len;
buffer **path_pieces;
} plugin_config;
typedef struct {
PLUGIN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.