text
stringlengths
3.12k
18.7k
#include "rtc.h" // lib commands // inb -- Port read functions Inb reads a byte and returns its value as a zero-extended 32-bit unsigned int static inline uint32_t inb(port) // outb -- Writes a byte to a port outb(data, port) // cli -- Clear interrupt flag - disables interrupts on this processor // sti -- Set int...
#include "agi.h" AGI_STATE state; //AGI_STANDARD standard; CONF_BOOL c_nagi_log_debug = 0; CONF_BOOL c_nagi_console = 1; CONF_BOOL c_nagi_font_benchmark = 0; CONF_BOOL c_nagi_crc_print = 0; CONF_STRING c_nagi_dir_list = 0; CONF_STRING c_nagi_sort = 0; CONF_STRING c_vid_driver = 0; CONF_INT c_vid_scale = 2; CONF_BO...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <unistd.h> #include <gccore.h> #include <gctypes.h> #ifdef HW_RVL #include <wiiuse/wpad.h> #endif //HW_RVL #include "donut.h" #define BUFFER_WIDTH 80 #define BUFFER_HEIGHT 27 #define BUFFER_SIZE (BUFFER_WIDTH*BUFFER_HEIGHT) #define...
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* getFeatDna - Get dna for a type of feature. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "cheapcgi.h" #include "genePred.h" #include "dnaseq.h" #include "fa.h" #include "dystring.h" #include "jksql.h" #include "hdb.h" #include "psl.h" #include "nib.h" static char const rcsid[] = "$Id: get...
/***************************************************************************** * PSRGEOM * <NAME>, 2018 * * This program attempts to simulate the profile as observed from a pulsar * with given angles α and ζ, period P, and frequency range f1 to f2. * * For each sampled field line, the line is followed outward in...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdbool.h> #include <search.h> #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(x) ((x)<0?-(x):(x)) #define IS_EMPTY(c) ((c)=='.'?1:0) int min_cost = 100000000; // Here's the map // 0 12 //...
/* soap.c shared library for decode/encode gps/glonass terminal Wialon NIS/ОлимпСтрой(SOAP) messages compile: make -B soap */ #include <stdlib.h> /* malloc */ #include <string.h> /* memset */ #include <errno.h> /* errno */ #include "glonassd.h" /* globals */ #include "de.h" // ST_ANSWER #include "lib...
#include <gtk/gtk.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include <unistd.h> #include <pthread.h> // app wrappers #include "vx/vx_remote_display_source.h" #include "vx/gtk/vx_gtk_display_source.h" // core api #include "vx/vx_global.h" #include "vx/vx_layer.h" #include "vx/vx_world.h" // drawable...
#include <assert.h> #include <ctype.h> #include <stdio.h> #include <string.h> #include "scru128.h" #define TEXT_BUFFER_SIZE 64 static const uint64_t MAX_UINT48 = ((uint64_t)1 << 48) - 1; static const uint32_t MAX_UINT24 = ((uint32_t)1 << 24) - 1; static const uint32_t MAX_UINT32 = UINT32_MAX; static const int n_gen...
/* * Copyright 2008-2013 Freescale Semiconductor, Inc. * * SPDX-License-Identifier: BSD-3-Clause */ #include <stdio.h> #include "flib/rta.h" #include "test_common.h" enum rta_sec_era rta_sec_era; uint32_t prg_buff[1000]; const uint8_t abc[] = { 0x61, 0x62, 0x63 }; int test_load_op(uint32_t *buff) { struct prog...
// ------------------------------------------------------------------ // vcf_ps_pid.c // Copyright (C) 2019-2022 Black Paw Ventures Limited // Please see terms and conditions in the file LICENSE.txt #include "vcf_private.h" #include "seg.h" #include "context.h" #include "file.h" #include "strings.h" #include "di...
/* Reads raw n2k ASCII data from stdin and writes it to a Linux SocketCAN device (e.g. can0). (C) 2009-2021, <NAME>, Harlingen, The Netherlands. This file is part of CANboat. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obta...
/* * drv_usb.c * * Created on: Mar 21, 2021 * Author: kimi */ /********** Include **********/ #include "common_type.h" #include "usbd_custom_hid_if.h" #include "drv_sw.h" #include "drv_joystick.h" #include "drv_usb.h" /********** Define **********/ #define POINTER_TABLE_SIZE 20 typedef enum stick_mode {...
/* * FreeRTOS Kernel V10.1.1 * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. 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 in * the Software without restriction, ...
#include "config.h" #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <sys/select.h> #include <sys/timerfd.h> #include <termios.h> #include <unistd.h> struct Pos { int x; int y; }; struct Apple { struct Pos pos; }; void genRandomPos(struct Pos* pos) { pos->x = ran...
/*Riesenie: projekt 2 - shell * Predmet: POS * Autor: <NAME>(xsuhaj02) * Rocnik: 2018/2019 * Subor: shell.c */ #define _XOPEN_SOURCE 500 #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <stdbool.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <fcntl.h> #in...
/* * Copyright 1990,91 by <NAME>, Dinkelscherben, Germany * Copyright 1993 by <NAME> <<EMAIL>> * Copyright 1999 by <NAME> <<EMAIL>> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright no...
/* $NetBSD: macppc.c,v 1.11 2008/05/24 19:15:21 tsutsui Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modifica...
/* * Copyright (C) SplinterGU (Fenix/BennuGD) (Since 2006) * Copyright (C) 2002-2006 Fenix Team (Fenix) * Copyright (C) 1999-2002 <NAME> (Fenix) * * This file is part of Bennu Game Development * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be...
/****************************************************************************//** * @file main.c * @version V1.00 * @brief Read the smartcard ATR from smartcard interface. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved. **************************...
/*------------------------------------------------------------------------------------------------------------------------------------------- * ps2kbd.h - PS/2 keyboard scancodes and functions *--------------------------------------------------------------------------------------------------------------------------...
/** * \file gating.c * * \brief Tests for instrument fetching commands. * * \copyright * Copyright (c) 2018 RBR Ltd. * Licensed under the Apache License, Version 2.0. */ #include <math.h> #include "tests.h" typedef struct FetchingTest { const char *command; const char *response; bool passChannels;...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <assert.h> #define MAXVECS 3000 static const char* delim = " \n"; static double **vecs; static int veclen; static int numvecs = -1; static int *in_subset; static int *in_all_subset; static int subset_size; static int all_subset_size...
#define _POSIX_C_SOURCE 200809L #include <assert.h> #include <string.h> #include <wayland-server-core.h> #include <GLES2/gl2.h> #include <wlr/render/gles2.h> #include <wlr/render/wlr_renderer.h> #include <wlr/render/wlr_texture.h> #include <wlr/types/wlr_box.h> #include <wlr/types/wlr_output.h> #include <wlr/types/wlr_...
/* * Samsung Exynos5 SoC series FIMC-IS driver * * exynos5 fimc-is video functions * * Copyright (c) 2011 Samsung Electronics Co., Ltd * * 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 Fo...
/* * Copyright (c) 1988, The Regents of the University of California. * <NAME>, Workstation Software Support Group, Workstation Support Serices, * Information Systems and Technology. * * Permission is granted to any individual or institution to use, copy, * or redistribute this software so long as it is not sold ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> typedef unsigned int uint; // input: type = {0,1,2,3}, number = {a,2,3,4,5,6,7,8,9,o,j,q,k} // encode: | 8b type * 100 + number | uint card(char type, char number) { type -= 48; switch(number) { case 'o': number = 10; break; ...
#include <stm32f10x_gpio.h> #include <stm32f10x_rcc.h> #include <stm32f10x_spi.h> #include <stm32f10x_exti.h> #include <misc.h> #include <uart.h> #include <nRF24L01.h> #include <delay.h> #define RX_PAYLOAD 18 // nRF24L01 TX payload length uint8_t buf[RX_PAYLOAD]; uint8_t have_data; static uint8_t CRC...
/* ------------------------------------------------------------------------- @file tree.c @date 11/24/16 13:35:56 @author <NAME> @email <EMAIL> @brief Ejemplo de arbol binario, construccion basada en una lista enlazada simple. Tambien las maneras de recorrer el arbol. Para este caso cuando se visita el nodo se imprim...
// // Copyright (c) 2017 The Khronos Group 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.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable la...
#include <tinyfiledialogs.h> #include <raygui.h> #include <raygui_ext.h> #include <stdio.h> #include <string.h> #include "style/cyper.h" #include "editor.h" #include "canvas.h" #include "utils.h" editor_data_t g_EditorData = {0}; static void EditorCamera(void) { ASSERT(g_EditorData.canvas.image.width != 0, "CANV...
/* * initialize_hardware.c * * Created on: Oct 22, 2016 * Author: <NAME> */ /* * system_config_tmplete.c * * Created on: Oct 20, 2016 * Author: <NAME> */ #include "stm32f4xx_hal.h" #include "system_config.h" #include "faults.h" #include "stm32f4xx_hal_def.h" #include "kb_timer.h" /** * @brie...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <assert.h> #include "hashmap.h" //CPU時間とメモリを表示 #include <sys/time.h> #include <sys/resource.h> void print_usage(struct rusage *ru0) { #ifdef __linux__ struct rusage ru; getrusage(RUSAGE_SELF, &ru); time_...
/* -*- indent-tabs-mode: nil -*- * * This file is part of Funchook. * https://github.com/kubo/funchook * * Funchook 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 (a...
/* Copyright (c) 2013 Insollo Entertainment, LLC. 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 in the Software without restriction, including without limitation the ri...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <sys/mman.h> #if defined(BYTE_ORDER)&&(BYTE_ORDER == BIG_ENDIAN) #define _le32toh(x) __builtin_bswap32(x) #define _htole32(x) _...
/** * sc.c * * Masters Thesis Work * <NAME>, 2014 */ #include <unistd.h> #include <stdio.h> #include "libpngHelper.c" #include "libSeamCarve.c" #include "libResize.c" #define PROGRAM_NAME "Experiments with Seam Carving" #define PROGRAM_VERS "0.4" #define PROGRAM_COPY "Copyright 201-2015, <NAME>" static void car...
/* * $Id: target_manager.c 2835 2014-04-03 15:30:57Z antonin $ * * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium * Copyright (c) 2002-2014, Professor <NAME> * Copyright (c) 2010-2011, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without ...
#include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <time.h> #include <stdbool.h> #include "test_helpers.h" #include <openssl/evp.h> #include <openssl/ecdsa.h> #include <openssl/ecdh.h> #include <o...
#include "util_c.h" // C-language utility method definitions. // Setup the core system clock. void init_clock(void) { // Initial clock setup. #ifdef VVC_F0 // Reset the Flash 'Access Control Register', and // then set 1 wait-state and enable the prefetch buffer. // (The device header files only show 1 ...
#include "libmd.h" int I_VAL0[SAMPLES_NUM]; int Q_VAL0[SAMPLES_NUM]; int I_VAL[SAMPLES_NUM]; int Q_VAL[SAMPLES_NUM]; float AMP_N[SAMPLES_NUM]; float AMP_P[SAMPLES_NUM]; float AMP_DIFF[SAMPLES_NUM]; void amp_array_calcu(int *i_array , int *q_array, float *amp){ for(int i = 0; i < SAMPLES_NUM; i++){ amp[i]...
/** Copyright (C) 2005-2006 <NAME>, <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, modif...
/* * Copyright (c) 2021 <NAME> <<EMAIL>> * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr.h> #include <ztest.h> #include <linker/linker-defs.h> #include <sys/mem_manage.h> #include <multi_heap/shared_multi_heap.h> #define DT_DRV_COMPAT zephyr_memory_region #define RES0_CACHE_ADDR DT_REG_ADDR(DT_NOD...
/* * Copyright (c) 2011 <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 of...
/* Copyright (c) 2010 - 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, this * l...
/* ----------------------------------------------------------- */ /* */ /* ___ */ /* |_| | |_/ SPEECH */ /* | | | | \ RECOGNITION ...
#include "common.h" #include <assert.h> /* Test various bind type */ static char software_version[] = "$Id: data.c,v 1.13 2007/06/21 07:21:21 freddy77 Exp $"; static void *no_unused_var_warn[] = { software_version, no_unused_var_warn }; static int result = 0; static char sbuf[1024]; static void Test(const char *typ...
/*************************************** * * Camellia Image Processing Library * The Camellia Image Processing Library is an open source low-level image processing library. As it uses the IplImage structure to describe images, it is a good replacement to the IPL (Intel) library and a good comple...
/* * Copyright (C) 2013 University of Chicago. * See COPYRIGHT notice in top-level directory. * */ #include "CodesKernelHelpers.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include <assert.h> #include <libgen.h> #define CK_LINE_LIMIT 8192 #define CL_DEFAULT...
/* * MIT License * * Copyright (c) 2019 <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,...
/******************************************************************************* * Copyright 2011-2016 Intel Corporation All Rights Reserved. * * The source code, information and material ("Material") contained herein is * owned by Intel Corporation or its suppliers or licensors, and title to such * Material rem...
/*- * Copyright (c) 2015 <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 of co...
/** * \file * D-Cube testbed configuration (nRF52840). * \author * <NAME> <<EMAIL>> * */ #include "contiki.h" #include "net/packetbuf.h" #include "lib/memb.h" #include "nrf_drv_gpiote.h" #include "nrf_drv_twi.h" #include "nrf_delay.h" #include "services/testbed/testbed.h" #include "sys/log.h"...
#include <argp.h> #include <ctype.h> #include <libintl.h> #include <locale.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define UPPER 100 /**< Maximum number to guess */ #define _(STRING) gettext(STRING) /**< Translation */ #define LOCALE_PATH "po" /**< Locate directory */ co...
/* lmdbgo.c * Helper utilities for github.com/bmatsuo/lmdb-go/lmdb * */ #include <string.h> #include <stdio.h> #include "_cgo_export.h" #include "mdbxgo.h" #include "dist/mdbx.h" #define MDBXGO_SET_VAL(val, size, data) \ *(val) = (MDBX_val){.iov_len = (size), .iov_base = (data)} int mdbxgo_msg_func_proxy(const ...
/* ck3and5 - Checks xxxx.3 and xxxx.5 EST pairs to make sure they align near the same * piece of DNA. */ #include "common.h" #include "hash.h" #include "snof.h" #include "cda.h" #include "wormdna.h" struct ck3and5 { struct ck3and5 *next; char *three; char *five; }; FILE *aliFile; struct snof *ali...
/* Copyright (c) 2018 <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, publish, distr...
#include <math.h> #include <time.h> #include <stdio.h> #include <string.h> #include <stdlib.h> int n_sam = 10; float sigma_s[3] = {10.0, 4.0, 2.0}; float sigma_d[3] = {1.0, 1.0, 1.0}; float sigma_t = 2.0; float max_jerk = 10.0; float max_accel = 10.0; float expected_jerk_in_one_sec = 2.0; float expected_acc_in_one_s...
#include <stdlib.h> #include <string.h> #include <ctype.h> #include <unistd.h> #include <errno.h> #include "tts.h" #include "voxin.h" #include "debug.h" #define MAX_SAMPLES 10240 #define VOICE_ID_UNDEFINED -1 typedef struct { vox_t voice[VOX_RESERVED_VOICES]; unsigned int len; // effective number of elements in...
/* repml.f -- translated by f2c (version 19980913). 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__3 = 3; /* $Procedure REPML ( Replace marker with logical value text ) */ /* Subroutine */ int repml_(ch...
/* Copyright (c) 2016 Facebook * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. */ #include <linux/bpf.h> #include <linux/if_link.h> #include <assert.h> #include <errno.h> #in...
/*s: kernel/network/386/ethermii.h */ typedef struct Mii Mii; typedef struct MiiPhy MiiPhy; /*s: enum [[_anon_ (kernel/network/386/ethermii.h)]] */ enum { /* registers */ Bmcr = 0x00, /* Basic Mode Control */ Bmsr = 0x01, /* Basic Mode Status */ Phyidr1 = 0x02, /* PHY Identifier #1 */ Ph...
#include <include/m10.h> #include <math.h> #include <stdio.h> #include "demod/gfsk.h" #include "decode/framer.h" #include "decode/manchester.h" #include "frame.h" #include "subframe.h" #include "gps/time.h" struct m10decoder { Framer f; M10Frame frame[4]; size_t offset; int state; char serial[16]; }; #ifndef NDE...
/* * File: main.c * Author: BMB * * Created on 24 Eylül 2020 */ #include <stdio.h> #include <stdlib.h> #include<time.h> /* * */ void tek_boyutlu_dizi_olustur(int **dizi, int eleman_sayisi) { int i; *dizi = (int *) malloc(sizeof(int) * eleman_sayisi); for (i = 0; i < eleman_...
/* mudparser.c * * Convert incoming lines as needed into HTML. */ #include "banana.h" #include <iconv.h> // Remove HTML markup from a line of text. */ char * remove_markup(char *str) { char *r = str; char *s = str; while (s && *s) { switch (*s) { case '&': if (!strncmp(s, "&nbsp;", 6)) { ...
//#define bool char #define true 1 #define false 0 typedef char bool; typedef long long uint64; void *TC_JsonParse(char *data); int TC_JsonGetInt(void *root, char *key); long long TC_JsonGetInt64(void *root, char *key); char * TC_JsonGetString(void *root, char *key); char * I64toa(long long amount,int radix); int strc...
/* * keypad.c * * Created on: 30 may. 2020 * Author: eddea */ #include "keypad.h" #include <stdint.h> #include "fsl_gpio.h" void config_input_pin(keypad *k,uint8_t pin_n, input_pin pin) { k->row_pin[pin_n]=pin; } void config_output_pin(keypad *k,uint8_t pin_n, output_pin pin) { k->col_...
#include <stdio.h> #include "block.h" #include "error.h" #include "texgen.h" #include "vectorial/simd4f.h" #include "vectorial/simd4x4f.h" void glTexGeni(GLenum coord, GLenum pname, GLint param) { if (pname != GL_TEXTURE_GEN_MODE) { ERROR(GL_INVALID_ENUM); } GLfloat fp = param; glTexGenfv(coor...
/*- * Copyright (c) 2001-2003 Networks Associates Technology, Inc. * All rights reserved. * * This software was developed for the FreeBSD Project by ThinkSec AS and * Network Associates Laboratories, the Security Research Division of * Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 * ("CB...
#include "rule_5tuple.h" void rule_5tuple_set_ports(uint32_t **dst, char *port_list) { if (!port_list) return; rte_free(*dst); *dst = rte_zmalloc("rule match in rule_match_zmalloc", sizeof(uint32_t) * 0x10, 0); uint32_t port1, port2, cnt = 0; char *tok_ptr = strtok(port_list, ","), *c...
/* * txt2track.c * * Created on: 11 Jan 2017 * Author: pippelmn */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <ctype.h> #include <unistd.h> #include <assert.h> #include <sys/param.h> #include "lib/colors.h" #include "lib/oflags.h" #include "lib/pass.h" #include...
// Thanks for: https://github.com/alibaba/nginx-http-footer-filter/blob/1.2.2/ngx_http_footer_filter_module.c #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> typedef struct { ngx_hash_t types; ngx_array_t *types_keys; ngx_http_complex_value_t *variable; } ngx_http_footer_loc_conf_t; ty...
/* * Copyright (c) 2015 Los Alamos National Security, LLC. All rights reserved. * Copyright (c) 2015-2017 Cray Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2...
#include "song_info.h" #include <3ds.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <xmp.h> #include "fxhandler.h" #include "player.h" #define gotoxy(x, y) printf("\033[%d;%dH", (x), (y)) static const char *note_name[] = {"C-", "C#", "D-", "D#", "E-", "F-", ...
#include <pebble.h> #include <stdlib.h> #include "const.h" //extent of array used. Must be less than MAX_BUFFER_SIZE. int userBufferSize; //settings maintained by const.h extern int bVibration; // boolean on/off extern int bSound; // boolean on/off extern int bSwitch; // boolean on/off extern int iSe...
/* * 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...
#include "mex.h" #include "string.h" #include "ecfile.h" #include "except.h" #include "bcode_defs.h" const char *fields[] = { "time", "ecode", "channel", "type", "U", "I", "F", "V", "ID" }; /* comparison function for sorting ECFS structs */ int cmpecfs(const void *p1, const void *p2); /* [count...
#include "frida-gum.h" #include "config.h" #include "debug.h" #include "prefetch.h" #include "ranges.h" #include "unistd.h" extern uint8_t *__afl_area_ptr; extern u32 __afl_map_size; uint64_t __thread previous_pc = 0; GumAddress current_log_impl = GUM_ADDRESS(0); static gboolean tracing = false; static gboolean...
#include <epi.h> /* * epi.c -- defines the 4 simulation engine void * functions required for * execution of the model. */ #define TWENTY_FOUR_HOURS 86400 tw_peid epi_map(tw_lpid gid) { return (tw_peid) gid / g_tw_nlp; } /* * epi_init - initialize node LPs state variables * * state - our node LP state space...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "ebu.h" #include "string_utils.h" typedef struct { int hours; int minutes; int seconds; int milliseconds; } SRT_timecode; typedef struct { int number; SRT_timecode* TCI; SRT_timecode* TCO; char* text; } SRT_item; typedef struct { int count;...
/* * 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 as published by the Free * Software Foundation; either version 2 of the License, or (at your option) * any later version. * * This program is ...
/* tap_export_pdu.c * Routines for exporting PDUs to file * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "wiretap/pcap-encap.h" #include "wsutil/os_version_info.h" #include "version_info.h" #...
#pragma ident "$Id: cmd.c,v 1.24 2017/09/13 23:42:37 dauerbach Exp $" /*====================================================================== * * Parse command and arguments * *====================================================================*/ #include "q330cc.h" COMMAND_MAP *CommandMap; COMMAND_MAP map[] =...
// ECE 473 Lab 2 // <NAME> // 9.12.08 //Modified in October 2016 by <NAME> | www.nickmccomb.net // HARDWARE SETUP: // PORTA is connected to the segments of the LED display. and to the pushbuttons. // PORTA.0 corresponds to segment a, PORTA.1 corresponds to segement b, etc. // PORTB bits 4-6 go to a,b,c inputs of t...
/* Run: gcc bt3-dynamic-pipelines.c -o bt3-dynamic-pipelines `pkg-config --cflags --libs gstreamer-1.0` Aim: - How to attain finer control when linking elements - How to be notified of interesting events so we can react in time - What various states can an element be in In this app, we open a file which is multi...
/* * Integrity volume handling * * Copyright (C) 2016-2019 <NAME> * * This file 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) any later...
/** * \file * * \brief ATMEL PLC PHY TX Test Console Application * * Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microch...
/* The UCT IMS Client Copyright (C) 2006 - University of Cape Town <NAME> <<EMAIL>> <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or ...
#include <unistd.h> #include <errno.h> #include <fcntl.h> #include <sys/uio.h> #include <sys/socket.h> #include <time.h> #include <termios.h> #include <stdlib.h> #include <stdio.h> #include <strings.h> #include <string.h> #include <assert.h> #include "sync.h" #include "lbard.h" #include "radio.h" #include "util.h" ...
#include "xrd-math.h" #include <inttypes.h> #include <gxr.h> #include "graphene-ext.h" #define PI 3.1415926535f #define DEG_TO_RAD(x) ( (x) * 2.0f * PI / 360.0f ) #define RAD_TO_DEG(x) ( (x) * 360.0f / ( 2.0f * PI ) ) float xrd_math_point_matrix_distance (graphene_point3d_t *intersection_point, ...
#include "bma250x.h" #include "bma250x_private.h" #include "atmel_start.h" #include "stdio.h" #define bit_test( val, bitno ) (((val) & ((uint32_t)1 << (bitno))) ? 1 : 0) #define bit_set( val, bitno ) ((val) |= ((uint32_t)1<<(bitno)) ) #define bit_clear( val, bitno ) ((val) &= ~((uint32_t)1<<(bitno)) ) static char ...
/** updated by adriac */ /* SpawnSystem.c generated by valac 0.36.4-dirty, the Vala compiler * generated from SpawnSystem.vala, do not modify */ /*[Adriac:Systems::SpawnSystem:SystemsSpawnSystem:systems_spawn_system]*/ #include <glib.h> #include <glib-object.h> #include <float.h> #include <math.h> typedef struct _E...
/*! \page License * Copyright (C) 2009, H&D Wireless AB 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 li...
#include <stdio.h> #include "util.h" #define SUB_STAT_OPEN 0 #define SUB_STAT_DONE 1 #define SUB_STAT_WORK 2 static char *indexfname = (char *) NULL; static char *tourfname = (char *) NULL; static char *tspfname = (char *) NULL; static int simpletour = 0; static int binary_in = 0; static int tsplib_in = 1; static int...
/* * Copyright (C) 2019. Huawei Technologies Co.,Ltd.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 * * Un...
/*[ * Generated File: C2CpuSad.h * ]*/ char *CpuVectorNames[] = { "Simulate", "Interrupt", "ClearHwInt", "EndOfApplication", "Terminate", "Initialise", "SetQuickEventCount", "GetQuickEventCount", "CalcQuickEventInstTime", "InitIOS", "DefineInb", "DefineInw", "DefineInd", "DefineOutb"...
/* pckwss.f -- translated by f2c (version 19980913). 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__3 = 3; static integer c__9 = 9; /* $Procedure PCKWSS ( PCK write segment summary ) */ /* Subrouti...
/*-------------------------------------------------------------------------- File : Vectors_CC3200.c Author : <NAME> Oct. 3, 2014 Desc : Interrupt vectors for ARM Cortex-M4 TI CC3200 specific Copyright (c) 2014, I-SYST inc., all rights reserved Permission to use, copy, modify, and distribute this softw...
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX 200 int str_compare(const void *a, const void *b); void replace_127(char *ip); int is_pre(const char *a, const char *b); // file related void sort_file(const char *name); void merge_file(const char *name1, const char *name2); v...