text
stringlengths
5.8k
28.2k
/******************************************* * @file control * @note 控制相关的函数,包括直立,速度,转向 * @author psq&btk * @software MDK * @target core STC8H8K64S4 *******************************************/ #include "control.h" int16 ad_test[4] = {0, 0, 0, 0}; /*********************...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <barrelfish/barrelfish.h> #include <barrelfish/nameservice_client.h> #include <barrelfish/inthandler.h> #include <driverkit/driverkit.h> #include <usb/usb.h> #include <if/usb_driver_defs.h> #include <if/usb_manager_defs.h> #include <if/usb_manager_r...
/*- * Copyright (c) 2007-2009 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list ...
// ACME - a crossassembler for producing 6502/65c02/65816/65ce02 code. // Copyright (C) 1998-2016 <NAME> // Have a look at "acme.c" for further info // // Global stuff - things that are needed by several modules // 4 Oct 2006 Fixed a typo in a comment // 22 Nov 2007 Added warn_on_indented_labels // 2 Jun 2014 Added w...
/* LDBS: LibDsk Block Store access functions * * Copyright (c) 2016 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without li...
#include <elf.h> #include <err.h> #include <libgen.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <unistd.h> #include "../us/include/twz/_obj.h" typedef Elf64_Half Elf64_Hashelt; size_t fotentry = 0; #define DYN_CNT 32 struct e...
/* Copyright 2015 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
/* BOGL - Ben's Own Graphics Library. Written by <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 versio...
/*------------------------------------------------------------------------ * Copyright 2007-2009 (c) <NAME> <<EMAIL>> * * This file is part of the ZBar Bar Code Reader. * * The ZBar Bar Code Reader is free software; you can redistribute it * and/or modify it under the terms of the GNU Lesser Public License as...
#include <drivers/ata.h> #include <drivers/pit.h> #include <io/io.h> #include <mem/heap.h> #include <stdio.h> #include <string.h> #include <util/logger.h> struct { uint16_t base; uint16_t ctrl; uint16_t bus_master_ide; uint8_t IRQ_disable; } ch_regs[2]; ATA_drive_t ATA_drives[4]; static char *ATA_ERR_in_engl...
/* * Copyright 2018 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * The board-specific quirks needed by firmware updater. */ #include <assert.h> #include <stdio.h> #include <string.h> #include <sys/types.h> #i...
#include <stdio.h> #include <assert.h> #include <stdint.h> typedef struct { __uint32_t S; // sign __uint32_t E; // exponent __uint32_t M; // mantissa } f32_t; f32_t float_to_f32(float src) { f32_t ret; __uint32_t tmp = *(__uint32_t*)(&src); ret.S = (tmp >> 31) & 0x1; ret.E = (tmp >> 23) & 0xFF; ret.M = (tmp >...
#include <gb/gb.h> #include <rand.h> #include "defines.h" #include "title.h" #include "fade.h" #include "gamestate.h" #include "sound.h" #include "ram.h" #include "data/bg/titlescreen.h" #include "data/bg/titlescreen_bg.h" #include "characters.h" #include "data/sprite/title_cat.h" extern UBYTE title_song_data; extern...
/******************************Module*Header**********************************\ * * ******************* * * GDI SAMPLE CODE * * ******************* * * Module Name: textout.c * * Content: * * glyph rendering module. Uses glyph cach...
/* alloc.c - memory allocation subsystem */ #include "copyright.h" #include "config.h" #include "system.h" #include "typedefs.h" /* required by mushconf */ #include "game.h" /* required by mushconf */ #include "alloc.h" /* required by mushconf */ #include "flags.h" /* required by mushconf */ #include "htab.h" /* ...
/* Copyright (c) <2007-2012> <<NAME> - <NAME>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
/* Copyright (c) 2012, Broadcom Europe 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: * Redistributions of source code must retain the above copyright notice, this list of conditions and t...
/* Copyright 2021 <NAME> MIT license, see LICENSE file. In this example, we simulate a stream coming for example from the serial port. This stream contains packets. Each packet has a header, a know byte, followed by the size, then the packet content, and finally a CRC checksum. Sometimes ...
// SPDX-License-Identifier: GPL-2.0 /* * Si5324 clock driver * * Copyright (C) 2017-2018 Xilinx, Inc. * * Author: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ #include <linux/module.h> #include <linux/types.h> #include "si5324drv.h" /** * si5324_rate_approx - Find closest rational approximation N2_LS/N3 fraction. ...
#include <stddef.h> #include <stdint.h> #include <stdbool.h> #include "farptr.h" #include "kstring.h" #include "io.h" #include "timer.h" #include "memutils.h" #include "print.h" #include "checksum.h" #include "array.h" #include "acpi.h" #define EBDA_BEGIN_ADDR 0x000E0000 #define EBDA_END_ADDR 0x000FFFF...
// Copyright (c) 2018, <NAME>, All rights reserved. #include <fcntl.h> #include <netdb.h> #include <netinet/tcp.h> #include <poll.h> #include <string.h> #include <sys/socket.h> #include <sys/types.h> #include <unistd.h> #include "con.h" #include "domain.h" #include "dtime.h" #include "gqlsub.h" #include "gqlvalue.h" ...
/******************************************************************************* * FILE NAME: user_routines.c <FRC VERSION> * * DESCRIPTION: * This file contains the default mappings of inputs * (like switches, joysticks, and buttons) to outputs on the RC. * * USAGE: * You can either modify this file to fit your...
/* * iCore_software -- Software for TuMan RISC-V (RV32I) Processor Core. * * Copyright (C) 2019-2020 <NAME> <<EMAIL>>. * Copyright and related rights are licensed under the MIT license. * * Data: 2020.02.07 * Description: tcp packet processing of icore_software. */ #include "tcp.h" #include "udp.h" //***...
/* Copyright 2010 SourceGear, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
/* * Copyright (C) 2019, 2020 by <NAME> * * Permission to use, copy, modify, and/or distribute this software * for any purpose with or without fee is hereby granted. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES * OF ...
#include <assert.h> #include <ctype.h> #include <stdint.h> #include <stdlib.h> #include "../shim.h" #include "locale.h" // TODO: __ctype32_b, __ctype32_tolower, __ctype32_toupper? static uint16_t shim_ctype_b_table[384] = { 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
#include <stdio.h> #include <conio.h> #include <string.h> #include <6502.h> #include "logo.h" #define SERVER_MESSAGES 0 #define DEBUG_INTERACTIVE 0 #define RASTER_INTERRUPT 1 #define SEND_DELAY 2 const unsigned char baud1200[] = { 0x08, 0x00, 0x00 }; /* JSON formatted login message. */...
/* Change int h to int gh everywhere DES June 1994 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "clustalw.h" #define MIN(a,b) ((a)<(b)?(a):(b)) #define MAX(a,b) ((a)>(b)?(a):(b)) #define gap(k) ((k) <= 0 ? 0 : g + gh * (k)) #define tbgap(k) ((k) <= 0 ? 0 : tb ...
#include "path.h" //------------------------- //Module path //------------------------- //------------------------- //NAMESPACE path //------------------------- any path_normalizeArray(DEFAULT_ARGUMENTS); //forward declare any path_splitPath(DEFAULT_ARGUMENTS); //forward declare any path_resolve(DEFAULT_ARGUMENTS); //f...
/* * Hardware SPI driver for MMC/SD/SDHC cards * * Part of esp-open-rtos * Copyright (C) 2016 <NAME> <<EMAIL>> * BSD Licensed as described in the file LICENSE */ #include <esp/gpio.h> #include <esp/spi.h> #include <espressif/esp_common.h> #include "sdio.h" #define BUS 1 #define BV(x) (1 << (x)) #define MS 1000...
// Author: <NAME> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <stdint.h> #include <math.h> typedef unsigned char byte; typedef uint16_t word; int poly_degree(byte poly); byte gf_reduce_4(byte poly); byte gf_mult_4(byte poly1, byte poly2); void print_byte(byte out); byte c...
#include "quin_huffman.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include "tools.h" // #define DEBUG_OUTPUT int quinary_node_cmp(const void *node_1, const void *node_2) { quin_huffman_node_t *const *node_1_ptr = node_1; quin_huffman_node_t *const *node_2_ptr = node_2; if ((*node_1_ptr)->...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <math.h> #include <omp.h> #include "TinyDFT.h" #include "TinyDFT_typedef.h" #include "H2ERI.h" #include "utils.h" // In H2Pack void TinyDFT_copy_shells_to_H2ERI(TinyDFT_p TinyDFT, H2ERI_p h2eri) { h2eri->natom ...
/* * Copyright (C) 2021 <NAME> <NAME> (self), <NAME> (Guarnerix Inc dba Liquidaty) * All rights reserved * * This file is part of zsv/lib, distributed under the license defined at * https://opensource.org/licenses/MIT */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #ifdef ZSV_EX...
/* * Copyright 2006 Intel 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/licenses/LICENSE-2.0 * * Unless required by a...
/** * Copyright (C) 2019-2020 Tristan * For conditions of distribution and use, see copyright notice in the COPYING file. * * This file contains the main functions for HTTP/2. */ #include "core.h" #include <string.h> #include <stdlib.h> #include <stdint.h> #ifdef BENCHMARK #include <time.h> #endif ...
#include "time.h" #include "graphics.h" //Timezone, in hours offset from UTC/GMT //TODO: Let user configure in a nice way //TODO: Also let user set the time static int timezone= -6; void setTimezone(int offset) { //sanity check if(offset > 12 || offset < -12) { puts("ERROR: Timezone out of range -12 to 12")...
#include <h2o/rangeclient.h> #include <fcntl.h> #include <zconf.h> /** * See the syntax of HTTP |Range| header at * https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range */ static h2o_iovec_t range_str=(h2o_iovec_t){H2O_STRLIT("range")}; static size_t file_size = 0; size_t h2o_rangeclient_get_bw(h2o_ran...
// SPDX-License-Identifier: GPL-2.0+ #include <linux/init.h> #include <linux/module.h> #include <linux/pci.h> #include <linux/types.h> #include <linux/export.h> #include <linux/slab.h> #include <asm/io.h> #include <linux/io.h> #include <linux/mfd/core.h> #include <linux/platform_device.h> #include <linux/ioport.h> #inc...
/* ********************************************************** * Copyright (c) 2007-2009 VMware, Inc. All rights reserved. * **********************************************************/ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
#include <M5Stack.h> #include "vexdevice.h" #include "truningpoint.h" // MStack Faces' keyboard - begin #define KEYBOARD_I2C_ADDR 0X08 #define KEYBOARD_INT 5 // MStack Faces' keyboard - end #define task int boolean bStopTasksBetweenModes = false; //int main(); void __mapping_port__();...
#include "diary.h" int cy, cx; time_t raw_time; struct tm today; struct tm curs_date; struct tm cal_start; struct tm cal_end; void setup_cal_timeframe() { raw_time = time(NULL); localtime_r(&raw_time, &today); curs_date = today; cal_start = today; cal_start.tm_year -= YEAR_RANGE; cal_start.tm...
#include "inc/odt.h" int readhistoryfile(void); int writehistoryfile(void); void inserthistoryrec( struct odtdata * ); void deletehistoryrec( double, double ); int listhistory( double, double ); int cmonth2julian( char * ); void julian2cmonth( int, char * ); float getpwval( int,float ); extern void odtintensity( stru...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (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 * o...
/* * Copyright (c) 2017, MammothDB * 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 conditions ...
/* * Copyright (c) 2017 Intel 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/licenses/LICENSE-2.0 * * Unless required by applicable law or...
/* $Header: /usr/local/devel/psx-linux/src/RCS/psx.c,v 1.4 1998/09/25 14:10:57 fliang Exp fliang $ $Log: psx.c,v $ Revision 1.4 1998/09/25 14:10:57 fliang modified to run on Dec alpha Revision 1.3 1998/09/25 14:09:15 fliang modified to run in Linux box Revision 1.2 1998/09/25 14:07:19 fliang sx program was mod...
/*- * Copyright (c) 1994-1998 <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 permitted provided that the following conditions * are met: * 1...
/* * Copyright (c) Imazen LLC. * No part of this project, including this file, may be copied, modified, * propagated, or distributed except as permitted in COPYRIGHT.txt. * Licensed under the GNU Affero General Public License, Version 3.0. * Commercial licenses available at http://imageresizing.net/ */ #include ...
/* * parse xen-specific informations out of elf kernel binaries. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License. * * This library is distributed in...
/* * Copyright (c) 2021 <NAME> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial ...
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <locale.h> #include <ctype.h> #include <errno.h> #include <asvtools.h> #include <manycode.h> #ifdef DMALLOC #include <dmalloc.h> #endif enum {MODE_CONVERT, MODE_TEST, MODE_GUESS, MODE_BENCHMARK}; sta...
#include <stdlib.h> #include <limits.h> #include <assert.h> #include <sys/time.h> #include "rdb.h" #include "util.h" #include "eslaver_util.h" #include "zmalloc.h" #include "ziplist.h" /*** redis.c ***/ /* Return the UNIX time in microseconds */ long long ustime(void) { struct timeval tv; long long ust; ...
/*ni * See LICENSE for licensing information */ #include "torflow.h" struct _TorFlowAggregator { ShadowLogFunc slogf; gboolean loadedInitial; GString* filepath; GHashTable* relayStats; gdouble nodeCap; gint version; }; typedef struct _TorFlowRelayStats { GString * nickname; GString * identity; gint descri...
/******************************************************** * Engine is our container for our main program logic * * This allows us to only place code in main.c that * interacts with the user through our framework and * thus change framework if needed. * ********************************************************/ ...
/* * Copyright (c) 2016-2017, Circonus, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this l...
/******************************************************************************\ File: rc66x.h Author: <NAME> <<EMAIL>> License: MIT This implements the RC662 family of RFID reader ICs * MFRC630 * MFRC631 * CLRC663 * Other compatibles **************************************************************...
// Compilation: cmd='cc [-DTIMEOUT_S=30] -O3 -DPOSIX -DREADWRITE io_perf.c'; echo $cmd > build.log; $cmd // cmd='cc [-DTIMEOUT_S=30] -O3 -DADIOS2 -DREADWRITE io_perf.c'; echo $cmd > build.log; $cmd // Submit perf test: sbatch dom_slurm.sbatch // #ifdef ADIOS2_HDF5 #define ADIOS2 #endif #include <stdlib.h>...
/* * This file is part of the kyuba.org Khonsu project. * See the appropriate repository at http://git.kyuba.org/ for exact file * modification records. */ /* * Copyright (c) 2009, Kyuba Project Members * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and assoc...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** ** This notice applies to any and all portions of this file * that are not ...
/* * SMALL.c * * Source code for the 'tinygames' project. * * Created: 11/22/2016 5:30:05 PM * Author: <NAME> * Copyright (c) 2016/2017 <NAME>, GPL v2 or higher * exceptions: function 'wait_until' is Copyright (c) 2010 <NAME> */ /* Timing CRAP */ /* I am using a 10.7Mhz crystal, beacuse that'...
/* ==================================================================== * 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 t...
#include<stdlib.h> #include<stdio.h> #include"places.h" #define CLR_EDGE (25) #define PLACE_SIZE (10) #define PLACE_BSIZE (20) #define TYPE_CROSS (0) #define TYPE_SOURCE (1) #define TYPE_PLACE (2) #define NOT_SELECTED (0) #define SELECTED_SRC (1) #define SELECTED_DST (2) #define SELECTED_POS (3) int places_reds[] ...
/* * Copyright (C) 2007 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...
// SPDX-License-Identifier: BSD-3-Clause // Copyright SUSE LLC #include <assert.h> #include <errno.h> #include <limits.h> #include <math.h> #include <netinet/ip.h> #include <netlink/attr.h> #include <netlink/cache.h> #include <netlink/msg.h> #include <netlink/netlink.h> #include <netlink/route/link.h> #include <netlin...
/** * \file * * \brief Qtouch example for SAM. * * Copyright (c) 2011-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 products. * It...
/** * All new code in this distribution is Copyright 2005 by North Carolina * State University. All rights reserved. Redistribution and use in * source and binary forms are permitted provided that this entire * copyright notice is duplicated in all such copies, and that any * documentation, announcements, and...
/* $XConsortium: fencode.h,v 1.4 94/04/17 20:34:45 rws Exp $ */ /**** module fencode.h ****/ /****************************************************************************** Copyright (c) 1993, 1994 X Consortium Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associat...
/* * Copyright 2018-2021 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #include "../../config.h" #include "../../util/arr.h" #include "../../util/strcmp.h" #include "../../util/rmalloc.h" #include "../../filter_tree/filter_tree.h" #include "../.....
#include <stdio.h> #include <stdlib.h> #include <arpa/inet.h> #include <sys/socket.h> #include <netdb.h> #include <ifaddrs.h> #include <string.h> #include <malloc.h> #include <errno.h> #include <string.h> #include <stdint.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <s...
#include "readvariant.h" #include "readfasta.h" #include <assert.h> #include "htslib/hts.h" // read bgzipped VCF files // count the # of variants in VCF file to allocate space for VCF variant array int count_variants(char* vcffile, char* sampleid, int* samplecol) { FILE* fp = fopen(vcffile, "r"); if (fp == NULL) {...
#include <stddef.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <stdint.h> #include <limits.h> #include <quickjs.h> #include <un7z.h> #include "libstd.h" #define PROG_NAME "tss" #if defined(_WIN32) #define OS_PLATFORM "win32" #elif defined(__APPLE__) #define OS_PLATFORM "da...
/*************************************************************************** Capcom System QSound(tm) ======================== Driver by <NAME> (<EMAIL>) and <NAME> (<EMAIL>) A 16 channel stereo sample player. QSpace position is simulated by panning the sound in the stereo space. Register 0 xxbb x...
/* Legal Notice: Some portions of the source code contained in this file were derived from the source code of Encryption for the Masses 2.02a, which is Copyright (c) 1998-2000 <NAME> and which is governed by the 'License Agreement for Encryption for the Masses'. Modifications and additions to the original source c...
/* copyright 2013 <NAME> and contributors (see LICENSE for licensing information) */ #define _GNU_SOURCE #include <time.h> #include <glib.h> #include <errno.h> #include <string.h> #include <stdbool.h> #include <unistd.h> #include <sys/wait.h> #include "dbus.h" #include "x.h" #include "notification.h" #include "dunst...
#include "stride.h" void Measure(CHAIN **Chain, int NChain, int El, COMMAND *Cmd, FILE *Out) { QUALITY QualDssp_H, QualDssp_E, Qual_H, Qual_E; int i, Cn, Flag1, Flag2; float Q2_, Q2_Dssp, O_, O_Dssp; float Content, AlphaCont, BetaCont, PerCor, PerCorDssp; int HelAlp, HelPI, Hel310, Sheet, Turn; int YYN...
/* $OpenBSD: hidms.c,v 1.3 2011/04/07 15:30:16 miod Exp $ */ /* $NetBSD: ums.c,v 1.60 2003/03/11 16:44:00 augustss Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME> (<EMAIL>) at * Carlstedt R...
#include "ece.h" // This file implements a parser for the `Crypto-Key` and `Encryption` HTTP // headers, used by the older "aesgcm" encoding. The newer "aes128gcm" encoding // includes the relevant information in a binary header, directly in the // payload. #include <assert.h> #include <inttypes.h> #include <stdio.h>...
// Copyright 2013 the Neutrino authors (see AUTHORS). // Licensed under the Apache License, Version 2.0 (see LICENSE). #include "alloc.h" #include "condition.h" #include "log.h" #include "runtime.h" #include "value-inl.h" // Declare a unit test method. The suite name must match the file the test // case is declared i...
/* Fetch an MSA from a multi-MSA database (such as Pfam or Rfam). * * From squid's afetch (1999) * SRE, Mon May 28 08:00:47 2007 [Janelia] [Chemical Brothers, Exit Planet Dust] * SVN $Id: esl-afetch.c 393 2009-09-27 12:04:55Z eddys $ */ #include "esl_config.h" #include <stdlib.h> #include <stdio.h> #include <str...
/* $OpenBSD: privsep_pcap.c,v 1.16 2010/09/21 04:08:12 henning Exp $ */ /* * Copyright (c) 2004 <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...
// EUSCIA0.c // Runs on MSP432 // Interrupt-driven device driver for the UART UCA0. // Daniel and <NAME> // October 19, 2017 // Modified by EE345L students <NAME> && <NAME> // Modified by EE345M students <NAME> && <NAME> /* This example accompanies the books "Embedded Systems: Introduction to the MSP432 Microcontro...
/* * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * */ /** \file * \brief Utility functions for fortran i.o. */ #ifdef _WIN64 #include <io.h> #include <fcntl.h>...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <ctype.h> #ifdef _WIN64 #include <windows.h> void clear(){ system("cls"); } #elif _WIN32 #include <windows.h> void clear(){ system("cls"); } #else #include <unistd.h> void clea...
/* ----------------------------------------------------------------------- * * * Copyright 2006-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 Softwa...
#define _GNU_SOURCE #include <arpa/inet.h> #include <errno.h> #include <fcntl.h> #include <netinet/in.h> #include <poll.h> #include <pthread.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/epoll.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/types.h> #in...
/* #Fields: date time s-sitename s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-substatus sc-win32-status sc-bytes cs-bytes time-taken Ej. 2012-06-20 03:38:17 W3SVC3 P2396083 172.16.31.10 GET / - 80 - 192.168.127.1...
/* * pr_pset14_09.c * * Colossus Airlines (from exercise 8) acquires a second plane (same capacity) * and expands its service to four flights daily (Flights 102, 311, 444, and * 519). Expand the program to handle four flights. Have a top-level menu that * offers a choice of flights and the option to quit. Se...
/***************************************************************************//** * @file * @brief A sample policy file that implements the callbacks for the * Zigbee Over-the-air bootload cluster server. ******************************************************************************* * # License * <b>Copyright 201...
#include <stdlib.h> #include <string.h> #include "engine/common.h" #include "engine/math.h" #include "engine/graphics.h" #include "engine/sound.h" #include "game/game.h" #include "game/stage.h" #include "game/npc.h" #include "game/player.h" #include "game/npctab.h" #include "game/caret.h" #include "game/dmgnum.h" u8...
/* * ircd-hybrid: an advanced Internet Relay Chat Daemon(ircd). * irc_string.c: IRC string functions. * * Copyright (C) 2002 by the past and present ircd coders, and others. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as pub...
#include <stdlib.h> #include <time.h> #include <math.h> #include "raylib.h" #include "player.h" #include "enemies.h" //#define PLATFORM_WEB #define BACKGROUNDCOLOR CLITERAL(Color){ 181, 181, 181, 255 } #if defined(PLATFORM_WEB) #include <emscripten/emscripten.h> #endif //----------------------------------------...
/* * CMUCS AFStools * dumpscan - routines for scanning and manipulating AFS volume dumps * * Copyright (c) 1998, 2001, 2004 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyrig...
/****************************************************************************** * Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved. * gala-gopher licensed under the Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mu...
static char *rcsid="$Id: glmesh.c,v 2.42 2001/05/15 15:23:45 petzoldt Exp $"; #include <math.h> #include <stdio.h> #include <stdlib.h> #include "glmesh.h" #include "glm-internal.h" /*nisolev=21; isoline_distance=0.05; icol=0; eval=0 showmat=0 */ /* singleton data -- put this into application options of rnd */ static ...
/* * (c) 2017 <NAME> & <NAME> -- This is free software * Feel free to copy and/or modify and/or distribute it, * provided this notice, and the copyright notice, are preserved. * REV01 Mon Oct 2 2017 * START Mon Sep 25 2017 */ #include<stdio.h> #include<stdlib.h> #include<string.h> #include<ctype.h>...
/* ------------------------------------------------ * * The MIT License (MIT) * Copyright (c) 2020 <EMAIL> * ------------------------------------------------ */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <pthread.h> #include <GLES2/gl2.h> #include "util_egl.h" #include "ass...
#ifndef CUTEST_H #include <setjmp.h> #include <stdarg.h> #include <time.h> #include <assert.h> #include <setjmp.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #define CUTEST_VERSION "CuTest 1.5" /* INTERFACE */ char *CuStrAlloc(int size); char *CuStrCopy(const char *old); #define C...
/* * Copyright (C) 2017 XRADIO TECHNOLOGY CO., 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,...