text
stringlengths
3.08k
10.5k
/** * This software is released into the public domain. * * A MpscRingBuff is a wait free/thread safe multi-producer * single consumer ring buffer. * * The ring buffer has a head and tail, the elements are added * to the head removed from the tail. */ #define NDEBUG #define _DEFAULT_SOURCE #define DELAY 0 #...
/* This software is released under the MIT License, see LICENSE */ #include <pebble.h> #include "./config.h" #define PERSIST_SETTINGS_KEY 0 // Application settings with defaults static Config m_config = { // .backgroundColor = GColorBlack, // .foregroundColor = GColorWhite, .showSecondHand = 1, // .secondHan...
#define _GNU_SOURCE #include "../include/jemalloc/internal/jemalloc_internal.h" #include <sched.h> #define BACKGROUND_MEM_SIZE 1 << 22 #define TASK_MEM_SIZE 1 << 20 #define TASK_LOOP 20 #define MONITOR_INTERNAL 10 volatile bool finish; FILE *bandwidth_file; void je_malloc_printf(const char *__restrict __format, ...)...
#include "mgos.h" #include "mgos_mqtt.h" #include "mongoose-touch.h" extern GFXfont FreeSerifBold9pt7b; extern struct screen_t *s_screen; static void widget_default_destroy(struct widget_t *w) { if (!w) return; mgos_ili9341_set_window(w->x, w->y, w->x+w->w, w->y+w->h); mgos_ili9341_set_fgcolor565(ILI9341_BL...
#include <pthread.h> #include <semaphore.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> // An agent semaphore represents items on the table sem_t agent_ready; // Each smoker semaphore represents when a smoker has the items they need sem_t smoker_semaphors[3]; //...
/* Heuristic graph coloring algorithms. Copyright (C) 2017 <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 ...
/* display.c, Zepto Emacs, Public Domain, <NAME>, 2017, Derived from: Anthony's Editor January 93 */ #include "header.h" /* Reverse scan for start of logical line containing offset */ point_t lnstart(buffer_t *bp, register point_t off) { register char_t *p; do p = ptr(bp, --off); while (bp->b_buf < p && *p != '\...
/** * Short example to showcase the dSTG mode check functionality. * * This example should be used with a TRION-2402-dSTG-6.LE as board 0 * * Describes following: * - Setup of 1 AI channel * - Setup the channel properties for bridge measurement * - Peform mode check * - Print of mode check report ...
#include "main/mtypes.h" #include "main/macros.h" #include "main/samplerobj.h" #include "main/texobj.h" #include "intel_context.h" #include "intel_mipmap_tree.h" #include "intel_blit.h" #include "intel_tex.h" #include "intel_tex_layout.h" #define FILE_DEBUG_FLAG DEBUG_TEXTURE /** * When validating, we only care abo...
typedef long Long; /* The following enum is used to access the special registers in the saved machine state. */ typedef enum { kDc_SavedPC = 0, /* really SRR0 */ kDc_SavedMSR = 1, /* really SRR1 */ kDc_SavedCR = 2, kDc_SavedLR = 3, kDc_SavedDSISR = 4, kDc_SavedDAR = 5, kDc_SavedXER = 6, kDc_Sav...
// Colorspace Tools // ported from Asmodean's PsxFX Shader Suite v2.00 // NTSC color code from SimoneT // License: GPL v2+ /*------------------------------------------------------------------------------ [GAMMA CORRECTION CODE SECTION] ------------------------------------------------------------...
/* License: Apache 2.0. See LICENSE file in root directory. Copyright(c) 2015 Intel Corporation. All Rights Reserved. */ /*******************************************************\ * librealsense tutorial #2 - Accessing multiple streams * \*******************************************************/ /* First include the...
#include <errno.h> #include <fcntl.h> #include <glib.h> #include <poll.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <sys/ipc.h> #include <sys/mman.h> #include "common/cmd_channel_impl.h" #include "common/cmd_handler.h" #include "commo...
#include <stdlib.h> #include <locale.h> #include <unistd.h> #include <gtk/gtk.h> #include <time.h> #include "fmod.h" FMOD_SYSTEM *fsystem; struct prop_desc { const char *name; const char *desc; const char *squeakPresetPart; float min; float default_value; float max; GtkRange *value; }; struct prop_desc props[...
/* GStreamer * * unit test for vulkancolorconvert element * Copyright (C) 2019 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the Licens...
/* AWOL: A 2D top down survival sandbox game Copyright (C) 2019 <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 o...
#include <fcntl.h> #include <mesalink/openssl/err.h> #include <mesalink/openssl/ssl.h> #include <mesalink/openssl/x509.h> #include <mesalink/openssl/safestack.h> #include <netdb.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <unistd.h> #define REQ...
/* LED blink project for the STM32L031 */ #include "stm32l031xx.h" /*===============================================*/ /* systick IRQ */ volatile unsigned long SysTickCount = 0; void __attribute__ ((interrupt, used)) SysTick_Handler(void) { SysTickCount++; if ( SysTickCount & 1 ) GPIOA->BSRR = GPIO_BSR...
/* * Copyright (C) 2012 Freescale Semiconductor, Inc. * <NAME> <<EMAIL>> * * See file CREDITS for list of people who contributed to this * project. * * 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...
/** @file heap.c @brief See header for details */ #include "heap.h" #include <stdlib.h> static int range_compare(uintptr_t val, uintptr_t start, uintptr_t end) { if (val < start) return -1; else if (val >= end) return 1; else return 0; } static int segment_compare(uintptr_t key...
/* Functions to create the user interface for the Gnome/gtk+ CD application */ #include "app_gnome.h" GtkWidget *treeview; GtkWidget *appbar; GtkWidget *artist_entry; GtkWidget *title_entry; GtkWidget *catalogue_entry; GtkWidget *username_entry; GtkWidget *password_entry; static GtkWidget *app; static GnomeUIInf...
#include "clarg.h" #define BSOPT (1<<0) #define BLOPT (1<<1) static _s32 find_option(_clarg_context_t *p_cxt, _str_t opt, _u8 *pf) { _s32 r = -1; _u32 n = 0; if(p_cxt->p_args && p_cxt->strncmp && p_cxt->strlen && pf) { n = 0; while(p_cxt->p_args[n].type != 0 || p_cxt->p_args[n].opt != 0 || p_cxt->p_args[n].s...
#include "alloc_manager.h" #include "log.h" /* Allocation tracker */ /* List of phases */ signed long curr = -1; /*current phase index*/ static alloc_list_t *alloc_track; /*Alloc Tracker*/ /* * Mallocing because data segment is exceeding 2G error. */ #define ALLOC_INIT() do { \ alloc_track = malloc(size...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* libcurl_wrap.c -- Dynamically load libcurl, looking for various names Copyright (c) 2018 Genome Research Ltd. Author: <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...
/* * Copyright 2012 Red Hat Inc. * * 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, d...
#include <stdio.h> #include <stdlib.h> struct _polynomial_node_t { int coefficient; int exponent; struct _polynomial_node_t *next; }; typedef struct _polynomial_node_t polynomial_node_t; typedef polynomial_node_t *PolynomialNode; typedef PolynomialNode Polynomial; Polynomial make_polynomial(...
#include "../include/memoryManager.h" #include "../include/null.h" #define STARTING_MEM_LOCATION 0x600000 #define INITIAL_MEM_SIZE 131072 //enough for 128 1K-sized blocks #define CHUNK_SIZE 1024 #define CHUNKS (INITIAL_MEM_SIZE / CHUNK_SIZE) #define FREE 0 #define PARTIALLY 1 #define OCCUPIED 2 /* The chunk at posi...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the Apache License...
/* parsec things */ #include "parsec/runtime.h" /* system and io */ #include <stdlib.h> #include <stdio.h> #include "common_data.h" #include "common_timing.h" #include "parsec/interfaces/superscalar/insert_function_internal.h" #include "parsec/utils/debug.h" #if defined(PARSEC_HAVE_STRING_H) #include <string.h> #end...
// Helper functions used only in tests #include <stdint.h> #include <assert.h> #include <stdarg.h> // These functions are used in the unit tests for C ABI calls. uint32_t rust_dbg_extern_identity_u32(uint32_t u) { return u; } uint64_t rust_dbg_extern_identity_u64(uint64_t u) { return u; } double rust_dbg_e...
/* * SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-3-Clause */ #include <errno.h> #include <fcntl.h> #include <string.h> #include <sys/stat.h> #include <twz/name.h> #include <twz/obj.h> #include <twz/obj/hier.h> #include <twz/obj/io.h> #include <twz/sys/name.h> #include "syscalls....
/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of condi...
/* * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <assert.h> #include <common/bl_common.h> #include <drivers/arm/gicv2.h> #include <common/interrupt_props.h> #include <plat/common/platform.h> #include <platform_def.h> #include <lib/xla...
/* great - stuff related to GREAT. */ /* Copyright (C) 2014 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "cheapcgi.h" #include "hgTables.h" #include "cart.h" #include "dystring.h" #include "textOut.h" #in...
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * The IP forwarding functionality. * * Authors: see ip.c * * Fixes: * Many : Split from ip.c , see ip_inp...
/* * Copyright (c) <NAME> 1986-1995. * Software written by <NAME> and others; * maintained 1995-present by <NAME> and others. * * 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 cod...
/* * Copyright (c) 2015 DeNA Co., Ltd., <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, mer...
/** * $Id: fsm.c,v 1.4 2003/03/28 08:54:40 mschwide Exp $ * * A generic FSM based on fsm used in isdn4linux * */ #include "fsm.h" #include <linux/config.h> #include <linux/module.h> #include <linux/timer.h> fsm_instance * init_fsm(char *name, const char **state_names, const char **event_names, int nr_states, i...
/* T-MATS -- Valve_TMATS.c * % ************************************************************************* * % written by <NAME> based on work by <NAME> and <NAME> * % NASA Glenn Research Center, Cleveland, OH * % March 1st, 2013 * % * % This file models the Valve Element for T-MATS simulation * % **************...
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/***************************************************************\ * IEEE80.c * * Convert between "double" and IEEE 80 bit format * * in machine independent manner. * * Assumes array of char is a continuous region of 8 bit frames* * Assumes (unsigned long) has 32 useable bits * * billg, d...
/**************************************************************************** ** Copyright (C) 2020 MikroElektronika d.o.o. ** Contact: https://www.mikroe.com/contact ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and associated documentation files (the "Software"...
#include "trie.h" #include "init.h" #include <string.h> /*****************************************************************************/ /********************************** wide ***********************************/ /*****************************************************************************/ wide_node *new_trie_no...
/****************************************************************************** * * * Copyright 2020-2021 <NAME> * * * * Li...
// // load.c // loading of external code // // (c) 2008 why the lucky stiff, the freelance professor // #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <dlfcn.h> #include <sys/stat.h> #include "potion.h" #include "internal.h" #include "table.h" void potion_load_code(Potion *P, c...
/* Definitions of target machine for GNU compiler, for SPARC running Solaris 2 Copyright 1992, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. Contributed by <NAME> (<EMAIL>). Additional changes by <NAME> (<EMAIL>). This file is part of GNU CC. GNU CC is free software; you ca...
#include <stdio.h> #include <string.h> #include <stdint.h> #include <assert.h> #include <sys/time.h> #include <sys/resource.h> #include "rdtsc.h" #include "stddev.h" uint64_t siphash24(const void *src, unsigned long src_sz, const char key[16]); uint64_t siphash24_asm(const void *src, unsigned long src_sz, const char...
#include <linux/slab.h> #include <linux/string.h> #include <linux/types.h> #include "bignum.h" bignum *bignum_create(size_t sz) { bignum *bn = (bignum *) kmalloc(sizeof(bignum), GFP_KERNEL); bn->num = (NUM_TYPE *) kmalloc(sz * sizeof(NUM_TYPE), GFP_KERNEL); memset(bn->num, 0, sz * sizeof(NUM_TYPE)); ...
/* -*- Mode: c; c-basic-offset: 2 -*- * * raptor_identifier.c - Raptor identifier classes * * Copyright (C) 2003-2006, <NAME> http://purl.org/net/dajobe/ * Copyright (C) 2003-2005, University of Bristol, UK http://www.bristol.ac.uk/ * * This package is Free Software and part of Redland http://librdf.org/ * *...
/* Hangman -- A game based on guessing a hidden word, in certain number of chances * * Programmer -- <NAME> * Licence -- GPL V3 * * Have a nice time playing or hacking on this * */ /* Standard Libraries */ #include <stdio.h> // input and output #include <string.h> // strlen() #include <ctype.h> ...
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C)2013 Semtech Description: Generic lora driver implementation License: Revised BS...
/*------------------------------------------------------------------------------ Copyright (c) 2008 The Khronos Group Inc. All Rights Reserved. This code is protected by copyright laws and contains material proprietary to the Khronos Group, Inc. This is UNPUBLISHED PROPRIETARY SOURCE CODE that may not be disclosed i...
// // Copyright 2021 <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, publis...
/* * Copyright (c) 2020 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #include <ztest.h> #include <devicetree.h> #include <device.h> #include <drivers/gpio.h> #define TEST_GPIO DT_NODELABEL(test_gpio_0) #define TEST_I2C DT_NODELABEL(test_i2c) #define TEST_DEVA DT_NODELABEL(test_dev_a) #defin...
/* Prototypes for alpha.c functions used in the md file & elsewhere. Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by th...
/* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * INET protocol dispatch tables. * * Version: $Id: protocol.c,v 1.1.1.1 2001/02/22 14:59:02 serg Exp $ * * A...
#include <inttypes.h> #include <stdio.h> #include <parserutils/input/inputstream.h> #include <hubbub/hubbub.h> #include "utils/utils.h" #include "tokeniser/tokeniser.h" #include "testutils.h" static hubbub_error token_handler(const hubbub_token *token, void *pw); static void *myrealloc(void *ptr, size_t len, voi...
#include "keyboard.h" #include "utilities.h" #include "keyboard_controller.h" // Max recognized unique scancode in set 1. #define MAX_TRUE_SCANCODE 0x58 // Constants related to basic keys and keys, which are produced with shift // activated. #define NUMBER_OF_KEY_FORMS 2 #define BASIC_KEY_FORM 0 #define SHIFTED_...
// SPDX-License-Identifier: LGPL-2.1-or-later /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2011-2014 Intel Corporation * Copyright (C) 2004-2010 <NAME> <<EMAIL>> * * */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #incl...
/* bt_discovery.c a more user friendly discovery dialog (c) 2003 by <NAME>, BeeCon GmbH */ #include <PalmOS.h> #include <BtLib.h> #include <BtLibTypes.h> #include "Rsc.h" #include "bt.h" #include "bt_error.h" #include "bt_discovery.h" #include "bt_discovery_db.h" #include "bt_discovery_ui.h" #include "bt_d...
#include "spi1.h" #include "stdlib.h" #include "hardware_factory.h" #define SPI1_NSS GPIO_Pin_4 //PA #define SPI1_SCK GPIO_Pin_5 //PA #define SPI1_MISO GPIO_Pin_6 //PA #define SPI1_MOSI GPIO_Pin_7 //PA #define SPI1_INSTANCE spi1 static SPI *SPI1_INSTANCE; static void _SPI1_GPIO_Init(u16 SPI_M...
/* * Copyright (c) 2019, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at w...
/** \file * \brief Windows System Information * * See Copyright Notice in "iup.h" */ #include <stdio.h> #include <stdlib.h> /* This module should depend only on IUP core headers and Windows system headers. */ #include <windows.h> #include "iup_str.h" #include "iup_drvinfo.h" char* iupdrvLocaleInfo(void) ...
#include <reg51.h> #include <stdio.h> sbit EN = P3^2; // Enable LCD sbit RW = P3^3; // Read Write sbit RS = P3^4; // Register Select sbit c4 = P1^0; // Connecting keypad to Port 1 sbit c3 = P1^1; sbit c2 = P1^2; sbit c1 = P1^3; sbit r4 = P1^4; sbit r3 = P1^5; sbit r2 = P1^6; sbit r1 = P1^7; // a...
/* ----------------------------------------------------------------------------- * * File: parallel.h * Author: <NAME> * Class: CSC 422 Parallel & Distributed Programming * Project: Parallel Project 1 - n-Bodies and Collisions * Description: Header file for the parallel implementat...
/* ** Crimata Technologies - 2020 ** ** Package Handler: <NAME> ** ** ** This file seeks to define quality-of-life functionality for client-side ** networking. This implementation allows us to hold our client socket ** information while abstracting away any handling of the socket data itself. ** ** The functions are as...
/*------------------------------------------------------------------------- * * erand48.c * * This file supplies pg_erand48() and related functions, which except * for the names are just like the POSIX-standard erand48() family. * (We don't supply the full set though, only the ones we have found use * for in Pos...
// SPDX-License-Identifier: MIT #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> void selection_sort(char *, const size_t); void insertion_sort(char *, const size_t); void shell_sort(char *, const size_t); void bubble_sort(char *, const size_t); void merge_sort(char *, const size_t); vo...
#define _POSIX_SOURCE #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <dirent.h> #include <signal.h> #include <dash/dart/shmem/dart_shmem.h> #include <dash/dart/shmem/shmem_logger.h> #include <dash/dart/shmem/shmem_barriers_if.h> #...
// SPDX-License-Identifier: Apache-2.0 /* * Copyright 2018-2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
/** * VampirTrace * http://www.tu-dresden.de/zih/vampirtrace * * Copyright (c) 2005-2012, ZIH, TU Dresden, Federal Republic of Germany * * Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing * Centre, Federal Republic of Germany * * See the file COPYING in the pa...
/** * This program is a UART- SBUS protocol for the Pi Pico * Derived from SBUS driver from user mmosca * * https://github.com/mmosca/pico-sbus/blob/main/sbus/sbus.c * */ #include <stdio.h> #include <string.h> //#include <assert.h> #include "sbus.h" #include "pico/stdlib.h" #include "hardware/uart.h" #inc...
/* * Copyright 2018-2020 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #include "RG.h" #include "datablock.h" #include "datablock_iterator.h" #include "../arr.h" #include "../rmalloc.h" #include <math.h> #include <assert.h> #include <stdbool.h> ...
/** file c128ui.c * \brief Native GTK3 C128 UI * * \author <NAME> <<EMAIL>> * \author <NAME> <<EMAIL>> */ /* * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms...
/** * Journal, the UNIX user's personal log and diary. * * Copyright (c) 2014 xles, * see LICENSE file for details. * * cmd_new.c * Main source file for the journal project. */ #include <stdio.h> #include <errno.h> #include <string.h> #include <sys/stat.h> #include "mustache.h" #include "validate.h" #...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #define PI 3.14159265358979323846 typedef struct node *nptr; //struct typedef struct node{ struct node* next; struct node* prev; float* f; } dll; nptr insertAtEnd(nptr head, float *f, int natt...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2011 <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 abo...
/* * PSP Software Development Kit - http://www.pspdev.org * ----------------------------------------------------------------------- * Licensed under the BSD license, see LICENSE in PSPSDK root for details. * * main.c - Network shell for psplink * * Copyright (c) 2005 <NAME> <<EMAIL>> * Some small parts (c) 2005...
#include <malloc.h> #include <stdio.h> #include <string.h> #include <time.h> #include <3ds.h> #include "resources.h" #include "section.h" #include "task/uitask.h" #include "../core/core.h" static Result dumpnand_is_src_directory(void* data, u32 index, bool* isDirectory) { *isDirectory = false; return 0; } s...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <pthread.h> #include "bitvec.h" #define BOFF_TO_CELL_CEIL(off) (off + (sizeof(uint64_t) * 8))/(sizeof(uint64_t)*8) #define BOFF_TO_CELL(off) (off / (sizeof(uint64_t) * 8)) #define BOFF_TO_BIT(off) (off % (sizeof...
#include <stdio.h> #include <stdlib.h> #include <math.h> int correl(float x[],float y[],float *z,int npts,int lags,float *rmax,int *kmax); int nint(double x); int stats_c(float x[], int npts, int k, float *mean, float *stdev, float *skew, float *kurtosis); int get_tau(float y1[],float y2[],double tstart1,double tsta...
/* Copyright (C) 2019 Intel Corporation SPDX-License-Identifier: Apache-2.0 Open Drone ID C Library Maintainer: <NAME> <EMAIL> */ #include <string.h> #include <unistd.h> #include <opendroneid.h> #define SLEEPMS 1000000 //ns #define MINIMUM(a,b) (((a)<(b))?(a):(b)) ODID_BasicID_encoded basicID_enc; ODID_Location_e...
/* $OpenBSD: md5crypt.c,v 1.15 2009/10/31 13:29:07 sobrado Exp $ */ /* * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * <<EMAIL>> wrote this file. As long as you retain this notice you * can do whatever you want with this stuff. If we meet s...
/*++ /* NAME /* lmtp_addr 3 /* SUMMARY /* LMTP server address lookup /* SYNOPSIS /* #include "lmtp_addr.h" /* /* DNS_RR *lmtp_host_addr(name, why) /* char *name; /* VSTRING *why; /* DESCRIPTION /* This module implements Internet address lookups. By default, /* lookups are done via the Internet domain name service (DNS)...
/*----------------------------------------------------------------------------*/ /* Xymon monitor library. */ /* */ /* This is a library module, part of libxymon. ...
#include "asf.h" #include "asf_meta.h" #include "asf_endian.h" #include "ceos.h" #include "decoder.h" #include "dateUtil.h" #include "get_ceos_names.h" /*Internal Metadata creation routine prototype*/ void ceos_init(const char *in_fName, meta_parameters *sar, report_level_t level); /*********************************...
/* Copyright (C) 1991, 1992, 1993 Aladdin Enterprises. All rights reserved. This file is part of Aladdin Ghostscript. Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or distributor accepts any responsibility for the consequences of using it, or for whether it serves any partic...
// Copyright 2020 <NAME> // SPDX-License-Identifier: Apache-2.0 #include "client/api/v1/get_outputs_from_address.h" #include "client/api/json_utils.h" #include "client/network/http.h" #include "core/utils/iota_str.h" static get_outputs_address_t *outputs_new() { get_outputs_address_t *ids = malloc(sizeof(get_output...
/* Constant string caching for GNU Make. Copyright (C) 2006 Free Software Foundation, Inc. This file is part of GNU Make. GNU Make is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your opt...
/* * ISC License * * Copyright (C) 1990-2018 by * <NAME> * <NAME> * Delft University of Technology * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all c...
/*************************************************************************** * Nipper - The network infrastructure parser * * Copyright (C) 2006 - 2008 by <NAME> * * <EMAIL> * * ...
#include <stdlib.h> #include <string.h> #include <time.h> #include <nvs_flash.h> #include <cJSON.h> #define TAG "NS" #define LOG_LOCAL_LEVEL ESP_LOG_DEBUG #include <esp_log.h> #include <esp_tls.h> #include "nightscout_config.h" #include "timezone.h" #include "wifi.h" #define NIGHTSCOUT_URL "https://" NIGHTSCOUT_H...
#include <acknex.h> #include <default.c> #define PRAGMA_POINTER #define PRAGMA_PATH "code" #define PRAGMA_PATH "resources" #define PRAGMA_PATH "resources\\rg_parts" #define OBJ_HEALTH skill50 #define OBJ_HAS_RAGDOLL skill51 #define OBJ_RAGDOLL_STRUCT skill52 #define OBJ_TYPE skill52 #define TYPE_NONE 0 #define TYPE...
// **************************************************************************** // A small C program to create DIMACS CNF files that encode the pigeonhole // problem (i.e. placing n+1 pigeons into n holes). // // The SAT encoding of this problem is very straightforward. // The variables can be ordered in either pigeon-...
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { int e;//nr de muchii int v;//nr de noduri int **a;//matricea de adiacenta } GRAF;//structura in care avem nr de noduri, muchii si matricea grafului void testare(GRAF *p)//functie ce verifica daca a fost efectuata alocar...
#include "include/protocol.h" char bt_response_data[BT_RESPONSE_DATA_MAXLEN]; char bt_response_chunk[BT_RESPONSE_DATA_MAXLEN]; int bt_response_data_len = 0; // consumers will know that obd2 response is available if this value is greater than 0 int bt_response_chunk_len = 0; int64_t bt_last_request_sent = 0; // epoch i...
/**************************************************************************** # RoboCard NMEA Communication Library # Copyright (c) 2012-2013, <NAME> <<EMAIL>> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditio...
/** @file flare.h @brief Subroutines that control the output of XUV flares. @author <NAME> ([RoryBarnes](https://github.com/RoryBarnes/)) @date Mar 25 2016 */ #define MINMASSFLARE 0.07 // Minimum stellar mass for flare module (solar) #define MAXMASSFLARE 1.9 // Maximum stellar mass for flare module (solar...
/* The MIT License (MIT) Copyright (c) 2016-2017 <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, p...