text
stringlengths
3.12k
18.7k
/*************************************************************************** * * BSD LICENSE * * Copyright(c) 2007-2021 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 ...
#include <dirent.h> #include <limits.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "ansi-colour.h" #include "checks.h" #include "file.h" /* BSD 3-Clause License Copyright (c) 2021, Ruthenic All rights reserved. Redistribution and use in source and bi...
void mouse_window_info_populate(struct mouse_state *ms, struct mouse_window_info *info) { CGRect frame = window_ax_frame(ms->window); info->dx = frame.origin.x - ms->window_frame.origin.x; info->dy = frame.origin.y - ms->window_frame.origin.y; info->dw = frame.size.width - ms->window_frame.size....
/* Copyright (c) 2012, Broadcom Europe Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and t...
#include "time_utils.h" #include <stdio.h> unsigned long seconds_per_month_no_leap[12] = { MON31, MON28, MON31, MON30, MON31, MON30, MON31, MON31, MON30, MON31, MON30, MON31 }; unsigned long seconds_per_month_leap[12] = { MON31, MON29, MON31, MON30, MON31, MON30, MON31, MON31, MON30, MON31, MON30, MON31 }; const...
/* * Copyright (C) <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, merge, publish...
#include "json-parse.h" #include <stdlib.h> #include <string.h> #include <ctype.h> #include <pthread.h> static int intcmp(const void *a, const void *b); static int trackcmp(const void *a, const void *b); struct track_source { struct track track; char *s_filename; }; static int get_track(struct track_s...
/* Copyright (c) 2007-2009, Stanford University * 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 ...
/* Author : <NAME> * Date : 03.11.2010 - 04.11.2010 * Subject : Various operations using date */ #include<stdio.h> #include<string.h> #include<stdlib.h> #include<ctype.h> typedef struct { int dd,mm,yyyy; } date; char d[7][10]={"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"}; char m[12][10...
/* H E A T G R A P H . C * BRL-CAD * * Copyright (c) 1985-2022 United States Government as represented by * the U.S. Army Research Laboratory. * * 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...
/* 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...
/* hgLoadChain - Load a chain file into database. */ #include "common.h" #include "linefile.h" #include "obscure.h" #include "hash.h" #include "jksql.h" #include "dystring.h" #include "bed.h" #include "hdb.h" #include "chainBlock.h" #include "options.h" /* command line option specifications */ static struct optionSpe...
/* * Copyright 2005-2019 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an int...
#include "math/utils.h" #define WINDOW_TITLE_PREFIX "Chapter 4 (GLFW)" int g_width = 500, g_height = 500; GLFWwindow* g_hwnd = NULL; // Render Window Handle unsigned int frames = 0; GLuint proj_uloc, view_uloc, model_uloc, buffers[3] = { 0 }, shaders[3] = {0}; mat4_t proj_mat, view_mat, model_mat; float cube_rot...
/* * Definitions for the Mitsumi CDROM interface * Copyright (C) 1995 1996 <NAME> <<EMAIL>> * VERSION: @VERSION@ * * 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, or (a...
/** ################################################################### ** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT. ** Filename : AS1.C ** Project : ProjectADC ** Processor : MC9S12XS128MAL ** Beantype : AsynchroSerial ** Version : Bean 02.454, Driver 01.19, CPU d...
/* Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not...
/* fmt_compile.h -- "compile" format strings for fmt_scan * * This code is Copyright (c) 2017, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ /* * This structure describes an "interesting" component. It holds * the name & t...
/****************************************************************************** Copyright (c) 1996 - 2004 -- University of Washington ******************************************************************************/ /********************************************************************* * mpi_zlib.c: * *...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define CARD_COUNT 50 #define MAX_ROUNDS 10000 size_t iterations = 0; typedef struct Queue { int start; int length; int data[CARD_COUNT]; } Queue; typedef struct Game{ Queue player1; Queue player2; Queue *record1[MAX_ROUNDS]; Que...
#include "f2c.h" #include "blaswrap.h" /* Table of constant values */ static complex c_b1 = {0.f,0.f}; static complex c_b2 = {1.f,0.f}; static integer c__1 = 1; /* Subroutine */ int chbt21_(char *uplo, integer *n, integer *ka, integer *ks, complex *a, integer *lda, real *d__, real *e, complex *u, integer * ldu, ...
/* * Linux Boot Option ROM for fw_cfg DMA * * 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 <stdint.h> /* * config.h needs to come first */ #include "config.h" #include "fsl_spi_master_driver.h" #include "fsl_port_hal.h" #include "SEGGER_RTT.h" #include "gpio_pins.h" #include "warp.h" #include "devPMW3901.h" volatile uint8_t inBuffer[]; volatile uint8_t payloadBytes[]; /* ...
/* $NetBSD: midwayvar.h,v 1.10 1997/03/20 21:34:46 chuck Exp $ */ /*- * Copyright (c) 1996 <NAME> and Washington University. * 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. Redistri...
/* Solution for Code Jame Problem Dijkstra url: http://code.google.com/codejam/contest/6224486/dashboard#s=p2 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX 10001 char quart[100][100]; int ** build_matrix(int N, int M){ int **c; int i = 0; /* N is the number of rows */ /* no...
/** ****************************************************************************** * @file FLASH/FLASH_DualBoot/Src/main.c * @author MCD Application Team * @brief This example provides a description of how to boot from bank1 or bank2 * of the STM32L4xx FLASH. **************************...
/* * Copyright (c) 2018 <NAME>. * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be held liable for any damages arising from * the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including com...
#include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include <net-snmp/agent/net-snmp-agent-includes.h> #include <net-snmp/agent/auto_nlist.h> #include <net-snmp/agent/hardware/memory.h> #include "../../../kernel.h" #include <unistd.h> #include <sys/param.h> #include <sys/fcntl.h> #include <s...
/* * * Copyright (c) 2014-2022 The Khronos Group Inc. * Copyright (c) 2014-2022 Valve Corporation * Copyright (c) 2014-2022 LunarG, 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 a...
/*------------------------------------------------------------------------- * * heap_surgery.c * Functions to perform surgery on the damaged heap table. * * Copyright (c) 2020-2021, PostgreSQL Global Development Group * * IDENTIFICATION * contrib/pg_surgery/heap_surgery.c * *------------------------------...
/* 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...
/* $NetBSD: pci_machdep.c,v 1.6 2002/02/25 00:34:15 kleink Exp $ */ /* * Copyright (c) 1996 <NAME>. All rights reserved. * Copyright (c) 1994 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ...
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Implement the Validator API for the x86-64 architecture. */ #include <errno.h> #include <string.h> #include "native_client/src/include...
/* Copyright (c) 2014-2017 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "mempool.h" #include "buffer.h" #include "str.h" #include "unichar.h" #include "fts-icu.h" #include <unicode/uchar.h> #include <unicode/ucasemap.h> #include <unicode/uclean.h> static struct UCaseMap *icu_csm = NULL...
/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford * Junior University * * We are making the OpenFlow specification and associated documentation * (Software) available for public use and benefit with the expectation * that others will use, modify and enhance the Software and contribute * th...
#include <string.h> #include "rasterizer.h" void boundaryFillHelper(FrameBuffer *fb, int x, int y, int xMin, int xMax, int yMin, int yMax, Color color) { // Check image boundaries if ((x < xMin) || (x >= xMax) || (y < yMin) || (y >= yMax)) { return; } // Output to scre...
/* Handle details pages for wiggle tracks. */ /* Copyright (C) 2014 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "wiggle.h" #include "cart.h" #include "hgc.h" #include "hCommon.h" #include "hgColors.h" #include "obscu...
#include <config.h> #include <sys/types.h> #include <signal.h> #include <getopt.h> #include "system.h" #include "error.h" #include "fadvise.h" #include "xfreopen.h" #include <stdio.h> #include "cmdParser.h" #include <arpa/inet.h> #include <sys/socket.h> /* The official name of this program (e.g., no 'g' prefix). */ ...
#include <errno.h> #include <math.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <wlr/util/log.h> #include "sway/commands.h" #include "sway/tree/arrange.h" #include "log.h" static const int MIN_SANE_W = 100, MIN_SANE_H = 60; enum resize_unit { RESIZE_UNIT_PX, RESIZE_UN...
#include "alarm.h" #include <pthread.h> #include <stdlib.h> #include <errno.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "log.h" #include "bufferpool.h" #include "rbtree.h" alarm_t new_alarm; int thread_close, cancel_alarm; pthread_t alarm_thread; pthread_cond_t new_alarm_cond, alarm_set_...
/******************************************************************************* * Copyright (c) 2017 Intel 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 * * http://www.apa...
/* bclsqr.c $Revision: 273 $ $Date: 2006-09-04 15:59:04 -0700 (Mon, 04 Sep 2006) $ ---------------------------------------------------------------------- This file is part of BCLS (Bound-Constrained Least Squares). Copyright (C) 2006 <NAME>, Department of Computer Science, University of British Columbi...
/* Please include compiler name below (you may also include any other modules you would like to be loaded) COMPILER=gnu Please include All compiler flags and libraries as you want them run. You can simply copy this over from the Makefile's first few lines CC=gcc OPT=-O3 -march=native -ffast-math -fun...
// Keyboard Example // <NAME> //----------------------------------------------------------------------------- // Hardware Target //----------------------------------------------------------------------------- // Target Platform: EK-TM4C123GXL Evaluation Board // Target uC: TM4C123GH6PM // System Clock: 40 MH...
// Authors: // <NAME>, fp371335 // <NAME>, wc385540 #include <net/sock.h> #include <linux/slab.h> #include <crypto/hash.h> #include "cmd.h" #include "atdd_tcp_client.h" #define SEND_BUF_POS_START 7 struct atdd_pending_cmd { uint64_t cmd; }; struct atdd_cmd_parse { enum status_code st; uint64_t rq_ident; bo...
#include "primitive_reader.h" #include <err.h> #include <errno.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <unistd.h> #include <netinet/in.h> #include "log.h" static int get_octets(unsigned char); static void place_null_character(rtr_char *, size_t); /** * Reads exactly @buffer_len byte...
/* NeXT non-ADB Keyboard USB Converter Copyright 2013, <NAME> (<EMAIL>) Based on: TMK firmware code Copyright 2011,2012 <NAME> <<EMAIL>> Arduino code by "Ladyada" <NAME> (http://ladyada.net/, http://adafruit.com/), released under BSD license Timing reference thanks to http://m0115.web.fc2.com/ (dead link), http://c...
/* ======================================================================== * Copyright 2008-2011 <NAME> * Copyright 1988-2008 University of Washington * * 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 ...
// ================================================== // straightforward implementations of matrix multiply // ================================================== void multAB(double* C, double* A, double* B, const int rA, const int cA, const int cB) { int i, j, k; double *a, *c, tmp; for( i=0; i<cB; i++...
/* See LICENSE file for copyright and license details. */ #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define min(X,Y) (X<Y ? X : Y) /* * Maximum number of characters in a line. The rest will be truncated. * Change this if you need very long lines. */ static con...
#pragma bank 2 #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <gb/gb.h> #include "board_manager.h" #include "gamevars.h" #include "game.h" #include "elements.h" #include "input.h" #include "math.h" #include "../res/message_consts.h" #include "oop.h" #include "renderer.h" #include "sound_consts.h...
/* * Copyright 2016 Google Inc. All Rights Reserved. * Author: <EMAIL> (<NAME>) * * Use of this source code is governed by a MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT */ #include <app/moot/usbboot.h> #include <app/moot/stubs.h> #include <dev/udc.h> #i...
/* Copyright 2015 The math21 Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
/* ============================================================================ Name : create-hdf5-dataset.c Author : <NAME> Description : Creates HDF5 dataset from command line arguments. ============================================================================ */ #include "bit_utils.h" #include ...
/*- * Copyright (c) 2008, 2009 <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...
#include <stdio.h> #include <string.h> #include <stdarg.h> #include <inttypes.h> #include <psp2/display.h> #include <psp2/kernel/sysmem.h> #include <psp2/kernel/threadmgr.h> extern unsigned char psvDebugScreenFont[]; #define SCREEN_WIDTH (960) #define SCREEN_HEIGHT (544) #define SCREEN_FB_WIDTH (960) #define SC...
/* Configuration file for an hppa risc OpenBSD target. Copyright (C) 1999 Free Software Foundation, Inc. This file is part of GNU CC. GNU CC 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, ...
/* * Copyright (C) 2013 Glyptodon LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publi...
/* Dia -- an diagram creation/manipulation program * Copyright (C) 1998, 1999 <NAME> * * paginate_psprint.[ch] -- pagination code for the postscript backend * Copyright (C) 1999 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License ...
#include <sys/types.h> #include <sys/stat.h> #include <sys/param.h> #include <sys/errno.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "lzm.h" #include "lzm_int.h" #include "conf.h" #include "mem.h" __attribute__((aligned(64))) const unsigned int mask[5] ...
/* zd_netdev.c * * 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...
/* * Copyright (c) 2016 Open-RnD Sp. z o.o. * Copyright (c) 2021 Linaro Limited * Copyright (c) 2021 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #include <drivers/clock_control/stm32_clock_control.h> #include <drivers/pinctrl.h> #include <gpio/gpio_stm32.h> #include <stm32_ll_bus.h> #inc...
/*s: networking/ip/httpd/webls.c */ #include <u.h> #include <libc.h> #include <ctype.h> #include <bio.h> #include <regexp.h> #include <fcall.h> #include "httpd.h" #include "httpsrv.h" /*s: global [[hout]]([[(networking/ip/httpd/webls.c)]]) */ static Hio *hout; /*e: global [[hout]]([[(networking/ip/httpd/webls.c)]]) *...
// // Created by karl on 30/5/2020. // #include <stdint.h> #include <stdio.h> #include "bmp.h" typedef uint8_t BYTE; typedef uint16_t WORD; typedef uint32_t DWORD; typedef int32_t LONG; typedef struct __attribute__((__packed__)) { WORD bfType; DWORD bfSize; WORD bfReserved1; WORD bfReserved2; DW...
#include <string.h> #include <stdlib.h> #include "menu.h" #include "../input/input.h" #include "../textgfx/textgfx.h" #include "../draw/draw.h" #include "../game/tetris.h" #include "../game/game.h" #include "../netw/sock.h" #undef SOCKET #define SOCKET 1 #include "internal.h" int yesno_menu(int x, int y) { const char...
/* * hsd_calibration.h * * HSD calibration data is placed in EEPROM at the location that MRS * claim for it (0x14c8). The format is: * * struct eeprom_hsd_cal { * uint16_t cal_1A[8]; * uint16_t cal_2_5A[8]; * uint16_t cal_10V[8]; * }; * * Notes: * only 4 entries in each array are popul...
/* * Copyright (c) 2007,2008,2009,2010 Mij <<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 ...
#include <stdio.h> #include <unistd.h> #include <dirent.h> #include <stdbool.h> #include <fcntl.h> #include <sys/sendfile.h> #include <sys/wait.h> #include <sys/stat.h> // "Random" sig. #define SIG 8026 // Found by running wc virus.c -c in the command line. #define SIZE 13936 // Not a huge fan of this because usually...
/************************************************************************** * * Copyright 2003 <NAME>, Inc., <NAME>, Texas. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal i...
/***** fntxt2sql-csv.c *****/ #include "fntxt2sql.h" #include <stdio.h> #include <stdlib.h> #include <string.h> // Structure for Input from CSV-Files typedef struct { char ktonr[10+1]; char blz[8+1]; char auszDatum[10+1]; char saldo[20+1]; char saldoWaehrung[3+1]; char buDatum[10+1]; char valuta[10+1]; ch...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include "cimgui/smCimguiImpl.h" #include "core/smApplication.h" #include "core/smKeyCode.h" #include "core/smLayer.h" #include "core/smPool.h" #include "math/smMath.h" #include "renderer/smRenderer2D.h" #include "resource/smResource.h" #include "resource/smTe...
/** * generated using metalibm 1.1 * sha1 git: b'"44931432e12dbbda32ae5520e55557ff367a96bb"'(clean) * * INFO: git status was clean when file was generated. * * command used for generation: * metalibm_functions/ml_cosh.py --language c --accuracy cr --precision \ * double --target x86 --output \ * Ge...
#include <getopt.h> #include "generate_stack.h" /****************************************************************************** MODULE: generate_stack PURPOSE: Generates the CSV stack file for the input list of XML files. RETURN VALUE: Type = int Value Description ----- ----------- ERROR ...
#include "api.h" #include "randombytes.h" #include <stdint.h> #include <stdio.h> #include <string.h> #ifndef NTESTS #define NTESTS 5 #endif const uint8_t canary[8] = { 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF }; /* allocate a bit more for all keys and messages and * make sure it is not touched by the impl...
/* * Player - One Hell of a Robot Server * Copyright (C) 2003 * <NAME> * <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 * ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <hiredis/hiredis.h> char *ip[] = {"172.16.58.3", "172.16.58.3","172.16.58.3","172.16.58.3","172.16.58.3","172.16.58.3","172.16.58.3", "192.168.127.12","192.168.127.12","192.168.127.12","192.168.127.12","...
/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2013, 2014 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Sof...
// // Created by 张林 on 3/26/15. // #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <stdio.h> #include <arpa/inet.h> #include <unistd.h> #include <strings.h> #include <sys/fcntl.h> #include <sys/stat.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #inc...
#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...
/* nto-tdep.c - general QNX Neutrino target functionality. Copyright (C) 2003-2014 Free Software Foundation, Inc. Contributed by QNX Software Systems Ltd. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
/* * Copyright (c) 2011, The Linux Foundation. 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, th...
#include <string.h> #include "eth_plugin_internal.h" #include "eth_plugin_handler.h" #include "shared_context.h" #include "ethUtils.h" #include "utils.h" typedef enum { ERC20_TRANSFER = 0, ERC20_APPROVE } erc20Selector_t; typedef enum { TARGET_ADDRESS = 0, TARGET_CONTRACT, TARGET_COMPOUND } targetType_t; typedef str...
/* * Copyright (C) 2012-2017 <EMAIL> * This software is distributed under the terms of the MIT license. * See the included LICENSE file for further information. */ /* * PC-Paintbrush V5 reader. */ #include <stdlib.h> #include <string.h> #include <stdio.h> #include <inttypes.h> #include <sys/types.h> #include <...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
/** file event_info.c * @page papi_xml_event_info * @brief papi_xml_event_info utility. * @section NAME * papi_xml_event_info - provides detailed information for PAPI events in XML format * * @section Synopsis * * @section Description * papi_native_avail is a PAPI util...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
/* Copyright (C) 2010 The Trustees of Indiana University. */ /* */ /* Use, modification and distribution is subject to the Boost Software */ /* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */ /* http:...
/* RetroArch - A frontend for libretro. * Copyright (C) 2014-2018 - <NAME> * * RetroArch is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Found- * ation, either version 3 of the License, or (at your option) any la...
/** \file * \brief HSI Color Manipulation * Copied and adapted from IM * * See Copyright Notice in "iup.h" */ #include <math.h> #include <stdio.h> #include "iup_colorhsi.h" static const float rad60 = 1.0471975f; static const float rad120 = 2.0943951f; static const float rad180 = 3.1415926f; static const float ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <stdbool.h> #include "value.h" #include "linkedlist.h" #include "talloc.h" #include <ctype.h> //tests if something a symbol excluding + and -. bool isSymbol(char charRead){ if(charRead == '!' || charRead == '$' || charRead =='%...
// softuart.c // AVR-port of the generic software uart written in C // // Generic code from // <NAME>, Software Engineer, Halliburton Energy Services // (available from the iar.com web-site -> application notes) // // Adapted to AVR using avr-gcc and avr-libc // by <NAME>, Kaiserslautern, Germany // <<EMAIL>> ...
/* * Copyright (C) <NAME> * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_event.h> #include <ngx_mail.h> #include <ngx_mail_smtp_module.h> static void *ngx_mail_smtp_create_srv_conf(ngx_conf_t *cf); static char *ngx_mail_smtp_merge_srv_conf(ngx_conf_t *cf, void *parent...
#include <stdlib.h> #include <gtk/gtk.h> #include <string.h> #include "ijvm.h" #include "gui.h" #include "helpers.h" GUI app; int main(int argc, char *argv[]) { /* Init GUI */ gtk_init(&argc, &argv); /* Builder (glade) */ app.builder = gtk_builder_new(); gtk_builder_add_from_file (app.builder, "s...
/*- * Copyright (c) 1999,2000,2001 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
// 20 january 2017 #include "drawtext.h" // TODO double-check ligatures on all platforms to make sure we can place the cursor at the right place // TODO using the arrow keys allows us to walk back to the end of the line on some platforms (TODO which?); IIRC arrow keys shouldn't do that // TODO make sure to check the c...
/* * Copyright (c) 2013-2015 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * Copyright (c) 2013-2015 Inria. All rights reserved. * Copyright (c) 2015 Cisco Systems, Inc. All rights reserved. * $COPYRIGHT...
/****************************************** * <NAME> ******************************************/ #include <stdlib.h> #include <stdio.h> #include <time.h> #include <limits.h> #define FILE_ID "1" #define MAKE_FILENAME(name) name FILE_ID ".txt" #define INPUT_FILENAME MAKE_FILENAME("in") #define OUTPUT_FILENAME "out.tx...
/* * Copyright 2014-2016 Nippon Telegraph and Telephone 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
/** @file @author <NAME> @section LICENSE Copyright (c) 2015 <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...
/* Copyright (c) 2011 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this hardware, software, and associated documentation files (the "Product"), to deal in the Product without restriction, including without limitation the rights to use, copy, modify, merge, publis...