text
stringlengths
3.12k
18.7k
/* * TCPCopy - An online replication tool for TCP based applications * * Copyright 2011 Netease, Inc. All rights reserved. * Use and distribution licensed under the BSD license. See * the LICENSE file for full text. * * Authors: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ #ifdef HAVE_CONFIG_H #...
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
/* $Id: main.c,v 1.64 2016/01/02 15:02:05 benno Exp $ */ /* * Copyright (c) 2001, 2007 <NAME> * Copyright (c) 2001 <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: * * - Redis...
#include<stdio.h> #include<stdlib.h> #include"busdetails.c" #include"decleration.c" #include<strings.h> struct busdetails person[300]; int count=0; int id2=1000; int main() { int **seat,choice,price=500,slection,i; seat=(int **)calloc(101,sizeof(int *)); for (i=0;i<3;i++) *(seat+i)=(int *)calloc(101,s...
// // Created by delta54 on 10/2/16. // #include <stdio.h> #include <assert.h> #include <stdbool.h> #include "modbus.h" #include "commands.h" #include "../rtos/EERTOS.h" #include "../socket/uart.h" #define MB_ASCII_DEFAULT_CR '\r' /*!< Default CR character for Modbus ASCII. */ #define MB_ASCII_DEFAULT_LF '...
#include <string.h> #include <ctype.h> #include "std.h" #include "bits.h" #include "types.h" #include "fields.h" #include "sim.h" #include "ssDCmd.h" #include "exportui.h" #include "coreui.h" #include "program.h" #include "decoder/decoder.h" #include "libcore.h" #include "libdas.h" #include "libsym.h" #include "iadas_t...
/*================================================================ * Copyright: 2020 <NAME> * stencil_test Show how to use stencil testing in gunslinger. Modified from: https://learnopengl.com/Advanced-OpenGL/Stencil-testing Move around with camera: * Left-click and hold to rotate camera...
/* * Copyright (c) 2011 Intel Corporation. All Rights Reserved. * Copyright (c) Imagination Technologies Limited, UK * * 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 restrictio...
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ /* Subunit protocol result output */ #define ENABLE_SUBUNIT 0 /* Define to 1 if you have the declaration of `fileno', and to 0 if you don't. */ #define HAVE_DECL_FILENO 1 /* Define to 1 if yo...
/* bioImageLoad - Load data into bioImage database. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "obscure.h" #include "ra.h" #include "jksql.h" #include "dystring.h" /* Variables you can override from command line. */ char *database = "bioImage"; boolean replace = FALSE;...
#include "u.h" #include "ness.h" #include "random.h" #define V "3.0.0" #define LINE1 "------------------------------------------------------------\n" #define KEY_SIZE (20) #define VAL_SIZE (100) void *e; void *db; struct random *rnd; static uint64_t FLAGS_num = 1000000; static uint64_t FLAGS_cache_size = (1073741824...
/* Author: <NAME> <<EMAIL>> Copyright (c) 2014 Cromulence LLC 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, m...
/******************************************************************************* The MIT License (MIT) Copyright (c) 2014 <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 restrictio...
/* PDF texpdf.c > mingw32-make -f makefile.tdmgcc64 > gcc -m32 -o texpdf texpdf.c pdftx.c pdfobjects.c memstream.c (to 32 bit OK) > gcc -o texpdf texpdf.c pdftx.c pdfobjects.c memstream.c (to 64 bit OK) > texpdf _texpdf_out.pdf */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg...
/* 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 <math.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <stdio.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/socket.h> #include <netinet/in.h> #include <pthread.h> #include <semaphore.h> #include <errno.h> #include <linux/i2c-dev...
#include "sqdb/sqdb2.h" #include "pixie.h" #include "mongoose.h" #include <ctype.h> #include <string.h> /*=========================================================================== *===========================================================================*/ void xml_decode_beacon(struct mg_connection *c, ...
#include "MARG.h" #include "globals.h" #include "boards.h" // System constants // #define deltat 0.001f #define gyroMeasError 3.14159265358979f * (5.0f / 180.0f) #define gyroMeasDrift 3.14159265358979f * (0.2f / 180.0f) #define beta (sqrt(3.0f / 4.0f) * gyroMeasError) #define zeta (sqrt(3.0f / 4.0f) * gyroMeasDrift) ...
/* * Copyright 2002-2011, The TenDRA Project. * Copyright 1997, United Kingdom Secretary of State for Defence. * * See doc/copyright/ for the full copyright terms. */ /* * rule-simp.c - Rule simplification routines. * * This file implements the SID elimination of identical rules routines. * * In order to opt...
#include "controller.h" #include <stdio.h> #include <string.h> #include "board.h" #include "config.h" #include "debug.h" #include "i2c.h" #include "rtc.h" #include "sht31.h" #include "stm32f0xx_conf.h" #include "tca95xxa.h" #include "timer.h" typedef struct { int16_t temperature; int16_t humidity; } __attribute__(...
//signal.c //Signal-related functions for libc //<NAME> <<EMAIL>> 2021 #include <signal.h> #include <errno.h> #include <tls.h> #include <stddef.h> #include <tls.h> #include <stdlib.h> #include <assert.h> #include <px.h> const char * const sys_siglist[_SIG_MAX] = { [SIGZERO] = "Signal Zero", [SIGHUP] = "Hangup", [...
#include <u.h> #include <libc.h> #include <bio.h> #include <ctype.h> #include "common.h" #include "comments.h" #include "path.h" struct strtab charcode[FONTSIZE] = { {4, "\\000"}, {4, "\\001"}, {4, "\\002"}, {4, "\\003"}, {4, "\\004"}, {4, "\\005"}, {4, "\\006"}, {4, "\\007"}, {4, "\\010"}, {4, "\\011"}, {4, "\\012...
#include <gtk/gtk.h> GtkWidget *hscale, *vscale; static void cb_pos_menu_select( GtkWidget *item, GtkPositionType pos ) { /* Set the value position on both scale widgets */ gtk_scale_set_value_pos (GTK_SCALE (hscale), pos); gtk_scale_set_value_pos (GTK_SCALE (vscale)...
/* * Cheesy HTTP 1.1 client used for testing HTTP Digest (RFC 2617) * variant of DIGEST-MD5 plugin * * XXX This client REQUIRES a persistent connection and * WILL NOT accept a body in any HTTP response */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <pwd.h> #include <...
#include "httpc.h" #include "mod.h" #include <assert.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <errno.h> /* TODO: Use the httpc module as a generic method of making TCP/IP * and SSL connections. And NTP client would be super easy to make, * if only the HTTP open/close routines supported ...
/* * 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...
/* * Copyright (c) 2020, Valve 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: * * 1. Redistributions of source code must retain the above copyright notice, this * list of cond...
/* This test file reads data from a csv file and uses the PAPI_set_event_info funtion to change preset event settings. */ #include "papi_test.h" extern int TESTS_QUIET; /* Declared in test_utils.c */ static void print_help(void) { printf("This is the PAPI encode test program.\n"); printf("It reads a ...
/* * Copyright 2019 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
#include "custom.h" extern int newxx , newyy ; extern int bigcell ; extern int toobig ; extern double totFunc ; extern double totPen ; extern void forceGrid( int x , int y ); extern int usite1( int a , int xb , int yb); extern int newOrient( CELLBOXPTR cellptr , int range ); extern int usiteo1( int a , int xb , int ...
/******************************************************************************* * Copyright (C) Marvell International Ltd. and its affiliates * * This software file (the "File") is owned and distributed by Marvell * International Ltd. and/or its affiliates ("Marvell") under the following * alternative licensing t...
#include "opengl.h" void glBegin(char name[]){ /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% Prototype of the Function void glBegin(char name[]) %% Example of the function: glBegin(GL_LINES); %% This function prepare the program in order to receive points %% that will be transformed in ...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <float.h> #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" typedef struct { int width; int height; uint8_t *data; } image_t; void usage() { printf("convert image out\n")...
/* * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source c...
/* * Copyright (c) 2012, 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 the fol...
#include "semaphore_compat.h" #include <errno.h> #include <sys/time.h> #include <time.h> #include <stdbool.h> #include <pthread.h> #include <stdlib.h> #include <fcntl.h> #include "util/logging.h" #define SEM_OPEN_MAX_TRIES 256 /* * OpenBSD lacks sem_timedwait(), so we implement a simple version here. This * func...
/* * ESPRESSIF MIT License * * Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to dea...
/** * @file lprefilt.c * @brief Prefiltering for linear interpolation * @author <NAME> <<EMAIL>> * * This file implements the prefiltering \c PrefilterImage on the input * image needed before performing interpolation needed with B-splines * and o-Moms. Also implemented here is \c PsfPreFilter, the * prefilteri...
/* * (C) Copyright 2014 Kurento (http://kurento.org/) * * 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 applicab...
/* * GRUB -- GRand Unified Bootloader * Copyright (C) 2005,2006,2007,2008,2009 Free Software Foundation, Inc. * * GRUB 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 Lice...
/** * vnc2rdp: proxy for RDP client connect to VNC server * * Copyright 2014 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/L...
/* * BSD 2-Clause License * * Copyright (c) 2020, 143 Software * 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, thi...
/* $OpenBSD: rd.c,v 1.12 2015/09/11 20:43:23 dlg Exp $ */ /* * Copyright (c) 2011 <NAME> <<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. ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "comparator.h" #include "syntax.h" #include "comparing_algorithm.h" //int min(int a, int b) { // return a < b ? a : b; //} static int special_matches(struct btoken_t blueprint, const char *txt); static void token_cpy(struct token_t *adr, const struct...
/* * NAME * ellips_ -- Compute hypocentral event error ellipsoid. * FILE * ellips_.c * SYNOPSIS * Determine event error ellipsoid and normalized confidence regions. * DESCRIPTION * Function. Given the covariance matrix of the hypocentral estimate, * calculate the error ellipsoid and confidence regions fro...
/** * Copyright (c) 2013-2021 UChicago Argonne, LLC and The HDF Group. * * SPDX-License-Identifier: BSD-3-Clause */ #include "mercury_atomic.h" #include "mercury_test.h" #include "mercury_time.h" /****************/ /* Local Macros */ /****************/ #define BENCHMARK_NAME "Write BW (server bulk pull)" #define...
// Copyright 2021 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicab...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <getopt.h> #include <sys/time.h> #include <sys/types.h> #include <sys/socket.h> #include <event2/event.h> #include <event2/thread.h> static int g_backend; static unsigned int g_nsamples; static unsigned int g_ntests; static unsi...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <esp_types.h> \ #include "watchdog.h" #include "lprefix.h" #include "lua.h" #include "lauxlib.h" #include "lualib.h" #include "msgpack_rx_handler.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" ...
#include <stdint.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <math.h> #include "hh/hh.h" #include "hh/const_sketch.h" #include "sketch/sketch.h" #include "util/fifo.h" #include "util/hash.h" #include "util/xutil.h" // Initialization hh_const_sketch_t *hh_const_sketch_create(heavy_hitter_par...
/****************************************************************************** Curse of War -- Real Time Strategy Game for Linux. Copyright (C) 2013 <NAME>. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Sof...
/* Copyright 2020 ZSA Technology Labs, Inc <@zsa> * Copyright 2020 <NAME> <<EMAIL>> * Copyright 2020 <NAME>, aka <NAME> (@drashna) <<EMAIL>> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundati...
/* Corax palette file format Written in 2021 by <NAME> (Captain4LK) email: captain4lk [at] tutanota [dot] com To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warran...
#include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef _WIN32 #include <Windows.h> #endif #include "ftl.h" #include "file_parser.h" int _store_first_nalu(h264_obj_t *handle); int h264_get_nalu(FILE *fp, uint8_t *buf, uint32_t *length); int get_ogg_page(opus_obj_t *handle); int init_video(h264_obj_t *han...
#include "texture.h" #include "image.h" #include <stdio.h> #include <stdlib.h> #include <string.h> GLenum parseTextureTarget(const char *target) { if (strcmp(target, "GL_TEXTURE_1D") == 0) { return GL_TEXTURE_1D; } else if (strcmp(target, "GL_TEXTURE_1D_ARRAY") == 0) { return GL_TEXTURE_1D_ARR...
/* * Copyright (c) 2014, Newcastle University, 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, * ...
/* $Id: fio.h,v 1.3 2008/03/01 13:44:12 ragge Exp $ */ /* * Copyright(C) Caldera International Inc. 2001-2002. 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 ...
/* * File: rip.h * Description: Routing Information Protocol, RFC 1058 * http://tools.ietf.org/html/rfc1058 * Author(s): <NAME>, <EMAIL> * * Copyright 2012 by Ember Corporation. All rights reserved. *80* */ /* Notes This discussion assumes you've read http://tools.ietf.org/html/rfc1058. W...
#include "dht11.h" #include "gpio.h" #include "log.h" #include "timer.h" #include "bx2400.h" #include <string.h> #include "rwip_task.h" #include "osapp_task.h" #include "clk_gate.h" #include "bx_config.h" //#define DHT_DEBUG #define START_WAIT_18MS 1 #define START_WAIT_20US 2 #define WAIT_ACK 0 #defin...
/* $OpenBSD: manager.c,v 1.4 2015/10/23 18:50:54 mmcc Exp $ */ /* * Copyright (c) 2015 <NAME> <<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 copi...
/* * Copyright (c) 2005, <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 con...
#include <stdio.h> #include <stdlib.h> // malloc, atoi #include <string.h> // memset, strdup #include <stdint.h> // uintXX_t #include <stdbool.h> #include <ctype.h> // isalpha, isdigit #include <getopt.h> #include "cpu_ipp.h" // Calculate the number of instructions per period (ipp) given the // CPU speed and...
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <sys/socket.h> #include <sys/un.h> #include <pthread.h> #include <arpa/inet.h> #include <netinet/in.h> #include <fcntl.h> #include <unistd.h> #include <sys/ioctl.h> #include <net/if.h> #include <errno.h> #include "vortex.h" #def...
/* * Copyright (c) 2013 - 2014, Freescale Semiconductor, 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: * * o Redistributions of source code must retain the above copyright notice, th...
/*------------------------------------------------------------------------ * * geqo_main.c * solution of the query optimization problem * by means of a Genetic Algorithm (GA) * * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of ...
/* * Copyright (c) International Business Machines Corp., 2006 * Author: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at yo...
/* * Southbound API shim for OOM, based on EEPROM files in /sys (sysfs) * Assumes that the files exist, available for read/write access * Tries to parameterize the location and format of those * files so it is easy to add support for other platforms with small * variations. * * As of September 2016, this shim ha...
#include "thread_of_host_connect.h" #define EVENT_LOOP_TIME_IN_MILLI_SECOND 10 osMailQDef(host_uart_tx, 30, uint8_t[MAX_SIZE_OF_SERIAL_DATAGRAM_EVENT]); static osMailQId mail_queue_id_for_host_tx; DEFINE_MAIL_QUEUE_FOR_SERIAL_DATAGRAM_CMD(calibration_cmd,1); static const struct gloves_msg_process_func_t msg_proc...
/* Copyright (c) 2004-2020 Microsemi Corporation "Microsemi". 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...
/** * Copyright (C) 2006 <NAME> * Copyright (C) 1996-2005 Glyph & Cog, LLC. * * 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 la...
/**************************************************************************** * bfs * * Copyright (C) 2017-2020 <NAME> <<EMAIL>> * * * * Permission to use, copy, modif...
/* * Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. */ #include "samples.h" #include "al_hal_ssm_crypto.h" #include "al_hal_ssm_crypto_desc.h" /** * @defgroup group_fast_crypto_samples Code Samples * @ingroup group_fast_crypto * @{ * fast_crypto.c: this file can be found in samples di...
/* 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/. * * Build instructions: * gcc crlVerify.c -I/usr/include/nss3 -I/usr/include/nspr -lplc4 -lssl3 -lnss3 -lnspr4 -o...
/* * System calls. * * Copyright (C) 2003 <NAME>, <NAME>, * <NAME>, <NAME>, <NAME>. * * 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 * ...
// 0x0700F4C0 - 0x0700F500 static const Vtx ccm_seg7_vertex_0700F4C0[] = { {{{ 233, -275, 91}, 0, { 0, 0}, {0x99, 0x99, 0x99, 0xff}}}, {{{ 233, -378, 91}, 0, { 0, 990}, {0x99, 0x99, 0x99, 0xff}}}, {{{ 308, -275, 21}, 0, { 990, 0}, {0x99, 0x99, 0x99, 0xff}}}, ...
/*! \file examples.h * \brief Common include file used only in examples. */ #include <windows.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> #include "libusbk.h" #ifndef __EXAMPLE_H_ #define __EXAMPLE_H_ //! Enables/disables custom vendor control request (supported by the Benchmark Devic...
/* * Copyright (c) 2017 <NAME> <<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 AUTHOR DISCL...
#include "types.h" #include "highscore.h" #include "dialog.h" // create a basic dialog with title which looks like this: // // +--------------------------------------+ // +---------------- TITLE ---------------+ // +--------------------------------------+ // | | // | ...
#include "ocl_sweep.h" #include "metamorph.h" #include "metacl_module.h" // Forward declare to zero buffer functions extern void zero_edge_flux_buffers_(void); extern void zero_centre_flux_in_buffer_(void); struct cell { unsigned int i,j,k; }; typedef struct { unsigned int num_cells; struct cell *cells...
/* S. <NAME> Nov 1, 2013 */ #include "common.h" #include <time.h> #include "microstran/vec3.h" #include "py_structs.h" #include <stdio.h> /** Read node coordinate data */ int read_node_data ( Nodes *nodes, /**node struct */ int nN, /**< number of nodes */ vec3 *xyz...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2014 - <NAME> * Copyright (C) 2011-2017 - <NAME> * * RetroArch is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Found- * ation, either version 3 of th...
/* CODE BY Input/Output Space * * This file contains the code to run the portable compass. * * Author: <NAME> * * File name: compass.c * * Version: 0.1 * * Purpose: To serve as the main file for the compass. The main loop is here * */ /* #includes */ #include <avr/interrupt.h> #include <avr/io.h> #include...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <stdbool.h> #include "xstring/xstring.h" #include "pdate.h" #define ISENGLISH(x) (x & (1 << 0)) #define ISYEAR(x) (x & (1 << 1)) #define ISMONTH(x) (x & (1 << 2)) #define ISDAY(x) (x & (1 << 3)) #define ISTIME...
/* Copyright (c) 2014, <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 conditio...
/* * led.c */ #include "led.h" #include <stdint.h> #include <stdio.h> #include "stm32f0xx_hal.h" #include "cmsis_os.h" #define CATH0_TIM_CHANNEL TIM_CHANNEL_1 #define CATH1_TIM_CHANNEL TIM_CHANNEL_2 #define CATH2_TIM_CHANNEL TIM_CHANNEL_3 #define CATH3_TIM_CHANNEL TIM_CHANNEL_4 #define CATH4_TIM_CHANNEL T...
/* Created RJudd August 29, 1999 */ /* SPAWARSYSCEN D881 */ /********************************************************************** // For TASP VSIPL Documentation and Code neither the United States / // Government, the United States Navy, nor any of their employees, / // makes any warranty, express or implied, i...
/** * See Copyright Notice in picrin.h */ #include "picrin.h" #include "picrin/extra.h" #include "picrin/private/object.h" #include "picrin/private/state.h" static pic_value pic_features(pic_state *pic) { pic_get_args(pic, ""); return pic->features; } static void pic_init_features(pic_state *pic) { pic_defu...
#include <stdio.h> #include <jni.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <arpa/inet.h> #include <netinet/in.h> #include <sys/socket.h> #include <sys/select.h> #include "debug.h" #include "dtp_socket.h" #include "fcntl.h" /* #define __ANDROID_LOG_H_ #include <android/log.h> #ifdef...
/************************************************************************************************** * \file logger.c * \brief Log data at various levels for debugging and documenting errors * * \par Copyright Notice * Copyright 2021 charity: water * * Licensed under the Apache License, V...
/* Target-dependent code for GNU/Linux on CSKY. Copyright (C) 2012-2020 Free Software Foundation, Inc. Contributed by C-SKY Microsystems and Mentor Graphics. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
/* This file, putcols.c, contains routines that write data elements to */ /* a FITS image or table, of type character string. */ /* The FITSIO software was written by <NAME> at the High Energy */ /* Astrophysic Science Archive Research Center (HEASARC) at the NASA */ /* Goddard Sp...
// for malloc #include <stdlib.h> // for read #include <unistd.h> // for memset and strlen #include <string.h> // for _Bool #include <stdbool.h> // for json_parse and friends #include "json-parser/json.h" #include "json-builder/json-builder.h" #include "protocol.h" #define READ_BUF_SIZE 1024 #define MAX_READ_BUF_...
#include <stdio.h> #include <assert.h> #include <stdlib.h> #include <errno.h> // what do we use from this? #include <string.h> struct Address { int id; int set; char *name; // pointer to string of unknown size char *email; // pointer to string of unknown size }; struct Database { struct Address *addresses...
/* * Copyright (c) 1996-2001 <NAME>. * See README file for details. * * * * Functions for determining bandwidth; smoothing neighborhood * and smoothing weights. */ #include "local.h" double rho(x,sc,d,kt,sty) /* ||x|| for appropriate distance metric */ double *x, *sc; int d, kt, *sty; { double rhoi[MXDI...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "Config.h" #include "inih/ini.h" #include "machine-settings.h" static char *basePath; static char* iniFileName; static int Config_handler(void* user, const char* section, const char* name, const char* value) { Config* pcon...
/* * This file is part of the coreboot project. * * Copyright (C) 2007 Advanced Micro Devices, 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 Free Software Foundation; version 2 of the License. * * This ...
#include "main.h" #include "string.h" /* GPIO and Clock prototypes */ void SystemClock_Config(void); static void MX_GPIO_Init(void); /* LCD Function prototypes */ void LCD_init(void); void LCD_cmd(uint8_t data, uint8_t cmd); void LCD_clear(void); void LCD_cursor(uint8_t line, uint8_t lcd_type); void LCD_print(char *...
/* Copyright (c) 2020, The Pallene Developers * Pallene is licensed under the MIT license. * Please refer to the LICENSE and AUTHORS files for details * SPDX-License-Identifier: MIT */ #include "pallene_core.h" #include "lua.h" #include "lauxlib.h" #include "lmem.h" #include "lobject.h" #include "lstate.h" #inclu...
/************************************************************************* * Cboy, a Game Boy emulator * Copyright (C) 2012 jkbenaim * * 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 Foundat...