text
stringlengths
3.08k
10.5k
// moves.c #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <time.h> #include "pdchess.h" void trimCrLf(char * str) { int i = strlen(str); // Or: while (i > 0 && strchr("\r\n", str[i - 1])) { ... } while (i > 0 && (str[i - 1] == '\r' || str[i - 1] == '\n')) { str[i - 1] = '...
/* S H O W S H O T . C * BRL-CAD * * Copyright (c) 2004-2014 United States Government as represented by * the U.S. Army Research Laboratory. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 a...
/* * 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 * distributed ...
/** * ,---------, ____ _ __ * | ,-^-, | / __ )(_) /_______________ _____ ___ * | ( O ) | / __ / / __/ ___/ ___/ __ `/_ / / _ \ * | / ,--´ | / /_/ / / /_/ /__/ / / /_/ / / /_/ __/ * +------` /_____/_/\__/\___/_/ \__,_/ /___/\___/ * * Crazyflie control firmware * * Copyright (...
#include "f2c.h" #include "blaswrap.h" /* Table of constant values */ static doublecomplex c_b1 = {1.,0.}; static integer c__1 = 1; /* Subroutine */ int zpot02_(char *uplo, integer *n, integer *nrhs, doublecomplex *a, integer *lda, doublecomplex *x, integer *ldx, doublecomplex *b, integer *ldb, doublereal *rwork...
/* * See the file LICENSE for redistribution information. * * Copyright (c) 2005, 2011 Oracle and/or its affiliates. All rights reserved. * * $Id$ */ #include "bench.h" static int b_del_usage(void); int b_del(int argc, char *argv[]) { extern char *optarg; extern int optind, __db_getopt_reset; DB *dbp; DBC ...
/* * PinDefinitionsAndMore.h * * Contains IRMP_INPUT_PIN definitions for IRMP examples for various platforms * as well as includes and definitions for LED_BUILTIN * * Copyright (C) 2020 <NAME> * <EMAIL> * * This file is part of IRMP https://github.com/ukw100/IRMP. * * IRMP is free software: you can r...
/*- * Copyright (c) 2013 <NAME> <<EMAIL>> * Copyright (c) 2015 Semihalf. * 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 copyrig...
/* * * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com * * The contents of this file are provided under the Software License * Agreement that you accepted before downloading this file. * * This source forms part of the Software and can be used for educational, * training, and demonstration purpos...
/* * 3d.c * * Author: <NAME> * adapted code from: * https://github.com/majestik666/Beagle_GPIO/blob/master/Beagle_GPIO_Nokia6100_test_3d.cc */ #include <stdint.h> #include "colors.h" #include "3D.h" #define abs(a) (a>0?(a):-(a)) uint32_t frame[MAX_X_3D*MAX_Y_3D]; // Vertices const int nbPts = 8; const fl...
/* * zzuf - general purpose fuzzer * * Copyright © 2002—2015 <NAME> <<EMAIL>> * 2012 <NAME> <<EMAIL>> * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What the Fuc...
/* * RELIC is an Efficient LIbrary for Cryptography * Copyright (c) 2009 RELIC Authors * * This file is part of RELIC. RELIC is legal property of its developers, * whose names are not listed here. Please refer to the COPYRIGHT file * for contact information. * * RELIC is free software; you can redistribute it a...
/* * Copyright 2000, International Business Machines Corporation and others. * All Rights Reserved. * * This software has been released under the terms of the IBM Public * License. For details, see the LICENSE file in the top-level source * directory or online at http://www.openafs.org/dl/license10.html */ /* ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file Examples_MIX/ADC/ADC_SingleConversion_TriggerSW_IT/Src/stm32l5xx_hal_msp.c * @author MCD Application Team * @brief HAL MSP module. *****************************************************...
/*-----------------------------------------------------------------------*/ /* Low level disk control module (C)ChaN, 2009 */ /*-----------------------------------------------------------------------*/ #include "diskio.h" /* Low level SPI control functions */ void init_spi (void); ...
#include <stdio.h> #include "v810_cpu.h" #include "vb_types.h" #include "v810_mem.h" #include "rom_db.h" static unsigned long crc_table[256]; ROM_INFO rom_db[] = { { "Unknown", 0x00000000, "N/A" }, { "3D Tetris (U)", 0xBB71B522, "Good" }, { "Galactic Pinball (JU)", ...
#include "core.h" #ifdef __MSYS__ #ifndef LUALIBS_PATH #define LUALIBS_PATH "lualib/?.lua;lualib/?/init.lua;./?.lua;./?/init.lua;script/?.lua;script/?/init.lua;" #endif #ifndef LUACLIBS_PATH #define LUACLIBS_PATH "luaclib/?.so;luaclib/lib?.so;./?.so;luaclib/msys-?.dll;luaclib/?.dll;./msys-?.dll;./?.dll;" #endi...
/* $Id: crossblit.c,v 1.18 2008/01/20 22:14:56 pekberg Exp $ ****************************************************************************** Graphics library for GGI. Copyright (C) 1997 <NAME> [<EMAIL>] Copyright (C) 1998 <NAME> [<EMAIL>] Copyright (C) 1998 <NAME> [<EMAIL>] Copyright (C) 1999 <NAME> [<E...
/* * SiRF audio card driver * * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company. * * Licensed under GPLv2 or later. */ #include <linux/platform_device.h> #include <linux/module.h> #include <linux/of.h> #include <linux/gpio.h> #include <linux/of_gpio.h> #include <sound/core.h> #include...
/* * aes_crt.c * * Created on: Jun 5, 2019 * Author: nasm */ #include <stdio.h> #include <stdint.h> // #include <string.h> #include "aes_crt.h" uint32_t readFromAddress(uint32_t pAddress) { return *((volatile uint32_t *)pAddress); } void writeToAddress(uint32_t pAddress, uint32_t pData) { *((vol...
/* SPDX-License-Identifier: BSD-2 */ /******************************************************************************* * Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG * All rights reserved. *******************************************************************************/ #include <stdlib.h>...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <utf8.h> #include "common.h" #define d utf8_decode #define e utf8_encode static char * t (const char *enc, const char *dec) { char *r = d(enc); assert(r); assert(0 == strcmp(dec, r)); return r; } TEST(decode) { char *d...
/* ------------------------------------------------------------------------- @file simple_compressor_RLE.c @date 05/07/17 11:32:15 @author <NAME> @email <EMAIL> @brief Simple compressor implementing the RLE encoding @detail NOTE: Para comprobar primero se hizo una simple copia de los buffers y se realizo la compresio...
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB 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 ...
#include "cvideo.h" #include "cvideo.pio.h" #include "hardware/clocks.h" #include "hardware/irq.h" #include <stdio.h> // Sync PIO needs 2us per instruction #define SYNC_INTERVAL 0.000002 // Data transmits for 52us #define DATA_INTERVAL 0.000052 #define DATA_SM_ID 0 #define SYNC_SM_ID 1 static PIO cvideo_pio; static ...
#include "scrappie_common.h" #include "scrappie_stdlib.h" //#include "util.h" #include <math.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> int floatcmp(const void *x, const void *y) { float d = *(float *)x - *(float *)y; if (d > 0) { return 1; } return -1; } /** Quantiles fro...
// // General-purpose Photovoltaic Device Model gpvdm.com - a drift diffusion // base/Shockley-Read-Hall model for 1st, 2nd and 3rd generation solarcells. // The model can simulate OLEDs, Perovskite cells, and OFETs. // // Copyright 2008-2022 <NAME> https://www.gpvdm.com // r.c.i.mackenzie at googlemail.com // // Per...
/* * delaydns.c - A DNS proxy that adds delay to replies * * Copyright (c) 2016, 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: * * Red...
/* Plib Copyright (C) 2014 <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
// SPDX-License-Identifier: GPL-2.0+ /* * Board init file for Dragonboard 410C * * (C) Copyright 2015 <NAME> <<EMAIL>> */ #include <common.h> #include <cpu_func.h> #include <dm.h> #include <env.h> #include <init.h> #include <net.h> #include <usb.h> #include <asm/cache.h> #include <asm/global_data.h> #include <asm/...
#include "interactive_horse_race.h" /* forward declarations */ static void close_cb(uv_handle_t* client); static void client_shutdown_cb(uv_shutdown_t*, int); static void shutdown_cb(uv_shutdown_t*, int); static void alloc_cb(uv_handle_t*, size_t, uv_buf_t*); static void read_cb(uv_stream_t*, ssize_t, const uv_buf_t*...
/******************** (C) COPYRIGHT 2012 ************************************** * File Name : gps_shutdown.c * Author : deh * Date First Issued : 10/19/2012 * Board : STM32F103VxT6_pod_mm (USART1) * Description : Shutdown gps based on load-cell acitivity ***********************...
/* "print.c" - <NAME> (@ToCodeABluejay) * *Copyright (c) 2021 <NAME> (@ToCodeABluejay) * *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 ...
// // main.c // nrf52-dfu // // Sample bootloader implementation. // // Created by <NAME> on 26.04.2019. // Copyright © 2019 Classy Code 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...
/* * Copyright 2013 Los Alamos National Security, 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 appli...
/* * Copyright (c) 2018-2020 Texas Instruments Incorporated * 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 * no...
#include <sys/types.h> #include <stdint.h> #include <string.h> #include "mrx_hash32.h" #include "mem.h" static const uint32_t c0 = 0xcc9e2d51; static const uint32_t c1 = 0x1b873593; static const uint32_t c2 = 0xe6546b69; static const uint32_t c3 = 0x9e3779b1; static const uint32_t c4 = 0x1e35a7bd; static const uint32...
/* * Copyright (C) 2011 by Project SESA, Boston University * * 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,...
/* * Copyright(c) 2007 - 2019 Realtek Corporation. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * * 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.or...
/* * ================================================================================ * *shared_memory.c * Establece un área de memoria, reservada por dma, compartida entre los nucleos * para cumplir la función de canal de comunicaciones. * * * =========================================================================...
#include <stdlib.h> #include <float.h> #include <math.h> #include <omp.h> #include "image_io.h" #include "segmentation.h" void init_centers(byte_t *data, double *centers, int n_px, int n_ch, int n_clus); void assign_pixels(byte_t *data, double *centers, int *labels, double *dists, int *changes, int n_px, int n_ch, in...
// perlin noise, derived from the Java reference implementation at // http://mrl.nyu.edu/~perlin/noise/ #include <math.h> #include <stdio.h> static int p[512]; static int permutation[256] = { 151,160,137,91,90,15, 131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23, 190, 6,148,247,120,...
/**************************************************************************//** * @file main.c * @brief ISP tool main function * * @copyright SPDX-License-Identifier: Apache-2.0 * @copyright Copyright (C) 2020 Nuvoton Technology Corp. All rights reserved. ***************************************************...
/* * libwebsockets - small server side websockets and web server implementation * * Copyright (C) 2010 - 2019 <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...
/*- * Copyright (c) 2020 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
/* File: binary_search_tree.c Binary search tree property: "Let x be a tree. If y is a node in the left subtree of x, then key[y] <= key[x]. If y is a node in the right subtree of x, then key[y] >= key[x]." Cormen & Leiserson chap 13 Operation costs: SEARCH, FINDMI...
/*RingsPov.c */ /********************************************************************************************************** Copyright (c) 2002-2013 <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 Gabedit),...
/* * $Id$ * * Copyright (c) 2014, Juniper Networks, Inc. * All rights reserved. * This SOFTWARE is licensed under the LICENSE provided in the * ../Copyright file. By downloading, installing, copying, or otherwise * using the SOFTWARE, you agree to be bound by the terms of that * LICENSE. */ #define DB_FULL_NS ...
/* * Vax 32V Unix filesystem (same as pre-FFS Berkeley) */ #include <u.h> #include <libc.h> #include <auth.h> #include <fcall.h> #include "tapefs.h" /* * v32 disk inode */ #define VNADDR 13 #define VFMT 0160000 #define VIFREG 0100000 #define VIFDIR 0040000 #define VIFCHR 0120000 #define VIFBLK 0160000 #define VMOD...
/****************************************************************************** * Copyright (c) Intel Corporation - All rights reserved. * * This file is part of the LIBXSMM library. * * * ...
/** * @file */ /****************************************************************************** * Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source * Project (AJOSP) Contributors and others. * * SPDX-License-Identifier: Apache-2.0 * * All rights reserved. This program and ...
/****************************************************************************** * machine_kexec.c * * Copyright (C) 2013 Citrix Systems R&D Ltd. * * Portions derived from Linux's arch/x86/kernel/machine_kexec_64.c. * * Copyright (C) 2002-2005 <NAME> <<EMAIL>> * * Xen port written by: * - Simon 'Horms' Horm...
#include <lib9.h> #include "dat.h" #include "fns.h" #include "bpi.h" int radix = 16; int cmdlock = 0; typedef struct CmdTab { int (*f)(int, char**, int*); int minargs; int maxargs; const char *desc; } CmdTab; CmdTab cmdtab[96]; void addcmd(char c, int (*f)(int, char**, int*), int minargs, int maxargs, const ...
/* PCGST.f -- translated by f2c (version 12.02.01). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
/* Copyright (c) 2009 <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, publish, distribute, sublicen...
#include <stdlib.h> #include <string.h> #include "can_datagram.h" #include <crc/crc32.h> enum { STATE_PROTOCOL_VERSION, STATE_CRC, STATE_DST_LEN, STATE_DST, STATE_DATA_LEN, STATE_DATA, STATE_TRAILING, }; void can_datagram_init(can_datagram_t *dt) { memset(dt, 0, sizeof *dt); dt->pr...
/* * Copyright 2018 The Hafnium Authors. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
/*- * Copyright (c) 2001 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/* Copyright (c) 2020 <NAME>. All Rights Reserved. See LICENCE file for details. */ #include <stdint.h> #include <unistd.h> #include <fcntl.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <math.h> #include <string.h> #include <sys/time.h> #include "caveat.h" #include "opcodes.h" #include "c...
#include <kernel/term.h> #include <kernel/ansi_interpreter.h> #include <kernel/paging.h> #include <kernel/sys.h> #include <stdint.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <stdio.h> #define ENTRY(x, y) term_buffer[(y)*TERM_WIDTH+(x)] static ansi_interpreter_context ctx; static uint32_t ...
/* wowlInit.c Initialization of hardware and software modules for the WOWL. 2020-09-22 WHF Created. */ #include "wowl.h" #include <fstorage.h> #include <nrf52.h> #include <nrf_clock.h> #include <nrf_delay.h> #include <nrf_gpio.h> #include <nrf_sdm.h> #include <system_nrf52.h> #include <gpiote/nrf_drv_gpiote...
#include <stdint.h> #include <stdio.h> #include <string.h> #include "exti/exti.h" #include "gpio/gpio.h" #include "uart/uart.h" #include "uart/uart_interrupt.h" #include "FreeRTOS.h" #include "queue.h" #include "task.h" /** * STATIC FUNCTION DECLARATIONS */ void main__uart_init(void); void main__uart_interrupt_i...
/* * Copyright (c) 2016-2017, Texas Instruments Incorporated * 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 * n...
/* * Renesas Emma Mobile 8250 driver * * Copyright (C) 2012 <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 * * This program is distributed in ...
#include "jitter_data.h" #include <stdio.h> #include <string.h> #include <time.h> #include <stdlib.h> #define SIZE 30 #define A 999 #define B 9758 #define P 999149 #define HASH(s) ((atoi(s) * A + B) % P) % SIZE int add_to_stream(tcp_stream *stream, char *stream_name, long int packet_arrive_time, int src_port, int d...
/* * daemon/acl_list.h - client access control storage for the server. * * 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 me...
// // // // // Convertion Utility: // Purpose: Convert textfile to assembly format. // // Created by: <NAME> // // // // // // Copyright (c) 2010 http://www.dangerousprototypes.com by <NAME> // // // #include <stdio.h> #include <stdlib.h> #include <string.h> #define LEN 256 // max dos pa...
#include <stdio.h> #include <stdlib.h> #include <string.h> extern void mc58id_(double *CNTL, int *ICNTL); extern void mc58ad_(int *M, int *N, int* NZ, int *LA, double *A, int *LIRN, int *IRN, int *LJCN, int *JCN, double *CNTL, int *ICNTL, int *LIW, int *IW, int *INFO, double *RINFO, int *RANK, int *ROWS, int *COLS)...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <rsa.h> #include <settings.h> #include <comm.h> int receive_message(const int socket, char* msg, const unsigned msg_len) { int total = 0, received = 0, available = 0; do { // read from socke...
/* The stdlog unix socket driver. Syslog protocol is spoken on * all unix sockets. * * Copyright (C) 2014 Adiscon GmbH * 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. Redistributio...
/* * This software is licensed under the terms of the MIT License. * See COPYING for further information. * --- * Copyright (c) 2011-2019, <NAME> <<EMAIL>>. * Copyright (c) 2012-2019, <NAME> <<EMAIL>>. */ #include "taisei.h" #include "graphics.h" #include "global.h" #include "video.h" #include "pixmap/pixmap.h"...
/* * Linux_offset2lib.c for CVE-2017-1000370 and CVE-2017-1000371 * Copyright (C) 2017 Qualys, Inc. * * 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 *...
/* Copyright (C) 2018 <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. 2...
/*** idate.c -- integer coded dates * * Copyright (C) 2011-2020 <NAME> * * Author: <NAME> <<EMAIL>> * * This file is part of truffle. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions...
/**************************************************************************** * * (C) COPYRIGHT 2000, MICROSOFT CORP. * * FILE: wiacammc.h * * VERSION: 1.0 * * DATE: 12/16/2000 * * DESCRIPTION: * Header for WIA camera microdriver. * ***********************************************...
/* PMSIS includes */ #include "pmsis.h" #if defined(__PULP_OS__) #include "pulp.h" #define FLL_SOC_MIN_FREQUENCY ( 150000000 ) #define FLL_SOC_MAX_FREQUENCY ( 250000000 ) #define FLL_CLUSTER_MIN_FREQUENCY ( 87000000 ) #define FLL_CLUSTER_MAX_FREQUENCY ( 175000000 ) #define FLL_SOC_FV_SLOPE ...
#include <stdlib.h> #include <string.h> #include <unistd.h> #include <libreborn/libreborn.h> #include <symbols/minecraft.h> #include "../init/init.h" #include "../feature/feature.h" #include "misc.h" // Maximum Username Length #define MAX_USERNAME_LENGTH 16 // Render Selected Item Text static void Gui_renderChatMes...
#include <sys/types.h> #include <sys/stat.h> #include <sys/socket.h> #include <unistd.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> void to_upp(char* stra); int main(int argc, char **argv) { const int BUF_SIZE = 255, GREETING_SIZE ...
#include "first.h" #include "base.h" #include "keyvalue.h" #include "log.h" #include "buffer.h" #include "burl.h" #include "http_header.h" #include "plugin.h" #include <stdlib.h> #include <string.h> typedef struct { pcre_keyvalue_buffer *redirect; data_config *context; /* to which apply me */ unsigned short redi...
/* * libstcrypto * <NAME> <<EMAIL>> * * src/hash/chacha20/chacha20-internal.c * See LICENSE for license information */ #include "chacha20-internal.h" #include <stdlib.h> #include <string.h> #include <stdio.h> // // Global constants // // // Function implementations // inline void __chacha20_init_cipher ( __c...
// // asteroids.c // Blasteroids // // Created by <NAME> on 11/16/18. // #include "asteroids.h" static float calculate_random_angle() { return (float)(random() % 360) * (2.0f * PI) / 360.0f; } static Asteroid * create_asteroid(Asteroid_Config * config) { Asteroid * p = (Asteroid *) malloc(sizeof(Asteroid))...
/** * * @copyright &copy; 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
/** * Pebble Watchface: Decelerate Northern Hemisphere * * The Decelerate Northern Hemisphere watchface shows a single hour hand only. * Midnight is on bottom of the clockface while Noon is indicated on top. * One rotation of the hour hand takes a whole day. An indicator for the * seconds is blinking on bottom of...
/* * Matroska common data * Copyright (c) 2003-2004 The ffmpeg Project * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the L...
/* * WMXZ Teensy core library * Copyright (c) 2016 <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...
// SPDX-License-Identifier: GPL-2.0 OR MIT /* * Xen para-virtual sound device * * Copyright (C) 2016-2018 EPAM Systems Inc. * * Author: <NAME> <<EMAIL>> */ #include <linux/kernel.h> #include <xen/xen.h> #include <xen/xenbus.h> #include "xen_snd_front_shbuf.h" grant_ref_t xen_snd_front_shbuf_get_dir_start(stru...
/* * Copyright (C) 2015 <NAME> <<EMAIL>> * 2015 Samsung Electronics * Author: <NAME> <<EMAIL>> * * Based on tools/usb/usbip/libsrc/usbip_host_driver.c, which is: * Copyright (C) 2011 <NAME> <<EMAIL>> * 2005-2007 <NAME> * * This program is free software; you can redistribute it and/or modify *...
/* ============================================================================= ____ ___ ____ ___ _ _ ___ __ __ ___ __ __ TM | _ \ |_ _| / ___| / _ \ | \ | | / _ \ | \/ | |_ _| \ \/ / | |_) | | | | | | | | | | \| | | | | | | |\/| | | | \ / | __/ | | ...
/** * |---------------------------------------------------------------------- * | Copyright (c) 2016 <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 restrict...
/* $OpenBSD: if_gem_sbus.c,v 1.1 2009/07/13 19:53:58 kettenis Exp $ */ /* $NetBSD: if_gem_sbus.c,v 1.1 2006/11/24 13:23:32 martin Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redi...
/* $NetBSD: db_memrw.c,v 1.3 2003/08/10 22:22:31 scw Exp $ */ /* * Copyright 2002 Wasabi Systems, Inc. * All rights reserved. * * Written by <NAME> for Wasabi Systems, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
#define VERSION 1.3.5 #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #ifdef HAVE_STRINGS_H #include <strings.h> #include <string.h> #endif #include <unistd.h> #include <sys/time.h> #include <fcntl.h> #include <arpa/ine...
/*************************************************************************\ * Copyright (c) 2010 UChicago Argonne, LLC, * as Operator of Argonne National Laboratory. * This file is distributed subject to a Software License Agreement * found in file LICENSE that is included with this distribution. \******...
#include "map.h" #include <stdlib.h> #include <string.h> #include <assert.h> struct cell { struct cell *next; void *value; char key[]; } cell; struct map { struct cell **elems; int capacity; int size; }; // Internal helper functions. Implemented at the bottom of this file. static unsigned int hash(const ...
/** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include "...
/* * Copyright 2012-2022 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/l...
/* Copyright (c) 2020 <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, publish, distribute, sublicen...
/* annul.c Copyright (c) 2021, <NAME> This file is part of the update program subject the BSD 3-Clause License, see LICENSE */ #include "annul.h" #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/wait.h> #include <syslog.h> #include <hny.h> void annul_pending(struct state *state) { /* W...
// Copyright (c) 2013, <NAME> // For conditions of distribution and use, see the accompanying LICENSE and README files // This file is a part of the Scattered Point Visualization application // developed at the Norwegian University of Science and Technology #include <stdlib.h> #include <hdf5.h> #include <dirent.h> #...
#ifdef ENABLEUSLESSGAPS //for compatibility #define OGWIDTH(X) ((X)->w + 2 * (X)->bw) #define OGHEIGHT(X) ((X)->h + 2 * (X)->bw) void vanillaresizeclient(Client *c, int x, int y, int w, int h) { XWindowChanges wc; c->oldx = c->x; c->x = wc.x = x; c->oldy = c->y; c->y = wc.y = y; c->o...