text
stringlengths
3.12k
18.7k
// Translated from https://github.com/crystal-lang/crystal/blob/master/samples/nbodies.cr int putchar(int); void print_digits(unsigned i) { if (i == 0) { return; } print_digits(i / 10); putchar('0' + i % 10); } void print_uint(unsigned i) { if (i == 0) { putchar('0'); } else {...
/* $Id: passwd.nc 65 2007-04-18 03:53:44Z mark $ */ /* * Copyright (c) 2006, 2007 <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...
// --------------------------------------------------------------------------- // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. // --------------------------------------------------------------------------- /** * @file * @brief * This file contains the definitions of the functions that comprise ...
#include "RomaVictor.h" #include <math.h> Grafo ConstruccionDelGrafo(){ /* Lectura del FILE hasta p edge */ FILE * f = stdin; char buffer[128]; saltear_c(f,buffer); if(buffer[0] != 'p'){ printf("Formato de entrada invalido\n"); exit(-1); } char p = ' '; char *edge = cal...
/* Copyright (c) 2017, Massachusetts Institute of Technology 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...
/* clsync - file tree sync utility based on inotify/kqueue Copyright (C) 2013-2014 <NAME> <<EMAIL>> 0x8E30679C 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...
#include <stdlib.h> #include "exmemwb.h" #include "decode.h" #include "except.h" u16 insn; #if HOOK_GPR_ACCESSES u32 cpu_get_gpr(u32 gpr) { gprReadHooks[gpr](); return cpu.gpr[gpr]; } void cpu_set_gpr(u32 gpr, u32 value) { gprWriteHooks[gpr](); cpu.gpr[gpr] = value...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <time.h> /* for clock_gettime */ // My include files #include "functions.h" #include "globals.h" // ARM cycle counter readers static inline uint32_t ccnt_read (void) { uint32_t cc = 0; __asm__ volatile ("mrc p15, 0, %0, c9, c13, 0":"=r" (cc)); ...
/*--------------------------------------------------------------------------------- UTOP.C -Inverts from conserved to primitive variables based on Mignone & McKinney 2007 ---------------------------------------------------------------------------------*/ #include "decs.h" #define ERRTOL 1.e-8 #define ITERMAX ...
// Copyright 2021 XMOS LIMITED. // This Software is subject to the terms of the XMOS Public Licence: Version 1. #include <string.h> #include "rtos_usb.h" #include "class/hid.h" /* USB HID Device Product Defines */ #define BCD_DEVICE 0x1000 #define VENDOR_ID 0x20B1 #define PRODUCT_ID 0x1010 /* Standard HID ...
#pragma once struct species_mutation_message { species_type species; mutation_type mutation; const char* short_desc; ///< What appears on the '%' screen. const char* have[3]; ///< What appears on the 'A' screen. const char* gain[3]; ///< Message when you gain the mutation. const char* ...
/* * AES excercising module */ // Uses WiringPi moduel for triggering GPIO // Standard header files #define _GNU_SOURCE #include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <unistd.h> #include <signal.h> #include <pthread.h> #include <sched.h> // OpenSSL header...
/* * Copyright(C) 2012-2014 <NAME>. All Rights Reserved. * * This file is part of the YARD-ICE. * * 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.0 of the Lic...
/* matrix22_mul.c. THE FUNCTIONS IN THIS FILE ARE INTERNAL WITH MUTABLE INTERFACES. IT IS ONLY SAFE TO REACH THEM THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST GUARANTEED THAT THEY'LL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE. Copyright 2003, 2004, 2005, 2008 Free Software Foundation, Inc. Thi...
#include <dirent.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> #include "fs.h" // Forward declarations of static functions. /* * This function compares two `struct file` pointers, taking * the size into account so that the largest file ...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> #include <unistd.h> #include <curl/curl.h> #include "upload.h" #include "kvextract.h" #include "utils.h" #define DEVICE_KEY_PATH "/tmp/ssl/private/device.key" #define DEVICE_CERT_PATH "/tmp/ssl/certs/device.pem" #define FORM_DATA_SPLITTER_P...
/* * A simple libpng example program * http://zarb.org/~gc/html/libpng.html * * Modified by <NAME> to make it much simpler * and support all defined color_type. * * To build, use the next instruction on OS X. * $ brew install libpng * $ clang -lz -lpng15 libpng_test.c * * Copyright 2002-2010 <NAME>. * * Th...
/** * @file proj2.c * @brief Iteracni vypocty (projekt c. 2, predmet IZP) * * Program pomoci iteracnich algoritmu prubezne pocita arcsin a obecny logaritmus, delku lomene cary bez a s chybou * * @date 2011/11/11 * @author <NAME>, <EMAIL> */ #include <stdio.h> #include <stdlib.h> #include <string.h>...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <string.h> #include <gsl/gsl_multifit.h> //DEFINES #define SUCCESS 1 #define FAILURE -1 #define PROGRESS "====================" #define PRG_WIDTH 20 //FUNCTIONS DECLARATION int rows_number(char *); double mean(double *, int); void cumsum(double *, doub...
/* * Canon Inkjet Printer Driver for Linux * Copyright CANON INC. 2001-2017 * * 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 distribu...
/*! @file pse2pgcopy.c * @brief Register PSE raw data to RDBMS * @author: <NAME>, <NAME> * @date 2011/02/01 * @update 2021/10/15 */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <limits.h> #include <time.h> #include <string.h> #include <inttypes.h> #include <getopt.h> #include "define.h"...
/* * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in the hope...
/* * Copyright (C) 2005-2010 Freescale Semiconductor, Inc. All Rights Reserved. */ /* * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License * Version 2 or later at the following locations: * * http://www.opensource.org/licenses/gp...
/* This an ancient game. Have a gander at this: 10 REM *** CONVERTED FROM THE ORIGINAL FOCAL PROGRAM AND MODIFIED 20 REM *** FOR EDUSYSTEM 70 BY <NAME>, DIGITAL 30 REM *** MODIFIED FOR 8K MICROSOFT BASIC BY <NAME> Well, now it has been transliterated from the BASIC to C. The MIT License Copyrig...
#include <stdio.h> // adding libraries #include <stdlib.h> #include<time.h> #define N 10000 // number of people in the simulation #define total_edge 30000 #define si short int // defining type #define re 0.2 // recovery rate #define tr 0.5 // transmission rate #define t_max 300 // time bound of the sim...
#include <arpa/inet.h> /* ntohl */ #include <assert.h> /* assert */ #include <stdlib.h> /* free, NULL */ #include <string.h> /* memset */ #include "format/anvil.h" #include "format/nbt.h" /* mc_nbt_t */ #include "utils/buffer.h" /* mc_buffer_t */ #include "utils/common.h" /* mc_region_t */ static int mc_anvil...
/** \file printerdriverwidget.c * \brief Widget to control printer drivers * * \author <NAME> <<EMAIL>> * * Allows selecting drives for printers #4, #5 and #6. */ /* * $VICERES Printer4Driver -vsid * $VICERES Printer5Driver -vsid * $VICERES Printer6Driver -vsid */ /* * This file is part of VICE, th...
#include "julian_day_tests.h" void get_calendar_type_test(void **state) { intmax_t dates[5][4] = { {1581, 10, 4, JULIAN_CALENDAR}, {1582, 9, 4, JULIAN_CALENDAR}, {1582, 10, 3, JULIAN_CALENDAR}, {1582, 10, 4, JULIAN_CALENDAR}, {1582, 10, 15, GREGORIAN_CALENDAR} }; ...
/* * [open]lipc - lipc-probe.c * Copyright (c) 2016 <NAME> * * This file is a part of openlipc. * * This project is licensed under the terms of the MIT license. * * This source code is based on the reverse-engineered application, which * is a part of the Kindle firmware. The original lipc-probe application is ...
/* ---------------------------------------------------------------------------- * Support for pico-SAM9G45 Board http://arm.mini-box.com/ * ---------------------------------------------------------------------------- * Copyright (c) 2018, <NAME> <<EMAIL>> * * Based on at91sam9m10g45ek.c * Copyright (c...
/* $ gcc -Wall -Wextra -O6 -o sample_yuv_airplane.2 sample_yuv_airplane.2.c -lpigpio -lpthread $ */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <assert.h> #include <pigpio.h> int D=1100, ST=9, x, y, sx, sy; unsigned m[][4]={ {14,15,17,18}, {27,22,23,24} }; int b...
/* SPDX-License-Identifier: MIT kgchess https://github.com/kgabis/kgchess Copyright (c) 2021 <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 lim...
/** * Copyright 2021 Huawei Technologies Co., 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 applicable law...
#include <sys/types.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <openssl/sha.h> #include "benc.h" #include "metainfo.h" #include "subr.h" /* * d * announce = url * announce-list = l l url ... e ... e * info = d * name = advisory file/dir save name * piece length = power of two l...
/* CHAPTER 6 */ #include <stdio.h> #include <stdlib.h> int gcd(int, int); void sqaure(void); void square2(void); void sqaure3(void); void sum(void); void checking(void); void ex_01(void); void ex_02(void); void ex_03(void); void ex_04(void); void ex_05(void); void ex_06(void); void ex_07(void); void ex_08(void); voi...
/** * @file ngram_write_bin.c * * <JA> * @brief N-gramをバイナリ形式でファイルに書き出す * * rev.3.5 より,読み込みの高速性を考慮して書き出しのバイトオーダーを * Big endian 固定からマシン依存に変更された.またインデックスの 24bit 化 * および 2-gram のバックオフデータの圧縮も行うなど,ファイル形式の * 内部仕様が一部変更された.これにより,3.5 以降の mkbingram で * で生成したバイナリN-gramは, 3.4.2以前の Julius では使えない. * (ヘッダチェックでエラーとなる) ...
/* First tab - control panel */ #include "brut.h" void control(); void attach_hardware(GtkWidget *); void attach_time(GtkWidget *); void attach_accounts(GtkWidget *); void attach_network(GtkWidget *); void ChangeTab(GtkWidget *item, gpointer page); void ChangeTab(GtkWidget *item, gpointer page) { int newtab = 0; ...
#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-2012 Broadcom Corporation * * 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: * ...
/* Emulations of the CB operations of the Z80 instruction set. * Copyright (C) 1994 <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 Software Foundation; either version 2 of the License, or * (at your...
/* * Copyright (c) 2002 - 2006, Netherlands Forensic Institute * * 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 * ...
/******************************************************************************/ /** * @file Application.c * @author <EMAIL> * @section DESCRIPTION * A HTU application implementation. */ /******************************************************************************* * Include Files */ #include "mcc_genera...
// ------------------------------------------- i2cUtil.c -------------------------------------- // #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include <linux/i2c-dev.h> #include <linux/fs.h> #include "i2cUtil.h" #include <sys/ioctl.h> void setI2cAddress ...
/* GObject - GLib Type, Object, Parameter and Signal Library * Copyright (C) 1997-1999, 2000-2001 <NAME> and Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either *...
#include "arch/amd64/multiboot2.h" #include "arch/amd64/boot/yboot.h" #include "arch/amd64/hw/rs232.h" #include "arch/amd64/hw/vesa.h" #include "arch/amd64/hw/apic.h" #include "arch/amd64/smp/smp.h" #include "arch/amd64/hw/acpi.h" #include "arch/amd64/mm/phys.h" #include "arch/amd64/hw/gdt.h" #include "arch/amd64/hw/co...
#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...
/* !!DESCRIPTION!! Signed comparisons of the form: (variable<=LIT) !!ORIGIN!! SDCC regression tests !!LICENCE!! GPL, read COPYING.GPL */ #include <stdio.h> #include <limits.h> /* This regression test exercises all of the boundary conditions in literal less than or equal comparisons. There are numer...
/* Copyright (c) 2010 - 2020, 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 notice, this * l...
/*! \file main.c \brief TIMER2 oc inactive demo for gd32f1x0 \version 2014-12-26, V1.0.0, platform GD32F1x0(x=3,5) \version 2016-01-15, V2.0.0, platform GD32F1x0(x=3,5,7,9) \version 2016-04-30, V3.0.0, firmware update for GD32F1x0(x=3,5,7,9) \version 2017-06-19, V3.1.0, firmware update for...
// testmain.c // 07-Feb-14 <NAME> <<EMAIL>> #include <stdio.h> #include <stdlib.h> #include <time.h> #include "stribob.h" #include "api.h" #include "crypto_aead.h" // print byte vectors void debug_vec(const void *p, size_t len) { size_t i; for (i = 0; i < len; i++) { switch (i & 0xF) { ...
#include <stdio.h> #include <stdlib.h> #include "platform.h" #include "xil_printf.h" #include "xknearestneighbor.h" #include "xil_io.h" // for reading/writing to individual memory locations #include "xil_mem.h" // for memcpy #include "xparameters.h" // Parameter definitions for...
#include "unicode_data_table.h" int16_t *codepoint_lut=NULL; #ifdef RL_INCL_UNICODE_DATA const char *uccat_name[] = {"Lu", "Ll", "Lt", "Lm", "Lo", "Mn", "Mc", "Me", "Nd", "Nl", "No", "Pc", "Pd", "Ps", "Pe", "Pi", "Pf", "Po", "Sm", "Sc", "Sk", "So", "Zs", "Zl", "Zp", "Cc", "Cf", "Cs", "Co", "Cn"}; const char *bidicat_n...
// File: c:/bsd/rigel/sort/DdcChen.c // Date: Sat May 23 15:18:12 2020 // (C) OntoOO/ <NAME> static const int ddcchenLimit = 1024*1024; static void ddcchenc(); void ddcchen(void **A, int N, int M, int (*compare)()) { // printf("ddcchen %d %d %d\n", N, M, M-N); int L = M - N; if ( L < ddcchenLimit ) { qu...
#include <stdint.h> #include <stddef.h> #include <string.h> #include "patch.h" #include "bx_dbg.h" #include "log.h" #include "ahi.h" #include "rwip.h" #include "periph_mngt.h" #define RX_TMP_BUFF_SIZE AHI_RESET_MSG_LEN #define WR_MEM_CMD 0x06 #define RD_MEM_CMD 0x07 #define SLEEP_EN_CMD 0x08 #define ADDR_SIZE 4 #d...
/* * Copyright (c) 2010 Aalto University and RWTH Aachen University. * * 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 ...
/* PR c/17308 - nonnull attribute not as useful as it could be PR c/78673 - sprintf missing attribute nonnull on destination argument { dg-do "compile" } { dg-additional-options "-O2 -Wnonnull -ftrack-macro-expansion=0 -std=c99" } */ #define va_list __builtin_va_list typedef struct FILE FILE; char* null (vo...
// Copyright (c) 2017 // <NAME> <<EMAIL>> // <NAME> <<EMAIL>> // // License: MIT (see LICENSE for details) #include "ble/nsec_ble.h" #include <nrf.h> #include <nrf_error.h> #include <nrf_gpio.h> #include <nrf_delay.h> #include <nrf52.h> #include <nrf52_bitfields.h> #include <nordic_common.h> #include <stdint.h> ...
/* * assoc.c * * Associate catalogues. * *%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% * * This file part of: SExtractor * * Copyright: (C) 1997-2013 <NAME> -- IAP/CNRS/UPMC * * License: GNU General Public License * * SExtractor is free software: you can redistribute it and/or modi...
/************************************************************************** * * Copyright (c) 2013 Alcatel-Lucent * * Alcatel Lucent licenses this file to You 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 conta...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <hdf5.h> #include <math.h> #define MYFILE "myTest.h5" #define DATASET "DS1" #define SIZE 30*20*10*2 typedef struct { int id; int x; int y; int z; }dimensions; void initData(dimensions ptr[], int sizex, int size...
/*======================================================================= Program: NDI Combined API C Interface Library Module: $RCSfile: ndicapi_math.c,v $ Creator: <NAME> <<EMAIL>> Language: C Author: $Author: dgobbi $ Date: $Date: 2005/07/01 22:52:05 $ Version: $Revision: 1.2 $ ====...
#include <atmel_start.h> #include <atmel_start_pins.h> #include <hal_delay.h> #include <hpl_reset.h> #include <SEGGER_RTT.h> #include <modules.h> #include <weather.h> #include "sidecar.h" #include "board.h" #include "eeprom.h" #include "sensors.h" #include "crc.h" #include "aggregated.h" static volatile uint8_t tak...
/** * \file src/matpow.c * \brief Sparse matrix-power-vector multiply implementation. * * This module implements the matrix type-independent version, * which performs error-checking first and then calls the * the appropriate kernel implementation. */ #include <oski/common.h> #include <oski/matrix.h> #inclu...
/* lineblend.c * * To compile: cc -o lineblend lineblend.c -lGL -lGLU -lX11 -lglut -lXmu * * Usage: lineblend * * This is an puffed up version of the first GL assignment we had for my * graphics class: write a 2-d openGL program w/ color and interactivity. * * Left and middle buttons drawn colored lines, rig...
#include "config.h" #include <orc/orc.h> #include <orc/orcparse.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> int verbose = 0; int error = 0; int compat; char *target = "sse"; #define ORC_VERSION(a,b,c,d) ((a)*1000000 + (b)*10000 + (c)*100 + (d)) #define REQUIRE(a,b,c,d) do { \...
/* ==== PERVASIVE TIME ==== * * Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>. * 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 sour...
/* * Copyright (c) 2003 <NAME> * Copyright (c) 2003 Massachusetts Institute of Technology * * 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 ...
/** * Copyright 2020 Huawei Technologies Co., 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 applicable law...
/* * Copyright (c) 2018 Marvell * Copyright (c) 2018 Lexmark International, Inc. * Copyright (c) 2019 <NAME> <<EMAIL>> * * SPDX-License-Identifier: Apache-2.0 */ /* * NOTE: This driver currently implements the GICv1 and GICv2 interfaces. The * GICv3 interface is not supported. */ #include <device.h> #i...
/* * Copyright (C) 2013-2020 Cisco Systems, Inc. and/or its affiliates. All rights reserved. * Copyright (C) 2007-2013 Sourcefire, Inc. * * Authors: <NAME> * * Acknowledgements: The idea of number encoding comes from yyyRSA by * <NAME>. * * This program is free software; you can redistr...
#include <stdio.h> #include <stdlib.h> #include "lista.h" #include "item.h" ///////////////////// Abstracao Maxima - Listas //////////////////////// Lista* nova_lista(){ Lista *l= malloc( sizeof(Lista) ); l->cabeca=NULL; l->cauda=NULL; return l; } int lista_vazia(Lista *l){ return (l->cabeca==NULL && l->cauda==NU...
/***************************************************************************//** * # License * * The licensor of this software is Silicon Laboratories Inc. Your use of this * software is governed by the terms of Silicon Labs Master Software License * Agreement (MSLA) available at * www.silabs.com/about-us/legal/...
/* This file is part of Kismet and of HackRF HackRF sweep components based on hackrf_sweep.c from the HackRF project, Copyright 2016 <NAME> <<EMAIL>> Copyright 2016 <NAME> <<EMAIL>> Copyright 2017 <NAME> <<EMAIL>> Kismet is free software; you can redistribute it and/or modify it u...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <netinet/ip_icmp.h> #include <netinet/in.h> #include <arpa/inet.h> #include <net/if.h> #include <net/if_arp.h> #include <sys/ioctl.h> #include <bit...
/* * IMPORTANT: WRITE YOUR NAME AND NetID BELOW. * * Last Name: Gadodia * First Name: Vaibhav * Netid: vag273 * * You will do your project in this file only. * Do not change function delarations. However, feel free to add new functions if you want. * */ #include <stdio.h> #include <stdlib.h> #include <s...
/* $OpenBSD: vis.c,v 1.24 2015/07/20 01:52:28 millert Exp $ */ /*- * Copyright (c) 1989, 1993 * 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: ...
#include <stdbool.h> #include <stdlib.h> #include <string.h> #include <malloc.h> #include "gt.h" #define PTR uintptr_t #define PTRSZ sizeof(PTR) #if defined(__i386__) #elif defined(__x86_64__) #define GT64 1 #else # error Unsupported architecture #endif typedef struct { #ifdef GT64 union { uint64_t...
/* PipeWire * * Copyright © 2021 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify,...
/*####COPYRIGHTBEGIN#### ------------------------------------------- Copyright (C) 2007 <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 Software Foundation; either version 2 of the License, or (at your optio...
/* * BinClock.c * <NAME> * Modified for EEE3095S/3096S by <NAME> * August 2019 * * SLDALE003 and TVRJAC001 * 20 August 2019 */ #include <wiringPi.h> #include <wiringPiI2C.h> #include <stdio.h> //For printf functions #include <stdlib.h> //For system functions #include <signal.h> //For cleanup fucntion #inclu...
/* MQTT-SN command-line publishing client Copyright (C) 2013-2017 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to...
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>) * All rights reserved. * * This package is an SSL implementation written * by <NAME>ung (<EMAIL>). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following condition...
/* Copyright (C) 2007-2013 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
#include "../headers/compiler.h" #include <string.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> // the instruction properties load from file typedef struct { char inst[8]; char type; code op; code func; } instProp; // used to look up for func code and op code static instProp instDict[MAXINSTC...
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) /* Copyright (c) 2018 Facebook */ #include <stdlib.h> #include <memory.h> #include <unistd.h> #include <linux/bpf.h> #include <linux/rtnetlink.h> #include <sys/socket.h> #include <errno.h> #include <time.h> #include "bpf.h" #include "libbpf.h" #include "libbpf_in...
/* * BlueALSA - io.c * Copyright (c) 2016-2021 <NAME> * * This file is a part of bluez-alsa. * * This project is licensed under the terms of the MIT license. * */ #include "io.h" #include <errno.h> #include <fcntl.h> #include <poll.h> #include <pthread.h> #include <string.h> #include <unistd.h> #include <gli...
#include <stdio.h> #include <stdlib.h> #include <libftdi1/ftdi.h> #include <unistd.h> #include <time.h> #include <arpa/inet.h> #include <sys/socket.h> #include "sema.c" #include <string.h> #define PORT 5120 //The port on which to listen for incoming data #define SIZE_OF_UNIVERSE 512 #define REPORT_INTERVAL 5 #define ...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <omp.h> #define I(x,y) (x)*(Lx-(x))*(y)*(Ly-(y)) #define V(x,y) (x)*(Lx-(x))*(y)*(Ly-(y)) #define S(x,y,t) 0 #define f(x,y,t) 2*c*c*(1+(t)/2)*((y)*(Ly-(y))+(x)*(Lx-(x))) #define ua(x,y,t) (x)*(Lx-(x))*(y)*(Ly-(y))*(1+(t)/2) // if S=const. (dS/dt=0) set...
/* $Copyright: $ * Copyright (c) 1996 - 2018 by <NAME> (<EMAIL>) * All Rights reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your opt...
#include "geminc.h" #include "gemprm.h" #include "Nxm.h" #define RESOURCE_FILE "Nalarm" /* * Private functions */ static Boolean notify_me ( Widget w ); Boolean check_sound ( char *dname ); static void check_alarm_product ( Widget w, XtIntervalId *id ); void get_from_child ( Widget w, int *fid, XtInputId *id ); v...
/* * Copyright (c) 2003-2009, <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 condit...
// Copyright (c) 2021 <NAME> -- see LICENSE file // --------------------------------------------------------------------- // lzma - a Lua binding to LZMA by <NAME> (7z) // all the LZMA code included here is Public Domain // this binding has been taken from luazen-0.16 // https://github.com/philanc/luazen #define V...
/*- * Public Domain 2014-2016 MongoDB, Inc. * Public Domain 2008-2014 WiredTiger, Inc. * * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary,...
#include "double_helpers.h" #include <assert.h> #include "util.h" #include "double_output.h" #ifdef DEBUG #include <stdio.h> void _fp_inspect_print(const char *var_name, const double_t x) { // Format: // var-name = +/- // (value) [reinterpreted-as-double %lf] [reinterpreted-as-double %le] // exponen...
/* * (C) Copyright 2013 * Texas Instruments Incorporated, <www.ti.com> * * <NAME> <<EMAIL>> * * Based on previous work by: * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <palmas.h> #include <sata.h> #include <asm/gpio.h> #include <asm/arch/g...
/* Copyright (C) 2002 <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 your option) any later version. This program is...
#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include "server.h" #include "communication.h" #include "wm.h" char usage[] = "usage: sosc [--help] <action> <actor> [argument]\n" "commmands: \n" ...
/*********************************************************************/ /* Copyright 2009, 2010 The University of Texas at Austin. */ /* All rights reserved. */ /* */ /* Redistribution and use in sou...
/* * Copyright (c) 2018-2019 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list o...
/* * httpclient.c * * Created on: 6Jun.,2018 * Author: bob */ /* HTTP CLIENT FOR RAW LWIP (c) 2008-2009 <NAME> PUBLIC VERSION V0.2 16/05/2009 This program is free software; you can redistribute it and/or modify it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1 as published by th...