text
stringlengths
3.12k
18.7k
#include<stdio.h> #include<stdbool.h> #include<stdlib.h> #include<math.h> #include<limits.h> #include "assignment_2.h" #define empty -9999 #define debug 0 //change this to 1 for debugger mode static void printarray(int *arr[],int size) { for(int i=0; i< size; i++) { for(int j=0; j<size; j++) ...
/* * Copyright (c) 2011 <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 AUTHOR DISCL...
#include "cms.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <util/cryptlib_compat.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <time.h> #include <rpki-asn1/certificate.h> #include <rpki-asn1/extensions.h> // find the SID for this CMS and retur...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdint.h> #include <inttypes.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <time.h> #include <limits.h> #include <errno.h> #include "zerodb.h" #include "index.h" #include "index_loader.h" #include "ind...
/* File: ctrl_multi_step_changer_test.c; Copyright and License: see below */ #include "ctrl_multi_step_changer_test.h" #include "ctrl_multi_step_changer.h" #include "ctrl_controller.h" #include "test_env/test_env_setup_data.h" #include "storage/data_database.h" #include "storage/data_database_reader.h" #include "data_...
//int file_to_mem(char *fname, unsigned char **out, unsigned long *len); unsigned long file_length = 0; unsigned char *file_in_mem = NULL; unsigned long curr_file_offset = 0; //needed for the player FILE *EUR_PC_FP = NULL; int last_Offset = 0; int music_change = 0; int curr_music = 0; ////int lock_...
#include <avr/io.h> #include <avr/interrupt.h> // #include <avr/pgmspace.h> // #include <avr/wdt.h> #include <limits.h> #define CLR_BIT(a,b) ((a) &=~(1<<(b))) #define SET_BIT(a,b) ((a) |= (1<<(b))) #define TST_BIT(a,b) ((a) & (1<<(b))) #define CHANGE_BIT(a,b) ((a) ^= (1<<(b))) #define F_CPU 16000000UL // 16 MHz #ifnde...
/* Name:- <NAME> Regd No.:- 1641012206 Desc:- Contact Management Database using a dynamic - single linked list */ /* Define libraries to be included */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> /*----------------------------------------------------------------------------*/ /* Defin...
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ /* * main.c * Copyright (C) abhoriel 2010 <<EMAIL>> * * gbem is free software copyrighted by abhoriel. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
/** * \file * * Copyright (c) 2010-2012 Atmel Corporation. All rights reserved. * * \asf_license_start * * 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 abov...
#include "conf_board.h" #define RF_FREQUENCY 868000000 // Hz #define TX_OUTPUT_POWER 14 // dBm #define LORA_BANDWIDTH 0 // [0: 125 kHz, // 1: 250 kHz, ...
#include "MachineParameters.h" #include "../includes.h" PARAMETERS infoParameters; const uint8_t parameter_element_count[PARAMETERS_COUNT] = {5, 5, 5, 5, 3, 4, 3, 3, 4, 4, 1, 2, 2, 3, 5}; const char *const parameter_Cmd[PARAMETERS_COUNT][STEPPER_COUNT] = { {"M92 X%.2f\n", "M92 Y%.2f\n", "M92 Z%.2f\n", "M92 T0 ...
/* $NetBSD: scnvar.h,v 1.3 1997/03/13 10:24:16 matthias Exp $ */ /* * Copyright (c) 1996, 1997 <NAME>. * Copyright (c) 1993 <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. ...
/* Serval Low-bandwidth asychronous Rhizome Demonstrator. Copyright (C) 2015 Serval Project Inc. This program monitors a local Rhizome database and attempts to synchronise it over low-bandwidth declarative transports, such as bluetooth name or wifi-direct service information messages. It is intended to give a high p...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdarg.h> #include <math.h> #include <stdint.h> #include "citrine.h" uint64_t ctr_gc_alloc; uint64_t ctr_gc_memlimit; /** * Heap Object, represents dynamic memory. */ struct memBlock { size_t size; void* space; }; typedef st...
// The MIT License (MIT) // 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 // to use, co...
/* * Adapted in 2021 by <NAME> from preious work of Ryo Suzuki * * To the extent possible under law, the author has dedicated all copyright * and related and neighboring rights to this software to the public domain * worldwide. This software is distributed without any warranty. * * See <http://creativecommons.o...
/* @source trimseq application ** ** Trim ambiguous bits off the ends of sequences ** ** @author Copyright (C) <NAME> (<EMAIL>) ** @@ ** ** This program is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License ** as published by the Free Software Foundation; either...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "picoquic.h" #include "picosocks.h" #include "util.h" #define SERVER_PORT 4443 #define SERVER_CERT_FILE "certs/cert.pem" #define SERVER_KEY_FILE "certs/key.pem" void print_address(struct sockaddr* address, char* label) { char hostname[256]; const...
/* * Copyright (c) 1993, 1994 <NAME>. All rights reserved. * For licensing and other legal details, see the file legal.c. * * Cryptographic random number generation. */ #include "first.h" #include <string.h> #include "kb.h" /* For kbGet() other stuff */ #include "md5.h" #include "noise.h" #include "random.h" ...
/* * Copyright (c) 2015, National Instruments Corp. * * Utility to control GPS on USRP Project Brimstone * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * ...
/* SPDX-License-Identifier: ISC */ /* * Authors: <NAME> <<EMAIL>> * * Copyright (c) 2018 Arm Ltd. * * 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 co...
// I had to use the following compiler flags locally // -Wall -Werror -std=c99 -I/usr/include/mkl/ -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl // However it worked on nenneke using the method outlined in the specification. #include <stdio.h> #include <std...
#include <WinSock2.h> #include <stdio.h> #include <initguid.h> #include <ws2bth.h> #include <strsafe.h> #include <stdint.h> #include "ring_buffer.h" // {B62C4E8D-62CC-404b-BBBF-BF3E3BBB1374} DEFINE_GUID(g_guidServiceClass, 0xb62c4e8d, 0x62cc, 0x404b, 0xbb, 0xbf, 0xbf, 0x3e, 0x3b, 0xbb, 0x13, 0x74); #define DEFAULT...
enum { END, ADDASGN, AND, ASGN, BREAK, CHAR, CHARCONST, COMMA, CONTINUE, DECR, DIV, DIVASGN, ELSE, ENUM, EQ, FOR, GE, GT, IDENT, IF, INCR, INT, INTCONST, LBRACE, LBRACKET, LE, LPAREN, LT, MINUS, MOD, MODASGN, MUL, MULASGN, NE, NORETURN, NOT, OR, ...
#include <arpa/inet.h> #include <unistd.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <errno.h> #include <event2/event.h> #include <event2/bufferevent.h> #include <event2/buffer.h> #include "isshe_config_parser.h" #include "isshe_proxy_server.h" #include "isshe_socks_common.h" #include "i...
// // unix_main.c // // // Created by <NAME> on 2019/3/21. // #include <stdio.h> #include <string.h> #include <stdlib.h> #include "zenny_foundation/zenny_foundation_api.h" #include "zenny_foundation/zf_sys/zf_directory.h" #include "zenny_foundation/zf_sys/zf_sys.h" #include "zenny_foundation/zf_sys/zf_atomic_opaq...
/* * Copyright (c) 1996-2001 <NAME>. * See README file for details. */ #include "local.h" extern double robscale; double vocri(lk,t0,t2,pen) double lk, t0, t2, pen; { if (pen==0) return(-2*t0*lk/((t0-t2)*(t0-t2))); return((-2*lk+pen*t2)/t0); } int procvraw(des,lf,v) design *des; lfit *lf; int v; { int i, l...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <pthread.h> #include "genetic_algorithm.h" int read_input(sack_object **objects, int *object_count, int *sack_capacity, int *generations_count, int argc, char *argv[], int *P) { FILE *fp; if (argc < 3) { fprintf(stderr,...
/* * The rtc.* files' purpose is to handle interrupts coming * from the hardware RTC timer. * rtc.S is an interrupt wrapper called by the IDT, which * then executes the rtc.c handler. The wrapper is necessary * to handle the returns and state-saving interrupt handling * parts. */ #include "rtc.h...
/* * $smu-mark$ * $name: main.c$ * $author: <NAME> <<EMAIL>>$ * $copyright: Copyright (C) 1999 by <NAME>$ * $license: This software is under GPL version 2 of license$ * $date: Fri Nov 5 11:55:48 MET 1999$ * $rev: 8$ */ /* * hping official page at http://www.kyuzz.org/antirez * Covered by GPL versio...
// // Created by igor on 05/03/18. // #include "../../lib/LBST/LBST.h" // ####### Private functions //HashMap List HM_DLST *HM_LSTPTR_insert(HM_LSTPTR *cell, BST_node *new) { HM_DLST *tmp = calloc(1, sizeof(HM_DLST)); if (cell->f == NULL) { //create first node cell->f = tmp; //calloc do s...
/* american fuzzy lop++ - queue relates routines --------------------------------------------- Originally written by <NAME> Now maintained by <NAME> <<EMAIL>>, <NAME> <<EMAIL>> and <NAME> <<EMAIL>> Copyright 2016, 2017 Google Inc. All rights reserved. ...
/* Copyright (c) 2017, 2018, 2020, 2021 <NAME> * * 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 PROVIDED "AS IS" AND THE AUTH...
// map.c // // Created on: Feb 5, 2018 // Author: <NAME> #include "struct/map.h" #include <stdbool.h> #include <stdint.h> #include "debug/debug.h" #include "util/util.h" struct __Entry { Pair pair; uint32_t hash_value; int32_t num_probes; _Entry *prev, *next; }; #define pos(hval, nu...
/** * @file main.c * @author <NAME> * @date 2013.09.08 * @brief Main program body * * MIT License * * Copyright (c) 2022 <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 ...
#include "as.h" Source source; void init_source(char *src, char *filepath) { // caluculate current working directory int i, j, len = strlen(filepath); source.cwd = safe_malloc(sizeof(char *) * len); // TODO: ad-hoc for (i = len - 1; i >= 0; i--) { if (filepath[i] == '/') { // d...
#include <math.h> #include <png.h> #include <pthread.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <GL/glew.h> #include <GLFW/glfw3.h> #include <rtl-sdr.h> #define WIDTH 256 #define HEIGHT 256 GLFWwindow* window; GLuint texture_id; GLuint program; GLfloat buffer[WIDTH * H...
// // This file was generated by the Retargetable Decompiler // Website: https://retdec.com // Copyright (c) 2018 Retargetable Decompiler <<EMAIL>> // #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // ------------------------ Structures ------------------------ st...
// Time-stamp: < power_supply.c (2015-12-04 19:01) > #include <string.h> #include <glib-2.0/glib.h> #include <glib-2.0/glib/gprintf.h> #include "power_supply.h" #define DEBUG 0 #define STRING_LEN 100 #define SYS_ACPI_PATH "/sys/class/power_supply/" #define SYS_ACPI_TYPE_FILE "type" #define SYS_ACPI_TYPE_AC "Mains\...
/* * pass.c * * Created on: 24 okt. 2014 * Author: gerald */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <fcntl.h> #include <string.h> #include "pass.h" #include "defines.h" #include "types.h" #include "vars.h" #include "error.h" #include "express.h" #include "file.h" #include "gen...
/* * asn1dump.c * * show the structure of an ASN.1-file * * written 03/93 by <NAME> * * Changes: * 10/94 (akr) added support for various string types. * * Remember: TS=4 */ # if defined(__TURBOC__) | defined(__WATCOMC__) # include <io.h> # elif solaris # include <sys/types.h> # include <unistd.h> # elif...
/* * File: sws.c * Author: <NAME> * Purpose: This file contains the implementation of a simple web server. * It consists of two functions: main() which contains the main * loop accept client connections, and serve_client(), which * processes each client request. */ #include <stdio.h...
/*****************************************************************************\ ** ** ** FILE: mail.c ** ** AUTHORS: Alexios ** **...
/*===========================================================================*/ /* Copyright (c) 1987 - 1988, Future Soft Engineering, Inc. */ /* Houston, Texas */ /*===========================================================================...
/* * Copyright (c) 2020 <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 AUTHOR DISC...
/* * This file is part of the coreboot project. * * Copyright (C) 2012 ChromeOS Authors * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is d...
/* $NetBSD: db_machdep.c,v 1.1.16.2 2012/10/17 22:34:15 riz Exp $ */ /* * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyrigh...
/********************************************************************************** Avatar Tools Copyright (c) 2019, National Technology and Engineering Solutions of Sandia, LLC All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the foll...
/* mbed Microcontroller Library * Copyright (c) 2013 Nordic Semiconductor * * 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 * * Unles...
#include "bootpack.h" void init_pallete(void) { static unsigned char table_rgb[16 * 3] = { 0x00, 0x00, 0x00, /* 黒 */ 0xff, 0x00, 0x00, /* 明るい赤 */ 0x00, 0xff, 0x00, /* 明るい緑 */ 0xff, 0xff, 0x00, /* 明るい黄色 */ 0x00, 0x00, 0xff, /* 明るい青 */ 0xff, 0x00, 0xff, /* 明るい紫 */ 0x00, 0xff, 0xff, /* 明るい水色...
#include <stdio.h> #include <string.h> #include <stdarg.h> #include <stdlib.h> #ifdef _WIN32 #include <windows.h> #endif #include "gkscore.h" char *gks_a_error_info = NULL; /* for compatibility with GLI/GKS */ int gks_errno = 0; FILE *gks_a_error_file = NULL; void gks_perror(const char *format, ...) { va_list a...
#include <stdio.h> #include <sys/ioctl.h> #include "maplesyrup.h" #include "parse.h" #include "bitfield_cortex-a7.h" bitfield_info bitfield_cortex_a7_table[] = { { 1, 0, MS_SYSREG_REVIDR, NS_PRIVILEGE_LEVEL_1, 0, 32, "ID Number", "ident", "REVIDR", "Revision information" }, { 1, 0, MS_SYSREG_MPIDR, NS...
/* * Copyright (c) 2014 <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 AUTHOR DISCL...
#include <string.h> #include "vfd_driver.h" #include "esp_random.h" #include "driver/i2c.h" esp_err_t i2c_master_init(void) { int i2c_master_port = I2C_NUM; i2c_config_t conf = { .mode = I2C_MODE_MASTER, .sda_io_num = I2C_SDA_GPIO, .scl_io_num = I2C_SCL_GPIO, .sda_pullup_en = GP...
/*! @header Chapter 9 Programming Project: Designing a Virtual Memory Manager @discussion * This implementation started with `v1/project_1_part_1v1.c` and was modified to fix a bug in the TLB entry replacement. * What follows in this block comment is mostly identical to what is in `v0/proje...
/* include area */ #include "lzss.h" /* internal types */ /** Match list update context. */ typedef struct { /** Window that buffered the previous bytes. */ const window_t *w; /** New character to match against. */ byte c; } ml_update_cb_ctx_t; static bool _find_match( size_t from, size_t *pos, const win...
#include <efi.h> #include <efiutil.h> // globals efi_handle_t self_image_handle; efi_loaded_image_protocol_t *self_loaded_image; efi_simple_file_system_protocol_t *self_volume; efi_file_protocol_t *self_root_dir; efi_system_table_t *st; efi_boot_services_t *bs; void init_util(efi_handle_t image_handle, efi_system_tab...
/* * service.c * Server-style UI for libpiano. * * Created by <NAME> on 2012-03-10. * Copyright 2012-2014 Devious Fish. All rights reserved. * Parts liberally plagiarized and adapted from PianoBar * Copyright (c) 2008-2011 <NAME> <<EMAIL>> * Copyright (c) 2008-2011 <NAME> <<EMAIL>> Permission is hereb...
/****************************************************************************\ Part of the XeTeX typesetting system Copyright (c) 1994-2006 by SIL International SIL Author(s): <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/** * @copyright * Copyright (c) 2015-2017 <NAME> * Licensed under the MIT License (see LICENSE) */ #include <assert.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/dir.h> #include <sys/stat.h> #include <dfk/config.h> #include <dfk/error.h> #include <dfk/middleware/fileserver.h> #inc...
#include<stdio.h> int LIN, COL; //conto as linhas do txt e altero as variaveis globais int contar_linhas(); //leio o conteudo do txt e armazeno na variavel mat void ler_matriz(float mat[LIN][COL]); //funcao para escalonar a matriz void escalonar(float mat[LIN][COL], int linha); //funcao para imprimir a matriz void i...
/* tga.c Load uncompressed Targa 24 or Targa 32 images. Copyright 2004, 2011 <NAME> Distributed under the Boost Software License, Version 1.0. (See http://www.boost.org/LICENSE_1_0.txt ) ---------------------------------------------------------------------------- Simplified TGA Specification ----------...
#include <gtk/gtk.h> static void on_text_changed (GtkEntry *entry, GParamSpec *pspec, GtkHeaderBar *bar) { const gchar *layout; layout = gtk_entry_get_text (entry); gtk_header_bar_set_decoration_layout (bar, layout); } static void create_widgets (GtkHeaderBar *bar...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** * * COPYRIGHT(c) 2015 STMicroelectronics * * Redistribution and...
/* * PIRv0.c * * Created: 28.03.2018 19:40:25 * Author : Ami_go */ // ATMEL ATTINY24 / ARDUINO // Actual PINOUT // +-\/-+ // VCC 1| |14 GND //[*position 1] (1min ) (D 0...
/** * \file aco.c * \brief implmentation de la métaheuristique des colonies de fourmies */ #include "aco.h" #include "tri.h" #include "rechercheLocale.h" #include "tabu.h" #include <stdlib.h> #include <stdio.h> #include <time.h> #include <math.h> //-----------------------------------------------------------------...
/* * Copyright 2013, 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 cond...
// // main.c // HBAnalysis // // Created by <NAME> on 4/14/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #include "Analysis.h" int atomnum; int numofprotein; int totalAminoAcids; int *celllist = NULL; int freshStart = 0; int *analysisList; int nPP = 0; double cutoffr; double boxOrigDim[4] = {0}; doub...
/* * Assignment 3: smallsh (Portfolio Assignment) * By: <NAME> * <EMAIL> * CS 344 Operating Systems * 11/3/2020 * smallsh.c * * smallsh features: * - Provide a prompt for running commands * - Handle blank lines and comments, which are lines beginning with the # character * - Provide expansion for the variabl...
#include "config.h" #include "formatting.h" #include "indexer.h" #include "syndicate.h" #include <stdio.h> #include <time.h> #include <string.h> #include <sys/types.h> #include <stdlib.h> #include <dirent.h> #include <mkdio.h> #ifndef MKD_CDATA #define CANNOT_CDATA #define MKD_CDATA 0 #endif extern int dirent_nso...
/* * Copyright (c) 2012-2020 MIRACL UK Ltd. * * This file is part of MIRACL Core * (see https://github.com/miracl/core). * * 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...
/* Copyright (c) 2014 <NAME> All rights reserved. See the LICENSE file elsewhere in this distribution for the terms under which this software is made available. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include "pm_lib.h" /* Files are * * version * generation ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "ocstack.h" #include "dmclient.h" #include "xmppclient.h" #include <strophe.h> #include "common.h" int iq_ibb_open_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, void * const userdata) { char* szBlock_size; char* szSid; ...
/******************************************************************************************************* MIT License Copyright (c) 2018 Ravi (ravh-cal), 3/10/2018 *******************************************************************************************************/ #include <stdio.h> #include <stdlib.h> void sele...
/* * ===================================================================================== * * Filename: om_parallel_test * * * Description: Tests if the Top_List and Bottom_List implementation of Bender's * order-maintenance data structure is working correctly. * * Ver...
#include <string.h> #include "py/mphal.h" #include "due_mphal.h" #include "py/mpstate.h" #include "usart.h" #include "fifo.h" #include "conf_sleepmgr.h" // Low level functions required for initialization of the board #ifdef UART_REPL static uint8_t uart_rx_buf[BUFFER_SIZE]; static volatile uint8_t uart_r...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/* * Copyright 2019 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 applicab...
// KL 2011 #include "Compiler.h" #include "HardwareProfile.h" #include "TimeDelay.h" #include <stdint.h> #include <uart.h> #include "Peripherals/Uart_vdma.h" //Globals // rx state - depends on settings void (*RxDoneHandler)(void) = NULL; #ifdef VDMA_CALLBACK_ON_CHAR unsigned char callBackChar = '\r'; v...
/**------ ( ----------------------------------------------------------** ** )\ CAnDL ** **----- / ) --------------------------------------------------------** ** ( * ( util.c ** **---- \#/...
#include "client.h" #include "server.h" #include "mt19937.h" #include "mini-gmp/mini-gmp.h" #include <stdio.h> #include <time.h> #include <stdlib.h> #include <stdint.h> #include <string.h> static const char NIST_g[] = "2"; static const char NIST_k[] = "3"; static const char NIST_N[] = "ffffffffffffffffc90fdaa22168c234...
#include <stdio.h> #include <stdlib.h> #include "common.h" #include "compiler.h" #include "scanner.h" #ifdef DEBUG_PRINT_CODE #include "debug.h" #endif typedef struct { Token current; Token previous; // Whether or not the parser has encountered an error bool hadError; // Whether or not the parser...
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * Copyright 2013-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: * * ...
// static long double const PI = 3.14159265358979323846264338L ; // #define PI 3.14159265358979323846 #define LDMAX(a, b) (((a) > (b)) ? (a) : (b)) /* log likelihood of log-normal AFT model */ double logL_AFT_logN(double *X, double *T, int *d, int n, double a0, double a1, double sig2) { double logL=0, mu; ...
#define _GNU_SOURCE #include "strutil.h" #include "hash.h" #include "abb.h" #include "heap.h" #include "pila.h" #include "lista.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #define POS_COMAND 0 #define RUT_ARCH 1 #define ID_VUELO 1 #define CANT_VUE 1 #define DESD_BOR 1 #define HAST_BOR 2...
/* Pango/Font Rendering * * Demonstrates various aspects of font rendering. */ #include <gtk/gtk.h> static GtkWidget *window = NULL; static GtkWidget *font_button = NULL; static GtkWidget *entry = NULL; static GtkWidget *image = NULL; static GtkWidget *hinting = NULL; static GtkWidget *hint_metrics = NULL; static ...
/* eip202_rd_format.c * * EIP-202 Ring Control Driver Library * Result Descriptor Internal interface * * This module contains the EIP-202 Result Descriptor specific functionality */ /***************************************************************************** * Copyright (c) 2011-2014 INSIDE Secure B.V. All Rig...
#include "syscall.h" #include "utility.h" #include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <arpa/inet.h> #include <netdb.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #ifdef COUNT #define COUNT_START static int aim_iteration_te...
//iwnbb /*INCLUDES*/ #include <unistd.h> #include <stdio.h> #include <errno.h> #include <sys/stat.h> #include <sys/types.h> #include <string.h> #include <fcntl.h> #include <dirent.h> #include <stdlib.h> /*DEFINES*/ #define fifo_out "fifo_lectura_ESCRITURA" #define fifo_in "fifo_LECTURA_escritura" ...
/* * break_ssrp.c * * Simplified Secure Remote Password (SSRP) mitm stuff for cryptopals.com * challenges. */ #include <stdlib.h> #include <string.h> #include "compat.h" #include "mac.h" #include "sha256.h" #include "srp.h" #include "break_ssrp.h" /* local struct ssrp_server method members implementations */ st...
/* Copyright (c) 2005-2009 <NAME> <<EMAIL>> Copyright (c) 2005-2008 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 ...
#include "breakpoint.h" #include "fuzz.h" #include "sink.h" #include "tracer_dynamic.h" /* * 1. start by disassembling code from the start address * 2. find next control-flow instruction and start monitoring it * 3. at control flow instruction remove monitor and create singlestep * 4. after a singlestep set start ...
/********* NLG.C by BouKiCHi 2013-2014 2013-xx-xx 開始 2014-02-11 書き込み機能を追加(NLG format 1.10) 2014-05-18 コンテキスト化 2014-06-01 書き込み機能にタイトル変更関数などを追加 this file is no warranty,but free to use. ********/ #include <stdio.h> #include <string.h> #include <stdlib.h> #include "nlg.h" #define NLG_VER (110) #define NLG_BASE...
/********************************************************************************/ /* */ /* TPM Test of TPM DeepQuote */ /* Written by <NAME>, <NAME> */ /* IBM Thomas J. Watson Research Center */ /* $Id: quote.c 4702 2013-01-03 21:26:29Z kgoldman $ */ /* */ /* (c) ...
/* * libics: Image Cytometry Standard file reading and writing. * * Copyright 2015-2017: * Scientific Volume Imaging Holding B.V. * Laapersveld 63, 1213 VB Hilversum, The Netherlands * https://www.svi.nl * * Contact: <EMAIL> * * Copyright (C) 2000-2013 <NAME> and others * * Large chunks of this librar...
/* * * sshxml_accessors.c * * Author: <NAME> <<EMAIL>> * * Copyright: * Copyright (c) 2002-2005 SFNT Finland Oy. * All rights reserved. * * Accessor methods for names, attributes, attribute definitions, and * locations. * */ #include "sshincludes.h" #include "sshxml_internal.h" /*...
/* * Synopsys DWC Ethernet Quality-of-Service v4.10a linux driver * * Copyright (C) 2016 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * You should have...
#include "esp_spi_flash.h" #include "driver/i2c.h" #define PIN_I2C_MASTER_DATA 18 #define PIN_I2C_MASTER_CLOCK 19 #define MASTER_PORT 0 #define PIN_I2C_SLAVE1_DATA 25 #define PIN_I2C_SLAVE1_CLOCK 26 #define I2C_SLAVE1_ADRESS 0 #define SLAVE1_PORT 0 #define I2C_RECEVING_BUFFER_SIZE 2048 #define I2C_SENDING_BUFFER_SIZ...