text
stringlengths
3.12k
18.7k
/* * SysDB - src/tools/sysdb/input.c * Copyright (C) 2013 Sebastian 'tokkee' Harl <<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 retai...
/* * This file is part of the uv_hal distribution (www.usevolt.fi). * Copyright (c) 2017 <NAME>. * * * MIT License * * Copyright (c) 2019 usevolt * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal ...
#define _WITH_GETLINE #include <stdio.h> #include <string.h> #include <stdbool.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include "typedefs.h" #include "serial.h" #include "cf_packet.h" #include "show_packet.h" bool verbose = true; bool wait_reply() { int k; bool timed_out; timed_o...
#include <mouse.h> #include <pic.h> #include <vesa.h> #include <compositor.h> #include <draw.h> #include <bitmap.h> #include <serial.h> #include <math.h> int mouse_x; int mouse_y; int screen_width; int screen_height; // The rectangle that current mouse is going to be in, this would save that region's original pixels ...
#ifdef _WIN32 #include <windows.h> #include "coff.h" #endif #include <stdint.h> #include <stdio.h> #include "alloc.h" #include "elf.h" #include "link.h" #include "objformat.h" extern Config* Confp; uint32_t elf_hash(const uint8_t* name) { uint32_t h = 0, g; for (; *name; name++) { h = (h << 4) + *name; ...
/** * Created by <NAME>. */ #include "transportLayer.h" /** * @brief this function processes the tcp protocol * @param packet * @param payload_size * @param verbosity */ void handle_tcp(const u_char* packet, int payload_size, int verbosity) { struct tcphdr* tcp_hdr; tcp_hdr = (struct tcphdr*) (packet); u...
/*----------------------------------------------------------------------------*/ /*-- blz.c - Bottom LZ coding for Nintendo GBA/DS --*/ /*-- Copyright (C) 2011 CUE --*/ /*-- -...
/** \file main.c Contains a simple example for using FDF files. */ #include "fdf.h" #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> /** \brief This function showcases the recommended way to write 1D data on a fixed grid to a file and how to read it ba...
/* * Copyright (C) 2018 <NAME> * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup drivers_ili9341 * @{ * * @file * @brief Device driver implementation for the il...
/* * ISC License * * Copyright (C) 1990-2018 by * <NAME> * <NAME> * <NAME> * Delft University of Technology * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appea...
#include "pongModule.h" #include "videoModule.h" #include "stdlib.h" #include "timeModule.h" #include "soundModule.h" static int xResolution; static int yResolution; static Color white = {255, 255, 255}; static Color black = {0, 0, 0}; void startPong() { getSize(&xResolution, &yResolution); PlayerStruct p1S =...
/* * dict.c - Ruby LinkParser - Dictionary Class * $Id$ * * Authors: * * <NAME> <<EMAIL>> * * Copyright (c) 2007, 2008 The FaerieMUD Consortium * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software")...
/* * PXA270-based Intel Mainstone platforms. * FPGA driver * * Copyright (c) 2007 by <NAME> <<EMAIL>> or * <<EMAIL>> * * This code is licensed under the GNU GPL v2. */ #include "hw.h" #include "pxa.h" #include "mainstone.h" /* Mainstone FPGA for extern irqs */ #...
/* -*- coding: utf-8-with-signature; tab-width: 8; indent-tabs-mode: t; -*- */ /* * Suika 2 * Copyright (C) 2001-2016, <NAME>. All rights reserved. */ /* * パッケージャ * * [Changes] * - 2016/07/14 作成 */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdbool.h> #ifdef _WIN32 #include <wind...
#include <string.h> #define LOG_TAG "config" #include <dslink/log.h> #include <dslink/mem/mem.h> #include <uv.h> #include <sys/param.h> #include <dslink/utils.h> #include "broker/config.h" #define BROKER_CONF_LOC "broker.json" static json_t *broker_config = NULL; static json_t *broker_config_gen() { if (broke...
#include "wpp.h" #include <stdio.h> #include <stdbool.h> /* EXAMPLE #0: _Generic selection * * This example will just illustrate how basic _Generic selection will work. * Please refer to the C11 standard for further information. * * We will create an eq() function that will return a bool value indicating * if i...
/*- * Copyright (c) 2020 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and...
/* * main.c * SiriDB C-Connector example using libsuv. This is a quite large example * since we try to cover most features from libsiridb and libsuv. * * WARNING: * Be carefull runing this example since it will query and insert data into * SiriDB! * * Compile using: * * gcc main.c -lsuv -...
/* $NetBSD: xencons.c,v 1.1.2.1 2004/05/22 15:59:21 he 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: * 1. Redistributions of source code mus...
/* * PMI computation from top topics previously computed * Copyright (C) 2013 <NAME> * All rights reserved. * * This Source Code Form is subject to the terms of the Mozilla * Public License, v. 2.0. If a copy of the MPL was not * distributed with this file, You can obtain one at * http://mozilla.org/MPL/2...
/*- * 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...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <x86intrin.h> #include <stdint.h> /* macro conversion */ #ifdef kivi #define KIVI #undef kivi #endif #ifdef ua_macro #define UA_MACRO #define USUBA #endif #ifdef ua_fun #define UA_FUN #define USUBA #endif #ifdef ua_fun_inline #define UA_FUN_INLINE #d...
/**************************************************************************//** * @file main.c * @version V3.00 * $Revision: 2 $ * $Date: 16/10/25 4:30p $ * @brief Implement timer counting in periodic mode. * @note * Copyright (C) 2016 Nuvoton Technology Corp. All rights reserved. **************...
/* string.c -- The string operation set. * * * Copyright (c) 2018, <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: * * * Redistributions of source code must retain the ab...
/** * Short example to describe how a digital channel is read. * * This example should be used with a TRION-BASE board 0 * * Describes: * - How to find the board id of a dedicated TRION board (TRION-BASE) */ #include "dewepxi_apicore.h" #include "dewepxi_apiutil.h" #include "dewepxi_types.h" #include "trion_sd...
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the declaration of `tzname', and to 0 if you don't. */ /* #undef HAVE_DECL_TZNAME */ /* Define to 1 if you have the <dlfcn.h> header file. */ #define HAVE_DL...
/* Internal implementation of access control lists. Copyright (C) 2002-2003, 2005-2012 Free Software Foundation, 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 ...
#include <string.h> #include <nrf51.h> #include "bmd200_dtm.h" #include "ble_dtm.h" #include "simple_uart.h" #include "timer.h" #include "softdevice_handler.h" #include "nrf_gpio.h" #include "nrf_gpiote.h" #include "bmd200_selftest.h" #include "rigdfu.h" #include "version.h" /* define error handler here */ #define Er...
// SPDX-License-Identifier: BSD-3-Clause /* * Copyright (c) 2021 <NAME> */ #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <assert.h> #include <ctype.h> // isdigit #include <getopt.h> #include <unistd.h> #include "configuration.h" #include "configuration_adv.h" #include "options.h" #include "he...
/* * Copyright (C) 1993-1996 <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, or (at your option) any later version. This program is distributed in the hope that ...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2019 <NAME> for Adafruit Industries * Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentatio...
#include <stdio.h> #include <errno.h> // for errno #include <math.h> #include <limits.h> // for INT_MAX #include <stdlib.h> // for strtol #include <time.h> #include <omp.h> size_t threads_number = 4; typedef struct Node { struct Node* parent; size_t value; struct Node** children; size_t n_children; }...
// Copyright 2019 <NAME>. All rights reserved. // SPDX-License-Identifier: BSD-2-Clause #include "avif/internal.h" #include <math.h> #include <string.h> struct avifColorPrimariesTable { avifColorPrimaries colorPrimariesEnum; const char * name; float primaries[8]; // rX, rY, gX, gY, bX, bY, wX, wY }; stat...
// font loading and handling // // #include "includes.h" #include "fonts.h" #include "x.h" #include "config.h" char *usedfont = NULL; double usedfontsize = 0; double defaultfontsize = 0; /* Fontcache is an array now. A new font will be appended to the array. */ Fontcache *frc = NULL; int frclen = 0; int frccap = 0...
/* * datatypes_driver.c * * a test driver for crypto/math datatypes * * <NAME> * Cisco Systems, Inc. */ /* * * Copyright (c) 2001-2017, Cisco Systems, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the followin...
/************************************************************************** * * Copyright 2009 <NAME>. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software without ...
#include <stdint.h> typedef void* RTR0PTR; typedef struct _SUPREQHDR { /** Cookie. */ uint32_t u32Cookie; /** Session cookie. */ uint32_t u32SessionCookie; /** The size of the input. */ uint32_t cbIn; /** The size of the output. */ uint32_t cbOut; /** Fl...
/* * Copyright (C) 2004, 2007, 2008, 2012, 2013 Internet Systems Consortium, Inc. ("ISC") * Copyright (C) 1998-2001 Internet Software Consortium. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright noti...
/** @file match - triggering based on sequential input updated 3/22/09 ajm: new API @ingroup examples */ #include "ext.h" #include "ext_obex.h" #include "ext_critical.h" #define ANYONE MAGIC #define NOVALUE 0x80000000 typedef struct match { t_object m_ob; t_atom *m_seen,*m_want; short m_size; short m_wher...
/* this file gets a send right to a backboardd thread port by exploiting a bug in io_hideventsystem here are the early ports, their names are stable: 0x00000103 : 0xffffffe001464738 : 2 (IKOT_TASK) 0x00000203 : 0xffffffe001f1e6b8 : 0 (IKOT_NONE) 0x00000303 : 0xffffffe001f1ed48 : 0 (IKOT_NONE) 0x00000407 : 0xff...
// // timerlib.c // // <NAME> // Time-stamp: <10/11/09 22:05:31 makino> #include <stdio.h> #include <stdlib.h> #include <math.h> #include <sys/time.h> #include <sys/resource.h> #include <stdio.h> #include <time.h> #ifdef MPI #include "lu2_mp.h" #endif #define FTYPE double #include <emmintrin.h> typedef double v2df...
#include <parc24/iosstack.h> #include <parc24/ioslog.h> #include <util/null.h> #include <stdlib.h> #include <unistd.h> typedef struct iop* StackOp; struct iop { enum { BOOKMARK = 0, IOP_OPEN, IOP_CLOSE, IOP_COPY, IOP_DUP, } type; union { struct { fd_t stream; fd_t cl_rio; } open; struct { ...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* File: file_io.c */ /* Description: This program reads point data from a file */ /* and write cluster output to files */ ...
/* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Resea...
#include "fib.h" #include <linux/kernel.h> #include <linux/string.h> /* Reverse given string */ static void reverse_string(char *str) { if (!str) return; for (int i = 0; i < (strlen(str) / 2); i++) { char c = str[i]; str[i] = str[strlen(str) - 1 - i]; str[strlen(str) - 1 - i] =...
#include "../state.h" #include "chunk.h" // Buffer sizes (in bytes) corresponding to BufferType static const size_t BUFFER_SIZES[3] = { (CHUNK_VOLUME / 2) * 6 * 6 * 8 * sizeof (f32), (CHUNK_VOLUME / 2) * 6 * 6 * sizeof (u32), (CHUNK_VOLUME / 2) * 6 * sizeof (struct Face) }; // gets data at the spe...
/* nbdkit * Copyright (C) 2013-2020 Red Hat Inc. * * 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 the f...
/* * Copyright (C) 1999 by <NAME> * Copyright (C) 1999, 2000, 2003 by <NAME> * Copyright (C) 2001 by <NAME> * Copyright (C) 2004 <NAME> <<EMAIL>> * Copyright (C) 2008 <NAME> <<EMAIL>> * * This file may be redistributed under the terms of the * GNU Lesser General Public License. */ #include <stdio.h> #include <...
/* * Copyright (c) 2014, <NAME> <<EMAIL>> * * Licenced under Apache 2.0 */ #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <string.h> #include <sys/time.h> #include <unistd.h> #include <termios.h> /* Number of bytes recieved*/ #define N_BYTES 14 /* Index of byte in Debug_arr */ #define STATE_i 1 ...
/* * Copyright (c) 2007, XenSource 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 list of ...
/* * This file is a part of SMalloc. * SMalloc is MIT licensed. * Copyright (c) 2017 <NAME>. * * This is an example program which is actually * a DSO overriding std. malloc functions. * It shows how to allocate new memory for a * task with mmap and use it as a dynamically * extendable heap space, which is plac...
/* Copyright 2016 <NAME>/NitroGL Simple (?) OpenGL 3.3+ (CORE) Font/Text printing function Uses two VBOs, one for a single triangle strip making up a quad, the other contains instancing data for character position, texture altas lookup and color. */ #include "opengl.h" #include <stdlib.h> #include <stdio.h> #inclu...
/* alpha-dis.c -- Disassemble Alpha AXP instructions Copyright (C) 1996-2017 Free Software Foundation, Inc. Contributed by <NAME> <<EMAIL>>, patterned after the PPC opcode handling written by <NAME>. This file is part of libopcodes. This library is free software; you can redistribute it and/or modify ...
/* * Portable Perl launcher for Windows * * Approach: Run the Perl interpreter from perl5xx.dll and: * - Insert a script name as parameter * - Optionally insert include directories as parameter(s) * * The PAR Packager pp can be used to collect all dependencies of the Perl application * Use only the contents of ...
/* Unix SMB/CIFS implementation. SMB client library test program Copyright (C) <NAME> 1998 Copyright (C) <NAME> 2000 Copyright (C) <NAME> 2000 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 S...
/* * The 3-Clause BSD License: * Copyright (c) 2020 <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 * notic...
/* mpi-mpow.c - MPI functions * Copyright (C) 1998, 1999, 2001, 2002, 2003 Free Software Foundation, Inc. * * This file is part of Libgcrypt. * * Libgcrypt 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 F...
/* File: AudioUtilsDLL.c Package: Apple CarPlay Communication Plug-in. Abstract: n/a Version: 320.17 Disclaimer: IMPORTANT: This Apple software is supplied to you, by Apple Inc. ("Apple"), in your capacity as a current, and in good standing, Licensee in the MFi Licensing Program. Use of this Apple soft...
/* Copyright (C) 1992, 1993, 1994 Aladdin Enterprises. All rights reserved. This file is part of Aladdin Ghostscript. Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or distributor accepts any responsibility for the consequences of using it, or for whether it serves any partic...
# include <stdio.h> # include <stdlib.h> /* calloc */ # include <xtables.h> # include <hstio.h> # include "../stis.h" # include "../stisdef.h" # include "calstis6.h" # include "../stiserr.h" typedef struct { IRAFPointer tp; /* pointer to table descriptor */ IRAFPointer cp_aperture; /* column descriptors */ IRA...
#include <stdio.h> #include <stdlib.h> #define nil 0 #define false 0 #define true 1 #define bubblebase 1.61f #define dnfbase 3.5f #define permbase 1.75f #define queensbase 1.83f #define towersbase 2.39f #define quickbase 1.92f #define intmmbase 1.46f #define treebase 2.5f #define mmbase 0.0f #defi...
/* * Copyright (C) 2000, 2001 Broadcom Corporation * * Copyright (C) 2002 MontaVista Software Inc. * Author: <EMAIL> or <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; eit...
#include <unistd.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <limits.h> #include <sys/stat.h> #include <sys/types.h> #include "conf.h" #include "object.h" #include "dir.h" #include "dr.h" #include "db.h" #define DB ".db" #define ROOT DB"/objects" #defi...
/* * main.c * * Created on: 10 Nov 2014 * Author: marcin */ #include "utils.h" #include "parser.h" #include "init.h" /* argc = 0 - minicron argc = 1 - taskfile argc = 2 - outfile */ void sigIntHandler(int signum); void sigUsr1Handler(int singum); void sigUsr2Handler(int signum); volatile sig_atomic_t fla...
/* Copyright (c) 2006-2015, DNSPod Inc. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1.Redistributions of source code must retain the above copyright notice, this * list of condition...
/* * c64memsnapshot.c - C64 memory snapshot handling. * * Written by * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of t...
/* * drivemem.c - Drive memory handling. * * Written by * <NAME> <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as p...
#ifndef __ASSEMBLER__ #include "drv_mem.h" #endif #include <sbi/ebi/memory.h> #include <sbi/sbi_ecall_interface.h> #include "drv_base.h" #include "drv_elf.h" #include "drv_list.h" #include "mm/drv_page_pool.h" #include "mm/page_table.h" #include "drv_util.h" #include "md2.h" /* Each Eapp has their own program break */ ...
// // pool // //tipo array de strings typedef char ** poll; typedef char ** POLL; //array de unsigned longs contendo ponteiros //para pools de strings; typedef unsigned long pool_list_t; typedef unsigned long POOLLIST; /* Values that can be returned by execute_command (). */ #define EXECUTION_FAILURE 1 #defin...
/* * Copyright (c) 2019 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS AL...
/* * 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 this list * of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce t...
/* nbdkit * Copyright (C) 2021 Red Hat Inc. * * 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 the follow...
#include <pebble.h> #include "config.h" #define STR_SIZE 20 #define TIME_OFFSET_PERSIST 1 #define REDRAW_INTERVAL 15 #define WIDTH 144 #define HEIGHT 100 #define LOCAL_X -1 #define LOCAL_Y -1 static Window *window; static TextLayer *time_text_layer; static TextLayer *date_text_layer; static TextLayer *bottom_text_lay...
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD // // 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 applic...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
/* * Copyright (C) 2015 - 2020, IBEROXARXA SERVICIOS INTEGRALES, S.L. * Copyright (C) 2015 - 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: * * * Redistribut...
#include "queue.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "harness.h" /* * Create empty queue. * Return NULL if could not allocate space. */ queue_t *q_new() { queue_t *q = malloc(sizeof(queue_t)); /* TODO: What if malloc returned NULL? */ if (q == NULL) return NUL...
/* * Copyright (c) 2010 Atheros Communications Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND TH...
/* * Phoenix-RTOS * * Operating system kernel * * Exception and interrupt handling * * Copyright 2014, 2018 Phoenix Systems * Author: <NAME>, <NAME> * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include "cpu.h" #include "pmap.h" #include "spinlock.h" #include "interrupts.h" #include "../../pro...
/* * flush reduce for eMMC * Copyright (c) Huawei Technologies Co., Ltd. 2017-2019. All rights reserved. * * 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, ...
/* * Server-side serial port communications management * * Copyright (C) 1998 <NAME> * Copyright (C) 2000,2001 <NAME> * * * 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; either ...
/* //////////////////////////////////////////////////////////////////////// * //////////////////// Fichier : ImageGris.c /////////////////// * //////////////////// Auteur : <NAME> /////////////////// * ///////////////////////////////////////////////////////////////////////// */ #include "ImageGris.h"...
/* * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/ * * Driver for SPI controller on DaVinci. Based on atmel_spi.c * by Atmel Corporation * * Copyright (C) 2007 Atmel Corporation * * See file CREDITS for list of people who contributed to this * project. * * This program is free softwa...
/* * FILE: serialio.c * * Written by <NAME>. * * Module to allow standard input/output routines to be used via * serial port 0. The init_serial_stdio() method must be called before * any standard IO methods (e.g. printf). We use interrupt-based output * and a circular buffer to store output messages. (This al...
/** * Copyright (c) 2018 Parrot Drones SAS * Copyright (c) 2016 <NAME> * * 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 ...
/* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * 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...
#include <stdio.h> #include <stdarg.h> #include "tools.h" #include "encoder_testbed_io.h" uint32_t blackboxWrittenBytes; void blackboxWrite(uint8_t ch) { putc(ch, stdout); blackboxWrittenBytes++; } // Print the null-terminated string 's' to the serial port and return the number of bytes written int blackb...
/*============================================================================= * Copyright (c) 2020 by Cryptographic Engineering Research Group (CERG) * ECE Department, George Mason University * Fairfax, VA, U.S.A. * Author: <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use th...
// moneybag.c.inc static struct ObjectHitbox sMoneybagHitbox = { /* interactType: */ INTERACT_BOUNCE_TOP, /* downOffset: */ 0, /* damageOrCoinValue: */ 2, /* health: */ 1, /* numLootCoins: */ 0, /* radius: */ 120, /* height: */ 60, /* hu...
/* FIPS 186-2 DSA */ #define CRYPTO_INTERNAL #include <stdlib.h> #include "ssh.h" #include "crypto.h" void dsa_free(dsa_ctx *ctx) { if (ctx->seed) mpz_clear(ctx->seed); if (ctx->p) mpz_clear(ctx->p); if (ctx->q) mpz_clear(ctx->q); if (ctx->g) mpz_clear(ctx->g); if (ctx->x) mpz_clear(ctx->x); if (ct...
/* * local_play.h * * Created on: 2019.02.03 * Author: zhaohuijiang */ #include <string.h> #include <stdio.h> #include "py/runtime.h" #include "py/stream.h" #include "py/reader.h" #include "extmod/vfs.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/semphr.h" // #include "fre...
#include <ctype.h> #include "includes/sstringcore.h" #include "../src/includes/sparser.h" #include "includes/sapi.h" #include "includes/slistcore.h" #include "../src/includes/sgcobject_utils.h" static Constant stringFromByte(VM* vm, int arity, Constant *args) { expect(1, arity, "fromByte"); int byte = (int)AS_NUM...
//#include "unionGroup.h" #include <string.h> #include <stdarg.h> #include <stdlib.h> #include <assert.h> #include "object.h" #include "group.h" #include "error.h" #include "ddcMalloc.h" /* * * Groups may also define the following optional functions: * void (*defaultValue) (struct group_st *g, gid_type label...
/* * Hedgewars, a free turn based strategy game * Copyright (C) 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 opti...
/*- * SPDX-License-Identifier: BSD-4-Clause * * Copyright (c) 1997, 1998, 1999 * <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 mus...
// Draws a test pattern to check if framebuffer is scaled correctly. #include <stdio.h> #include <stdlib.h> #include <string.h> #include "glfm.h" #define FILE_COMPAT_ANDROID_ACTIVITY glfmAndroidGetActivity() #include "file_compat.h" typedef struct { GLuint textureId; GLuint textureProgram; GLuint textureVe...
#include "test.h" #include <sodium.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <assert.h> typedef void (*gen_fn)(FILE *, size_t); void run_generator(const char *filename, const gen_fn fn, const size_t max) { FILE *file = fopen(filename, "w"); if (file == NULL)...
/* * BUFQUEUES.C * * cc -I/usr/src/sys bufqueues.c -o /usr/local/bin/bufqueues -lkvm * * bufqueues * * Output buf(9) queues usages * * Copyright (c) 2015 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by <NAME> <<EMAIL>> * by <NAME...
/* * This code contains changes by * <NAME>, Freiburg i. Br., Germany, March 2003. All rights reserved. * * Conditions 1, 2, and 4 and the no-warranty notice below apply * to these changes. * * * Copyright (c) 1991 * The Regents of the University of California. All rights reserved. * * Redistribution and u...
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) // Copyright (c) 2020 <NAME> // // Based on tcpconnlat(8) from BCC by <NAME>. // 11-Jul-2020 <NAME> Created this. #include <argp.h> #include <arpa/inet.h> #include <stdio.h> #include <unistd.h> #include <time.h> #include <bpf/libbpf.h> #include <bpf/bpf.h> #inc...