text
stringlengths
7.55k
41.9k
/*$Header: /autofs/space/nexus_001/users/nexus-tools/cvsrepository/nifti_tools/qnt_nifti/qnt_nifti.c,v 1.1 2008/08/10 20:33:23 mtt24 Exp $*/ /*$Log: qnt_nifti.c,v $ /*Revision 1.1 2008/08/10 20:33:23 mtt24 /*revision one /* * Revision 1.14 2006/09/25 03:22:40 avi * Solaris 10 * * Revision 1.13 2006/08/07 03:...
/* sedexec.c -- axecute compiled form of stream editor commands Copyright (C) 1995-2003 <NAME> Copyright (C) 2004-2006 <NAME> The single entry point of this module is the function execute(). It may take a string argument (the name of a file to be used as text) or the argument NULL which tells it to filter st...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * _coder_combo_get_flux_coefficients_api.c * * Code generation for function '_coder_combo_get_flux_coefficients...
#define CUBEHASH_ROUNDS 16 #include "crypto_hash.h" #include "crypto_uint16.h" #include "crypto_uint32.h" typedef crypto_uint16 crypto_uint1; typedef crypto_uint16 crypto_uint11; typedef crypto_uint32 crypto_uint17; static void store_littleendian(unsigned char *out,crypto_uint16 u) { out[0] = u; out[1] = u >> 8; ...
/* * txHwQueue.c * * Copyright(c) 1998 - 2009 Texas Instruments. All rights reserved. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * ...
// Copyright (c) 2016, Sandia Corporation. Under the terms of Contract // DE-AC04-94AL85000, there is a non-exclusive license for use of this // work by or on behalf of the U.S. Government. Export of this program // may require a license from the United States Government // This file is part of the Compressed Continuo...
/* * ISC License * * Copyright (C) 1984-2018 by * <NAME> * <NAME> * <NAME> * Delft University of Technology * * 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 appea...
/* * 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...
/* MIT License * * Copyright (c) 2017 GN Audio A/S (Jabra) * * 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...
/****************************************************************************** * * SiFive Cryptographic Library (SCL) * ****************************************************************************** * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated d...
#include <lightscript/exec.h> #include <lightscript/node-stack.h> #include <lightscript/var-stack.h> #include <lightscript/defines.h> #include <lightscript/module.h> #include <lightscript/function.h> #include <lightscript/array.h> #include <lightscript/object.h> #include <string.h> #include <stdio.h> #include <stdlib.h...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include "fptree.h" #include "tract.h" void _initTreeRoot(FpNode **root) { (*root) = (FpNode *)malloc(sizeof(FpNode)); if(!(*root)){ perror("out of memory!!!"); exit(-1); } (*root)->field = NULL; (*root)->support = 0; (*root)->par...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #define DB_NAME "db.cdb" #define MAX_INPUT 100 #define MAX_STD_NUM 50 #define MAX_NAME_LENGTH 50 #define MAX_FILE_LENGTH 50 #define MAX_FILE_BUFFER_SIZE 500 typedef struct { char name[MAX_NAME_LENGTH]; int eng_grade; ...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <complex.h> #include <fftw3.h> #include <mpi.h> #include <fftw3-mpi.h> #include <unistd.h> #include "ini.h" #include "common.h" #include "configuration.h" /* struct declarations */ typedef struct expectation_values { double x_e...
/* * Copyright (c) 2017 <NAME> * Distributed under the MIT software license, see the accompanying * file COPYING or http://www.opensource.org/licenses/mit-license.php. */ #include "sundog.h" #include "game/game_gembind.h" #include "game/game_screen.h" #include "game/game_shiplib.h" #include "psys/psys_bootstrap.h"...
#include "renderer_internal.h" #include "algebra.h" #include "platform.h" #define NEAR_PLANE 1.0f #define FAR_PLANE 500 int rendererColorFormat_getStride(RendererColorFormat format) { static const int RENDERER_STRIDE[] = { [RendererColorFormat_8BitColor] = RENDERER_HEIGHT, [RendererColorFormat_1Bi...
/**************************************************************************** * * Copyright (C) 2005 - 2012 by Vivante Corp. * * 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 ...
/* * Copyright (c) 2011-2019 The Linux Foundation. All rights reserved. * * 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 * copies. * * THE SOFTWARE IS ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* * * Copyright (C) <NAME> * http://www.visionnaire.nl * * 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 ...
/* * Logging of zebra * Copyright (C) 1997, 1998, 1999 <NAME> * * This file is part of GNU Zebra. * * GNU Zebra 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, or (at your option) any...
/* * global variable initializaton * * @(#)init.c 3.33 (Berkeley) 6/15/81 * * Rogue: Exploring the Dungeons of Doom * Copyright (C) 1980, 1981 <NAME>, <NAME> and <NAME> * All rights reserved. * * See the LICENSE file for full copyright and licensing information. */ #include <ctype.h> #include <stdlib.h> #inc...
// // DNRMatrix.c // DinnerJacket // // Created by <NAME> on 2014-03-08. // Copyright (c) 2014 <NAME>. All rights reserved. // #include <stdio.h> #include <stdlib.h> // malloc #include <string.h> // memcpy? #include <math.h> #include "DNRMatrix.h" // Own header static inline float fastAbs(...
/* * 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, pro...
// SPDX-License-Identifier: GPL-2.0 /* Copyright(c) 2009-2012 Realtek Corporation.*/ #include "../wifi.h" #include "../pci.h" #include "../base.h" #include "../stats.h" #include "reg.h" #include "def.h" #include "phy.h" #include "fw.h" #include "trx.h" #include "led.h" static u8 _rtl92se_map_hwqueue_to_fwqueue(struc...
#define CFG_TOYBOX_ANDROID_SCHEDPOLICY 0 #define USE_TOYBOX_ANDROID_SCHEDPOLICY(...) #define CFG_TOYBOX_CONTAINER 0 #define USE_TOYBOX_CONTAINER(...) #define CFG_TOYBOX_DEBUG 0 #define USE_TOYBOX_DEBUG(...) #define CFG_TOYBOX_FALLOCATE 0 #define USE_TOYBOX_FALLOCATE(...) #define CFG_TOYBOX_FIFREEZE 0 #define USE_TOYBOX...
/** * \file * \brief Boot driver arch specific parts for ARM CPUs */ /* * Copyright (c) 2014,2017 ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetsst...
/* * Wapiti - A linear-chain CRF tool * * Copyright (c) 2009-2013 CNRS * 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 co...
/* This file was generated with gl3w_gen.py, part of gl3w (hosted at https://github.com/skaslev/gl3w) 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 ...
/*====================================================================== PCMCIA device control program cardctl.c 1.60 2001/05/12 22:45:59 The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the Licens...
/* Mapping tables from IBM1008 to IBM420 and vice versa. Copyright (C) 2005 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by <NAME> <<EMAIL>>, 2005. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General...
/* * arch/xtensa/mm/mmu.c * * Logic that manipulates the Xtensa MMU. Derived from MIPS. * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2001 - 2003 Tensilica Inc. * *...
// // gravity_utils.c // gravity // // Created by <NAME> on 29/08/14. // Copyright (c) 2014 CreoLabs. All rights reserved. // #include <time.h> #include <fcntl.h> #include <ctype.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <unistd.h> #include <sys/stat.h> #if defined(__linux) #include <...
#include "disposable.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <math.h> #include <omp.h> #include <mpi.h> void compute_commit_dsv(int* num_nbor, double* dsv, int** nbor_ids, int** overlap, int* perimeter) { // Get rank and use it to compute workload distrib...
/* anti-bisulfite-single-batch.c <NAME>, 2018 This is an program to convert bisulfite reads which include assigned methylated site from the file methylation_genom-rate to normal reads. gcc -o anti_bisulfite_single_batch anti_bisulfite_single_batch.c -lm anti_bisulfite_single_batch <ctlfile...
#include "KW_widget_internal.h" #include "KW_gui_internal.h" #include "KW_widget.h" #include "KW_gui.h" #include <stdlib.h> #include <stdio.h> KW_Widget * AllocWidget() { KW_Widget * widget = calloc(1, sizeof(KW_Widget)); return widget; } KW_Widget * KW_CreateWidget(KW_GUI * gui, KW_Widget * parent, const KW_Rec...
// Copyright 2020 NanoMQ Team, Inc. <<EMAIL>> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt). A copy of the license may also be // found online at https://opensource.org/licenses/MIT. // #include...
/**@file * This file contains the CANopen control tool (a CiA 309-3 gateway). * * @copyright 2017-2020 Lely Industries N.V. * * @author <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2019 <NAME> for Adafruit Industries * Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation...
/* monitor.c - monitor ldap backend */ /* $OpenLDAP: pkg/ldap/servers/slapd/back-ldap/monitor.c,v 1.2.2.9 2011/01/04 23:50:33 kurt Exp $ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 2003-2011 The OpenLDAP Foundation. * Portions Copyright 1999-2003 <NAME>. * Portions Copyrig...
/* * Copyright 2016, 2017 International Business Machines * * 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 ap...
/* GNU Objective C Runtime initialization Copyright (C) 1993, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. Contributed by <NAME> +load support contributed by <NAME> <<EMAIL>> This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General ...
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2012 <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 (at your option) ...
/** * OpenAL cross platform audio library * Copyright (C) 2008 by <NAME>. * This 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; either * version 2 of the License, or (at your option) ...
/* * Squeezelite - lightweight headless squeezebox emulator * * (c) <NAME> 2012-2015, <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...
#define _GNU_SOURCE #include <ctype.h> #include <dlfcn.h> #include <elf.h> #include <float.h> #include <inttypes.h> #include <stdarg.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ptrace.h> #include <sys/stat.h> #include <sys/uio.h> #include <sys/user.h> #include <sys/w...
#include <math.h> #include <stdlib.h> #include "constant.h" #include "mosaic_util.h" #include "gradient_c2l.h" #include <stdio.h> /*------------------------------------------------------------------------------ Routine to compute gradient terms for SCRIP: SJL: Oct 5, 2007 NOTe: pin has halo size = 1. the size ...
/* * Copyright (c) 2012, Thingsquare, http://www.thingsquare.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 source code must retain the above copyright * ...
/* ********************************************************** * Copyright (c) 2011-2013 Google, Inc. All rights reserved. * Copyright (c) 2003-2008 VMware, Inc. All rights reserved. * **********************************************************/ /* * Redistribution and use in source and binary forms, with or witho...
#include <unistd.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <byteswap.h> #include <string.h> #include <errno.h> #include <signal.h> #include <fcntl.h> #include <time.h> #include <ctype.h> #include <termios.h> #include <sys/types.h> #include <sys/mman.h> #define MAP_MASK (MAP_SIZE - 1) #de...
/* * arm/uasm.c, version 1b * Copyright (C) Acorn Computers Ltd., 1988. * Copyright (C) Codemist Ltd., 1988. * SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ #ifndef NO_VERSION_STRINGS extern char uasm_version[]; char uasm_version[] = "\narm/uasm.c $Revisi...
/* thumb/asm.c: Copyright (C) Codemist Ltd., 1994. */ /* SPDX-Licence-Identifier: Apache-2.0 */ /* * RCS $Revision$ * Checkin $Date$ * Revising $Author$ */ /* Assembler output is routed to asmstream, annotated if FEATURE_ANNOTATE. */ /* exports: asmstream, display_assembly_cod...
/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
#include "module.h" #include "lauxlib.h" #include <string.h> #define USE_RMT #ifdef USE_RMT #include <driver/rmt.h> #endif #ifdef CONFIG_PM_ENABLE #include <esp_pm.h> #endif #include <soc/rtc.h> #include <esp_log.h> #include <esp_timer.h> #include <driver/gpio.h> #include "task/task.h" #include "../../turcutils.h" ...
/* ******************************************************************** * SHS 180-1 Reference Implementation (with unrolled loops) * * Copyright 1995-6 by <NAME>. * * * * This file is provided as-is, without warr...
/* * Copyright (c) 2016, Amlogic. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions an...
#include "udynlink.h" #include "udynlink_externals.h" #include <string.h> #include <stdint.h> #include <stdarg.h> // TODO: remove next #include <stdio.h> //////////////////////////////////////////////////////////////////////////////// // Local macros and data #ifndef UDYNLINK_MAX_HANDLES #warning Setting UDYNLINK_MAX...
/* * Copyright 2016-2019, <NAME>. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include "common.h" #include <limits.h> #ifndef __MINGW32__ #include <pwd.h> #endif #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include ...
/* * Copyright © 2011 Canonical Ltd. * * 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 of the * licence, or (at your option) any later version. * * This libr...
/* * Welcome to the first example using raylib in Pointers "gentle intruduction to the C language" */ #include "raylib.h" #include <stdio.h> #include <string.h> #define DEFAULT_FONT_SIZE 120 // structs allow us to group variables under a label // here is the definition of Dimensions struct we will be...
/* * The MIT License (MIT) * * Copyright (c) 2015 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
/** * Copyright (c) 2016 - 2018, 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,...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
#include "gtf_anno.h" #include "bins.h" #include "overlap.h" #include "htslib/bgzf.h" #include "htslib/kstring.h" #include <stdlib.h> #include <errno.h> #include <string.h> #include <stdio.h> #include <unistd.h> #include <inttypes.h> Exon *init_exon(){ Exon *e; if ((e = malloc(sizeof(Exon))) == NULL){ ...
//节点服务, 与其他节点互通 #include "skynet.h" #include "skynet_harbor.h" #include "skynet_socket.h" /* harbor listen the PTYPE_HARBOR (in text) N name : update the global name S fd id: connect to new harbor , we should send self_id to fd first , and then recv a id (check it), and at last send queue. A fd id: accept...
/* BEGIN_ICS_COPYRIGHT7 **************************************** Copyright (c) 2015-2020, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyrig...
/* * 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 distributed in the hope that it will be use...
#include "config.h" #include "filter.h" #include "math.h" #include "util.h" #include "stdbool.h" extern char aux[ AUXNUMBER ]; extern float aux_analog[ 2 ]; extern float rxcopy[ 4 ]; void lpf( float * out, float in, float alpha ) { *out += alpha * ( in - *out ); } void lpf_hz( float * out, float in, float f_hz ) {...
/**************************************************************************** Alpha 8201/8301 Disassembler Copyright <NAME> Originally written for the MAME project. ****************************************************************************/ #include...
/* t35.c * T.35 and H.221 tables * 2003 <NAME> * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include <epan/t35.h> /* Recommendation T.35 (02/2000) */ /* Annex to ITU Operational Bulletin No. 766 - 15.VI.2002 */ const ...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <math.h> #include <string.h> #include "util.h" #include "minig.h" #include "levit8r.h" /* ======================================================================= */ int l_gls_init(int argc, char **argv) { float d1, d2; int jext, i, j, i1, i2, n...
#include "gfx.h" #include "../common/include/stb/stb_image.h" #include <GL/glew.h> #include <GLFW/glfw3.h> #include <assert.h> #include <stdio.h> #include <string.h> #define VP_LOCATION 0 #define VT_LOCATION 1 #define VC_LOCATION 2 #define VN_LOCATION 3 #define INSTANCE_P_WOR_LOCATION 4 #define INSTANCE_YR_LOCATION ...
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> #include <netinet/in.h> #include <arpa/inet.h> #include <time.h> #ifndef PORT #define PORT 23333 #endif #define ENTERING 0 #define LOGIN 1 #define PENDING 2 #define ...
/* * THIS FILE HAS BEEN SIGNIFICANTLY MODIFIED FROM ITS ORIGINAL VERSION * it was originally retrieved from the following website: * https://homes.esat.kuleuven.be/~bosselae/ripemd160.html */ /********************************************************************\ * * FILE: rmd160.h * * CONTENTS: H...
/* zgv 5.5 - GIF, JPEG and PBM/PGM/PPM viewer, for VGA PCs running Linux. * Copyright (C) 1993-2001 <NAME>. See README for license details. * * 3deffects.c - provides the `3d' style boxes, text etc. * used by zgv.c (for file selector) and vgadisp.c * (for help screen) */ #include <s...
/** * \file attack.c * \brief Représente les fonctions concernant l'attaque DFA sur DES. * \author <NAME> * */ #include <stdio.h> #include <stdlib.h> #include "../inc/key_schedule.h" #include "../inc/inner_function.h" #include "../inc/manip_bits.h" #include "../inc/feistel.h" #include "../inc/attack.h" #include ...
/*- * Copyright (c) 2007 <NAME> (<EMAIL>) * Copyright (c) 2014 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* The MIT License (MIT) Copyright (c) 2015-? suhetao 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...
#include <iron/full.h> #include <iron/gl.h> #include <iron/utf8.h> #include "foxlisp.h" #include <GL/gl.h> #include <math.h> #undef POP lisp_value math_pow(lisp_value a, lisp_value b){ type_assert(a, LISP_RATIONAL); type_assert(b, LISP_RATIONAL); return rational(pow(a.rational, b.rational)); } lisp_value math_s...
#include <string.h> #include <stdlib.h> #include "busroute.h" #include "rnorrexp.h" #include "files.h" #include "node.h" int route_has_name(char *name, struct Busroute* aRoute) { return !strcmp(name, aRoute->name); } void route_init_func(struct Busroute *aRoute) { int randint; if(aRoute == NULL) return; memset(...
// Dynamixel bus (1.0) slave device library // Author: <NAME> <<EMAIL>> #include "dxlpro_slave.h" #include <string.h> static void debug(const char* fmt, ...) __attribute__((format (printf, 1, 2))); #define PACKET_DEBUG 0 #if PACKET_DEBUG #include <stdio.h> #include <stdarg.h> static void debug(const char* fmt, ...)...
// SPDX-License-Identifier: GPL-2.0 /* * A driver for the I2C members of the Abracon AB x8xx RTC family, * and compatible: AB 1805 and AB 0805 * * Copyright 2014-2015 <NAME>. * Copyright 2020 Linaro * * Author: <NAME> <<EMAIL>> * Author: <NAME> <<EMAIL>> * Author: <NAME> (PaulLiu) <<EMAIL>> * */ #include <c...
/* sh-stub.c -- debugging stub for the Hitachi-SH. NOTE!! This code has to be compiled with optimization, otherwise the function inlining which generates the exception handlers won't work. */ /* This is originally based on an m68k software stub written by <NAME> at HP, but has changed quite a bit. Modifica...
/*-------------------------------------------------------------------------*/ /** @file SSL_Tiled.c @author <NAME> @brief Implements a Tiled .tmx map handler This module implements a way to load access and draw .tmx maps */ /*--------------------------------------------------------------------------*...
#define _GNU_SOURCE 1 #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <inttypes.h> #include <time.h> #include "logmsg.h" #include "crc16.h" #include "p1-lib.h" uint16_t crc_telegram (const uint8_t *data, un...
/* DES.c - Written by Xenonstory on June 24, 2015 * * An implementation of the Data Encryption Standard */ #include "DES.h" #include <assert.h> #include <stdlib.h> #include <string.h> const int DES_ROUNDS = 16; const int DES_ROUND_KEY_SIZE = 48; const int PC1_PERMUTATION_SIZE = 28; int PC1_C_PERMUTATION[] = {57...
// Copyright (c) <2012> <<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 use, copy, modify, // merge, publ...
/*****************************************************************************\ ** ** ** FILE: metabbs-client.c ** ** AUTHORS: Alexios ** **...
/* Copyright 2011 <NAME> This file is part of libkoki libkoki 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. libkoki is...
float DeterminarTempoEntreChegadas(float niu) { float r, X; r = rand() / (float)RAND_MAX; X = -niu * log(1 - r); //printf("r1 = %f -- X1 = %f \n", r, X); printf("\nTempoEntreChegadas = %f \n", X); return X; } float DeterminarTempoServico(float A, float B, float T0) { float r, X; r = rand() / (float)RAND_M...
/* _______ ____ __ ___ ___ * \ _ \ \ / \ / \ \ / / ' ' ' * | | \ \ | | || | \/ | . . * | | | | | | || ||\ /| | * | | | | | | || || \/ | | ' ' ' * | | | | |...
/* * Performance counter support for PPC970-family processors. * * Copyright 2008-2009 <NAME>, IBM Corporation. * * 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 th...
#include <string.h> #include <stdio.h> #include <stdlib.h> /* For call to malloc() */ #include "interface.h" #include "subs_memory.h" #include "subs_common_string.h" #include "subs_common_math.h" #include "subs_fits.h" #include "subs_lambert.h" #include <math.h> char Label_lam_nsgp[] = "LAM_NSGP"; char Label_lam_sca...
/* See LICENSE file for copyright and license details. */ #include <sys/stat.h> #include <sys/types.h> #include <sys/wait.h> #include <curses.h> #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <libgen.h> #include <limits.h> #include <locale.h> #include <regex.h> #include <signal.h> #include <stdarg....
/* ---------------------------------------------------------------------------- Copyright (c) 2018, Microsoft Research, <NAME> This is free software; you can redistribute it and/or modify it under the terms of the MIT license. A copy of the license can be found in the file "LICENSE" at the root of this distribution. --...
/* gps.c ARM Based GPS Tracker Universal 8bit Graphics Library Copyright (c) 2012, <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: * Redistributions of source code mu...
/* GStreamer plugin for forward error correction * Copyright (C) 2017 Pexip * * 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 (at your option...
// ------------------------------------------------------------------------------------------- // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. // This file is part of the AWS CDI-SDK, licensed under the BSD 2-Clause "Simplified" License. // License details at: https://github.com/aws/aws-cdi-sdk/blo...