text
stringlengths
3.08k
10.5k
//<NAME> #include<mpi.h> #include<stdio.h> #include<stdlib.h> #include<math.h> #include<time.h> enum { MASTER=0, FROM_MASTER=1, FROM_WORKER=2 }; double estimate_g(double lower_bound, double upper_bound, long long int N); void collect_results(double *addr); double initialize_data(); double re...
// Note: This code is derivative of the Pony runtime; see README.md for more details #include "platform.h" #define PONY_WANT_ATOMIC_DEFS #include "actor.h" #include "scheduler.h" #include "cpu.h" #include "pool.h" #include <assert.h> #include <string.h> #include <stdio.h> void ponyint_actor_destroy(pony_actor_t* a...
/* * Copyright (c) 2016, Linaro Limited * 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 conditi...
/* cdwPublicSubset - Create a subset of cdw database only including publicly accessible files.. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "jksql.h" #include "cdw.h" #include "cdwLib.h" #include "portable.h" void usage() /* Explain usage and exit. */ { errAbort( "cdw...
#include <drivers/ioapic.h> #include <drivers/lapic.h> #include <kernel/acpi/acpi.h> #include <kernel/compiler.h> #include <kernel/io.h> #include <kernel/kassert.h> #include <kernel/kprint.h> #include <kernel/util.h> #include <mm/mmu.h> #include <mm/types.h> #include <sys/types.h> #include <errno.h> #include <stdbool.h...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Show the usage of GPIO external interrupt function and de-bounce function. * * @copyright (C) 2013~2015 Nuvoton Technology Corp. All rights reserved. ***********************************...
// // Created by <NAME> on 8/22/21. // #include <assert.h> #include <stdlib.h> #include <strings.h> #include "buddyP.h" #include "ooio.h" logical traceBuddyMemory = False; buddyRegionPo createRegion(integer size, integer minSize) { integer lg = lg2(size); assert(size == (1 << lg)); integer lg2Min = lg2(minSize...
/* * Copyright (C) 2019-2021 Data Ductus AB * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disc...
/** * 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...
//////////////////////////////////////////////////////////////////////////////// // // // MIT X11 license, Copyright (c) 2005-2006 by: // // ...
/** * This version is stamped on May 10, 2016 * * Contact: * <NAME> <pouchet.ohio-state.edu> * <NAME> <tomofumi.yuki.fr> * * Web address: http://polybench.sourceforge.net */ /* ludcmp.c: this file is part of PolyBench/C */ #include <stdio.h> #include <unistd.h> #include <string.h> #include <m...
#include <glib.h> #include <string.h> #include "fk.h" #define FK_IS_INACTIVE(x) (x & FK_FLAG_INACTIVE) /*********** * GLOBALS * **********/ GHashTable *FK_HASH; FKDestroyCallback FK_DESTROY_CALLBACK; /********************** * SETUP AND TEARDOWN * *********************/ /* Function to free a key. The key must ...
/* Copyright (C) 2008 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the...
// Module for interfacing with the I2C interface #include "platform.h" #include "picoc_mod.h" #include "picoc.h" #include "interpreter.h" #include <string.h> #include <ctype.h> #include "rotable.h" /* platform variables */ const int Fast = PLATFORM_I2C_SPEED_FAST; const int Slow = PLATFORM_I2C_SPEED_SLOW; const int T...
/* * Copyright 2013-2014 <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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * 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...
/** * This program implements a shell. * * The shell features the ability to run commands in the background and * keeps a history of previous commands. * * @author <NAME> */ #include <stdio.h> #include <stdlib.h> #include <memory.h> #include <sys/wait.h> #include <unistd.h> #include "parser.h" #define MAX_CMD...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "arquivos.h" void descadrastrar(char nome_arq[], cadastro ** cabeca3){ cadastro * temp = NULL; cadastro * anterior = NULL; cadastro * atual = *cabeca3; if(NULL == atual){ printf("Erro! Nenhum arquivo cadastrado.\n"); re...
/** * load.c * * Copyright (C) 2018 zznop, <EMAIL> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include <string.h> #include <stdlib.h> #include <stdint.h> #include <sys/stat.h> #include "load.h" #include "output.h" #include "utils...
/* * Part of `snmp-query-engine`. * * Copyright 2012-2014, <NAME> <<EMAIL>> * Modified BSD license. * (See LICENSE file in the distribution.) * */ #include "sqe.h" static struct socket_info *snmp = NULL; static void snmp_process_datagram(struct socket_info *snmp, struct sockaddr_in *from, char *buf, int n) { ...
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { int row;//行 int col;//列 int *data; } Matirx; // ------------- 声明 -------------------- //初始化 Matirx *init(Matirx *matirx, int row, int col); //初始化数据 void initData(Matirx *matirx, int *array); int getMatirxSize(Matirx *matirx); ...
/* * This file is part of the UCB release of Plan 9. It is subject to the license * terms in the LICENSE file found in the top-level directory of this * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No * part of the UCB release of Plan 9, including this file, may be copied, * modified, prop...
//****************************************************************** // // Copyright 2015 Intel Mobile Communications GmbH All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except ...
/** * Exercise 5-6, page 89 * Упражнение 5.6, страница 118 * * Rewrite appropriate programs from earlier chapters and exercises with pointers * instead of array indexing. Good possibilities include getline (Chapters 1 and 4), atoi, itoa, * and their variants (Chapters 2, 3, and 4), reverse (Chapter 3), and strin...
/*! * \file sample-static.c * * \author FTDI * \date 20110512 * * Copyright � 2000-2014 Future Technology Devices International Limited * * * THIS SOFTWARE IS PROVIDED BY FUTURE TECHNOLOGY DEVICES INTERNATIONAL LIMITED ``AS IS'' AND ANY EXPRESS * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLI...
/* lpc.roottest.f -- translated by f2c (version 19950110). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__1 = 1; /* Subroutine */ int rootst_(anal, unstab, npoles, ifirst, ilast, anal_len, unstab_len)...
/** * Taller: Desarrollar un sistema C/S para compartir archivos con las siguientes características: * * Servidor: * Debe soportar varios clientes simultáneos * Debe compartir todos los archivos de texto en una carpeta predeterminada * La conexión con cada cliente debe permanecer abierta hasta que el ...
/* ************************************************************************ * Copyright 2013 Advanced Micro Devices, Inc. * * 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...
#include <stdbool.h> #include <time.h> #include "include/schain_hash.h" #include "include/hashio.h" #define OUT_PATH "data/timestamps" #define BILLION 1000000000.0 #define KEY_MAX_L 12 #define VALUE_MAX 100000 #define __INIT_DELTA_TIME__ \ double time_d; \ struct timespec start, end; \ #define __START_DELTA_...
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * 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 cod...
#include<stdio.h> #include<stdlib.h> #include<string.h> // struct node{ char letter; int freq; struct node *left, *right, *next; }; typedef struct node NODE; void insertLinkedList(NODE**,char); // creating and inserting linked list void printLinkedList(NODE**); // printing linked list void insertionSortToLinkedList...
/* main.c - TCP traffic generator for experiments Author: <NAME> Date Feb 26 2021 references: how to write a good main file: https://opensource.com/article/19/5/how-write-good-c-main-function how to struct multi-file c: https://opensource.com/article/19/7/structure-multi-file-c-part-1 https...
/* * proc_utils.c * Copyright (C) 2016 <NAME> <<EMAIL>> * * Distributed under terms of the MIT license. */ #include <stdio.h> #include <stdlib.h> // For strtoul #include <string.h> #include <errno.h> #include <dirent.h> // For opendir #include "proc_utils.h" #include "log_utils.h" #define ADDR_LEN_MAX ((2 * 2 *...
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include "aos/kernel.h" #include <stdio.h> #include <stdbool.h> #include <string.h> #include <breeze.h> #define BZ_PRINT printf #if defined(OTA_CONFIG_BLE) #include "ota/ota_agent.h" static ota_service_t ctx = {0}; #endif /*device info defination*/ #...
/* <https://github.com/rafagafe/base64> Licensed under the MIT License <http://opensource.org/licenses/MIT>. SPDX-License-Identifier: MIT Copyright (c) 2016-2018 <NAME> <<EMAIL>>. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentati...
/** * @file link.c * @brief application for sending files over Wifi connection * * @author <NAME> (<<EMAIL>>) * @version 1.0 * @since 1.0 * * @copyright Copyright (c) 2016-2017 * @copyright Apache License, Version 2.0 */ #include <stdlib.h> #include "linkutils.h" #include "master.h" #include "sleave.h" #include "argp....
#include <assert.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include <netcode/c/data.h> #include <netcode/c/decoder.h> #include <netcode/c/encoder.h> /*------------------------------------------------------------------------------------------------*/ // A context to save informations needed by ca...
#include "connection.h" #include "skynet.h" #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #define DEFAULT_BUFFER_SIZE 1024 #define DEFAULT_CONNECTION 16 struct connection { int fd; uint32_t add...
/* * Copyright (C) 2012-2015, <NAME> <http://juan.cl/> * All rights reserved. * * This file is part of MultimediaTools. https://github.com/juanbarrios/multimedia_tools * MultimediaTools is made available under the terms of the BSD 2-Clause License. */ #include "timer_util.h" #include <time.h> #if IS_WINDOWS #in...
/* * Copyright (c) 2014, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2015-2018, Renesas Electronics Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <debug.h> #include <io_driver.h> #include <io_storage.h> #include <string.h> #include "rcar_def.h" #inc...
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <stdio.h> #include <stdlib.h> #include <time.h> #include "dsp_test_util.h" #include "dsp_util.h" #include "eq.h" #include "raw.h" #i...
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "tldevel.h" #include "tllogsum.h" #include "matrix_io.h" #include "make_dot_file.h" int make_dot_from_matrix(char* in_matrix, char* out_dot) { struct double_matrix* matrix = NULL; FILE* f_ptr = NULL; ...
/* Copyright © <NAME>, 2020-2021, All rights reserved */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdint.h> #include <mysql.h> #include <time.h> #include <libconfig.h> #include <mosquitto.h> #define CONFIG_FILE "/home/pi/.zappi.cfg" void exit_on_error(char* call, MYSQ...
/* %w% %g% */ /************************************************************************ * * * ***********************************************************************/ #include <errno.h> #include <malloc.h> #include <math.h> #include <regex.h> #include "db.h" #include "coords.h" #include "stock.h" #include "orb...
#include <stdlib.h> #include <stdbool.h> #include <SDL2/SDL.h> #include <SDL_image.h> #include "window.h" #include "ship.h" #include "entities.h" #include "input.h" #include "game.h" #include "background.h" FpsCounter* FPSC_init() { FpsCounter* counter = malloc(sizeof(FpsCounter)); counter->frame_count = 0; co...
/* * file.c - File writing functionality * The author 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. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
#include "clientconn.h" void clear_complete_clientconn_infos(clientconninfo_t* clientconn_infos, uint8_t clientconn_infos_len) { for(int i = 0; i < clientconn_infos_len; i++) { int conn_timed_out = 0; if(clientconn_infos[i].available == 0) { time_t timeout_secs = time(NULL) - clientc...
/* * The olsr.org Optimized Link-State Routing daemon(olsrd) * Copyright (c) 2004, <NAME>(<EMAIL>) * Copyright (c) 2007, Sven-Ola for the policy routing stuff * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
/* packet-cimetrics.c * Routines for Cimetrics LLC OUI dissection * Copyright 2008 <NAME> <<EMAIL>> Alabama * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Pub...
/* * eChronos Real-Time Operating System * Copyright (c) 2017, Commonwealth Scientific and Industrial Research * Organisation (CSIRO) ABN 41 687 119 230. * * All rights reserved. CSIRO is willing to grant you a licence to the eChronos * real-time operating system under the terms of the CSIRO_BSD_MIT license. See ...
// <NAME> - 44419093 // <NAME> - 74157306 // <NAME> - 52504836 // <NAME> - 51338217 #include <netinet/in.h> #include "csapp.h" #define LOGFILE "proxy.log" /* Function prototypes */ int parse_uri(char *uri, char *hostname, char *pathname, int *port); void format_log_entry(char *ipAddress, char *url, unsigned int siz...
/****************************************************************************** Copyright (c) 2017-2019 Analog Devices, Inc. All Rights Reserved. This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agree...
#include <xlog/xlog.h> #include <xlog/xlog_helper.h> #include "internal.h" #ifdef __GNUC__ #pragma GCC diagnostic ignored "-Wpragmas" #pragma GCC diagnostic ignored "-Wunknown-pragmas" #pragma GCC diagnostic ignored "-Wzero-length-array" #pragma GCC diagnostic ignored "-Wsign-compare" #pragma GCC diagnostic ignored "...
/* * $Id: text_header.c 36788 2011-05-20 05:27:31Z 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 Li...
/* * Razer BlackWidow Macro Keys Enabler * Copyright (C) 2016 B.Walden * * This program sends a init packet used by Razer proprietary drivers * to initialize the 'Macro' keys on Razer BlackWidow keyboards. * * Note: BlackWidow Keyboards do not have any onboard memory for macros * Razer use software for ma...
/* * An OCaml wrapper for the PROJ.4 C library. * by <NAME> * */ /* Required on versions of proj. */ #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H /* The "usual" OCaml includes */ #include <caml/alloc.h> #include <caml/callback.h> #include <caml/fail.h> #include <caml/memory.h> #include <caml/misc.h> #include <cam...
/* As the name suggests, this has no relation with the main file, I used it for testing a few things out, look it up only if you really need to*/ #include <stdio.h> int positionHoldingMaxScore; int noOfCalls = 0; int maxDepth; int min(int a, int b) {return (a > b) ? b : a;} int max(int a, int b) {return (a > b) ? a :...
# include <stdio.h> # include <stdlib.h> # include <fitsio.h> #include "hstcal.h" # include "ctables.h" # define COL_INCR 10 /* This is a set of functions used by the tables C interface functions. The prototypes for these are in ctables.h. TableDescr *tbl_descr pointer to a table descriptor Column...
#include <limits.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> // 牌面 const char ranks[] = {'2', '3', '4', '5', '6', '7', '8', '9', 't', 'j', 'q', 'k', 'a'}; // 花色 const char suits[] = {'c', 'd', 'h', 's'}; #define NUM_CARDS 5 #define NUM_RANKS ((int)(sizeof(ranks) / sizeof(ranks...
#include "minray.h" void ray_trace_kernel(Parameters P, SimulationData SD, RayData rayData, uint64_t ray_id) { double distance_travelled = 0.0; int intersection_id = 0; double x = rayData.location_x[ ray_id]; double y = rayData.location_y[ ray_id]; double x_dir = rayData.direction_x[ray_id]; doubl...
#include <unistd.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <sys/wait.h> #include <stdlib.h> #include <ctype.h> #include <sys/types.h> #include <sys/stat.h> #include <signal.h> #include <fcntl.h> #include "./jobs.h" #include "./help.h" #include "./parse.h" #include "./reap.h" #include "./exec...
#include <stdio.h> #include <libgen.h> #include <unistd.h> #include <string.h> #include <stdlib.h> #include <stddef.h> #include <getopt.h> #include "process.h" #include "log.h" char *suffix = ".dp"; void usage(char * bin){ log_info("usage:"); log_info(" %s [-fvvsh] [-i input] [-o output] [/path/to/input/file]", ...
#include "Arduino.h" #include "driver.h" #include "serial.h" #include "file.h" static axes_signals_t limit_ies; bool driver_init() { hal.info = "SAME53"; hal.driver_version = __DATE__; hal.driver_options = OPTIONS; hal.board = BOARD_NAME; serialInit(); hal.stream.read = serial...
/*- * Copyright (c) 2014 UPLEX Nils Goroll Systemoptimierung * Copyright (c) 2014 Otto Gmbh & Co KG * All rights reserved * Use only with permission * * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following cond...
#include <stdlib.h> #include <GL/glut.h> #include <math.h> GLint nVertices=6; GLfloat vertices[6][3] = { {-4.0, 0.0, 0.0}, {-4.0, +4.0, 0.0}, {+4.0, -4.0, 0.0}, {-4.0, -4.0, 0.0}, {+4.0, +4.0, 0.0}, {+4.0, 0.0, 0.0} }; GLint largura, altura; GLint mudaCurva=0; GLint verticeCorrente=0; GLfloat esqu...
/* Copyright (c) 2007 <NAME> <<EMAIL>> Copyright (c) 2007 Center for Bioinformatics, University of Hamburg Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all cop...
/// MentOS, The Mentoring Operating system project /// @file list_head.h /// @brief /// @copyright (c) 2019 This file is distributed under the MIT License. /// See LICENSE.md for details. #pragma once #include "stddef.h" /// @brief Structure used to implement the list_head data structure. typedef st...
#include "Quadro.h" /* * **************************************************** * OPERACOES BASICAS DO QUADRO * **************************************************** */ char** iniciarQuadro(int linha, int coluna){ /* * ALOCANDO ESPACO PARA UM QUADRO EM BRANCO SEM MOLDURA */ char** quadro = (char**)...
/* * Copyright (c) 2018, Open Communications Security * 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, ...
/* * $Id$ * * Copyright (c) 2009 <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 A...
/** * Copyright 2013-2015 by Explorer Developers. * Lab Explorer Developers<<EMAIL>> * Explorer Graphical User Interface Window System Task Bar * Explorer/GUI/window/task_bar.c * version:Alpha * 2/5/2015 1:37 PM */ #include <GUI.h> #include <time.h> #include <studio.h> #include <stdlib.h> #include <stdbool.h> #...
#include <SDL/SDL_opengl.h> #include <stdint.h> #include <stdlib.h> #include "ark.h" #include "block.h" #include "render.h" #include "memfile.h" #include "data_blocks.h" #define DEPTH (15.f) blocktype_t* blocktype[NUM_BLOCK_TYPE]; void load_blocks() { blocktype[0] = load_block(mem_to_file(data_block0, sizeof(data...
#include "bigint_sa.h" bigint *bigint_add(bigint *a, const bigint *b) { const bigint *t; static bigint_unit msb = (bigint_unit)1 << (bigint_unit_bits - 1); /* * if we bigint_add() the same number, we will have memory errors * since a could get replaced with a new address... keep track of this ...
/* * 2017 is a prime number. * This program tests if a number is prime. * Idea from http://www.xkcd.com/1779/ * * Copyright (c) 2017-2019, <NAME> <<EMAIL>> * * See LICENSE.md in this directory for Licence information */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> /* for getopt(3) */ #include "isp...
/* $XConsortium: roi.c,v 1.4 94/04/17 20:33:58 rws Exp $ */ /* $XFree86: xc/programs/Xserver/XIE/dixie/request/roi.c,v 3.0 1996/03/29 22:11:26 dawes Exp $ */ /**** module roi.c ****/ /**************************************************************************** Copyright (c) 1993, 1994 X Consortium Permission is here...
// PARAM: --sets solver td3 --enable ana.int.interval --enable exp.partition-arrays.enabled --set ana.activated "['base','threadid','threadflag','expRelation','mallocWrapper']" int main(void) { example1(); example2(); example3(); example4(); example5(); example6(); example7(); example8(...
/* // Copyright (c) 2017 Lynx Technology // Copyright (c) 2018 Intel Corporation // Copyright (c) 2019 Kistler Instrumente AG // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ht...
#include <sys/socket.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <arpa/inet.h> #include <netinet/in.h> #include <string.h> #include <fcntl.h> #include <sys/stat.h> #include <ctype.h> /* TODO * client-server application to transfer files from client to server * * ./client SERVER_IP PORT_NU...
/*= -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- * * librsync -- the library for network deltas * $Id: buf.c,v 1.22 2003/12/16 00:10:55 abo Exp $ * * Copyright (C) 2000, 2001 by <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesse...
/* pthread_hurd_cond_timedwait_np. Hurd-specific wait on a condition. Copyright (C) 2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as publi...
/* Filename: lzufd2.c (Oct. 22, 2008).(4/11/2010) Encoder: lzuf2.c Decompression in LZ77/LZSS is faster since you just have to extract the bytes from the window buffer using the pos and len variables. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "utypes.h" #include "gtbit...
#include <mruby.h> #include <mruby/class.h> #include <mruby/compile.h> #include <mruby/irep.h> #include <mruby/proc.h> #include <mruby/opcode.h> #include <mruby/error.h> struct REnv *mrb_env_new(mrb_state *mrb, struct mrb_context *c, mrb_callinfo *ci, int nstacks, mrb_value *stack, struct RClass *tc); mrb_value mrb_ex...
/* Set flags signalling availability of kernel features based on given kernel version number. Copyright (C) 1999-2015 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Gene...
/* libpnm1.c - pnm utility library part 1 ** ** Copyright (C) 1989 by <NAME>. ** ** Permission to use, copy, modify, and distribute this software and its ** documentation for any purpose and without fee is hereby granted, provided ** that the above copyright notice appear in all copies and that both that ** copyright n...
#include <stdio.h> double *print1DimFeld(double feld[], int anzahl) { printf("print1DimFeld:\n"); for (int i = 0; i < anzahl; i++) { printf("feld[%d] %p => %f\n", i, &feld[i], feld[i]); } printf("\n\n"); return &feld[0]; } void eindimensionalesFeld() { char text1[] = "Hi"; printf(...
#define _FILE_OFFSET_BITS 64 #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/ioctl.h> #include "proftimer.h" #include "chario.h" #include "output.h" #define NELEMS(x) (sizeof(x)/sizeof((x)[0])) #define RAND_SEED 1 #define BLOCK 4096 #define DDR_START 0...
/* * pwm.c * * Created on: 11.06.2013 * Author: braun */ #include "stdint.h" //#include "stm32f30x.h" //#include "stm32f30x_rcc.h" //#include "stm32f30x_gpio.h" //#include "stm32f30x_tim.h" #include "stm32f37x.h" #include "stm32f37x_rcc.h" #include "stm32f37x_gpio.h" #include "stm32f37x_tim.h" #include "pwm...
/* * The mrouted program is covered by the license in the accompanying file * named "LICENSE". Use of the mrouted program represents acceptance of * the terms and conditions listed in that file. * * The mrouted program is COPYRIGHT 1989 by The Board of Trustees of * Leland Stanford Junior University. * * * in...
#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 <string.h> #include "common.h" #include "scanner.h" typedef struct { const char *start; const char *current; int line; } Scanner; Scanner scanner; void initScanner(const char *src) { scanner.start = src; scanner.current = src; scanner.line = 1; } static inline bool is_alpha(char c)...
/* psselect.c * Copyright (C) <NAME> 1991-1995 * See file LICENSE for details. * * rearrange pages in conforming PS file for printing in signatures * * Usage: * psselect [-q] [-e] [-o] [-r] [-p<pages>] [infile [outfile]] * * * TEST COMMAND: valgrind --leak-check=full --track-origins=yes ./psselect -o md...
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2015 Intel Corporation Inc. */ #include <linux/module.h> #include <linux/acpi.h> #include <linux/of.h> #include <linux/property.h> #include <linux/spi/spi.h> #include <linux/regmap.h> #include <linux/iio/iio.h> #include "inv_mpu_iio.h" static const struct reg...
/* hgSanger20 - Load extra info from Sanger Chromosome 20 annotations.. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "dystring.h" #include "cheapcgi.h" #include "obscure.h" #include "jksql.h" #include "sanger22extra.h" #include "gff.h" #include "genePred.h" static char const rcsid[] = "$Id: ...
#include "lib.h" #include <mmu.h> #include <env.h> #define debug 0 static int pipeclose(struct Fd *); static int piperead(struct Fd *fd, void *buf, u_int n, u_int offset); static int pipestat(struct Fd *, struct Stat *); static int pipewrite(struct Fd *fd, const void *buf, u_int n, u_int offset); struct Dev devpipe =...
/* * (c) Copyright 1993, Silicon Graphics, Inc. * ALL RIGHTS RESERVED * Permission to use, copy, modify, and distribute this software for * any purpose and without fee is hereby granted, provided that the above * copyright notice appear in all copies and that both the copyright notice * and this permission noti...
#include "LED.h" #include <assert.h> void LED_Init(void) { // Enable GPIO Clocks RCC->AHB2ENR |= RCC_AHB2ENR_GPIOAEN; RCC->AHB2ENR |= RCC_AHB2ENR_GPIOCEN; // Enable GPIOC clock // Greed LED GPIOA->MODER &= ~GPIO_MODER_MODE5_1; // Set pin to output GPIOA->MODER |= GPIO_MODER_MODE5_0; GPIOA->OTYPER &=...
/* * $Id: Double.c 792 2009-04-06 08:07:33Z michael.haupt $ * Copyright (c) 2007 <NAME>, <NAME> Software Architecture Group, Hasso Plattner Institute, Potsdam, Germany http://www.hpi.uni-potsdam.de/swa/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated docum...
/*====================================================================* - 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 so...
/* Example Source Code for USB Enumeration using a PDIUSBD11 connected to a PIC16F87x */ /* Copyright 2001 <NAME>, <EMAIL> */ /* 31th December 2001 http://www.beyondlogic.org */ typedef struct { unsigned char bmRequestType; unsigned char bRequest; unsigned short wValue; unsig...
/** * \file threadpool_pps_test.c * \brief Unit test of threadpool based on computing the parallel prefix sum. * * Computes the prefix sum of an array of numbers in parallel, and then checks * the result against the result of a linear scan. */ #include <math.h> #include <pthread.h> #include <stddef.h> #include <...