text
stringlengths
3.12k
18.7k
/** * @file tft.c * @brief TFT HAL * @author matyunin.d * @date 17.07.2019 */ #include "tft.h" #include <stdlib.h> #include <stdio.h> #define VMEMORY 0x00200000 #define PWM_PERIOD 10000000 #define PWM_HIGH 9000000 static const u8 line_pattern[7][12] = { {1,1,1,1,1,1,1,1,1,1,1,1}, /* Solid */ {1,1,1,1,1,1,0...
#include <ngx_http.h> #include <ngx_string.h> #include <ngx_file.h> static ngx_int_t ngx_http_mytest_handler(ngx_http_request_t *r) { if(!(r->method &(NGX_HTTP_GET))) { return NGX_HTTP_NOT_ALLOWED; } ngx_int_t rc = ngx_http_discard_request_body(r); if(rc != NGX_OK) { return rc; } ngx_str_t type = ngx_stri...
/* * bit3.c - Emulation of the Bit3 Full View 80 column card. * * Copyright (C) 2009 <NAME> * Copyright (C) 2009 Atari800 development team (see DOC/CREDITS) * * This file is part of the Atari800 emulator project which emulates * the Atari 400, 800, 800XL, 130XE, and 5200 8-bit computers. * * Atari800 is free s...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* sha224_process.c :+: :+: :+: ...
/* * This file is part of the coreboot project. * * Copyright 2014 Google 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 program is distribute...
#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...
#include <stdlib.h> #include <stdio.h> #include "myLib.h" #include "gameLogic.h" unsigned short* videoBuffer = (unsigned short*) 0x6000000; FIRE fire_arr[25]; FIRE old_fire[25]; int gameLevel; PLAYER player; PLAYER old_player; //Random -1 or 1 helper function int randNegPos() { int r = rand() % 2; if (r == 0...
/*************************************************************************************** *** *** *** Copyright (c) 2019, <NAME>, Inc. *** *** ...
#include <stdio.h> #include <string.h> #include <assert.h> #include "lua.h" #include "lauxlib.h" #include "lualib.h" #include "../src/sqliteInt.h" #include "to_lua.h" #include "table_util.h" int insert_to_lua_table(lua_State *L, const Insert *s){ return 1; } int select_to_lua_table(lua_State *L, const Select *...
/* * This file is a part of cNES. * Copyright (c) 2019, <NAME> <<EMAIL>> * * The MIT License * * 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...
// Pure C, no Python API used. // With MAINTEST defined, this file has a main() that runs some // code checks. #include <stdlib.h> #include <string.h> #include "blocks.h" // // Diagram for blocks data // // +--------------------------+ // | int row_size | // +--------------------------+ // | int rows_per...
#include "config.h" #include "attitudeFilter.h" #include <math.h> //latest rotation matrix volatile float R[9] = {1,0,0, 0,1,0, 0,0,1}; //the delta rotation matrix volatile float dR[9] = {1,0,0, 0,1,0, 0,0,1}; //actual accelerations and angular rates volatile float ax,ay,az,wx,wy,wz; uint16_t imuUpdateCntr = 0; uin...
#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <sys/time.h> #include "compiler/array/array.h" #include "compiler/ast.h" #include "compiler/codegen.h" #include "compiler/find_libs.h" #include "compiler/parse.h" #include "compiler/package.h" #include "compiler...
/* * sg_ssp.c -- Stargate SSP Driver for mote programming * * Portions Copyright (c) 2002-2003 Intel Corporation * All rights reserved. * * This file is distributed under the terms in the attached INTEL-LICENSE * file. If you do not find these files, copies can be found by writing to * Intel Resear...
/******************************************************************************* * * Copyright (C) 2014-2018 Wave Computing, Inc. * * 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 c...
#include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "esp_err.h" #include "esp_log.h" #include "driver/gpio.h" #include "speaker.h" #include "esp32-hal-ledc.h" extern QueueHandle_t xQueueSound; static const char *TAG = "SPEAKER"; unsigned long millis(){ ...
/* 12-8-21 <NAME> Running Tracker project */ #include <stdio.h> #include <string.h> #include <float.h> #include <math.h> #include <time.h> #include <stddef.h> struct Runner { float displacement; float h_disp; float v_disp; float speed; float clock; float calories; }; void getRand...
#include "graphics.h" #include <stdio.h> #include <stdlib.h> renderer_context *init_renderer(Window *win) { renderer_context *context = (renderer_context *)malloc(sizeof(renderer_context)); float vertices[] = { 0.5f, 0.5f, 0.0f, 0.5f, -0.5f, 0.0f, -0.5f, -0.5f, 0.0f, -0.5f, 0.5f...
/* $NetBSD: vmem.c,v 1.5 2000/06/04 04:30:50 takemura Exp $ */ /*- * Copyright (c) 1999 <NAME>. * All rights reserved. * * This software is part of the PocketBSD. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are me...
/** This is main file of fruit sorting robot FB V part of software. This file is genarated as a part of course project of CS 684 course by Team 10 during Autumn 2013 Project Title: Fruit Sorting Bot We have taken reference form the sample codes given by NEX Robotics Pvt. Ltd. & also we are reusing some of the cod...
#pragma once /* The EyeTV Plugin API ==================== The EyeTV Software gives third parties access to the incoming MPEG-2 transport stream. At this time the API is available for the following products: - EyeTV 200 (analog) - EyeTV 300 (DVB-S) - EyeTV 400 (DVB-T) A plugin receives device plug...
/********************************************************************* * Copyright 2009, University Corporation for Atmospheric Research * See netcdf/README file for copying and redistribution conditions. * "$Id $" *********************************************************************/ #include "includes.h" #...
static const char help[] = "Solves a (permuted) linear system in parallel with KSP.\n\ Input parameters include:\n\ -permute <natural,rcm,nd,...> : solve system in permuted indexing\n\ -random_exact_sol : use a random exact solution vector\n\ -view_exact_sol : write exact solution vector to stdout\n\ -m <mesh...
#include <netdb.h> #include <string.h> #include <stdio.h> #include <unistd.h> #include <pthread.h> #include <stdlib.h> #include <signal.h> #define INITIAL_BUFFER_SIZE 80 typedef struct Scores { char name[10][20]; int wins[10]; int loss[10]; int tie[10]; int counter; } Scores; typedef struct Messag...
/*CMPUT 201 Student Submission License Version 2.0 Copyright 2021 <NAME> Unauthorized redistribution is forbidden under all circumstances. Use of this software without explicit authorization from the author and the CMPUT 201 Instructor is prohibited. This software was produced as a solution for an assignment or lab...
/* * Cloud9 Parallel Symbolic Execution Engine * * Copyright (c) 2011, Dependable Systems Laboratory, EPFL * 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...
/* Copyright (c) 2015 Arduino LLC. All right reserved. Copyright (c) 2015 Atmel Corporation/Thibaut VIARD. All right reserved. 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; eithe...
/* =================================================== * file: main.c * --------------------------------------------------- * purpose: main program for CRG test program * calculating z values and from a * rectangular scan over the enclosing * x/y co-ordinates * ...
/* Part of i2cp C library Copyright (C) 2013 <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 3 of the License, or (at your option) any later version. Th...
/* program initialization and startup files save and parse */ #include "header.h" /* Init(int*, char *(*[]), bool*) - checks arguments, set flags to working modes*/ char* Init (int *argc, char *(*argv[]), bool* can_parse){ char* return_path = malloc(256); if (*argc < 2){ fprintf(stdout, "asns.e...
/* * Copyright (C) 2013 <NAME> */ /* * The FD passing module */ #ifndef fdpass_c #define fdpass_c #else #error Preprocesor macro fdpass_c conflict! #endif #include "fdpass.h" int fdpass_init_server(const char *path) { int status, listen_sd; struct stat st; struct sockaddr_un addr; if (path == NULL) evm_...
/* Copyright 2019, The Regents of the University of California. 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 l...
#include <CoreFoundation/CoreFoundation.h> #include <sys/utsname.h> extern uint64_t ml_phys_read_data; // phys_read extern uint64_t ml_phys_write_data; // phys_write extern uint64_t _sysent_stat; extern uint64_t _copyinstr; extern uint64_t _IOLog; extern uint64_t _strcmp; //extern uint64_t bootargs_store; extern uin...
#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...
// // Created by adeshchoudhar on 18/03/21. // #include "helpers.h" bool check_file(char *file_name) { return access(file_name, F_OK) == -1 ? false : true; } ARGS parse(int argc, char *argv[]) { ARGS args = {.option = -1, .method = "", .input = "", .is_file = false, .success = false}; switch (argc) { ...
#include "logic.h" #include <string.h> #include "expression.h" #include "field.h" #include "misc.h" #include "util/util.h" static logic_fn _logic_matrix[COMP_COUNT][FIELD_TYPE_COUNT] = { {&fql_logic_eq_i, &fql_logic_eq_f, &fql_logic_eq_s}, {&fql_logic_ne_i, &fql_logic_ne_f, &fql_logic_ne_s}, ...
/* $NetBSD: netbsd32_sysctl.c,v 1.5.10.1 2002/06/15 01:05:49 lukem Exp $ */ /* * Copyright (c) 1998, 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: * 1. Redistributions of s...
/* * File Name: lib.c * * * BSD 3-Clause License * * Copyright (c) 2019, nelsoncole * 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...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
#include <uv-msgpack.h> #include <stdio.h> #include <stdlib.h> static int32_t seq; struct _request_queue_entry; typedef void (*request_callback_t)(struct _request_queue_entry* req, uv_stream_t* target, msgpack_packer* pac, ...
#include <stdint.h> #include <stdlib.h> #include <stdbool.h> #include <stdio.h> #include <inttypes.h> #include <time.h> #include <memory.h> // return 64 bit suffix value from key uint64_t get64(uint8_t *key, uint32_t len, bool binaryFlds) { int off = binaryFlds ? 2 : 0; int idx = 0, xtraBytes; uint64_t result; /...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2021 STMicroelectr...
/** Copyright (c) 1995, California Institute of Technology **/ /** U. S. Government sponsorship under NASA contract is acknowledged **/ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <math.h> #include "return_status.h" #include "lbl_gen_api.h...
#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) 2004-2020 by Carnegie Mellon University. ** ** @OPENSOURCE_LICENSE_START@ ** See license information in ../../LICENSE.txt ** @OPENSOURCE_LICENSE_END@ */ #include <silk/silk.h> RCSIDENT("$SiLK: circbuf.c ef14e54179be 2020-04-14 21:57:45Z mthomas $"); #include <silk/sklog.h> #include "circbuf.h" #...
#include "cfe.h" #include "lib_types.h" #include "lib_malloc.h" #include "lib_printf.h" #include "cfe_iocb.h" #include "cfe_device.h" #include "cfe_ioctl.h" #include "bsp_config.h" #include "bcm97115_uart.h" #define WRITEREG(csr,val) *(csr) = (val) #define READREG(csr) (*(csr)) static void bcm97115_uart_probe(c...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <time.h> #include <signal.h> #include <SDL.h> #ifdef __EMSCRIPTEN__ #include <emscripten.h> #endif #include "pac.h" #define CONTROLLER_DEADZONE 8000 static bool should_quit = false; static bool has_focus = true; static bool is_...
/* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Free Software Foundation, Inc. This file is part of GNU Inetutils. GNU Inetutils is free software: you can redistribute it and/or modify it under the terms of the G...
/* * * * This file is part of HUSTOJ. * * HUSTOJ 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. * * HUSTOJ is distributed i...
/* ----------------------------------------------------------------------------- * Copyright (c) 2014 ARM Ltd. * * 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 grant...
#define _CRT_SECURE_NO_WARNINGS // for visual studio // Important constants #define _USE_MATH_DEFINES #define DEGREE_IN_RADIANS 0.01745329252 #define KM_ZA_H_V_M_ZA_S 0.27778 #define G 9.81 #include<stdio.h> #include<math.h> #include<stdlib.h> #include<time.h> #include<conio.h> #include<windows.h> // ==...
/* * alert tcp $EXTERNAL_NET $HTTP_PORTS -> $HOME_NET any (msg:"WEB-CLIENT RealNetworks RealPlayer wav chunk string overflow attempt"; flow:to_client,established; flowbits:isset,file.wav; content:"LIST"; content:"INFO"; distance:4; within:4; metadata:policy balanced-ips drop, policy security-ips drop, service http; cl...
#include <stdbool.h> #include <SDL2/SDL.h> #include "global.h" #include "sdlshape.h" #include "sdlrender.h" extern int screen_state; extern int play_mode; void renderStartScreen(SDL_Renderer* renderer, int arr[]) { /* Clear the screen with selected color */ SDL_SetRenderDrawColor(renderer, 0, 0, 0, 255); ...
/** ****************************************************************************** * @file usb_prop.c * @author MCD Application Team * @version V4.0.0 * @date 21-January-2013 * @brief All processing related to Virtual Com Port Demo ****************************************************************************** *...
/* * This file is part of the Nice GLib ICE library. * * (C) 2006-2009 Collabora Ltd. * Contact: <NAME> * (C) 2006-2009 Nokia Corporation. All rights reserved. * Contact: <NAME> * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file ex...
#include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <dc1394/dc1394.h> #include <math.h> #include <fitsio.h> #include <xpa.h> #include <time.h> #include <sys/time.h> #include <string.h> #include <inttypes.h> #define REG_CAMERA_ABS_MIN 0x000U #define REG_CAMERA_ABS_MAX 0...
#include "opencv2/imgproc/imgproc_c.h" #include "opencv2/highgui/highgui_c.h" #include <stdio.h> #include <opencv2/objdetect/objdetect.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/imgproc/imgproc_c.h> #include <opencv2/highgui/highgui.hpp> #include <math.h> #include <sys/time.h> #define PRINT_COUNT ...
/* aes3data.c * * Extract data bursts from AES3 serial digital audio. * * Copyright (C) 2009 Linear Systems Ltd. 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...
#include "types.h" #include "stat.h" #include "user.h" #include "fcntl.h" void test_raid1(){ int fd; int fd2; int error; struct stat* stat; stat = malloc(sizeof(struct stat)); char type[10]; char dev[10]; char ino[10]; char nlink[10]; char size[10]; char buf[10]; char buf2[10]; ...
/*Author: <NAME> *Program: miniShell (A linux bash shell simulator program) *Date: 4/23/2020 */ #include <stdio.h> #include <sys/types.h> #include <pwd.h> #include <stdlib.h> #include <unistd.h> #include <sys/wait.h> #include <string.h> #include <limits.h> #define MAXINPUT 1024 #define DELIMETERS " \t\r\n\a" #define...
//***************************************************************************** // // simple_rx.c - Example demonstrating simple CAN message reception. // // Copyright (c) 2010-2012 Texas Instruments Incorporated. All rights reserved. // Software License Agreement // // Texas Instruments (TI) is supplying this ...
/* Copyright (C) 1992, 1993, 1994 Aladdin Enterprises. All rights reserved. This file is part of Aladdin Ghostscript. Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or distributor accepts any responsibility for the consequences of using it, or for whether it serves any partic...
#define F_APPEND 0x01 #define F_COMPRESS 0x02 #define CHUNKSIZE 0x100000 // 1024K #define W_BITS 15 #define GZIP_ENCODING 16 #define N_THREADS 12 #include "openssl/aes.h" #include "zlib/zlib.h" #include <pthread.h> /* returns :: struct typedef AES_key + IV + thier lenghts // TODO path :: fopen file wi...
 /* Copyright (c) 2015, <NAME>(<EMAIL>) <NAME>(<EMAIL>), <NAME>(<EMAIL>), <NAME>(<EMAIL>), <NAME>(<EMAIL>) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following co...
/* * 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 1999-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/lice...
/*------------------------------------------------------------------------- * * ginbulk.c * routines for fast build of inverted index * * * Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION * src/...
/***************************************************************************** * mpeg_print_pcr.c: Prints PCR PID from the first program of the stream ***************************************************************************** * Copyright (C) 2011 VideoLAN * * Authors: <NAME> <<EMAIL>> * * Permission is hereby...
/* * Copyright © 2016 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
/* * anchor.c -- The anchor widget, used to link view resource, its function is * similar to <a> element in HTML. * * Copyright (c) 2018, <NAME> <<EMAIL>> All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
/* * Copyright (C) 1999-2001, 2016 Free Software Foundation, Inc. * This file is part of the GNU LIBICONV Library. * * The GNU LIBICONV 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; eit...
#define _GNU_SOURCE /* For CPU_ZERO etc */ #include <arpa/inet.h> #include <byteswap.h> #include <getopt.h> #include "hrd.h" #define BUF_SIZE M_2 #define CACHELINE_SIZE 64 #define MAX_WINDOW 512 #define MAX_SERVERS 64 double tput[MAX_SERVERS]; struct thread_params { int num_threads; /* Number of threads launched o...
/* * jpegexiforient.c * * This is a utility program to get and set the Exif Orientation Tag. * It can be used together with jpegtran in scripts for automatic * orientation correction of digital camera pictures. * * The Exif orientation value gives the orientation of the camera * relative to the scene when the i...
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Parallel for algorithm. #include "runtime.h" #include "arch_GOARCH.h" struct ParForThread { // the thread's iteration space [32lsb, 32msb) uint64 pos; /...
/* This file is part of libmicrohttpd Copyright (C) 2007 <NAME> and <NAME> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (...
/* * 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...
/* $OpenBSD: devopen.c,v 1.3 2006/08/17 06:31:10 miod Exp $ */ /* $NetBSD: devopen.c,v 1.7 1996/10/14 07:31:47 thorpej Exp $ */ /*- * Copyright (c) 1996 <NAME>. All rights reserved. * Copyright (c) 1993 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * m...
/*====================================================================* - Copyright (C) 2001 Leptonica. 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 c...
/* MQTT (over TCP) 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....
#include "./encode.h" #include "../huffbuild/huffbuild.h" #include "../fileio/fileio.h" #include <sys/types.h> #include <sys/stat.h> // Debug constants #define ENCODE_SHOW_VERBOSE_MESSAGES false #define ENCODE_SHOW_OCCURRENCES false #define ENCODE_SHOW_CODES false #define ENCODE_SHOW_DESERIALIZATION false #define ENCO...
// Copyright 2017 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...
/* ** http_vfs.c implements a read-only virtual filesystem that ** works on http and uses range queries to fetch only necessary ** pages, reducing network traffic and saving on memory (by not having to load whole file into memory) */ #include <string.h> #include <assert.h> #include <sqlite3.h> #include <os_wasm.h> //...
/* * Copyright (c) 2002-2009 <NAME>, <NAME> * Copyright (c) 2002-2008 Atheros Communications, Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copie...
/*- * Copyright (C) 2008 MARVELL INTERNATIONAL LTD. * All rights reserved. * * Developed by Semihalf. * * 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 ...
#include "control/physics/motors.h" #include <assert.h> #include <float.h> #include <math.h> #include "common/c_math/util.h" void SetMotorDirection(double rotor_omegas[], double rotor_accel[], double rotor_torques[]){ // Kitefast Motor Order -> Kitefast sign convention // // [0] starboard-inboard-top (-) // [1...
/* * Copyright (C) 1999-2001 Free Software Foundation, Inc. * This file is part of the GNU LIBICONV Library. * * The GNU LIBICONV 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; eit...
/************************************************************************** * * Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas. * 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...
/* pbCalResStdGlobal- Calculate the avg frequency and standard deviation of each AA residue for the proteins for all proteins */ #include "common.h" #include "hCommon.h" #include "hdb.h" #include "spDb.h" #include "math.h" #define MAXN 20000000 #define MAXRES 23 void usage() /* Explain usage and exit. */ { errAbort(...
/* A=b;C="d" ; E="F;" ; F= G=Z */ /* * option parser test program * written by <NAME> * this program is released in the Public Domain */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <libHX/init.h> #include <libHX/map.h> #include <libHX/option.h> static const char *const fm...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include "include/raylib.h" #include "include/raymath.h" #include "level.h" #include "main.h" #include "player.h" #include "enemy.h" #include "item.h" #include "utilities.h" //Level has level data, enemies and items //Level int mapSize = 0; LevelData *levelD...
/* incbi() * * Inverse of incomplete beta integral * * * * SYNOPSIS: * * double a, b, x, y, incbi(); * * x = incbi( a, b, y ); * * * * DESCRIPTION: * * Given y, the function finds x such that * * incbet( a, b, x ) = y . * * The routine perfor...
/* * $Id: writeavi.c 40903 2011-10-10 09:38:02Z campbellbarton $ * * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the Licen...
#include <stdio.h> #include <stdlib.h> #include "system.h" #include "altera_avalon_performance_counter.h" #include "io.h" #include "images.h" #define DEBUG 1 #define TRUE 1 #if DEBUG == 1 #define SIZE 11 #else #define SIZE 3 #endif extern void delay (int millisec); #if DEBUG == 1 unsigned char* pointer[] = {img1_24...
#include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include "widget.h" #include "utils.h" #include "state.h" /** * Creates a a rendering rect from widgte bounding box dimensions and an optional clipping rect * @param src widget bounding box rect * @param clipping rect * @return rect to be rendered */ static SDL_Rect...
/* Copyright 2014-2018 The PySCF Developers. 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 requi...
/*------------------------------------------------------------------------- * * read.c-- * routines to convert a string (legal ascii representation of node) back * to nodes * * Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $Header: /cvsroot/pgsql/src/backend/nodes...
#include "vmprof_common.h" #include <assert.h> #include <errno.h> #ifdef RPYTHON_VMPROF int get_stack_trace(PY_THREAD_STATE_T * current, void** result, int max_depth, intptr_t pc); #ifdef RPYTHON_LL2CTYPES /* only for testing: ll2ctypes sets RPY_EXTERN from the command-line */ #else # include "common_header.h"...
//-------------------------------------------- //// NAME: <NAME> //// CLASS: XIb //// NUMBER: 13 //// PROBLEM: #1 //// FILE NAME: tail.c //// FILE PURPOSE: //// Implementation of the Unix tail utility. It takes the last //// ten lines from a file or from stdin and displays them. Useful for logs. ////-------------------...
// // BRRippleAccount.c // WalletKitCore // // Created by <NAME> on 4/16/19. // Copyright © 2019 Breadwinner AG. All rights reserved. // // See the LICENSE file at the project root for license information. // See the CONTRIBUTORS file at the project root for a list of contributors. // #include <stdlib.h> #include...
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ #ifndef LINT #endif /*******************************************************...