text
stringlengths
3.12k
18.7k
// example5.c - Demonstrates how to use miniz.c's low-level tdefl_compress() and tinfl_inflate() API's for simple string to string compression/decompression. // The low-level API's are the fastest, make no use of dynamic memory allocation, and are the most flexible functions exposed by miniz.c. // Public domain, April ...
/* * Channel management functions. * * Copyright 2000-2012 <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 l...
/* * * z88dk Application Generator (appmake) * * * $Id: appmake.h,v 1.24 2011/06/14 07:36:01 stefano Exp $ */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <time.h> #include <string.h> #include <stdarg.h> /* Conversion routines */ typedef enum { OPT_NONE, OPT_BOOL, OPT_INT, OPT_STR ...
/* * Copyright (c) 2013, Altera Corporation. * All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of...
/* * (C) Copyright 2004 * <NAME>, DENX Software Engineering, <EMAIL>. * * SPDX-License-Identifier: GPL-2.0+ */ /* Board specific FPGA stuff ... */ #define FPGA_REG0 (CONFIG_SYS_FPGA_BASE + 0x00) #define FPGA_REG0_SSCG_MASK 0x80 #define FPGA_REG0_SSCG_DISABLE 0x00 #de...
struct BasisFunc{ float ** basis; int * Ml; // number of basis per parcel float ** kernel_loc; int M; // total number of basis for all parcels }; struct BasisFunc genBasis(int L, const char * basispath, struct Inputdata data, const double bandwidth, const int dd){ /* generate basis kernel...
/* * 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 ASF licenses this file to you under the Apache License, Version 2.0 * (the "License"); you may...
/** ****************************************************************************** * @file netbios.c * @author WIZnet Software Team * @version V1.0 * @date 2015-02-14 * @brief nebios 名字解析服务器功能 通过Ping NETBIOS_W5500_NAME 可获得其IP地址 * @attention *******************************************************************...
/* $NetBSD: db_machdep.c,v 1.7 1997/10/14 10:11:06 mark Exp $ */ /* * Copyright (c) 1996 <NAME> * * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, pro...
/* * range.c - program execution range routines * * This file is a part of the SimpleScalar tool suite written by * <NAME> as a part of the Multiscalar Research Project. * * The tool suite is currently maintained by <NAME> and <NAME>. * * Copyright (C) 1994, 1995, 1996, 1997, 1998 by <NAME> * * This source...
/// symbol table /// @file : symbol.c /// @author : <NAME> (@las_nish) /// @date 2021-05-13 & 12:10:15 /// @copyright Copyright (c) 2020-2021 <NAME> // note: // 1. only one symbol table for whole program // 2. no scope support #include "_main.h" // initialize symbol table void init_symbol(void) { sym_id = 0; ret...
/* * RSETEST.C * Example aplication using rse.c to endcode and decode packets */ #include "Configuration.h" #include <getopt.h> #include "rse.h" #include <stdlib.h> #include <unistd.h> /***************************************************************************/ /* Define Size of FEC BLOCK (K and H) and Packet (C)...
#include <string.h> #include "../../inc/utest.h" #include "../../inc/types.h" #include "../../inc/utils.h" #include "../../inc/chars.h" #include "../../inc/xor.h" #include "../../inc/c1.h" #include "../../inc/c2.h" #include "../../inc/c3.h" /* Dans ce module de test, on ne teste que les fonctions qui ne sont pas déjà ...
#include "wsclient.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <stdbool.h> #define WSC_ATTACH_STDIN_BUFFER_SIZE 1024 #define TTY_STDIN_NUMBER 0 #define TTY_STDOUT_NUMBER 1 #define WS_PROTOCOL_DELIM "://" #define WS_BASE_PATH_DELIM_CHAR ':' /* ip:port *...
/* Copyright 2017 <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 di...
/*- * Copyright (c) 2002-2018 The UbixOS Project. * All rights reserved. * * This was developed by <NAME> for the UbixOS Project. * * 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...
/* * monedas.c * * Fecha: 03/06/14 * Desarrollado: <NAME> * */ #include <stdio.h> #include <stdlib.h> #include <string.h> /* * Con esto podemos saber el tamaño de una array en C */ #define NELEMENTOS(x) (sizeof(x)/sizeof(x[0])) /* * Variable global para saber el nombre del programa */ char* nomPrograma;...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <math.h> /* ======================================================================= */ /* ----- write histograms to file, to look at with radware (gf3) ----- */ int write_his(int *his, int nch, int sp_id, char *sp_name, FILE *file...
#include <rlang.h> #include "internal.h" static inline sexp* r_node_names(sexp* x); static inline sexp* r_names_dispatch(sexp* x, sexp* env); sexp* rlang_names2(sexp* x, sexp* env) { const enum r_type type = r_typeof(x); if (type == r_type_environment) { r_abort("Use `env_names()` for environments."); } ...
/* * Copyright (c) 2018-2020, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "sptool.h" #define PAGE_SIZE 4096 /* * Entry describ...
/* ============================================================================ * Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005, 2008 * * Use of this software is controlled by the terms and conditions found in the * license agreement under which this software has been supplied. * =============...
/* * Copyright (c) 2020, NLNet Labs, Sinodun * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of cond...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
#include <stddef.h> #include <stdio.h> #include <errno.h> #include <stdlib.h> #include <signal.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include "ubus.h" #include "tools.h" #define BITCH_ABOUT_NULLPTR(x) if (x==NULL){fprintf(stdout,"\a666\tcan't parse that.\n");fflush(stdout); continue;} struct ...
/* iLink.c * Purpose: Contains the main functions of the iLinkman driver. * It contains functions that are exported for use by other modules, and contains the entry point function. * * Last Updated: 2012/02/29 * Programmer: SP193 */ #include <dmacman.h> #include <errno.h> #include <ioman.h> #include <intrman.h...
#include "nss_lcmapsd.h" #include <nss.h> #include <pwd.h> #include <errno.h> #include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <curl/curl.h> #include <json/json.h> /************************************************************************/ /* TYPEDEFS ...
/* * Copyright (C) 2001 <NAME> * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Library General Public License as published * by the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * ...
/* * * Copyright 2017 Samsung Electronics 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 require...
/* $Id: blast_query_info.c 516747 2016-10-17 19:00:07Z boratyng $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Governme...
/** * Copyright (c) 2021-2022 Sirvoid * * This software is released under the MIT License. * https://opensource.org/licenses/MIT */ #include <limits.h> #include <stdio.h> #include "raylib.h" #include "raymath.h" #include "player.h" #include "math.h" #include "world.h" #include "raycast.h" #include "screens.h" #i...
#include "telehash.h" #include <string.h> #include <stdlib.h> #include <stdint.h> #include "telehash.h" #include "telehash.h" #include "telehash.h" // for sha256 e3x_hash() // how many csids can be used to make a hashname #define MAX_CSIDS 8 // v* methods return this static struct hashname_struct hn_vtmp; hashname_t...
/*- * Copyright (c) 2012-2014 <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 condit...
/****************************************************************************** * * Copyright (c) International Business Machines Corp., 2007 * Created by <<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 *...
/* * @Author: Kienltb * @Date: 2016-12-29 16:50:54 * @Last Modified by: Kienltb * @Last Modified time: 2017-01-11 16:50:33 */ #include "nrf24l01.h" #include "gpio.h" #include "spi_bitbanging.h" extern void delay_ms(uint32_t time_ms); static uint8_t ce_pin; /* Chip enable mode use in RX and TX mode */ static uint...
// GCC 32/64-bit integer arithmetic support for 32-bit systems that can't link // to libgcc. // Function prototypes and descriptions are taken from // https://gcc.gnu.org/onlinedocs/gccint/Integer-library-routines.html. // This file may be #include'd by another file, so we try not to pollute the // namespace and we d...
/* * bstADT.c * * Copyright 2010: * <NAME> <<EMAIL>> * * 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 copyrigh...
// // InterviewAlgorithm.h // YNAlgorithm // // Created by ZYN on 2018/8/27. // Copyright © 2018年 <NAME>. All rights reserved. // #pragma mark - 算法奇数排在前面,偶数排在后面 - 遍历数组 判断 奇数 偶数 从头和尾部加入到新数组中 void sortAjust (int arr[], int n) { int resultArray[n]; int k = 0; int m = n - 1; for (int i = 0; i < n;...
/* * Compile this file together with the UnQLite database engine source code * to generate the executable. For example: * gcc -W -Wall -O6 unqlite_jx9_interp.c unqlite.c -o unqlite_jx9 */ /* * This simple program is a quick introduction on how to embed and start * experimenting with UnQLite without having to do ...
#include "mpu6050.h" /* * Configures mpu6050 power management and sensor accuracy. * Returns 0 if successfull * Returns 1 if there is no i2c response */ static int mpu6050_config(mpu6050_inst_t* inst) { uint8_t buffer[2]; int ret; /* configure power management */ buffer[0] = MPU6050_REG_POWER_MAN...
//version 3 : the below code is working fine for reading the data, it reads the data from model(HTTP base (webpy)) but I should complete below items: // saving the data to file // running the SIGNAL to call the controlState Function // Check the running data and confirm that the code does what is suppose to do //ve...
/* dck.c: dock snapshot (Warajevo .DCK) handling routines Copyright (c) 2003-2004 <NAME>, <NAME>, <NAME> Copyright (c) 2015 <NAME> Copyright (c) 2015 <NAME> $Id: dck.c 804 2016-06-01 10:46:07Z fredm $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU ...
/*s: lib_gui/libpanel/edit.c */ /* * Interface includes: * void plescroll(Panel *p, int top); * move the given character position onto the top line * void plegetsel(Panel *p, int *sel0, int *sel1); * read the selection back * int plelen(Panel *p); * read the length of the text back * Rune *pleget(Panel *p); ...
/** * 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 * ...
/* BEGIN_ICS_COPYRIGHT5 **************************************** Copyright (c) 2015-2017, Intel Corporation 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 copyrig...
#include "ci-menu.h" #include <memory.h> #include <glib/gi18n.h> enum CIMenuItemType { CIMenuItemTypeQuit = 0, CIMenuItemTypeShow, CIMenuItemTypeEditFont, CIMenuItemTypeEditFormat, CIMenuItemTypeEditMode, CIMenuItemTypeEditColor, CIMenuItemTypeSaveConfig, CIMenuItemTypeConnect, CIMe...
/* * Phoenix-RTOS * * hid_client - USB Human Interface Device * * Copyright 2019-2021 Phoenix Systems * Author: <NAME>, <NAME> * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include <errno.h> #include <stdio.h> #include <sys/list.h> #include <usbclient.h> #include "hid_client.h" struct { usb_d...
/******************************************************************** * File : basicd.h * Author : <NAME> Copyright (C) 1994-2021 * 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://m...
/****************************************************************************** * @file: uart_echo_irq.c * @purpose: Example / test program for LPC11xx UART interface * @version: V1.0 * @author: <NAME> * @date: 1. January 2012 * @license: Simplified BSD License * * Echoes characters received on UART, usi...
/* *timing.c: simple starter application for lab 1A and 1B * */ #include <stdio.h> // Used for printf() #include "xparameters.h" // Contains hardware addresses and bit masks #include "xil_cache.h" // Cache Drivers #include "xintc.h" // Interrupt Drivers #include "xtmrctr.h" // Timer Drivers #include "xtmrctr_l....
#pragma once #include <dirent.h> #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <time.h> #include <sys/stat.h> #include <pwd.h> #include <stdlib.h> #include <fcntl.h> #include <sys/ioctl.h> #include <sys/errno.h> #include <string.h> #include <grp.h> #include <uuid/uuid.h> #in...
/** * Rapid-prototyping protection schemes with IEC 61850 * * Copyright (c) 2014 <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 2 * of the License, or (at your ...
/* Copyright (c) (2020) Apple Inc. All rights reserved. * * corecrypto is licensed under Apple Inc.’s Internal Use License Agreement (which * is contained in the License.txt file distributed with corecrypto) and only to * people who accept that license. IMPORTANT: Any license rights granted to you by * Apple Inc....
/* * @brief I2C monitor ROM API declarations and functions * * @note * Copyright(C) NXP Semiconductors, 2014 * All rights reserved. * * @par * Software that is described herein is for illustrative purposes only * which provides customers with programming information regarding the * LPC products. This softwar...
/* * Copyright 2019 University of Washington, Max Planck Institute for * Software Systems, and The University of Texas at Austin * * 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 withou...
/* * Automatically Tuned Linear Algebra Software v3.10.3 * (C) Copyright 2001 <NAME> * * 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 ret...
/* $Id$ */ /* * Copyright (c) 2003-2005 <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: * * - Redistributions of source code must retain the above copyright * notice, t...
/* The MIT License (MIT) *Copyright © 2021 <NAME> - PUC Minas * *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 ...
/** * * \file * * \brief WINC1500 AP provision example. * * Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip produ...
#include "main.h" #include "stm32f4xx_hal.h" /* USER CODE BEGIN Includes */ /* vim: set ai et ts=4 sw=4: */ #include <string.h> #include <math.h> #include <stdlib.h> #include <stdarg.h> #include <stdbool.h> /* USER CODE END Includes */ /* Private variables ---------------------------------------------------------*/ T...
// btree_insert.c #include "btree1.h" extern bool debug; DbStatus btree1InsertKey(Handle *index, DbKeyValue *kv, uint8_t lvl, Btree1SlotType type) { DbMap *idxMap = MapAddr(index); uint32_t length; Btree1Slot *slot; Btree1Set set[1]; Btree1Page *page; int32_t max, cnt; int32_t idx, tst; DbStatus stat; uint8_t *ptr;...
/* * Copyright (C) 1992-1997 <NAME>, <EMAIL> * * This file is licensed under the terms of the GNU General Public * License, version 2, or any later version. See file COPYING for * information on distribution conditions. */ /* * This command is deprecated. The utility is in maintenance mode, * meaning we keep...
#include "tuner_display.h" // TODO alternate tunings static uint16_t notes[] = {E2, A2, D3, G3, B3, E4}; static uint16_t trans[] = {680, 960, 1280, 1710, 2210, 2880, 3700}; /* Given a frequency, compare with a tuning table, format and output. * output to ssd1306 oled */ void tuner_display(uint16_t f){ uint8_t s...
/* 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...
/* * PNG-parts * parts of a Portable Network Graphics implementation * Copyright 2018-2021 <NAME> * * Licensed under the MIT License. * * zread.c * zlib reader source */ #include "zread.h" #include <stdlib.h> #include <string.h> static int pngparts_zread_put_cb(void* prs, int ch); static unsigned long int png...
/* * Copyright (C) 2016-2017 Red Hat, Inc. * * Author: <NAME> * * This file is part of GnuTLS. * * GnuTLS 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 you...
#include "ucg.h" #include <stdlib.h> #include <stdio.h> int ucg_sdl_get_key(void); //extern const ucg_fntpgm_uint8_t ucg_font_ncenB18[] UCG_FONT_SECTION("ucg_font_ncenB18"); //extern const u8g_fntpgm_uint8_t u8g_font_ncenB18[] U8G_FONT_SECTION("u8g_font_ncenB18"); ucg_t ucg; unsigned char rl_bitmap[] = { 3, 0...
/* * Copyright (C) 2013 F4OS Authors * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publis...
/** * @file usart.c * @author <NAME> * @website http://www.amperture.com * @date 12 Jan 2016 * @brief USART Peripheral Driver Code for stm32f4xx * * This file contains private and public functions for using the USART * peripherals on an stm32f4xx microcontroller. Comes as part of the * stm32f4xx-amperture-pe...
/* caLesson5a.c by <NAME>, 2007 This lesson introduces writing to channels and waiting for channels. We will write a value to a (simulated) device which takes a while and wait until the device is done. The device provides a DONE record. We will use a monitor to get informed when the device is done wi...
//------------------------------------------------------------------------------ // sokol-gl-test.c //------------------------------------------------------------------------------ #define SOKOL_IMPL #define SOKOL_DUMMY_BACKEND #include "sokol_gfx.h" #define SOKOL_GL_IMPL #include "sokol_gl.h" #include "test.h" stati...
/* GStreamer * Copyright (C) 2016 <NAME> <<EMAIL>> * * gstosxaudiodeviceprovider.c: OSX audio device probing and monitoring * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; eithe...
/* GStreamer * Copyright (C) 2011 <NAME> <<EMAIL>>. * Copyright (C) 2011 Nokia Corporation. All rights reserved. * Contact: <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Softwar...
#include <string.h> #include "steno.h" #include "store.h" #include <stdio.h> #include "hist.h" #include "dict_editing.h" #include "stroke.h" #ifndef STENO_NOUI #include "disp.h" #endif editing_state_t editing_state = ED_IDLE; // Text buffer for entering translation uint8_t entry_buf[128]; uint8_t entry_buf_len = 0; st...
/* Copyright 2015, 2017, Bloomberg Finance L.P. 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 o...
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "../port/error.h" #include "io.h" #include "devtab.h" #include "ether.h" enum { IDport = 0x0100, /* anywhere between 0x0100 and 0x01F0 */ /* Commands */ SelectWindow = 0x01, /* SelectWindow command */ StartC...
// 0x07013F68 - 0x07014068 static const Vtx bits_seg7_vertex_07013F68[] = { {{{ 307, 102, -818}, 0, { 0, -2076}, {0xbb, 0x73, 0x84, 0xff}}}, {{{ -306, 0, -767}, 0, { 480, 990}, {0xbb, 0x73, 0x84, 0xff}}}, {{{ -306, 102, -818}, 0, { 0, 990}, {0xbb, 0x73, 0x84, 0xff}}}, ...
#include "gui_use.h" int gui_expl_interactive(gui_obj *gui){ if (gui->modal != EXPLODE) return 0; if (gui->step == 0) { /* try to go to next step */ gui->step = 1; gui->free_sel = 1; } /* verify if elements in selection list */ if (gui->step == 1 && (!gui->sel_list->next || (gui->ev & EV_ADD))){ ...
/* * (C) Copyright 2013 Kurento (http://kurento.org/) * * 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 applicab...
/* * Copyright ProcessOne 2006-2009. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in * compliance with the License. You should have received a copy of the * Erlang Public License along with this softwa...
/** * Copyright (c) 2015 - 2017, Nordic Semiconductor ASA * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice,...
/* * Copyright (c) 2014 <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 all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2017-2018, STMicroelectronics * Copyright (c) 2016-2018, Linaro Limited */ #include <boot_api.h> #include <console.h> #include <drivers/gic.h> #include <drivers/stm32_uart.h> #include <kernel/generic_boot.h> #include <kernel/dt.h> #include <kernel/misc.h> ...
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <rte_atomic.h> #include <rte_debug.h> #include <rte_eal.h> #include <rte_errno.h> #include <rte_ethdev.h> #include <rte_hexdump.h> #include <rte_launch.h> #include <rte_lcore.h> #define APP_NAME "dpdk-rx-intr...
#include <arpa/inet.h> #include <string.h> #include <assert.h> #include <errno.h> #include <stdio.h> #include "utarray.h" #include "utstring.h" #include "kvsp-bconfig.h" UT_array /* of string */ *output_keys; UT_array /* of string */ *output_defaults; UT_array /* of int */ *output_types; #define x(t) #t, char *sup...
/* Author: <NAME> * Copyright (C) 2018, utplay v0.1 */ #include <assert.h> #include <dirent.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> #include <SDL.h> #include <SDL_mixer.h> typedef struct song { char *title; struct...
/** * @file pomp_addr.c * * @brief Socket address parsing/formatting utilities. * * @author <EMAIL> * * Copyright (c) 2014 Parrot S.A. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: *...
/* * 06-lcd.c * * Created: 04.11.2020 10:57:46 * Author : Michal */ /*********************************************************************** * * Stopwatch with LCD display output. * ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2 * * Copyright (c) 2017-2020 <NAME> * Dept. of Radio Electronics,...
/* Unix SMB/CIFS implementation. Test suite for libnet calls. Copyright (C) <NAME> 2007 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 (...
/* * This file is released under the terms of the Artistic License. Please see * the file LICENSE, included in this package, for details. * * Copyright (C) 2002 <NAME> & Open Source Development Labs, Inc. * Copyright (C) 2004 <NAME> & MySQL AB. * */ #include <nonsp_payment.h> int execute_payment(struct db_co...
#include <assert.h> #include <ctype.h> #include <stdio.h> #include <string.h> #include "matcher.h" static void matcher_cleanup(Matcher* matcher); Matcher* matcher_build(void) { Matcher* matcher = (Matcher*) malloc(sizeof(Matcher)); memset(matcher, 0, sizeof(Matcher)); return matcher; } int matcher_set_pa...
#include <io.h> /** x86 private attributes **/ char* real_screen = (char*)RAMSCREEN; char screen[SIZESCREEN]; char* vidmem=(char*)RAMSCREEN; /* screen video memory */ char fcolor=LightGrey; /* console foreground color */ char bcolor=Black; /* console background color */ char x; /* console...
/* * slowrx - an SSTV decoder * * * * * * * * * * * * * * * * Copyright (c) 2007-2013, <NAME> (OH2EIQ [at] sral.fi) */ #pragma once #include "types.h" #include "kiwi.h" #include "kiwi_assert.h" #include "coroutines.h" #include "data_pump.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <m...
/************************************************************************ * LEGALESE: "Copyright (c) 2015, Dell Inc. All rights reserved." * * This source code is confidential, proprietary, and contains trade * secrets that are the sole property of Dell Inc. * Copy and/or distribution of this source code or disassemb...
// **** Include libraries here **** // Standard libraries #include <stdio.h> #include <stdbool.h> // Microchip libraries #include <xc.h> #include <plib.h> // User libraries #include "HardwareDefs.h" #include "Buttons.h" #include "Leds.h" #include "Oled.h" #include "OledDriver.h" // **** Set macros and preprocessor d...
/* Genetic algorithm to explore xorshift-multiply-xorshift hashes. */ #include <math.h> #include <time.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #define POOL 40 #define THRESHOLD 2.0 // Use exact when estimate is below this #define DONTCARE 0.3 // Only print tuples with bias below this thr...
/* # _____ ___ ____ ___ ____ # ____| | ____| | | |____| # | ___| | ___| ____| | \ PSPDEV Open Source Project. #----------------------------------------------------------------------- # Review pspsdk README & LICENSE files for further details. # # $Id: bin2o.c 1988 2006-08-06 12...
/* Copyright (c) 2020 <NAME> * * 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 the following disclaimer....
/* * 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...
/* * Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. */ /* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as publis...
/* Copyright (c) 2002-2017 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "array.h" #include "message-id.h" #include "mail-storage.h" #include "index-thread-private.h" static uint32_t thread_msg_add(struct mail_thread_cache *cache, uint32_t uid, uint32_t msgid_idx) { struct mai...