text
stringlengths
3.12k
18.7k
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/** * \file * * Copyright (c) 2010-2012 Atmel Corporation. All rights reserved. * * \asf_license_start * * 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 "psdparse" Copyright (C) 2004-2011 <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)...
/*- * Copyright (c) 1982, 1986, 1989 The Regents of the University of California. * All rights reserved. * * This module is believed to contain source code proprietary to AT&T. * Use and redistribution is subject to the Berkeley Software License * Agreement and your Software Agreement with AT&T (Western Electric)...
/** MultiMarkdown 6 -- Lightweight markup processor to produce HTML, LaTeX, and more. @file beamer.c @brief @author <NAME> @bug **/ /* Copyright © 2016 - 2017 <NAME>. The `MultiMarkdown 6` project is released under the MIT License.. GLibFacade.c and GLibFacade.h are from the MultiMarkdown v4 project:...
// Copyright (c) 2020 Intel Corporation. // // 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, pub...
/** * nonstop_networking * CS 241 - Fall 2021 */ #include "format.h" #include <ctype.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <netdb.h> #include <signal.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/socket.h> ...
// (c) 2017-2020 minim.co // unum helper platform specific utils code #include "unum.h" // Main WAN interface name (retrieved at startup only) static char wan_ifname[IFNAMSIZ] = ""; // Main LAN interface name (retrieved at startup only) static char lan_ifname[IFNAMSIZ] = ""; // Main LAN device name (retrieved at st...
/* * File : adrc_att.c * * Change Logs: * Date Author Notes * 2018-04-09 zoujiachi first version. */ #include "adrc_att.h" #include "param.h" #include "filter.h" #include "att_pid.h" #include "global.h" #include "console.h" #include "uMCN.h" #include "ap_math.h" MCN_DECLARE(ADRC); ...
/****************************************************** * nf_tproxy_core.h */ #define NFT_LOOKUP_ANY 0 #define NFT_LOOKUP_LISTENER 1 #define NFT_LOOKUP_ESTABLISHED 2 struct sock * nf_tproxy_get_sock_v4(struct net *net, const u8 protocol, const __be32 saddr, const __be32 daddr, const __be16...
#pragma config(I2C_Usage, I2C1, i2cSensors) #pragma config(Sensor, in1, LEFT_IR_LONG, sensorReflection) #pragma config(Sensor, in2, RIGHT_IR_SHORT, sensorReflection) #pragma config(Sensor, in3, RIGHT_IR_LONG, sensorReflection) #pragma config(Sensor, in4, LEFT_IR_SHORT, sensorReflection) #pragma config(S...
/****************************************************************************** * * Copyright (C) 2011 - 2014 Xilinx, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Softw...
/* * Sibyl server */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <limits.h> #include <sys/time.h> #include <syslog.h> #include <netinet/in.h> #include <netdb.h> #include <arpa/inet.h> #include <sys/socket.h> #include <openssl/rsa.h> #include "sibyl.h"...
#include "material_system.h" #include "core/logger.h" #include "core/kstring.h" #include "containers/hashtable.h" #include "math/kmath.h" #include "renderer/renderer_frontend.h" #include "systems/texture_system.h" #include "systems/resource_system.h" typedef struct material_system_state { material_system_config ...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief * This is a USCI_UART PDMA demo and need to connect UACI_UART TX and RX. * * @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved. * *******************************...
/* tab:8 * * input.c - source file for input control to maze game * * "Copyright (c) 2004-2011 by <NAME>." * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement is * hereby granted, provided that the above co...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #include <termios.h> #include <errno.h> #include <sys/ioctl.h> #include "seed.lisp.h" #define NO_MAIN 1 #include "minilisp.c" // #include "lzw.c" static int raw_mode = 0; static int atexit_registered = 0; static int g_into_repl = 0; sta...
/* Copyright (C) 2007 <NAME> * Permission to use, copy, modify, and distribute this software * is freely granted, provided that this notice is preserved. * * Modifications for Android written Jul 2009 by <NAME> */ /* FUNCTION <<open_memstream>>---open a write stream around an arbitrary-length string INDEX open_...
/* -*-mode: c; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ /** * Filter utility for the quality of service module mod_qos. * * qsgrep.c: simple tool to search patterns within files * * See http://mod-qos.sourceforge.net/ for further details. * * Copyright (C) 2018 <NAME> * * Licensed to the Apache Softwa...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <float.h> #include <string.h> //################################################################ // Start of PAPI related variables //################################################################ #include <papi.h> #include <stdio.h> #include <stdlib....
/* * This file is part of the optimized implementation of the Picnic signature * scheme. See the accompanying documentation for complete details. * * The code is provided under the MIT license, see LICENSE for * more details. * SPDX-License-Identifier: MIT */ #include "../picnic.h" #include <memory.h> #inc...
/* * (C) Copyright 2004 * <NAME>, DENX Software Engineering, <EMAIL>. * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <command.h> #include <stdio_dev.h> #include <net.h> DECLARE_GLOBAL_DATA_PTR; #ifndef CONFIG_NETCONSOLE_BUFFER_SIZE #define CONFIG_NETCONSOLE_BUFFER_SIZE 512 #endif static ...
/****************************************************************************** * @file main.c * @version V1.00 * $Revision: 4 $ * $Date: 18/07/16 1:27p $ * @brief * Transmit and receive data in RS485 mode. * This sample code needs to work with USCI_UART_RS485_Master. * * @note * SPDX...
#include <linux/types.h> #include <linux/string.h> #include <linux/kernel.h> #include <linux/export.h> #include <linux/interrupt.h> #include <linux/ide.h> #include <linux/bitops.h> static const char *udma_str[] = { "UDMA/16", "UDMA/25", "UDMA/33", "UDMA/44", "UDMA/66", "UDMA/100", "UDMA/133", "UDMA7" }; static...
/* output.c Copyright (C) 2002, 2003, 2009 <NAME> This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the Li...
/* * lib/des425/quad_cksum.c * * Copyright 1985, 1986, 1987, 1988,1990 by the Massachusetts Institute * of Technology. * All Rights Reserved. * * Export of this software from the United States of America may * require a specific license from the United States Government. * It is the responsibility of any p...
/* * Example application to test the KNX Interface VIMAR 01847 * It do not use libknxusb * It only uses libhid * * Copyright (c) 2017 <NAME> */ #include "config.h" #ifdef WIN32 #include <windows.h> #endif #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #includ...
/* * Copyright (C) 2019-2021 Data Ductus AB * * 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 disc...
/* ======================================================================== * Copyright 1988-2007 University of Washington * * 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:...
// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // $Id:$ // // Copyright (C) 1993-1996 by id Software, Inc. // // This source is available for distribution and/or modification // only under the terms of the DOOM Source Code License as // publi...
/* * Copyright 2013 Google 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 2 of the License, or * (at your option) any later version. * * This program is distribute...
//https://propsideworkspace.googlecode.com/hg/Learn/Simple%20Libraries/Protocol/libsimplei2c/html/simplei2c_8h.html#a65bcbd826cf4a1dc5cf475cfd48b5526 //See above for commands #include "simpletools.h" // Include simple tools #define DofSCL 0 #define DofSDA 1 #define accAddr 0x53 ...
/* -*- mode: C -*- */ /* IGraph library. Copyright (C) 2007-2012 <NAME> <<EMAIL>> 334 Harvard street, Cambridge, MA 02139 USA 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; e...
#include <stdio.h> #include <sys/stat.h> #include <sys/sysmacros.h> #include <pwd.h> #include <grp.h> #include <unistd.h> #include <getopt.h> #include <sys/statfs.h> #include <errno.h> #include <sys/fsinfo.h> #ifdef __WIN32__ #include <windows.h> #include <limits.h> #include <stdint.h> #endif /* __WIN32...
/*************************************************************************** parseWeightAttributes.c - description ------------------- begin : Wed Nov 3 13:47:44 EST 2004 copyright : (C) 2004 by <NAME> email :...
#include <assert.h> #include <stdbool.h> #include "bkstring.h" #include "bkutil.h" #include "character.h" // Returns true if a list has a word in it. bool has_word(void* list_arg, void* word_arg) { uint8_t **list = list_arg; uint8_t *word = word_arg; size_t i = 0; // This is a naive way of interpreting whet...
#include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/mman.h> #include <unistd.h> #include <stdbool.h> #include <libgen.h> #include "type.h" #include "debug.h" /*TODO: * 1. determine the -f is fat...
/* * expand_streaming.c - streaming decompression definitions * * Copyright (C) 2019 <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...
#include <fudge.h> #include <kernel.h> #include <modules/base/base.h> #include <modules/system/system.h> #include <modules/ethernet/ethernet.h> #include <modules/arch/x86/pic/pic.h> #include <modules/arch/x86/io/io.h> #include <modules/arch/x86/pci/pci.h> #include "virtio.h" struct header { unsigned short flags; ...
// SPDX-License-Identifier: GPL-2.0 /* * Driver for older Chrome OS EC accelerometer * * Copyright 2017 Google, Inc * * This driver uses the memory mapper cros-ec interface to communicate * with the Chrome OS EC about accelerometer data. * Accelerometer access is presented through iio sysfs. */ #include <linux...
#include <errno.h> #include <inttypes.h> #include <stdio.h> /* snprintf() */ #include <stdlib.h> #include <string.h> #include "alias.h" #include "id3v2.h" #include "output.h" #include "params.h" /* g_config */ #include "common.h" #include "frm_comm.h" #include "framelist.h" #include "textframe.h" /* get...
#include <stdio.h> #include <stdint.h> #include <inttypes.h> #include <stdlib.h> #include <unistd.h> #include <time.h> #include <string.h> #include <argp.h> #include <stdbool.h> #include <sys/time.h> #include <fitsio.h> #include <xpa.h> #include <ASICamera2.h> const char *argp_program_version = "grab_cube 0.0.1dev";...
/* * Copyright 2017 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
#include <SDL2/SDL.h> #include <assert.h> #include <stdbool.h> #include <getopt.h> #include <stdint.h> #include <stdio.h> #include <time.h> #define min(a,b) (a<b?a:b) struct chip8 { uint8_t *memory; uint8_t V[16]; uint16_t I; uint8_t dt, st; uint16_t stack[16]; uint8_t sp; uint8_t *display; bool keys[16]; uin...
/* * Automatically Tuned Linear Algebra Software v3.10.0 * (C) Copyright 2003 <NAME> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must ret...
/* Copyright 2018 Sipeed Inc. * * 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 ...
/* * <NAME> */ #include "struct/map.h" #include <stdlib.h> #include <string.h> #define MAP_IDX_FOUND 0 #define MAP_DUPL_INSERTION 1 #define MAP_ELM_FOUND 0 #define MAP_ELM_NOT_FOUND 1 typedef struct map_node map_node; struct map { map_node *elm; float load_factor; size_t size; size_t ...
/* * Copyright (c) 2015-2018 Texas Instruments Incorporated - http://www.ti.com * 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 abov...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> void random_matrix(int rows, int cols, float I[rows][cols]); void usage(int argc, char **argv) { fprintf(stderr, "Usage: %s <rows> <cols> <y1> <y2> <x1> <x2> <no. of threads><lamda> <no. of iter>\n", argv[0]); fprint...
/***************************************************************************** * * 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 * * U...
//inclusão do cabeçalho AVL genérica #include "AVLGen.h" //Criacao do no AVL noAVL* criaNo(void *info) { noAVL *novo = (noAVL*) calloc(1, sizeof(noAVL)); if(novo == NULL) { printf("ERRO: nao foi possivel alocar no\n"); return 0; } novo->info = info; return novo; } //insere no...
#line 1 "src/spss/readstat_por_parse.rl" #include <sys/types.h> #include "../readstat.h" #include "readstat_por_parse.h" #line 9 "src/spss/readstat_por_parse.c" static const signed char _por_field_parse_actions[] = { 0, 1, 0, 1, 1, 1, 5, 1, 8, 1, 9, 1, 10, 2, 2, 0, 2, 3, 1, 2, 5, 10, 2, 7, 10, 3, 4, 2, 0, 3, 6, ...
/*********************************************************************** * * Copyright (c) Geoworks 1993 -- All Rights Reserved * * PROJECT: GEOS Bitstream Font Driver * MODULE: C * FILE: stdef.h * AUTHOR: <NAME> * * DESCRIPTION: * This file contains C code for the GEOS Bitstream Font Driver. * ...
typedef unsigned char undefined; typedef unsigned char byte; typedef unsigned char dwfenc; typedef unsigned int dword; typedef unsigned long qword; typedef unsigned int uint; typedef unsigned char undefined1; typedef unsigned int undefined4; typedef unsigned long undefined8; typedef unsigned ...
/* Copyright (c) 2002-2017 Dovecot authors, see the included COPYING file */ #include "imap-common.h" #include "str.h" #include "ostream.h" #include "imap-resp-code.h" #include "imap-util.h" #include "imap-commands.h" #include "imap-search-args.h" #include <time.h> #define COPY_CHECK_INTERVAL 100 static void client...
#include <time.h> #include "lince.h" #include "cglm/types.h" #include "cglm/vec4.h" #include "cglm/affine.h" //#include <GLFW/glfw3.h> //#include <glad/glad.h> typedef struct MyLayer { char name[LINCE_NAME_MAX]; float red, vel; float dt; LinceVertexArray* va; LinceVertexBuffer vb; LinceInde...
/* * linux/drivers/scsi/scsi_proc.c * * The functions in this file provide an interface between * the PROC file system and the SCSI device drivers * It is mainly used for debugging, statistics and to pass * information directly to the lowlevel driver. * * (c) 1995 <NAME> <EMAIL> * Version: 0.99.8 last chan...
/* Copyright (C) 2000 <NAME> <<EMAIL>>. This file is part of the yampp system. 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...
/* gentone.c * * gentone is a Command-line program for writing audio wav files * of pure tones and synth waveforms. * * Compile: gcc gentone.c waveform.c savewav.c -o gentone * by <NAME> (fergarciadlc), 2020 * Last update: 20-July-2020 */ #include<ctype.h> #include<stdio.h> #include<stdlib.h> #include<unistd....
/********************************************************************* formats/cqm_dsk.c CopyQM disk images *********************************************************************/ #include <string.h> #include "flopimg.h" #define CQM_HEADER_SIZE 133 struct cqmdsk_tag { int heads; int track...
#include </home/huxrules/Python3.6/Python-3.6.5/Include/Python.h> #include </home/huxrules/SeepIntelPro/python/env/lib/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h> static PyObject * orbit_launch(PyObject *self, PyObject *args){ //PyObject * juicebox; //PyObject * trains; PyArrayObject * A...
#pragma once #include <stdint.h> #define HSACORE_CPU_SIBLINGS 256 enum HsaStatus { kHsaStatusSuccess = 0, kHsaStatusTimedOut = 1, kHsaStatusInvalidArgument = -1, kHsaStatusOutOfResources = -2, kHsaStatusResourceUnavailable = -3, kHsaStatusInvalidResource = -4, kHsaStatusUnsupportedOperation = -5, kHsaStatusI...
/* * Copyright (c) 2020 <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...
/* $Id: main.c,v 1.3 2007/03/15 14:37:58 pjetur Exp $ *************************************************************************** * Copyright (C) 2004 by <NAME> * * <EMAIL> * * ...
/* $OpenBSD: boot.c,v 1.10 2011/04/14 18:27:49 miod Exp $ */ /* $NetBSD: boot.c,v 1.2 1997/09/14 19:27:21 pk Exp $ */ /*- * Copyright (c) 1982, 1986, 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modificatio...
/************************************************************************* * Program HR_astrom_calib * - to generate a table with the results of all the observations * made in Merate * - to compute statistics and HR diagram * * Read all the files such as: astrom05a_PaperIII.tex, astrom05b.tex, etc... * * Format of in...
/* sites indexed in 1..N */ #include <math.h> #include <string.h> #include <stdio.h> #include <stdlib.h> typedef int bool; /* 0, 1 */ typedef int comp; /* -1, 0, 1 */ int ttsapiversion () {return 0;} /* -- 1. type value and utilities --------------------------------------------------- */ /* -- bags holding in...
/** * @file dios/mechop.c * @brief Source file for mecanum functions * * Copyright (c) 2014-2015 <NAME>. All rights reserved. * Portions of this file may contain elements from the PROS API. * See include/API.h for additional notice. ***********************************************************************/ #include <mat...
#include "httpserver.h" #include <assert.h> #include <inttypes.h> #include <stdio.h> #include <string.h> #include "exec.h" #include "nstring.h" #include "number.h" #include "lib/socketx.h" static const int POST_MAX_LENGTH = 10000000; HttpResponse *response_createResponse() { HttpResponse *r = malloc(sizeof(Ht...
/* * Copyright (C) 2016 SICOM Systems, INC. * * Author: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope tha...
/* This code generates an effect that should pass the 'fancy graphics' qualification as set in the comment in the spi_master code. This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "...
/* * Copyright (c) 2012, 2013, <NAME> aka Tectu <<EMAIL>> * Copyright (c) 2012, 2013, <NAME> aka inmarket * * 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...
#include "fox-rewrite-utils.h" uint64_t geoaddr2vpg(struct fox_node* node, struct nodegeoaddr* geoaddr) { uint64_t ch_i = geoaddr->ch_i; uint64_t lun_i = geoaddr->lun_i; uint64_t blk_i = geoaddr->blk_i; uint64_t pg_i = geoaddr->pg_i; return ch_i + lun_i * node->nchs + pg_i * node->nchs * node->nlun...
/* bobobject.c - 'Object' handler */ /* Copyright (c) 2001, by <NAME> All rights reserved */ #include "bob.h" /* method handlers */ static BobValue BIF_initialize(BobInterpreter *c); static BobValue BIF_Class(BobInterpreter *c); static BobValue BIF_Clone(BobInterpreter *c); static BobValue BIF_Exis...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <SDL.h> #include "export.h" /* Coleco Palette * Calculated from the following table * Mixing values from technical documentation and visualy expressed values Table source at URL : http://theadamresource.com/articles/misc/wk970202.h tml ===========...
/* dice.c: An SDL die control. * * Copyright (C) 2010 <NAME>. * This program is free software. See README for details. */ #include <math.h> #include "SDL.h" #include "yahtzee.h" #include "gen.h" #include "iosdlctl.h" /* Set a single pixel in a 32-bit surface. */ #define setpixel(s, x, y, p) \ (((Uint32*)(((U...
#include <main.h> #include <menu.h> #include <buttons.h> #include <spectro.h> #include "fatfs_sd.h" #include <libopencm3/cm3/scb.h> #include "lcd.h" #include "parameters.h" #include "diskio.h" #include "ff.h" #include <spi_sd.h> #include <stm32_adafruit_lcd.h> #define INFINITY_64_UINT (uint64_t)(184467440737095516...
/* $NetBSD: rdreg.h,v 1.3 2003/11/02 10:31:06 wiz Exp $ */ /* * Copyright (c) 1982, 1990, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * the Systems Programming Group of the University of Utah Computer * Science Depart...
// call from python with single argument which is filename of data to be plotted // Code reads corresponding binary file and pipes directly to gnuplot // // for example >./b.exe test1.bin will plot FID data in test1.dat #include <stdio.h> #include <stdlib.h> #include <math.h> #define NMAX 10000000 /...
/** @defgroup ccm_file CCM * * @ingroup VF6xx * * @section vf6xx_ccm_api_ex Clock Controller Module API. * * @brief <b>VF6xx Clock Controller Module</b> * * @author @htmlonly &copy; @endhtmlonly 2014 <NAME> <<EMAIL>> * * @date 30 Jun 2014 * * This library supports the Clock Controller Module in the VF6xx So...
#include <convirter/mtree/entry.h> #include <convirter/mtree/xattr.h> #include <convirter/oci-r/index.h> #include <convirter/oci-r/layer.h> #include <convirter/oci-r/manifest.h> #include <errno.h> #include <fcntl.h> #include <getopt.h> #include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #in...
//Day13b.c // //Question 2: How many locations (including the starting location) can be //reached in at most 50 steps? // //To solve this puzzle, we just need to explore a subset of the maze, then count //how many rooms have a distance less than or equal to 50. This means we won't //actually have to enlarge the maze --...
/* * m_ematch.c Extended Matches * * This program is free software; you can distribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. * * Authors: <NAME> <<EMAI...
#include <stdlib.h> #include <stdio.h> #include <signal.h> #include <uv.h> #include <duktape.h> #include <http_parser.h> #define CHECK(result) \ do { \ if (!(result)) { \ fprintf(stderr, "Check failed at line: %d\n", __LINE__); \ abort(); \ } \ } while (0) #define CHECK_EQ(expected, actual) \...
/* beep - just what it sounds like, makes the console beep - but with * precision control. See the man page for details. * * Try beep -h for command line args * * This code is copyright (C) <NAME>, 2000. * * This code may distributed only under the terms of the GNU Public License * which can be found at http...
/* Encoder for lossless image compression based on the quadtree data structure Copyright 2021 <NAME> <<EMAIL>> */ #include "ppm.h" #include "rle.h" #include "vli.h" #include "bits.h" #include "hilbert.h" void doit(int *tree, int *input, int level, int depth) { int length = 1 << level; int pixels = length * length;...
#include <inttypes.h> /* intptr_t, PRIxPTR */ #include <search.h> /* hcreate(), hsearch() */ #include <stdio.h> /* perror(), printf() */ #include <stdlib.h> /* exit() */ #include "ruby.h" typedef enum { false, true } bool; // START header // For information and references about the module to be stored internally. VA...
/* * Copyright 2019 <NAME> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
#define TIFWRITE_C #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include "machine.h" #include "tifwrite.h" #ifndef MAX_MESSAGE #define MAX_MESSAGE (1024) #endif /*MAX_MESSAGE*/ int tiffree(Mytiff * mytiff){ #ifdef INMEM free (mytiff->data); #endif return(0); } int tifre...
// BLAKE-512 sse41 eBASH implementation // Authors: <NAME> and <NAME>. // Modified by kerukuro for use in cppcrypto. #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <immintrin.h> #include <emmintrin.h> #ifdef _MSC_VER #include <intrin.h> #endif #define AVOID_BRANCHING 1 #inclu...
// SPDX-License-Identifier: GPL-2.0 /* * SE/HMC Drive (Read) Cache Functions * * Copyright IBM Corp. 2013 * Author(s): <NAME> (<EMAIL>) * */ #define KMSG_COMPONENT "hmcdrv" #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt #include <linux/kernel.h> #include <linux/mm.h> #include <linux/jiffies.h> #include "...
/* * * Copyright (c) 2013 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This progra...
/************************************************************************** * * Copyright 2008 HPCNL-KICS, UET, Lahore, PAKISTAN. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification,are permitted provided that the following conditions * are met: * * ...
// // Created by kryvashek on 13.08.16. // #include <math.h> // roundf #include <moarIfaceTransmitReceive.h> #include <moarInterfacePrivate.h> #include <moarTime.h> #include <ctype.h> int getFloat( PowerFloat_T * value, char * buffer, int * bytesLeft ) { char * end; if( NULL == buffer ) return FUNC_RESULT_F...
// Copyright (c) 2001-2003 Swedish Institute of Computer Science. // Copyright (c) 2012-2013 <NAME> // // SPDX-License-Identifier: BSD-3-Clause // // Author: <NAME> <<EMAIL>> #include "lwip_tap/tapif.h" #include <fcntl.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/typ...
#include "codec.h" #include "libavutil/opt.h" /************************************************************************************************************************ Here is a BNF description of the filtergraph syntax: NAME ::= sequence of alphanumeric characters and '_' FILTER_NAME ::= NAME["@"NAM...
/*- * Copyright (c) 2010 <NAME> * All rights reserved. * 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: * 1. Redistributions of source code must retain the above copyright * not...
/* * misc - data and miscellaneous routines */ /* $Header$ */ #include <ctype.h> #include <time.h> #include <stdlib.h> #include <string.h> #include "loc_time.h" #define RULE_LEN 120 #define TZ_LEN 10 /* Make sure that the strings do not end up in ROM. * These strings probably contain the wrong v...
#include "pcm.h" #include <time.h> #include <stdlib.h> #include <getopt.h> #include <assert.h> int PCM_NUM_BANKS = PCM_NUM_BANKS_MAX; int PCM_ROWS_PER_BANK = PCM_ROWS_PER_BANK_MAX; int PCM_ENABLE_OPENMP = 0; void pcm_param(int argc, char* argv[], char* usage) { int option = 0; opterr = 0; optind = 1; while ((opti...
/* See COPYING file for copyright and license details. */ #include "scanner-tag.h" #include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include "nproc.h" #include "parse_args.h" #include "rgtag.h" #include "scanner-common.h" static struct file_data empty; extern gboolean verbose; extern g...