text
stringlengths
3.12k
18.7k
/* <NAME> <NAME> Send ESP-NOW vendor specific action frame example https://hackaday.io/project/161896 https://github.com/thomasfla/Linux-ESPNOW Adapted from : https://stackoverflow.com/questions/10824827/raw-sockets-communication-over-wifi-receiver-not-able-to-receive-packets 1/Find your wifi interface: $ iwconfig ...
#pragma once #include "igen_lib.h" #include "igen_dd_lib.h" void init_DFT16(double); void init_DFT32(double); void init_DFT64(double); void init_DFT128(double); void init_DFT256(double); void init_DFT16(f64_I); void init_DFT32(f64_I); void init_DFT64(f64_I); void init_DFT128(f64_I); void init_DFT256(f64_I); void in...
/* $Id: map_assembler.c 1051 2008-02-11 15:38:53Z green $ */ #include <stdio.h> #include <stdlib.h> #include "map_align.h" #include "map_alignment.h" #include "io.h" /* void * save_malloc(size_t size){ void * tmp = malloc(size); if (tmp == NULL) fprintf( stderr, "Some memory allokation ...
#include "oled.h" #include "stdlib.h" #include "delay.h" #include "oledfont.h" ////////////////////////////////////////////////////////////////////////////////// //本程序只供学习使用,未经作者许可,不得用于其它任何用途 //ALIENTEK STM32F03开发板 //OLED驱动代码 //正点原子@ALIENTEK //技术论坛:www.openedv.com //创建日期:2017/5/26 //版本:V1.0 //版权所有,盗版必究。 //Copyright(C) ...
/* $NetBSD: iic.c,v 1.1 2002/03/24 15:47:17 bjh21 Exp $ */ /* * Copyright (c) 1994-1996 <NAME>. * Copyright (c) 1994 Brini. * All rights reserved. * * This code is derived from software written for Brini by <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permit...
/* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1....
/* ** $Id: $ ** ** Title: Heater Control (HC) Application Table Definitions ** ** Purpose: Provides functions for the initialization, validation, and ** management of the HC Type Table and the HC Component Table. ** ** Author: <NAME>, Summer 2015 Intern for Code 582 NASA GSFC ** ** Notes: ** ** $Log: $ Changed...
/** * Parallel implementation of Prim's MST algorithm * * Compile with: mpicc prim_mpi.c -o prim_mpi * Execute with: mpiexec -n 2 prim_mpi input_graph 0 */ #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <mpi.h> #define INFINITY INT_MAX int number_of_processors; /* Number of processors */...
/* $Id: proto_push_md_command.c 23398 2013-01-31 03:19:52Z m-oki $ */ /* * Copyright (c) 2012, Internet Initiative Japan, 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: * * 1. Red...
/** * Copyright (c) 2019-2020 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. */ #include "parsec.h" #include "parsec/mca/device/cuda/device_cuda_internal.h" #include "parsec/data_distribution.h" #include "pa...
#include "..\debug.h" #include "editor.h" #include "seregexp.h" #include "..\regexp\regexp.h" typedef struct tag_regexp_t { regexp *compiled; regmatch *matches; } regexp_t; // size of the reserved place in structure sedit_regexp_t should be enough for storing structure regexp_t C_ASSERT(sizeof(regex...
#include "console.h" #include "cpu.h" #include "debug.h" #include "fifo.h" #include "global.h" #include "graphic.h" #include "init.h" #include "interrupt.h" #include "io.h" #include "keyboard.h" #include "memory.h" #include "print.h" #include "process.h" #include "stdio.h" #include "string.h" #include "thread.h" #inclu...
/** * @file mpu9250-self-test.c * @desc Self checking functions for MPU9250 IMU * @author <NAME> * @date 2021-09-29 * Last Author: * Last Edited On: */ #include "mpu9250-self-test.h" #include <stdlib.h> #include <math.h> #define USE_TABLE_FOR_TRIM // MARK: Helpers #ifdef USE_TABLE_FOR_TRIM // #! /usr/bin...
/* * Mesa 3-D graphics library * * Copyright (C) 1999-2008 <NAME> 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 limit...
/* * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.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.tizenopensource.org/license * * Unless required by applicable law or ...
/* * 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...
/* * Copyright 2021 <NAME> + the BCIT CST Datacommunications Option students. * * 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...
/* * $Id: test_dncp.c $ * * Author: <NAME> <<EMAIL>> * * Copyright (c) 2013-2015 cisco Systems, Inc. * * Created: Thu Nov 21 13:26:21 2013 mstenber * Last modified: Mon Jun 29 17:07:02 2015 mstenber * Edit time: 110 min * */ #include "hncp_i.h" #include "hncp_proto.h" #include "sput.h" #include "s...
/* * DVB USB library - provides a generic interface for a DVB USB device driver. * * dvb-usb-init.c * * Copyright (C) 2004-5 <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 Found...
// Options: --no-arrays --no-pointers --no-structs --no-unions --argc --no-bitfields --checksum --comma-operators --compound-assignment --concise --consts --divs --embedded-assigns --pre-incr-operator --pre-decr-operator --post-incr-operator --post-decr-operator --unary-plus-operator --jumps --longlong --int8 --uint8...
/* * This file is part of Espruino, a JavaScript interpreter for Microcontrollers * * Copyright (C) 2017 <NAME> <<EMAIL>> * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/...
/* * Copyright (C) 2004 IMMS gGmbH <www.imms.de> * * 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 prog...
/** \file * \brief Frame Control * * See Copyright Notice in "iup.h" */ #include <windows.h> #include <commctrl.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <memory.h> #include <stdarg.h> #include "iup.h" #include "iup_object.h" #include "iup_attrib.h" #include "iup_str.h" #include "iu...
/* aprstcp v1.0 by <EMAIL> 2015.12.19 aprstcp [ -d ] local_ip local_port remote_ip remote_port 功能: 从 14580 tcp端口接收数据 使用TCP转发给asia.aprs2.net 使用UDP转发给以下端口 127.0.0.1 14582 127.0.0.1 14583 172.16.17.32 14580 (aprs.helloce.net) 192.168.127.12 14580 (欧讯服务器) 如果SSID中有-13,发给 172.16....
/* * Copyright (c) 2020 Cypress Semiconductors * * SPDX-License-Identifier: Apache-2.0 */ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ...
/*========================================================== * Copyright 2020 QuickLogic Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licens...
// ***************************************************************** // SeisComP 3 plugin for the Kelunji Echo/EchoPro digitizers. // // Sends data to SeisComP using the send_raw3() function defined // in 'plugin.c'. Program will exit if a fatal error is detected // at startup. If started with -d (debug) option then al...
/* * ble_oled.c BLE surface for OLED access. * Copyright (c) 2016 <NAME>. All Rights Reserved. */ #include <stdio.h> #include <string.h> #include "nordic_common.h" #include "ble_srv_common.h" #include "app_util.h" #include "app_timer.h" #include "app_timer_appsh.h" #include "config.h" #include "ble_oled.h" #i...
/* @source octanol application ** ** Displays protein hydropathy. ** @author Copyright (C) <NAME> (<EMAIL>) ** @@ ** From White and Wimley Annu Rev. Biophys. Biomol. Struct. 1999. 28:319-65 ** ** This program is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License...
// FILE NAME : aes.c // AUTHOR : <NAME> // DEVELOPERS : <NAME> // E-mail : <EMAIL> //----------------------------------------------------------------------------- // RELEASE HISTORY // VERSION DATE DESCRIPTION // 1.0 2021-06-08 Initial version. //----------------------------------------------...
/********************************************************************* Copyright (c) 2000-2007, Stanford University, Rensselaer Polytechnic Institute, <NAME>, <NAME> (see SimVascular Acknowledgements file for additional contributors to the source code). All rights reserved. Redistribution and use in s...
#include <stdbool.h> #include <stdint.h> #include <sys/select.h> #include <stdio.h> #include <stdlib.h> #include <muacc/client_socketconnect.h> #include <muacc/client_socketconnect_async.h> #include <muacc/intents.h> static int(*custom_select)(int, fd_set *, fd_set *, fd_set *, struct timeval *) = NULL; static int(*c...
#include "helpers.h" // Functie preluata din laborator. void usage(char *file) { fprintf(stderr, "Usage: %s server_address server_port\n", file); exit(0); } /* Functie pentru procesarea unui mesaj tcp primit de client de la server. Mesajul tcp poate contine date de tip INT, SHORT_REAL, FLOAT sau STRING. ...
#include <errno.h> #include <fcntl.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <dumb.h> #include <portaudio.h> #define SAMPLE_RATE 44100 #define VERSION "1.1.4" // flags/args char *argv0, *arg_filename, *output_filename; float initial_volume = 1.0f, ...
#include<stdio.h> #include<unistd.h> #include<sys/ipc.h> #include<sys/shm.h> #define SHM_KEY1 800 #define SHM_KEY2 801 #define SHM_KEY3 802 #define SHM_KEY4 803 #define SHM_KEY10 804 #define SHM_KEY11 805 #define SHM_KEY12 806 #define SHM_KEY13 807 #define SHM_KEY14 808 #define SHM_KEY15 809 void loading(unsigned in...
int main() { int a; star: system("cls"); system("color F1"); printf("\t\t\t\t\t CALENDAR\n\n\n"); printf("\t1. Year Calendar\n\n"); printf("\t2. Month by Month Calendar\n\n"); printf("\t3. Day from Date\n\n"); printf("\t4. Go to main menu\n\n"); printf("\t5. Exit"); printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\nEnter yo...
#include <zcl/global.h> #include <zcl/endian.h> #include <zcl/string.h> #include <zcl/macros.h> #include <zcl/hash.h> #include <zcl/bits.h> typedef struct { uint32_t state[5]; uint32_t count[2]; uint8_t buffer[64]; } SHA1_Context; #define rol(value, bits) z_rotl32(value, bits) /* blk0() and bl...
/** * Copyright 2018 Comcast Cable Communications Management, 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 requir...
/* dafwda.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__1 = 1; static integer c__128 = 128; /* $Procedure DAFWDA ( DAF, write data to address ) */ /* Subrouti...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define thisprog "xe-dateconv1" #define TITLE_STRING thisprog" v 6: 27.Jan.2018 [JRH]" #define MAXlen 1000 /* <TAGS>string time</TAGS> v 6: 27.Jan.2018 [JRH] - significant rewrite to move date-parsing to function xf_datep...
// See LICENSE for license details. #include <stdio.h> #include <stdlib.h> #include "platform.h" #include <string.h> #include "plic/plic_driver.h" #include "encoding.h" #include <unistd.h> #include "stdatomic.h" #include "util.h" // Structures for registering different interrupt handlers // for different parts of the...
#include <avr/interrupt.h> #include <util/delay.h> #include <stdlib.h> #include "table.h" uint32_t sine_position; // Stores the current angle of the sine wave output // 0 - 360 degrees = (0 - 0x5ffffff) uint32_t throttle; // Stores the current throttle input (10 bit) uint32_t speed; ...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <assert.h> // coreHTTP #include "core_http_config.h" #include "core_http_client.h" // mbedtls #include "mbedtls/net_sockets.h" #include "mbedtls/ssl.h" #include "mbedtls/ctr_drbg.h" #include "mbedtls/entropy.h" #include "mbedtls/e...
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> #include <unistd.h> #include <gnutls/gnutls.h> /* $Id: bounce.c,v 1.2 2010-12-30 12:39:11 freddy77 Exp $ */ /* This small application make man-in-...
/********** Copyright 1990 Regents of the University of California. All rights reserved. Author: 1985 <NAME>, U. C. Berkeley CAD Group **********/ /* * Code to do fourier transforms on data. Note that we do interpolation * to get a uniform grid. Note that if polydegree is 0 then no interpolation * is done. */ ...
/* This program sends a user specified number of TEST UNIT READY commands * to the given sg device. Since TUR is a simple command involing no * data transfer (and no REQUEST SENSE command iff the unit is ready) * then this can be used for timing per SCSI command overheads. * * Copyright (C) 2000-2016 <NAME> * Thi...
/* ---------------------------------------------------------------------------- * ATMEL Microcontroller Software Support * ---------------------------------------------------------------------------- * Copyright (c) 2008, Atmel Corporation * * All rights reserved. * * Redistribution and use in source an...
/*! * @file * \file RBTree.c * reference https://brilliant.org/wiki/red-black-tree/ * \note * 1. 2 black children, in which case the black parent still has 2 children. * 2. 1 black child and 1 red child, in which case the black parent now has 3 children. * 3. 2 red children, in which case the black parent now ha...
/* © 2014 Sigma Designs, Inc. This is an unpublished work protected by Sigma * Designs, Inc. as a trade secret, and is not to be used or disclosed except as * provided Z-Wave Controller Development Kit Limited License Agreement. All * rights reserved. * * Notice: All information contained herein is confidential an...
/* カメラからの画像キャプチャ cvCreateCameraCapture, cvQueryFrame 指定された番号のカメラから画像をキャプチャして表示する http://opencv.jp/sample/video_io.html */ #include "videocap.h" #include <ctype.h> param* new_param( int cam_idx, int w, int h, int wait_ms, int face_detect, int filter, char* filename ) ...
#include <stdio.h> #include <stdlib.h> void printVetor(int* vetor, int n); char* polarizar(int bits[], int bases[], int lenght, char base1, char base2); char* basesBinToChar(int* basesBinarias,int n, char base1,char base2); int* comparaBases(char* basesAlice, char* basesBob, int lenght, char base1, char base2, int* qt...
#include "fisk.h" #include <SDL/SDL.h> #define ZOOM 0.02f #define BOAT_UP 0.7f #define STATE_UNDER 1 #define GRAVITY 9.82f #define FLOATING 6.5f #define FLOATING_ADD 1.5f #define MOVEX 8.0f #define MAXSPEED 5.0f #define RADIUS 0.2f #define ROPE_HAUL 3.0f #define ROPE_MINLEN 1.25f #define ROPE_MAXLEN 32.0f #define R...
#include <stdio.h> #include <string.h> #include "dynamic_libs/os_functions.h" #include "dynamic_libs/socket_functions.h" #include "common/thread_defs.h" #include "utils/logger.h" #include "exception_handler.h" #include "dynamic_libs/sys_functions.h" #include "main.h" #define OS_EXCEPTION_MODE_GLOBAL_ALL_CORES 4 #...
/*- * Copyright (c) 2015 <NAME> * Copyright (c) 2013 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * noti...
#include "stm32f10x_conf.h" #include "delay.h" #include "ssd1306.h" #define I2C_PIN_SDA GPIO_Pin_10 #define I2C_PIN_SCL GPIO_Pin_11 #define I2C_PIN ((uint16_t)( I2C_PIN_SDA | I2C_PIN_SCL )) #define I2C_GPIO GPIOB #define I2C_GPIO_RCC RCC_APB2Periph...
#define _GNU_SOURCE #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <stdnoreturn.h> #include <string.h> /// util.c noreturn void error(char *fmt, ...) __attribute__((format(printf, 1, 2))); char *format(char *fmt, ...)...
/******************************************************************************* * BRT Wallet * (c) 2017 Ledger * (c) 2020 Towo Labs * * 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 Licen...
/* * Copyright (c) 2013-2014, Newcastle University, UK. * 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, ...
#include <stdio.h> #include "../jsonparser.h" // Structure prototypes struct PersonSocials; struct PersonDetails; struct Person; // Struct definitions struct PersonSocials { char linkedin[1024]; char instagram[1024]; char facebook[1024]; char github[1024]; }; struct PersonDetails { char bio[1024]...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** * * COPYRIGHT(c) 2015 STMicroelectronics * * Redistribution and use in ...
#include <linux/nvme_ioctl.h> #include <linux/fscrypt.h> #include <sys/random.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string.h> #include <assert.h> #include <stdlib.h> #include <stdint.h> #include <stdio.h> #include <fcntl.h> #include <errno.h> struct identi...
/* * * This source file is part of ELINA (ETH LIbrary for Numerical Analysis). * ELINA is Copyright © 2019 Department of Computer Science, ETH Zurich * This software is distributed under GNU Lesser General Public License Version 3.0. * For more information, see the ELINA project website at: * http://elina.et...
/* * 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 terms found in...
/* * Copyright (c) 2019-2021, <NAME> * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include <driver/periph_ctrl.h> #include <soc/spi_periph.h> #include <esp32/rom/ets_sys.h> #include <esp32/rom/gpio.h> #include "hal/clk_gate_ll.h" #include "driver/gpio.h" #include "system/intr.h" #include "system/gpi...
/* A volumetric bucket queue used to find 3D points in close proximity. Complexity: Linear in the number of points assuming that they are evenly distributed Compile: gcc -std=c99 -lm -O3 volBuclet.c To do: check the use of rmax (int vs double) erikw 20150218 */ #include <stdio.h> #include <stdlib.h> #include <ma...
// ZeroWi bare-metal WiFi driver, see https://iosoft.blog/zerowi // Raspberry Pi GPIO interface // // Copyright (c) 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 // // h...
/* * $Id: ship.c,v 1.5 2003/02/09 07:34:16 kenta Exp $ * * Copyright 2002 <NAME>. All rights reserved. */ /** * Handle player. * * @version $Revision: 1.5 $ */ #include "SDL.h" #include <stdlib.h> #include <stdio.h> #include "noiz2sa.h" #include "screen.h" #include "vector.h" #include "ship.h" #include "shot....
#include <barrelfish/barrelfish.h> #include "serial.h" #include <barrelfish/inthandler.h> #include <driverkit/driverkit.h> #include <dev/omap/omap44xx_uart3_dev.h> #include <arch/arm/omap44xx/device_registers.h> #include <maps/omap44xx_map.h> #include <pci/pci.h> #include <int_route/int_route_client.h> /* XXX */ #def...
#include "can.h" #include "usart_log.h" #include <abstractCAN.h> #include <abstractLOG.h> #include <libopencm3/cm3/nvic.h> #include <libopencm3/cm3/cortex.h> #include <libopencm3/stm32/can.h> #include <stddef.h> struct abst_pin can_RX = { .port = ABST_GPIOD, .num = 0, .mode = ABST_MODE_AF, .af = 9, ...
/* * @file rpi_nfc.c * @brief An application for Raspberry Pi sending NFC data to a server via TCP socket * * The host and port number of the server is passed as an argument * * The client connects to that remote server, then sends NFC transaction data over * the socket and listens for an ACK from server. ...
/* * TÍTUL0: ALGORITMOS * SUBTÍTUL0: Práctica 1 * AUTOR 1: <NAME> LOGIN 1: mateo.diaz * AUTOR 2: <NAME> LOGIN 2: alvaro.freirea * GRUPO: 4.2 * DATE: 25 / 09 / 2021 */ #include <stdio.h> #include <math.h> #include <time.h> #include <stdlib.h> #include <sys/time.h> #include <stdbool.h> #define K ...
/** * @file GPIO.h * @brief Digital input/output from LaunchPad to CC2650 * @details There are two possible hardware connections between MSP432 to CC2650 * The #define DEFAULT selects which connection to use. * These two hardware possibilities can deployed into four options. * There are two proje...
/* * This file is part of the CatOS distribution https://github.com/catos. * * Copyright (c) 2019 <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, version 3. * * This program i...
#include "forkedServer.h" #include "../Config.h" #include "../Wrapper.h" #include "../Utils.h" #include "../dbg.h" #include "../Sync.h" #include "../Executer.h" #include "Server.h" #include <unistd.h> #include <signal.h> #include <stdlib.h> #ifndef _WIN32 #include <sys/wait.h> #else #endif #ifndef _WIN32 void kil...
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include "my_string.h" #include "generic_vector.h" #include "avl_tree.h" #define MAX_SIZE 30 GENERIC_VECTOR *init_dictionary( void ) ; Boolean prompt_continue_game( void ) ; Boolean prompt_running_total( void ) ; int prompt_word_length( void ) ; int prompt_nu...
/* Copyright (c) 1991 X Consortium 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, distribute, ...
/* * Copyright 2014 <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 required by applicable law or agreed to in w...
#include "shell.h" #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include "constants.h" #include "init_globals.h" #include "mempool.h" #include "blockchain.h" #include "wallet.h" #include "create_block.h" #include "handle_block.h" #include "crypto.h" #define DELIMS " \t\n" #define ARG_SIZE 32 Command...
/** * FreeRDP: A Remote Desktop Protocol Implementation * XCrush (RDP6.1) Bulk Data Compression * * Copyright 2014 <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 * ...
#include "Snapshot.h" #include "Thread.h" #include "Heap.h" #include "Object.h" #include "Heap.h" #include "Handle.h" #include "Smalltalk.h" #include "Assert.h" #include <stdlib.h> #include <string.h> #define OBJECT_FIELD_MASK 7 #define OBJECT_INLINE 1 #define OBJECT_POINTER 5 enum { SS_ASSOC_DEFINED = 1, SS_ASSOC_...
/* * Copyright (c) 2021 Vertices Network <<EMAIL>> * * SPDX-License-Identifier: Apache-2.0 */ #include "vertices.h" #include <vertices_log.h> #include <unix_config.h> #include <string.h> #include <sodium.h> #include <getopt.h> #include <stdbool.h> #include <base32.h> #include <base64.h> #include <sha512_256.h> ty...
#include "minidns/network.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "minidns/utils.h" #ifdef _WIN32 #include <ws2tcpip.h> typedef int ssize_type; typedef int socklen_type; typedef const char *const_buffer_type; typedef char *buffer_type; typedef int buffer_length_type; ...
// ------------------------------------------------------------------ // profiler.c // Copyright (C) 2019-2021 Black Paw Ventures Limited // Please see terms and conditions in the file LICENSE.txt #include "genozip.h" #include "profiler.h" #include "flags.h" #include "vblock.h" #include "file.h" #inclu...
/** * Copyright 2019 University of Applied Sciences Western Switzerland / Fribourg * * 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 *...
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ /********************************************************************** rbgobj_valuetypes.c - $Author: ggc $ $Date: 2007/07/13 14:27:07 $ Copyright (C) 2002,2003 <NAME> **********************************************************************/ #includ...
#include <assert.h> #include <errno.h> #include <fcntl.h> #include <linux/kvm.h> #include <pthread.h> #include <signal.h> #include <stdio.h> #include <string.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <unistd.h> #include <kvm.h> #include <log.h> static int kvm = 0, vm = 0; static struct kvm_run *kvm_run...
#include <stdlib.h> #include <string.h> #include <pspkernel.h> #include <pspgum.h> #include <pspctrl.h> #include <psprtc.h> #include <math.h> #include "../../triImage.h" #include "../../triGraphics.h" #include "../../tri3d.h" #include "../../triTypes.h" #include "../../triLog.h" #include "../../triMemory.h"...
/** * \file posix-shared.c * * \brief Shared functions used by the libRBR POSIX examples. * * \copyright * Copyright (c) 2018 RBR Ltd. * Licensed under the Apache License, Version 2.0. */ /* Prerequisite for clock_gettime, struct timespec in time.h. */ #define _POSIX_C_SOURCE 200112L /* Required for open. */ ...
// // Created by 310165137 on 03/10/2020. // #include<stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <pwd.h> #include "helper.h" #include "myshell.h" // Function to read a line from command into the buffer char *ReadCommandLine(int *isvalid, FILE *inputStream) { // D...
/*- * Copyright (c) 2013-2015, Mellanox Technologies, Ltd. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, ...
#include "../../noise/noise.h" #include "../fixed-point.h" #include "../image.h" #include "../types.h" #include "../colours.h" #include "earth-like.h" enum earth_like_terrain_type { DESERT, DESERT_GRASS, GRASS, GRASS_FOREST, FOREST }; static inline int interpolate(int64_t a, int64_t b, int f) { if (a < b) r...
/* * Copyright (c) 2018, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and ...
#include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <pthread.h> #include "bgzf.h" #include "util.h" #include "block.h" #include "queue.h" #include "pbgzf.h" #include "reader.h" static const int WINDOW_SIZE = BGZF_MAX_BLOCK_SIZE; reader_t* reader_init(int fd, queue_t *input, uint8_...
/* * LogicCircuit * By <NAME> (thePowersGang) * * compiled.c * - Reads/writes compiled versions of nets */ #include <common.h> #include <stdio.h> #include <stdlib.h> // malloc #include <stdint.h> #include <string.h> #include "include/compiled.h" extern tElementDef *gpElementDefs; void _Write8(FILE *fp, uint8_t ...
/** * Short example to describe how a digital counter channel is read. * * This example should be used with a TRION-CNT.xx or TRION-2402-dACC.6.BN * */ #include "dewepxi_apicore.h" #include "dewepxi_apiutil.h" #include "dewepxi_types.h" #include "trion_sdk_util.h" //needed Board-Type for this example const char...
// Copyright 2020 <NAME>. All rights reserved. // SPDX-License-Identifier: BSD-2-Clause // #define WIN32_MEMORY_LEAK_DETECTION #ifdef WIN32_MEMORY_LEAK_DETECTION #define _CRTDBG_MAP_ALLOC #include <crtdbg.h> #endif #include "avif/avif.h" #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h...
#include <netinet/in.h> #include <pthread.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include <netdb.h> #include<arpa/inet.h> #include <errno.h> #include "server.h" #define BACKLOG 100 #define PORT_NUM 12345 #defi...
/* 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 documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge...
/* readfile.c Copyright: Copyright (c) 2002-2004 SFNT Finland Oy. All rights reserved. File routines for testing cryptolibrary. */ #include "sshincludes.h" #include "readfile.h" /* File has the format: % is a comment ignored 0x denotes hex string (of variable length) msb-first ...
#include <windows.h> #include <stdint.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <assert.h> #define BUFFER_SIZE 4096 SECURITY_ATTRIBUTES default_dir_security_attributes = { sizeof(SECURITY_ATTRIBUTES), 0, true, }; char *vcvarsportable = "@echo off\r\n" "set PATH=%CD%;%PATH%\r\n" "set IN...