text
stringlengths
3.12k
18.7k
/**************************************************************************** * * Copyright (c) 2016 Wi-Fi Alliance * * 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 i...
/* spline.c - hermitian splines with tension/continuity/bias. Always go through their control points. */ /* Spline demonstration */ /* by <NAME> 9/30/88 */ /* Tweaked into fixed point by <NAME> */ /* setup for ansi c by <NAME> */ #define OPEN 0 #define CLOSED 1 #include "jimk.h" #include "errcodes.h...
// gcc -O3 main_openmp.c -fopenmp -o openmp // ./openmp 10000 100 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <omp.h> typedef unsigned long long int uli; typedef struct problem{ int nb_bits; int size_bitarray; int population_size; uli *solution; uli **bitarrays; int *distances; int *so...
/* Copyright (c) 2006-2015, DNSPod 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.Redistributions of source code must retain the above copyright notice, this * list of conditio...
#include <math.h> #include <stdlib.h> #include <string.h> #include <pango/pangocairo.h> #define WIDTH 300 #define HEIGHT 300 #define DEFAULT_FONT_FAMILY "Helvetica" #define DEFAULT_FONT_SIZE 16. #define DEFAULT_TEXT "ABCgjpqyXYZ" #define FONT_DPI 96 static void draw_text(cairo_t *cr, char *text, char *font_family, do...
#include "IMU/MEMS/MPU9250/MPU9250.h" #include "COM/SPI/SPI1.h" #include "FreeRTOS.h" #include "task.h" #define MPU_select GPIOC->BSRRH = GPIO_Pin_11; #define MPU_deselect GPIOC->BSRRL = GPIO_Pin_11; static float acc_divider, gyr_divider; //, mag_multiplier = 0.6; static float acc_bias[3] = {-0.08, 0.0, -0.09}; st...
#include <stdlib.h> #include <string.h> #include <arpa/inet.h> #include "sha.h" static const int k[] = { 0x5a827999, // 0 <= t <= 19 0x6ed9eba1, // 20 <= t <= 39 0x8f1bbcdc, // 40 <= t <= 59 0xca62c1d6 // 60 <= t <= 79 }; // ch is functions 0 - 19 unsigned int ch( unsigned int x, unsigned int y,...
/* * Copyright (c) 2011-2016, Swedish Institute of Computer Science. * 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 *...
// SPDX-License-Identifier: BSD-2-Clause // Copyright (C) 2022 Intel Corporation. #define _GNU_SOURCE #include <getopt.h> #include <stdarg.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <memkind.h> #define PN "memtier" #define PETA (1048576ULL * 1048...
/** * This file is part of the Status project, https://status.im/ * * Copyright (c) 2018 Status Research & Development GmbH * * 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 re...
/***************************************************************************//** * @file * @brief Definitions for the Scenes plugin. ******************************************************************************* * # License * <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b> ************************...
// // ----------------------------------------------------------------------------- // frontend-ncurses.c // ----------------------------------------------------------------------------- // // Console frontend for Biblio // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <menu.h> #include <readline...
/** * This file is part of Espruino, a JavaScript interpreter for Microcontrollers * * Copyright (C) 2013 <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://mozi...
/* * PolyHJ: Polymorphic Hash Join. * In-place Cache-aware Partitioning (ICP). * * (a) Partitions a given sub-relation (assigned to a thread) of relation R or S * into 2^Radix.R or 2^Radix.S partitions, respectively, by re-ordering the * tuples within small equal-sized blocks into their partitions. * * (b) Esti...
/////////////////////////////////////////////////////////////////////////////// // Base64 encode/decode Utilities // Copyright 2020 Cambridge Quantum Computing Ltd. All Rights Reserved. // Original: JGilmore (2020/06/23 15:26:31) // // Licensed under the Apache License 2.0 (the "License"). You may not use // this file...
/***************************************************************************** * (C) Copyright 2017 AND!XOR LLC (http://andnxor.com/). * * PROPRIETARY AND CONFIDENTIAL UNTIL AUGUST 1ST, 2017 then, * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance ...
#pragma ident "@(#)__libmcr_mm_div.c 1.4 04/02/25 SMI" /* ************************************************************ */ /* * Copyright (c) 2002 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the...
/* * Copyright (c) 2013-2017 Intel, Inc. All rights reserved. * Copyright (c) 2015 <NAME> <<EMAIL>>. * All rights reserved. * Copyright (c) 2015-2018 Mellanox Technologies, Inc. * All rights reserved. * Copyright (c) 2020-2021 Triad National Security, LLC * ...
// Author: <NAME> // Description: Code based on the Intel AES-NI reference doc // #include <stdint.h> #include <wmmintrin.h> #ifndef _WIN32 #include <x86intrin.h> #endif #include "intel_impl.h" inline __m128i AES_128_ASSIST (__m128i temp1, __m128i temp2) { __m128i temp3; temp2 = _mm_shuffle_epi32 (temp2 ,0xff)...
/* Copyright (c) 2010 The Regents of the University of California * <NAME> <<EMAIL>> * See LICENSE for details. * * Block devices and generic blockdev infrastructure */ #include <devfs.h> #include <blockdev.h> #include <kmalloc.h> #include <slab.h> #include <page_alloc.h> #include <pmap.h> /* These two are needed ...
/* Copyright (C) 2002 <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is...
/* * Copyright (C) 2020 <NAME> <<EMAIL>> * * Licence: wxWindows Library Licence, Version 3.1 */ #include "fixupchainprocessor.h" #include <ptrauth.h> #include <stdint.h> typedef struct _GumChainedStartsInImage GumChainedStartsInImage; typedef struct _GumChainedStartsInSegment GumChainedStartsInSegment; typedef ...
/*! @file syntax.c * * @brief Implementation of functions for writing bitstream syntax of encoded samples. * * @version 1.0.0 * * (C) Copyright 2018 GoPro Inc (http://gopro.com/). * * Licensed under either: * - Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0 * - MIT license, http...
/*---------------------------------------------------------------------------- Copyright (c) 2007-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...
/* * mailbox_io.c * * Created on: 16 Feb 2017 * Author: ogden */ #include <stdint.h> #include <errno.h> #include <unistd.h> #include <string.h> #include <xil_io.h> #include <stdio.h> #include <fcntl.h> #include <intrgpio.h> #include <xparameters.h> #ifdef XPAR_INTRGPIO_NUM_INSTANCES #in...
/************************************************************************** * MIT License * * Copyright (c) 2018 iWay Technology LLC * * * * Permission is...
/* * This file is part of the coreboot project. * * 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 o...
/* * vic-color.c - Colors for the VIC-I emulation. * * Written by * <NAME> <<EMAIL>> * * Research about the YUV values by * <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 2014 IPB, Universite de Bordeaux, INRIA & CNRS ** ** This file is part of the Scotch software package for static mapping, ** graph partitioning and sparse matrix ordering. ** ** This software is governed by the CeCILL-C license under French law ** and abiding by the rules of distribution of free software. ...
/** * @file ili9225.c * */ /********************* * INCLUDES *********************/ #include "ili9225.h" #include "disp_spi.h" #include "driver/gpio.h" #include "esp_log.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" /********************* * DEFINES *********************/ #define TAG "I...
/* * Copyright (c) 2007, NLnet Labs. All rights reserved. * * This software is open source. * * 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 n...
/* Tomato Firmware Copyright (C) 2006-2009 <NAME> */ #include "tomato.h" #include <ctype.h> #include <wlutils.h> // returns: ['bssid','ssid',channel,capabilities,rssi,noise,[rates,]], or [null,'error message'] void asp_wlscan(int argc, char **argv) { // scan wl_scan_params_t sp; int ap; int radio; char ...
#define SP3_ANGLE 109.5 #define CA_CB_DISTANCE 1.54 Float Phi(struct residue, struct residue, struct atom *); Float Psi(struct residue, struct residue, struct atom *); Float CalculateTorsion(struct atom *, int, int, int, int, Float); void AddCB(struct atom *, struct residue, struct atom *); Float RadiusOfGyration(stru...
#include "shell.h" #include "include/stdlib.h" #include <stdint.h> #include "timeModule.h" #include "videoModule.h" #include "pongModule.h" #include "memoryModule.h" #include "soundModule.h" #include "processModule.h" #include "snakeModule.h" #include "pipeModule.h" int piddummy; int flag = 0; int pidkill; int pidbloc...
/* * This file is part of TISEAN * * Copyright (c) 1998-2007 <NAME>, <NAME>, <NAME> * * TISEAN 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...
/** * @author <NAME> <<EMAIL>> * @version 0.1 * * @copyright Copyright <NAME> (c) 2020-2021 * Please see LICENCE file to information regarding licensing */ #include "include/device/usart.h" #include <stdint.h> #include "stm32f4xx.h" #include "stm32f4xx_ll_usart.h" #include "stm32f4xx_ll_gpio.h" #include "stm32...
#include <math.h> #include "geodesic.h" #include "vincenty.h" const long double Blookup[8][4] = { {-1.0l/2.0l,3.0l/16.0l,-1.0l/32.0l,19.0l/2048.0l}, {-1.0l/16.0l,1.0l/32.0l,-9.0l/2048.0l,7.0l/4096.0l}, {-1.0l/48.0l,3.0l/256.0l,-3.0l/2048.0l}, {-5.0l/512.0l,3.0l/512.0l,-11.0l/16384.0l}, {-7.0l/1280.0l,7.0l/2048.0l}, {-...
/* This source file is part of the Geophysical Fluids Modeling Framework (GAME), which is released under the MIT license. Github repository: https://github.com/OpenNWP/GAME */ /* Here, vorticities are calculated. The word "vorticity" hereby refers to both vertical and tangential components. */ #include <stdi...
/* Copyright 2011-2021 <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 writing, software ...
/* * 004spi_tx.c * * Created on: 4 de mai de 2021 * Author: igor */ #include "stm32f407xx.h" #include "string.h" #include <stdio.h> // SPI2 Used // PB14 --> MISO // PB15 --> MOSI // PB13 --> SCLK // PB12 --> NSS // Alt funct --> 5 #define COMMAND_LED_CTRL 0x50 #define COMMAND_S...
/* * bvhcopy.c * * Purpose: Extracts a part of a BVH motion file and copies it to a new one. * Controlled by commandline arguments explained in show_usage() * function. * * Created: <NAME>, 16/12/2003 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include "cocrystal_utils.h" #include "molecule_utils.h" #include "pygenarris_mpi_utils.h" #include "randomgen.h" #include "spg_generation.h" void print_time(void) { time_t current_time = time(NULL); struct tm *loc_time; loc_time = localtime (&curre...
/* $OpenBSD: connection.c,v 1.12 2011/05/02 06:32:56 claudio Exp $ */ /* * Copyright (c) 2009 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in ...
/*========================================================== * 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...
/* Test for uc_open() and uc_emu_start() being called by different threads. This code will call uc_open() in the main thread and then attempt to call uc_emu_start() from its own thread. This would enable the emulator to run in the background while you do other things like handle user interface etc in the foreground. ...
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <signal.h> /* La funzione sigaction() consente di esaminare e/o modificare l'azione associata ad uno specifico segnale; lo standard POSIX consiglia di utilizzare questa funzione piuttosto che la obsoleta signal()...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/* * This utility was created because nginx 1.3.9+ doesn't have http upload module any more. * This utility accepts post request on stdin and saves in current directory files * from request if any. File data is removed from post request, rest part of post request * is piped through unchanged. * * Author: <EMAIL>...
/* splitup -- take TeX or MF in C as a single stream on stdin, and it produces several .c and .h files in the current directory as its output. $Id$ <NAME> September 19, 1987. */ #include <w2c/config.h> #include <kpathsea/getopt.h> #if defined (FATAL) #undef FATAL #endif #define FATAL(str) do { ...
/***************************************************************************/ /* */ /* Copyright 2019 INTERSEC SA */ /* */ /* Licen...
/* * Copyright (C) 2018 The LineageOS 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 la...
#include <string.h> #include "eth_plugin_internal.h" #include "eth_plugin_handler.h" #include "shared_context.h" #include "ethUtils.h" #include "utils.h" typedef enum { ERC20_TRANSFER = 0, ERC20_APPROVE } erc20Selector_t; typedef enum { TARGET_ADDRESS = 0, TARGET_CONTRACT, TARGET_COMPOUND } targetType_t; typede...
#include <stdlib.h> #include <stdio.h> #include "hdf5.h" #include "hdf5_hl.h" #include "mpi.h" #include "math.h" #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <memory.h> #include <malloc.h> #include "papi.h" #define INDEX 100 extern void test_fail(char *file, int line, char *call, int retval)...
/*$Header: /data/petsun4/data1/src_solaris/algebra_4dfp/RCS/spatial_cov_multivol_4dfp.c,v 1.2 2010/07/08 04:07:30 avi Exp $*/ /*$Log*/ #include <stdlib.h> #include <stdio.h> #include <unistd.h> /* R_OK */ #include <string.h> #include <ctype.h> #include <math.h> #include <float.h> #ifndef _FEATURES_H /* defined by ma...
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
/* * Copyright (C) 2016 The Android Open Source 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 app...
/* * Copyright (c) 2018 XLAB d.o.o. * * 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 ...
/* |\/| | |INES Authored by abakh <<EMAIL>> To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have received a copy of the CC0 Public Domain Ded...
/* * Acess 2 USB Stack * - By <NAME> (thePowersGang) * * usb_devinit.c * - USB Device Initialisation */ #define DEBUG 0 #include <acess.h> #include <vfs.h> #include <drv_pci.h> #include "usb.h" #include "usb_proto.h" #include "usb_lowlevel.h" #define DUMP_DESCRIPTORS 1 // === PROTOTYPES === void USB_DeviceConne...
/************************************************************************** * * Copyright 2007 VMware, 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 Software wit...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <termios.h> #include <sys/file.h> #include <sys/wait.h> #include <sys/ioctl.h> struct termios tc, tt, ott; char *comname = "/dev/cuaa1"; char *termname = "/dev/tty"; int speed = 9600; int term, com; int dtr, rts...
/****************************************************************************** * MIT License * * Copyright (c) 2019 <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 restricti...
#include <stdio.h> #include <pb.h> #include <io.h> #include <plat.h> #include <stdbool.h> #include <usb.h> #include <uuid.h> #include <fuse.h> #include <gpt.h> #include <params.h> #include <plat/imx/ehci.h> #include <plat/imx/usdhc.h> #include <plat/defs.h> #include <plat/sci/ipc.h> #include <plat/sci/sci.h> #include <...
/* * genpmk - Generate a file with precomputed PMK's and words * * Copyright (c) 2004-2018, <NAME> <<EMAIL>> * * This software may be modified and distributed under the terms * of the BSD-3-clause license. See the LICENSE file for details. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <...
/* * Texture Mapping * * Demonstrates basic texture mapping. * * Key bindings: * t Cycle through tecture maps * c Cycle through colors * o Cycle through objects * m Toggles texture mode between modulate and replace * +/- Change repeat * x/X Move corn...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2006 <NAME>, Qstreams Networks Inc. * With help from the common/soft_spi and arch/powerpc/cpu/mpc8260 drivers */ #include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> #include <log.h> #include <malloc.h> #include <spi.h> #include <asm/mpc8xxx...
/******************************Module*Header*******************************\ * Module Name: Brush.c * * Handles all brush/pattern initialization and realization. * * Copyright (c) 1992-1995 Microsoft Corporation * \**************************************************************************/ #include "precomp.h...
/*! @file preprocessMatrices.c * @brief Utility program to generate lookup tables used for fast * matrix multiplication. It outputs precomputed data to the data * directory. * * This file is part of the reference implementation of the Picnic and Fish * signature schemes, described in the paper: * * Post-Q...
//library imports #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <pthread.h> #include <stdbool.h> #include <time.h> #include <string.h> //defining constants & variables #define RESOURCES 4 #define CUSTOMERS 5 //the available amount of each resource int *resources; // the amount currently allocated...
/* # _____ ___ ____ ___ ____ # ____| | ____| | | |____| # | ___| |____ ___| ____| | \ PS2DEV Open Source Project. #----------------------------------------------------------------------- # Copyright 2001-2004, ps2dev - http://www.ps2dev.org # Licenced under Academic Free License ve...
// // msc_flash.c - Part of a2fomu - Copyright (c) 2020-2021 <NAME> // // This file is part of a2fomu which is released under the two clause BSD // licence. See file LICENSE in the project root directory or visit the // project at https://github.com/elecbrick/a2fomu for full license details. #include <generated/mem.h...
// SPDX-License-Identifier: Apache-2.0 /* * Copyright (C) 2013 Intel Corporation * */ #define _GNU_SOURCE #include <stdbool.h> #include <string.h> #include <malloc.h> #include <stdlib.h> #include <sbc/sbc.h> #include "audio-msg.h" #include "hal-audio.h" #include "hal-log.h" #include "../profiles/audio/a2dp-codecs....
#include "prep-screen.h" extern void EndBG3Slider_(); extern void Get6CDifferedLoop6C(void* func, ProcPtr); extern struct Unit* sub_8095394(); // maybe get leader? extern int sub_80958FC(struct Unit*); // Get index in Prep-Unit-List static void (*SetPrepScreenUnitListCharID)(int index) = (const void*) 0x80953C1; // O...
#include "draw.h" #include "../common/error.h" int Draw_Init(int width, int height, int fullscreen) { float ratio; SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16); SDL_GL_Se...
/**************************************************************** * * $Source: /pv/CvsTree/pv/gen/src/prg/methods/FLASH/initMeth.c,v $ * * Copyright (c) 2002 - 2010 * Bruker BioSpin MRI GmbH * D-76275 Ettlingen, Germany * * All Rights Reserved * * $Id: initMeth.c,v 1.60.2.1 2015/03/23 07:46:19 mawi Exp $ * ...
#include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <dirent.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_PATH_LEN 3000 #define __DEBUG #ifdef __DEBUG void debug_info (const char *file, const char *function, const int line) { fprintf(stderr, "...
/* * © Copyright 2017-2098 The Panfrost Communiy * * 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, m...
/******************************************************************************* * Copyright (c) 2018-2021 Cadence Design Systems, Inc. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to use this Software with Cad...
/* phones - locate and sort phone numbers in text document * * usage - phones * (1) prompts user for filename of document * (2) scans file for valid phone numbers * (3) sorts phone numbers using selection sort algorithm * (4) outputs sorted list to console * * NC State University * ECE 209 (001) S...
#include "read_data.h" //function reads an .mca file into a double array and returns the number of spectra read in int readMCA(FILE * inp, const char * filename, double outHist[NSPECT][S32K]) { int i,j; int tmpHist[S32K]; //get the number of spectra in the .mca file int numSpec=S32K; for (i=0;i<numSpec;i++) ...
/* crypto/sm3/sm3.c */ /* * Written by caichenghang for the TaSSL project. */ /* ==================================================================== * Copyright (c) 2016 - 2018 Beijing JN TASS Technology Co.,Ltd. All * rights reserved. * * Redistribution and use in source and binary forms, with or without * m...
/** MIT License Copyright (c) 2022 Jesper 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, distri...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <sys/socket.h> #include <arpa/inet.h> #include <unistd.h> #include "cybers.h" #include "cyberlist.h" #include "movelist.h" #include "actions.h" // Main game state game_t state; typedef struct client_data { int client; in...
/* * pg_log_kafka - PostgreSQL extension to send logs messages to Apache Kafka * * Copyright (c) 2016 * * 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 w...
#include "base64.h" #include "db.h" #include "db_api.h" // fill in top down values from keyend // return number of values array used // array slot zero uint8_t parse64(uint8_t *sourceKey, int64_t *keyValues, uint8_t max ) { uint8_t cnt = 0; uint8_t xtraBytes; uint64_t result; if( max ) do { xtraBytes = *--sourc...
/* Copyright (C) 2001-2021 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "table.h" #include "io.h" int add(aio_table_t *const table) { if (table->size_of_table == TABLE_SIZE) return TABLE_OVERFLOW_ERR; student_t new_record; char temp_str[10]; int temp_num; char t; printf(ANSI_YELLOW "%s\n...
#include "gui_use.h" int gui_ed_attr_interactive(gui_obj *gui){ if (gui->modal != ED_ATTR) return 0; static dxf_node *attr_el = NULL, *x = NULL; enum dxf_graph ent_type = DXF_NONE; dxf_node *new_ent = NULL; int i = 0; if (gui->step == 0) { /* try to go to next step */ gui->step = 1; gui...
#include <stdio.h> #include <string.h> #include <errno.h> #include <sys/socket.h> #include <resolv.h> #include <stdlib.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <sys/time.h> #include <sys/types.h> #include <sys/socket.h> #include <time.h> #define MAXBUF 4096 /************关于本文档****...
/** * @file zndkcl.c * @brief test app for a command line * * @note * * @date 2017-01-16 * @author zundoko */ #include <stdint.h> /* uint32_t */ #include <stdio.h> /* printf() */ #include <stdlib.h> /* EXIT_SUCCESS */ #include <string.h> ...
/* No copyright is claimed in the United States under Title 17, U.S. Code. All Other 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 limitat...
/********************************************************************* * * Multichannel synth to SPI to MCP4822 dual channel 12-bit DAC * ********************************************************************* * Bruce Land Cornell University * October 2015 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
#define _INTERRUPT_TABLE_SETUP_ /* * This file contains everything necessary to boot and jump to main() * * It's structured in the same sequence sections will appear on flash */ #include "config.h" #include "interrupt.h" #include "interrupt_weak_isr.h" #include "systick.h" #include "watchdog.h" #include "stm32f10...
#include "libuart.h" static void __libuart_set_baudrate(int fd, struct termios *operate, int baudrate); static void __libuart_set_termios_bits(struct termios *operate, int bits); static void __libuart_set_termios_parity(struct termios *operate, int parity); static void __libuart_set_termios_stop(struct termios *operat...
#include "meta_class.h" #include "conversion.h" #include "application.h" #include "engine.h" #include "refcounter.h" #include "signal_emitter.h" VALUE rbqml_cMetaClass; VALUE rbqml_mInterface; typedef struct { qmlbind_client_class *class_handle; qmlbind_signal_emitter *emitter; } new_object_data; static void...
/** * Copyright (c) 2010-2011 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT...
/* * The MIT License (MIT) * * Copyright (c) 2019, <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...
#include "dr.h" #include "dsp.h" #include "encoder.h" #include "physics.h" #include "sensors.h" #include "circbuff.h" #include "primitives/primitive.h" #include <stdio.h> #include <stdint.h> #include <math.h> static dr_data_t current_state; static dr_ball_data_t current_ball_state; /** * \brief The most recent ball...
#pragma once #include <assert.h> #include <babeltrace2/babeltrace.h> #include <json-c/json.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "decode_event.h" static void CheckBtError(int32_t status) { switch (status) { case BT_GRAPH_RUN_STATUS_OK: return; cas...
// // rcs.c // Radar Simulation Framework // // Created by <NAME> on 3/16/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #include "rcs.h" // Private structure typedef struct _rcs_mem { char data_path[1024]; RCSTable table[256]; int count; } RCSMem; // Private functions void RCS_show_blk(co...