text
stringlengths
3.08k
10.5k
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <assert.h> #include <stddef.h> #include "mempool.h" #include "lite-utils.h" #include "iot_import.h" #define max(a, b) ((a) > (b) ? (a) : (b)) typedef struct AMemBlks { struct AMemBlks *next; uint8_t mem[0]; } AMemBlks; ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <libgen.h> #include <stdint.h> #include <inttypes.h> #include <stdbool.h> #ifdef _WIN32 #define PATH_SEP '\\' #else #define PATH_SEP '/' #endif /** * @brief Removes the "extension" from a file spec. * @param[in] mystr The string to process. * @par...
/** @file @ingroup nanotrav @brief Functions to check that the minterm counts have not changed during reordering. @author <NAME> @copyright@parblock Copyright (c) 1995-2015, Regents of the University of Colorado All rights reserved. Redistribution and use in source and binary forms, with or with...
//////////////////////////////////////////////////////////////////////// // COMP2521 20T2 ... the Fury of Dracula // HunterView.c: the HunterView ADT implementation // // 2014-07-01 v1.0 Team Dracula <<EMAIL>> // 2017-12-01 v1.1 Team Dracula <<EMAIL>> // 2018-12-31 v2.0 Team Dracula <<EMAIL>> // 2020-07-10 v3.0 Te...
/* base64.h * * Copyright 2011 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
#include "matrix.h" #include "usb_device.h" #include "config.h" #include "utils.h" #include "led.h" struct MATRIX_Button MATRIX_Buttons[MATRIX_COLS][MATRIX_ROWS]; uint8_t MATRIX_report[8]; extern USBD_HandleTypeDef hUsbDeviceFS; void MATRIX_SendReport(); void MATRIX_OnPress(const uint16_t keycode); void MATRIX_OnR...
/*************************************************************************** Copyright (c) 2013, <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 with...
/* * soundiff.c - Implementation of the AmigaOS IFF/8SVX dump sound device * * Written by * <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 of t...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * power.c * * Code generation for function 'power' * */ /* Include files */ #include "rt_nonfinite.h" #inclu...
#include <stdio.h> #include <math.h> // Models #define QUADRATIC 0 #define KIPPING 1 #define NONLINEAR 2 #define RIEMANN 5 #define TRAPEZOID 6 #define SMARTINT 7 #define SLOWINT 8 #define MDFAST 9 ...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <ctype.h> #include "custom_types.h" #include "board.h" /* This file contains the functions that set up, display, and clean up the board. */ /* Setup, including making the board, placing mines, and calculate the values to be stored at each tile */ vo...
/****************************************************************************** * * Copyright (C) 2018-2019 Xilinx, Inc. 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 Softwar...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> typedef struct node *nptr; typedef struct node{ nptr next; nptr prev; float* f; } dll; int splitdata(nptr* train, nptr* test, int nattr); nptr listify(char* filename, int nattr, nptr head); nptr insertAtEnd(nptr head, float *f, in...
/* * File : main.c * This file is part of RT-Thread RTOS * COPYRIGHT (C) 2017, RT-Thread Development Team * * 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...
/* * Copyright (c) 2014, Mentor Graphics Corporation * All rights reserved. * Copyright (c) 2017 Xilinx, Inc. * * SPDX-License-Identifier: BSD-3-Clause */ /************************************************************************** * FILE NAME * * zynqmp_r5_a53_rproc.c * * DESCRIPTION * * This ...
#include "groupe.h" #include <signal.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // Nombre total de tests exécutés. int tests_executes = 0; // Pour chaque test qui réussi, cette variable sera incrémentée de 1. // Le but est de la garder égale à test_executes. int tests_reussis =...
/******************************************************************************* * - FILE: mydomout.c * - DESC: Reporting Subroutines for generating mydomout. *******************************************************************************/ /* imports */ #include <stdio.h> #include <unistd.h> #include <std...
/* Common definitions for preadv and pwritev. Copyright (C) 2016-2020 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Soft...
#include "include.h" #define SDA_DATA PORTDbits.RD0 //hodnoty na pine #define SCL_DATA PORTDbits.RD1 #define SDA_OUT TRISDbits.TRISD0 //nastaveny pin ako OUT #define SCL_OUT TRISDbits.TRISD1 #define _XTAL_FREQ 8000000 typedef enum{ LOW = 0, HIGH = 1, }etI2cLevel; ...
// Copyright (c) 2016 <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 3 of the License, or // (at your option) any later version. // // This program is distributed ...
/***************************************************************************//** * @file * @brief Routines for the Scenes Client plugin, which implements the client * side of the Scenes cluster. ******************************************************************************* * # License * <b>Copyright 2018 ...
/* * Copyright (c) 2003 <NAME> * Copyright (c) 2003 Massachusetts Institute of Technology * * 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 ...
#include "common.h" static char software_version[] = "$Id: done_handling.c,v 1.7 2007/12/28 23:00:42 jklowden Exp $"; static void *no_unused_var_warn[] = { software_version, no_unused_var_warn }; /* * This test try do discovery how dblib process token looking for state * at every iteration. It issue a query to serv...
#include <stdint.h> #include <string.h> #include <util/delay.h> #include "main.h" #include "led-spiout.h" #include "wire-protocol.h" /* SPI LED driver to send data to APA102 LEDs * * Preformatted data is sent to the micro and then * passed in via led_update_buffer(). The device * continuously outputs SPI data, re...
#include "tools.h" struct World { union { Chunk chunks[9 + 9]; struct { Chunk active_chunks[9]; Chunk border_chunks[9]; }; }; Audio block_break; }; void init(World* world, vec3 position) { uint offset_x = ( ((uint)position.x) & 0xFFF0 ) - 16; uint offset_z = ( ((uint)position.z) & 0xFFF0 ) - 16...
#include "../include/interpolation.h" #include "stdio.h" #include "stdlib.h" // EXAMPLE 1 INPUT POINTS AND FACETS // +++++++++++++++++++++++++++++++++++++++++++++++++ // // *(0,6) // // // * (3,4) // // // * (1,3) // // * (4,2) // // ...
/* * traps.c - Allow VICE to replace ROM code with C function calls. * * Written by * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can ...
/* * Copyright (C) 2015 The CyanogenMod Project * * 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 ...
#include <stdio.h> #include <stdlib.h> #include "lista.h" // inicia a lista Lista * allocateList(){ // para iniciar uma lista encadeada basta fazer o inicio apontar para NULL (nada) return (Lista *)calloc(sizeof(Lista), 1); //p_l->inicio=NULL; } // inserir elemento no inicio da lista int insertStartList(Lista *...
/* * Copyright © 2011 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
/* * Based on arch/arm/mm/context.c * * Copyright (C) 2002-2003 Deep Blue Solutions Ltd, all rights reserved. * Copyright (C) 2012 ARM 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 Softwar...
/* vim: tabstop=4 shiftwidth=4 noexpandtab * This file is part of ToaruOS and is released under the terms * of the NCSA / University of Illinois License - see LICENSE.md * Copyright (C) 2011-2014 <NAME> * * CMOS Driver * */ #include <system.h> /* CMOS values are stored like so: * Say it's 8:42 AM, then the va...
/* Generated by TAPENADE (INRIA, Ecuador team) Tapenade 3.12 (r6213) - 13 Oct 2016 10:54 */ #include "GlobalDeclarations_bv.c" #include "DIFFSIZES.inc" /* Hint: NBDirsMax should be the maximum number of differentiation directions */ /* Differentiation of o_fcn in reverse (adjoint) mode: gradient ...
#include "MSPd.h" #define OBJECT_NAME "quadpan~" /* Front *out1 *out3 *out2 *out4 Back */ static t_class *quadpan_class; typedef struct _quadpan { t_object x_obj; t_float x_f; // short bypass; // float pi_over_two; // float twopi; float *in; float *Xin; float *Yin; ...
/* * pressure.c * * Created on: 30 Jan 2017 * Author: <NAME> */ #include "pressure.h" I2C_HandleTypeDef *hi2c_p; uint8_t bmp_data[16] = {0}; const uint8_t OSS = 0; // Oversampling Setting // Calibration values int16_t ac1; int16_t ac2; int16_t ac3; uint16_t ac4; uint16_t ac5; uint16_...
#include <common/string.h> #include <kernel/api/sys/times.h> #include <kernel/api/sys/wait.h> #include <kernel/boot_defs.h> #include <kernel/interrupts.h> #include <kernel/panic.h> #include <kernel/process.h> #include <kernel/scheduler.h> noreturn uintptr_t sys_exit(int status) { process_exit(status); } uintptr_t sys...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> // for clock_t, clock(), CLOCKS_PER_SEC #include <unistd.h> // for sleep() #include <pthread.h> long double PI_threads[8] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}; // data struct input parallel typedef struct { long double sta...
/** @file latent_client.c * * @brief This simple client demonstrates the most basic features of JACK * as they would be used by many applications. */ #include <stdio.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> #include <jack/jack.h> jack_port_t *input_p...
#include <stdio.h> #include <string.h> #include <stdlib.h> char* insertar (char *string, int pos, char c){ int len = strlen(string); char *aux = (char *) malloc(sizeof(char) * (len + 1)); int i = 0; for (; i < pos; i++) aux[i] = string[i]; aux[i] = c; for (; i < len; i++) aux[i + 1] = string[i]; ...
/** @file Copyright 2006 - 2016 Unified EFI, Inc.<BR> Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full tex...
/* * Copyright 2020, Data61, CSIRO (ABN 41 687 119 230) * * SPDX-License-Identifier: GPL-2.0-only */ #pragma once /* These are the indices of the registers in the * saved thread context. The values are determined * by the order in which they're saved in the trap * handler. * * BEWARE: * You will have to ada...
/*************************************************************************** Video Hardware for Championship V'ball by <NAME> Generally copied from China Gate by <NAME> "Mainly copied from video of Double Dragon (bootleg) & Double Dragon II" **********************************************************************...
// // // //////////////////////////////////////////////////////////////////////////////////// // ///////// /////////// // ////// SSS PPPP I N N DDDD U U M M PPPP ////// // // S P P I NN N D...
//Author: LabJack //May 25, 2011 //This example program calls the Feedback low-level function. DAC0 will be set //to 2.5 volts and DAC1 will be set to 3.5 volts. The states and directions //will be read from FIO0 - FIO3 and the voltages (calibrated) from AI0-AI3. #include "ue9.h" int feedback_example(HANDLE hDevi...
#include <ctype.h> #include <dirent.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include "ignore.h" #include "log.h" #include "options.h" #include "scandir.h" #include "util.h" #ifdef _WIN32 #include <shlwapi.h> #define fnmatch(x, y, z) (!PathMatchSpec(y, x)...
/* Copyright (c) [2014 Baidu]. 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 a...
#include <stdio.h> #include <kernel.h> #include <string.h> #include "my_misc.h" #include "rtc.h" #include "config.h" #include "rfid_thread.h" #include "vehicle_ctrl_thread.h" #include "fifo.h" #include "file.h" #include "sempho.h" #include "msg_structure.h" #include "thread_mpu.h" #include "config.h" #include "message...
/* * Copyright (c) 2017,2018 Apple Inc. All rights reserved. * * corecrypto Internal Use License Agreement * * IMPORTANT: This Apple corecrypto software is supplied to you by Apple Inc. ("Apple") * in consideration of your agreement to the following terms, and your download or use * of this Apple software const...
#include "ethernet.h" #include "enet.h" #include <netutil/etharp.h> #include <netutil/htons.h> errval_t ethernet_initialize( struct ethernet_state *state, const uint64_t mac, const uint16_t tx_count, const lvaddr_t tx_base, const regionid_t tx_rid, struct enet_queue *tx_queue, udp_receive_...
/* * Copyright (c) 2001,2000,1999 <NAME> <sasha at aftercode.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any late...
/* Copyright (c) 2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope...
#include "common/include/inttypes.h" #include "common/include/atomic.h" #include "common/include/page.h" #include "common/include/abi.h" #include "common/include/msr.h" #include "loader/include/lib.h" #include "loader/include/mem.h" #include "loader/include/boot.h" #include "loader/include/loader.h" #include "loader/in...
/* * * Copyright © 2004 <NAME> * * 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 notice appear in all copies and that both that * copyright notice and this permission notice appear in ...
/***************************************************************************** Copyright (c) 1993-2000, Div. Medical and Biological Informatics, Deutsches Krebsforschungszentrum, Heidelberg, Germany All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permi...
/* ****************************************************************** * Subroutine HelmholtzJ * Solves poisson equation on rectangular grid assuming : * (1) Uniform discretization in each direction, and * (2) Dirichlect boundary conditions * * Jacobi method is used in this routine * * Input : n,m Number of g...
#define ANSI_COLOR_RED "\x1b[31m" #define ANSI_COLOR_RESET "\x1b[0m" #include "stdio.h" #include "stdlib.h" #include "string.h" #include "getopt.h" #include "stdbool.h" #define PREV -1 #define NEXT 1 static const char shortOptions[] = "f:dch"; struct option longOptions[] = { {"file", required_argument, NULL, 'f...
/* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. */ #include "back.h" #ifdef DEBUG #ifdef CROSS # include </usr/include/stdio.h> #else # include <stdio.h> #endif FILE *trace;...
/* Implemention of Perlin's improved noise; See "Improving Noise", SIGGRAPH 2002 */ #include <math.h> #include <stdio.h> #include "perlin.h" static int p[512]; static int permutation[] = { 151,160,137,91,90,15, 131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240, 21,10,23,190,6,148,247,120,...
/** @file cu-mixed-heap-list.h * Data structure organizing the elements in a heap and list at one time. * This can be used to order elements by two criteria, keeping the advantages * of either structure. Thus we can access a largest element in O(1) (or O(log n)) * for reorganization, as well as keep neighboring...
#pragma config(UART_Usage, UART1, uartVEXLCD, baudRate19200, IOPins, None, None) #pragma config(UART_Usage, UART2, uartNotUsed, baudRate4800, IOPins, None, None) #pragma config(I2C_Usage, I2C1, i2cSensors) #pragma config(Sensor, in1, PowerExpander, sensorNone) #pragma config(Sensor, in2, ChassisGyro, sensorGy...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "config.h" #include "vm.h" #include "instns/instn.h" #include "syscalls/syscall.h" #define STACK_FREE_THRESHOLD ((uint32_t)(1.5 * FUNC_STACK_ALLOC_SZ)) #define xstr(s) str(s) #define str(s) #s char* BVGZ_VM_executable = xstr(BVGZ_VM_EXEC); voi...
/*---------------------------------- Interpreted manually from output of this Faust code: import("stdfaust.lib"); freqMid = hslider("freqMid",2200,400,3500,0.1); gainMid = hslider("gainMid",0,-48,48,0.1); qMid = hslider("qMid",50,0,3000,0.1); process = _ : fi.peak_eq(gainMid, freqMid, qMid) : _; -----------------...
#include "types.h" #include "optdesc.h" #include "debugdef.h" #include "errordef.h" #include "mcldef.h" #include "galigndef.h" #include "dstrdup.pr" #include "procopt.pr" #include "frontSEP.pr" #include "safescpy.pr" #define READNONNEGATIVEINT(VAR)\ READINTGENERIC(options[(Uint) optval].optname,\ ...
#include "LKML_Config.h" #include "LKML_Layers.h" #include<math.h> #ifdef STM32F746xx #include "stm32f7xx_hal.h" #include "LK_STM32.h" #endif LK_Accuarcy_Calculate IntralLayer_Buffer[576]; void LK_ConvReluPoolLayer(LK_Data* Input, LK_Kernel* Kernel, LK_Matrix* Output) { // Parameter for Conv int h1size_h = Input->H...
/* * Characters output from user programs are checked for \b, \r, and \n. * These are translated into SUPDUP cursor movement. Thus this disallows * the use of these 3 SAIL characters. * SUPDUP display codes are passed through, but looked at to determine * the current cursor position. This is necessary for simula...
// // // #include "frequency.h" #define F_CPU FREQUENCY #include <avr/io.h> #include <util/delay.h> #include "ht1632c.h" // // LED communication macros (fixme) // #define LEFT_MATRIX_SLAVE_SELECT PC0 #define LEFT_MATRIX_CLOCK PC1 #define LEFT_MATRIX_DATA PC2 #define RIGHT_MATRIX_SLAVE_SELECT PC3 #define RIGHT_...
/* * Copyright (c) 2006-2007 <NAME> <<EMAIL>> * Copyright (c) 2006-2017 <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: * * o Redistributions of source code must retai...
/* Unix SMB/CIFS implementation. Copyright (C) <NAME> <<EMAIL>> 2007 Copyright (C) <NAME> 2009 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 L...
/* ** Copyright 2007-2018 RTE ** Author: <NAME> ** ** This file is part of Sirius_Solver. ** This program and the accompanying materials are made available under the ** terms of the Eclipse Public License 2.0 which is available at ** http://www.eclipse.org/legal/epl-2.0. ** ** This Source Code may also be made availabl...
/* * timer2-compare.c * * PWM test. * * Author: chenjingfan<<EMAIL>> * * Copyright (C) 2021 Sinh Micro, 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.a...
#include <stdio.h> #include <string.h> #include <stdbool.h> #include <stdlib.h> #include <unistd.h> #include <pthread.h> #include "trie.h" #include "sck.h" #include "threadsafeQueue.h" #include "logger.h" struct Configuration_s { uint16_t port; char * dictionaryFileName; int numWorkers; bool bGoodConf...
/* The following code is subject to the terms and conditions defined in the file 'COPYING' which is part of the source code distribution. */ #include <stdlib.h> #include <string.h> #include <time.h> #include <openssl/evp.h> #include "Util/crypto.h" unsigned int util_jenkins_hash(void *data, unsigned int...
/** * Created by <NAME> on 3/19/16. */ #include "TerminalMotorController.h" #include <ncurses.h> #include <string.h> typedef struct { short left; short right; } MotorSpeed; typedef struct { short row; short col; } CURSOR_COORDINATES; #pragma mark - Constants static const uint8_t QUIT_KEY = 113; st...
#include <hal.h> #include "TCS3472.h" #define TCS3472X_I2C_ADDR (0x29) // TCS34725, TCS34727 // #define TCS3472X_I2C_ADDR (0x39) // TCS34721, TCS34723 #define TCS3472X_ID (0x44) // TCS34721, TCS34725 // #define TCS3472X_ID (0x4D) // TCS34723, TCS34727...
/* A Bison parser, made by GNU Bison 2.4.3. */ /* Skeleton interface for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it und...
#include <stdlib.h> #include <string.h> #include <assert.h> #include "utils_func.h" #include "index_btree.h" btree btree_init() { btree b; b = malloc(sizeof(*b)); assert(b); b->is_leaf = true; b->num_keys = 0; return b; } void btree_destroy(btree t) { int i; if (!t->is_leaf) { ...
// // This file was generated by the Retargetable Decompiler // Website: https://retdec.com // Copyright (c) 2015 Retargetable Decompiler <<EMAIL>> // #include <stdint.h> #include <stdio.h> #include <stdlib.h> /* ------- Float Types Definitions ------ */ typedef float float32_t; typedef double float64_t; /* -------...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
#include "defs.h" #include "types.h" /* * This recursive routine does a depth-first search in the subgraph of * the molecule graph consisting only of carbons to identify cycles with * up to MAX_CARBON_RING_SIZE atom. Once a ring has been found, the * recursion immediately steps back and stores all node indice...
/********************************** (C) COPYRIGHT ******************************* * File Name : main.c * Author : WCH * Version : V1.0.0 * Date : 2022/01/18 * Description : Main program body. * Copyright (c) 2021 <NAME> Microelectronics Co., Ltd. * SPDX-License-Ident...
/* * Copyright (c) 2003 <NAME> * Copyright (c) 2003 Massachusetts Institute of Technology * * 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 ...
#include "fatfs.h" #include <stdlib.h> #include <string.h> #define SECTOR_SIZE 512 #define SIG_OFFSET 0x1FE #define PT_OFFSET 0x1BE #define EBR_OFFSET 0x024 /* partition table entry */ struct part_table { uint8_t drive_attr; uint8_t start_chs_addr[3]; uint8_t type; uint8_t end_chs_addr[3]; uint32_t start...
/* * This software is copyrighted as noted below. It may be freely copied, * modified, and redistributed, provided that the copyright notice is * preserved on all copies. * * There is no warranty or other guarantee of fitness for this software, * it is provided solely "as is". Bug reports or fixes may be sent ...
/* Copyright (c) 2003-2011, The Ohio State University. All rights * reserved. * * This file is part of the MVAPICH2 software package developed by the * team members of The Ohio State University's Network-Based Computing * Laboratory (NBCL), headed by Professor <NAME>. (DK) Panda. * * For detailed copyright and l...
/* GStreamer * Copyright (C) 2003 <NAME> <<EMAIL>> * 2003 <NAME> <<EMAIL>> * 2005 <NAME> <<EMAIL>> * * gst-typefind.c: Use GStreamer to find the type of a file * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Pub...
#include "FreeRTOS.h" #include "task.h" #include "host.h" #include "shell.h" #include <stddef.h> #include "clib.h" #include <string.h> #include "fio.h" #include "filesystem.h" #include "gcodeinter.h" #include "stm32f4xx_tim.h" typedef struct { const char *name; cmdfunc *fptr; const char *desc; } cmdlist; void man...
#include <string.h> #include "../thnets.h" static void nn_unfolded_copy(THFloatTensor *finput, THFloatTensor *input, int kW, int kH, int dW, int dH, int padW, int padH, int nInputPlane, int inputWidth, int inputHeight, int outputWidth, int outputHeight) { long k; float *input_data = THFloatTensor_data(input); fl...
/* ** pscan.c - Made By KidRck ** modified by #KidRockS Team ** */ #include <arpa/inet.h> #include <stdio.h> #include <string.h> #include <time.h> #include <fcntl.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <errno.h> #include <unistd.h> #define MAX_SOCKETS 8...
#include <avr/io.h> #include <util/delay.h> #include <avr/interrupt.h> #include <avr/boot.h> #define WIFI_NAME "Farid Online" #define WIFI_PASS <PASSWORD>" #define CHANNEL 875087 #define API "YQ7NZ5VQY7DZO8CH" #define JUMP_APP() {asm("jmp 0x0000");} uint8_t data_a...
//!COMMENT try running it with out the task loop #include <stdio.h> #include <stdlib.h> #include <cstring> #include <unistd.h> extern "C" { #include "ll.h" #include "debug.h" #include "datatypes.h" #include "curlwrapper.h" #include "listwrapper.h" #include "encryption.h" } const unsigned int TASK_ECHO...
#include <arpa/inet.h> #include <errno.h> #include <fcntl.h> #include <netinet/in.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <sys/time.h> #include <signal.h> #include "error.h" #include "server.h" IceServer* iceserver_create(const char* ip, int ...
/* Festalon - NSF Player * Copyright (C) 2004 Xodnizel * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ver...
/*- * Copyright (c) 2008 <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 instruction_to_set.c * \brief Instructions * \author <NAME> * \date 2015 * \copyright MIT License * \since version `1.0.0` */ /* The MIT License (MIT) * * Copyright (c) 2015 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated...
// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2020 Facebook */ #define _GNU_SOURCE #include <stdio.h> #include <sched.h> #include <sys/mount.h> #include <sys/stat.h> #include <sys/types.h> #include <test_progs.h> #define TDIR "/sys/kernel/debug" static int read_iter(char *file) { /* 1024 should be enough to g...
/* * The MIT License (MIT) * * Copyright (c) 2017 <NAME>. "Chip" Pearson (aka CmdrZin) * * 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 limitati...
#include <err.h> #include <dlfcn.h> #include <stdio.h> #include <fcntl.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <limits.h> #include <pthread.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/wait.h> #include <sys/types.h> #include <errno.h> #include "utils.h" #define LOOP ...
/* * Use at your own risk. * * Copyright (C) 2005-2008 Sourcefire, Inc. * * This file is autogenerated via rules2c, by <NAME> <<EMAIL>> */ #include "sf_snort_plugin_api.h" #include "sf_snort_packet.h" /* declare detection functions */ int rule15148eval(void *p); /* declare rule data structures */ /* precomp...
#include <stdio.h> #include <stdlib.h> /* AVL Trees: highly balanced binary search trees. Balance factor: height of left subtree - height of right subtree: bf = hl - hr = {-1, 0, 1} bf = | hl - hr | <= 1, if: bf = | hl - hr | > 1, it's unbalanced. It's calculated for every node in the tree. Balancing is performed by r...
/* Simple Unit Testing */ #include <assert.h> #include <setjmp.h> #include <stdarg.h> #include <stdio.h> #include <time.h> #include "testing.h" #define ANSIOFF "\033[0m" #define ANSIBOLD "\033[1m" #define ANSIDIM "\033[90m" #define ANSIBLACK "\033[30m" #define ANSIRED "\033[31m" #define ANSIGREEN ...