text
stringlengths
3.12k
18.7k
/*****************************************************************************/ /* icirc.c */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* A library for computing intersections of circles. */ /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ...
/* * strtod.c -- * * Source code for the "strtod" library procedure. * * Copyright (c) 1988-1993 The Regents of the University of California. * Copyright (c) 1994 Sun Microsystems, Inc. * * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARR...
/* Minimal JSONPath library for C*/ #include <stdio.h> #include <string.h> #include <stdlib.h> /* Minimal JSONPath library for C Copyright (C) 2014 <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free...
#include "touch_input.h" #include <string.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <signal.h> #include <linux/input.h> #include <dirent.h> #include <features.h> void PrintProp(const char *name, const int *var) { static const char * absval[6] = { "Value...
/* Tweet cleanser: * Removes non-alphanumeric characters from tweets * * Skeleton code written by <NAME> and <NAME>, April 2019 * Edited by <NAME> (867492), finished stage 1 to 5 */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> /* stage numbers */ #define STAGE_NUM_ONE 1 #define ...
/******************************************************** * powermon.c : A household power meter monitor for ESP32 * * (c) 2019 <NAME> <<EMAIL>> * * Based on the ESP-IDF I2C example, this uses the ADC * to detect and count pulses from the LED on a power * meter, which provide a direct measurement of household ...
/* vim: set sw=4 ts=4 noexpandtab : */ /* * Copyright (C) 2007-2019 <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 copyr...
#include <genesis.h> #include "gfx.h" #include "sprite.h" #include "sound.h" /* #define SOUND_ON */ #define SPRITE_FLAGS SPR_FLAG_AUTO_VISIBILITY | SPR_FLAG_FAST_AUTO_VISIBILITY | SPR_FLAG_AUTO_VRAM_ALLOC | SPR_FLAG_AUTO_SPRITE_ALLOC | SPR_FLAG_AUTO_TILE_UPLOAD #define SFX_JUMP 64 #define SFX_ROL...
/* The MIT License (MIT) Copyright (c) 2015 <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, publis...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
/* makecrct.c -- output crc32 tables * Copyright (C) 1995-2006, 2010, 2011, 2012, 2016, 2018 <NAME> * For conditions of distribution and use, see copyright notice in zlib.h */ #include <stdio.h> #include <inttypes.h> #include "zbuild.h" #include "zutil.h" /* The crc32 table header file contains tables for both ...
/* dissect_opts.c * Routines for dissection options setting * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include <config.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <gli...
#include "arch/amd64/asm/asm_irq.h" #if defined(AMD64_MAX_SMP) #include "arch/amd64/smp/ipi.h" #endif #include "arch/amd64/hw/ioapic.h" #include "arch/amd64/hw/io.h" #include "arch/amd64/hw/irq.h" #include "arch/amd64/hw/idt.h" #include "sys/string.h" #include "sys/assert.h" #include "sys/panic.h" #include "sys/debug.h...
/* Copyright © 2019 <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, distrib...
#include "mmf_sink.h" #include "mmf_sink_rtsp.h" static struct rtp_object rtp_payload; // to get stream id, // need mutex to protect this routine? i dont think it is necessary #define STREAM_FLOW_ID_BASE 0 static u32 stream_flow_id_bitmap = 0; static _mutex stream_flow_id_bitmap_lock = NULL; //static u32 ...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <stdbool.h> #define COURSE_COUNT 32 #define COURSE_NAME 32 typedef struct Graph_Vertex{ char name[32]; char color[32]; bool visited; }Vertice; FILE *readFile(FILE *, char *); FILE *writeToFile(FILE *...
/* +----------------------------------------------------+ | | | ####### | | # # #### # # ###### ##### | | # # # # # # # # | | # # # #### ##### ...
/* * myproxy-destroy * * Client program to delete a credential on a myproxy-server */ #include "myproxy_common.h" /* all needed headers included here */ static char usage[] = \ "\n"\ "Syntax: myproxy-destroy [-l username] ...\n"\ " myproxy-destroy [-usage|-help] [-version]\n"\ "\n"\ " Options\n"\ " -...
#include <stdio.h> #include <assert.h> #include <unistd.h> #include <pthread.h> #include <utils.h> #include <ipc_utils.h> #include <ltlib_int.h> #include <pref_global.h> #include <ltr_server.h> static bool dead_man_button_pressed = false; static bool all_clients_gone = false; static bool active = false; static struct ...
#include "App.h" #define EPOCH_OPS -1 //#define EPOCH_OPS 100000 #define KEY_SIZE 64 #define IV_SIZE 16 #define HASH_LEN 32 unsigned char CLIENT_KEY[KEY_SIZE] = "C53C0E2F1B0B19AC53C0E2F1B0B19AA"; zlog_category_t *c; void print_digest(unsigned char *digest, int digest_size) { int n; char mdString[(digest_size...
/****************************************************************************** NAME: concat_dem -- lays several input DEMs on top of one another. SYNOPSIS: concat_dem <out img.ext> <in img1.ext> [ <in img2.ext> [...]] <out img.ext> Name of LAS 6.0 image to be created. <in img...> s...
#include "thread_pool.h" // // Global Scratch buffer // static struct Scratchpad { uint8_t *ptr; uint8_t *cur; uint8_t *cap; } scratchpad; #define SCRATCHPAD_SIZE 1024 * 1024 * 1024 // 1GB static void scratchpad_init() { scratchpad.ptr = malloc(SCRATCHPAD_SIZE); scratchpad.cur = scratchpad.ptr; scratchpad.cap...
/* Copyright (c) 2017, The Linux Foundation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and...
#include <math.h> #include <float.h> #include "pmodel.h" #include "chromium.h" #include "cr_error.h" #include "cr_string.h" Globals globals; static const int MASTER_BARRIER = 100; static crCreateContextProc crCreateContext_ptr; static crMakeCurrentProc crMakeCurrent_ptr; static crSwapBuffersProc crSwapBuffers_p...
/* Copyright (c) 2017, <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 the...
// 0x07012318 - 0x07012330 static const Lights1 bbh_seg7_lights_07012318 = gdSPDefLights1( 0x66, 0x66, 0x66, 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 ); // 0x07012330 - 0x07012430 static const Vtx bbh_seg7_vertex_07012330[] = { {{{ -1100, 1382, 1075}, 0, { 308, 2012}, {0x00, 0x00, 0x7f, 0xff}}}, {{{ ...
/* * <NAME> 5AHIF * Casino simulation using config file */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <inttypes.h> #include <string.h> #include <ctype.h> #include <time.h> #include <openssl/rand.h> /* printed to inform the user about how to use this application */ const char USAGE_STRING[] ...
// SPDX-License-Identifier: GPL-2.0 // // Copyright (c) 2020 MediaTek Inc. #include <linux/interrupt.h> #include <linux/mfd/mt6358/core.h> #include <linux/mfd/mt6358/registers.h> #include <linux/mfd/mt6397/core.h> #include <linux/module.h> #include <linux/of.h> #include <linux/of_device.h> #include <linux/of_irq.h> #i...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <errno.h> #include <signal.h> #define MAX_CLIENTS 100 int num_clients = 0; struct client { int sock; char name[16]; // no null byte a...
int megaraid_io_interface(int device, int target, struct scsi_cmnd_io *, int); #undef u32 #define u8 uint8_t #define u16 uint16_t #define u32 uint32_t #define u64 uint64_t /*====================================================== * PERC2/3/4 Passthrough SCSI Command Interface * * Contents from: * drivers/scsi/megar...
#include "types.h" #include "defs.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "x86.h" #include "proc.h" #include "spinlock.h" #include "container.h" static struct proc *initproc; extern void forkret(void); extern void trapret(void); int nextpid = 1; // Disable interrupts so that we are no...
/* Machine description file for intel 386. Copyright (C) 1987 Free Software Foundation, Inc. This file is part of GNU Emacs. GNU Emacs 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 ...
/* Copyright (C) 2007-2013 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY...
/* * ISC License * * Copyright (C) 1985-2018 by * <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 appear in all c...
#include <string.h> #include "common.h" #include "param.h" #include "parallel.h" #include "fluid.h" #include "temperature.h" #include "linalg.h" static int compute_src(const param_t *param, const parallel_t *parallel, const fluid_t *fluid, temperature_t *temperature){ const int mpisize = parallel->mpisize; const ...
#include "usart2.h" #include "driver.h" #include "usart.h" #include "stm32f10x_it.h" #include <stdio.h> #include <stdlib.h> #define tty_pin_tx GPIO_Pin_2 #define tty_pin_rx GPIO_Pin_3 u8 RXbytes[128] = {0}; u8 rxlen = 0; u8 flag = 0; u8 RecBuffer[1024] = {0}; u8 canRecFlag = 0; //if connnected tcp u8 s...
/* * License * Copyright (c) 2017 <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,...
/* * Org-mode bitbar plugin * * Displays TODO items sorted according to DEADLINE and SCHEDULED * timestamps. Configuration options can be found in config.h. * */ #include <errno.h> #include <glob.h> #include <libgen.h> #include <regex.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <strin...
#include <stdlib.h> #include <sound.h> #include "defines.h" #include "level1.h" #define BLACK_MAGENTA_BRIGHT 0x58 #define LEVEL5_TILES_LEN 12 #define LEVEL5_TILES_BASE 65 #define UDG_ESTANTERIA_DER_01 65 #define UDG_ESTANTERIA_DER_02 66 #define UDG_ESTANTERIA_IZQ_01 67 #define UDG_ESTANTERIA_IZQ_02 68 #define UDG_E...
#include "cache.h" #include "csapp.h" #include "http.h" #include "queue.h" #include <stdio.h> /* Recommended max cache and object sizes */ #define THREAD_NUM 20 #define BUF_SIZE 100 static const char *USER_AGENT_HDR = "User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:70.0) Gecko/20100101 " "Firefox/70.0\r\n"; s...
/************************************************************************** * FILE: asn.c * AUTHORs: <NAME> (<EMAIL>), * <NAME> (<EMAIL>) * * DESCRIPTION: Routines to support Distinguished Encoding of ASN.1 * defined structures. * ********************************************...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
/* * Copyright (c) 2013 ElixirFlash Technology Co., Ltd. * http://www.elixirflash.com/ * * Powerloss Test for U-boot * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundat...
#include "vm.h" #include <stdlib.h> #include <stdio.h> #include <stddef.h> #include <string.h> void vm_init(VirtualMachine* vm, const ss_BaseFunction* func_list) { vm->stack = create_stack(); vm->ip = 0; vm->c_functions = func_list; vm->globals = (StackObject*)ss_malloc(50 * sizeof(StackObje...
/****************************************************************************** * * Copyright (c) 2020, Intel Corporation * 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. Redistribu...
/* * This file is based on: * Y8950Adpcm.cc -- Y8950 ADPCM emulator from the openMSX team * ported to c by gama * * The openMSX version is based on: * emuadpcm.c -- Y8950 ADPCM emulator written by <NAME> 2001 * heavily rewritten to fit openMSX structure */ #include <string.h> #include "emu...
/* Copyright (C) 1991, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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 ...
/*++ /* NAME /* scache_single 3 /* SUMMARY /* single-item session cache /* SYNOPSIS /* #include <scache.h> /* DESCRIPTION /* SCACHE *scache_single_create() /* DESCRIPTION /* This module implements an in-memory, single-session cache. /* /* scache_single_create() creates a session cache instance /* that stores a single s...
/** * Redes com Integração de Serviços * Projecto VOIP 2010 * IST, Semestre Inverno * * Realizado Por: * <NAME> * <NAME> * <NAME> (58035 - <EMAIL>) */ #include "../headers/tools.h" #include "../headers/commUDP.h" #include "../headers/pbx.h" #include "../headers/contactbook.h" #include "../headers/rtp.h" #include...
/* * Copyright (c) 2015-2018 Nexenta Systems, inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informat...
/* * Fully automatic simulator for that classic Danish pasttime of Banko. * * Note that this simulator generates invalid boards. */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <sys/types.h> #include <sys/time.h> #include <unistd.h> #include <getopt.h> #include <time.h> /* Permute the size...
/**************************************************************************** * scream::scream.h * routines to connect to screen and or scream daemons. * BSD Licence applies. * 2002/04/19 Azundris incept ***************************************************************************/ #include "screamcfg.h" #ifde...
#include "rpki-object/cms/cms.h" #include "rpki-asn1/manifest.h" #include "util/cryptlib_compat.h" #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <fcntl.h> #include <time.h> #include "util/logging.h" #define MSG_CREATED "Created %s" #define MSG_OPEN "Can't open %s" #define...
/* Copyright (c) 2021 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
/* * Test CPU affinity control mechanisms. * * Copyright (C) <NAME> <<EMAIL>> * * Released under the terms of GPLv2. */ #include <pthread.h> #include <sched.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <semaphore.h> #include <rtdm/testing.h> #include <smokey/smokey.h> smokey_test_plugin...
/* 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.0/. */ /* * pkix_buildresult.c * * BuildResult Object Functions * */ #include "pkix_buildresult.h" /* --Private-Fun...
#include <assert.h> #include "precomputed.h" #include "curve.h" #include "uintbig.h" #include "precomputed_generated.h" struct precomp_struct global_setup; void init_precomputations() { init_curve(&global_setup.E0); init_precomputations_generated(); long var = fetch_var(); GEN nf = nfinit(pol_x(fetc...
/********************************************************************* * * (C) Copyright Broadcom Corporation 2013-2017 * * 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 * * htt...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "src/config.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <platform/cbassert.h> #include <unistd.h> #include <event.h> #include "work.h" #include "log.h" #undef WORK_DEBUG static bool cr...
//***************************************************************************** // // zone.c // // A zone is like a stand-alone module, or encounter, within the game (e.g. // a city in the world), and contains all of the NPCs, objects, rooms, scripts, // etc... needed for the zone to be complete. // //*****************...
//////////////////////////////////////////////////////////////////////////////// // // // MIT X11 license, Copyright (c) 2005-2006 by: // // ...
/* * File: ps2_keyboard.c * * Copyright (c) 2017-2018 <NAME>, <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights *...
#include "main.h" //define initial board, -1 representing null position, 0 representing empty slots, //1 and 2 representing two players int board[17][13] = {{-1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1}, {-1, -1, -1, -1, -1, -1, 1, 1, -1, -1, -1, -1, -1}, {-1, -1, -1, -1, -...
/* * Copyright (c) 2013-2015, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC) * 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 r...
/* * Copyright (c) 2016,2017,2018 Apple Inc. All rights reserved. * * corecrypto Internal Use License Agreement * * IMPORTANT: This Apple corecrypto software is supplied to you by Apple Inc. ("Apple") * in consideration of your agreement to the following terms, and your download or use * of this Apple software ...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (the "License"). You may not use this file except in compliance * with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * o...
/* * Copyright (C) 2019 <NAME> <<EMAIL>> * * The code is licensed under the MIT license */ #include <stdio.h> #include <ft2build.h> #include FT_FREETYPE_H #include "conf.h" #include "fb.h" #include "font.h" /*----- Internally used variables & functions --------------------------------*/ struct _freetype2_font...
#include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include <dirent.h> #include <limits.h> #include <syslog.h> #include <libgen.h> #include <time.h> #include "misc.h" #include "pluginSocket.h" #include "plugin.h" #include "display.h" #include "api.h...
#include <stdio.h> #include <stdlib.h> #include "driver/gpio.h" #include "driver/adc.h" #include "esp_adc_cal.h"//cant seem to find #include "esp_adc_cal.h" #include "driver/timer.h" #include "mcp320x.h" #define TIMER_DIVIDER (80) // Hardware timer clock divider #define TIMER_SCALE (TIMER_BASE_CLK ...
/* procmgr -- init-like process manager * https://github.com/CylonicRaider/procmgr */ #define _GNU_SOURCE #include <errno.h> #include <unistd.h> #include <sys/stat.h> #include "comm.h" /* Size of ancillary data buffer */ #define ANCBUF_SIZE 256 /* Static function */ static int setup_addr(struct sockaddr_un *addr, ...
// clang-format off // adc_argp command-line argument parsing library by <NAME>. // // MIT License // Copyright (c) 2021 <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 re...
// // Auxiliary I/O header file // #define AUX_IO_BASE 0x7E215000 #define AUX_IRQ (AUX_IO_BASE+0x000) #define AUX_ENABLES (AUX_IO_BASE+0x004) #define AUX_ENABLE_MINIUART 0x01 #define AUX_ENABLE_SPI0 0x02 #define AUX_ENABLE_SPI1 0x04 // // Micro ...
/** * @file sensorbasicui.c * @date 10 Jan 2020 * @brief Main file for the smartwatch app */ #include "sensorbasicui.h" #include "data.h" //used for sensor support #include "scheduler.h" #include "protocol.h" #include "network.h" #include "netcore.h" #include "sqlite_db.h" #include <sqlite3.h> //used for database ...
/* * 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 distributed in the hope that it will be use...
/* Test mpz_setbit, mpz_clrbit, mpz_tstbit. Copyright 1997, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP 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 So...
/* * Copyright (c) 2015 <NAME> <<EMAIL>> * * 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 DI...
// // Copyright (C) 2020 by The Board of Trustees of Stanford University // This program is free software: you can redistribute it and/or modify it under // the terms of the Modified BSD-3 License as published by the Open Source // Initiative. // If you use this program in your research, we request that you reference ...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <inttypes.h> #include <string.h> #include <math.h> /*for round() */ #include <limits.h> #define _POSIX_THREAD_SAFE_FUNCTIONS #include <time.h> #include <sys/stat.h> #include <dirent.h> #include <errno.h> #include <unistd.h> #include "cee-utils.h" #in...
/* Modified version to trigger the backdoor for the Nexus 5 EIR exploit. Changes start at line 161 Compile with gcc -o l2ping l2ping_cve_2019_11516_backdoor_trigger.c -lbluetooth */ /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2000-2001 Qualcomm Incorporated * Copyright (C) 2002-2003 <N...
/*************************************************************************** * PHAST: PHylogenetic Analysis with Space/Time models * Copyright (c) 2002-2005 University of California, 2006-2010 Cornell * University. All rights reserved. * * This source code is distributed under a BSD-style license. See the * fi...
/* Written by <NAME>, 2013 */ /* * Copyright (c) 2013 The OpenSSL Project. 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 copyr...
/*- * Copyright (c) 1990, 1993, 1994 * The Regents of the University of California. 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 abov...
/*s: include/graphics/internals/memdraw.h */ #pragma src "/sys/src/libmemdraw" #pragma lib "libmemdraw.a" // This file assumes you have included draw.h before. typedef struct Memimage Memimage; typedef struct Memdata Memdata; typedef struct Memsubfont Memsubfont; typedef struct Memcmap Memcmap; typedef struct Memdrawp...
/*---------------------------------------------------------------------------- * Copyright (c) <2018>, <Huawei Technologies Co., Ltd> * All rights reserved. * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redist...
/* * Copyright (c) 2000-2006 Silicon Graphics, Inc. * Copyright (c) 2012-2013 Red Hat, Inc. * 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. * * This program is ...
#include "minunit.h" #include <sdb.h> typedef struct _test_struct { char *name; int age; } Person; bool test_ht_insert_lookup(void) { SdbHash *ht = sdb_ht_new (); sdb_ht_insert (ht, "AAAA", "vAAAA"); sdb_ht_insert (ht, "BBBB", "vBBBB"); sdb_ht_insert (ht, "CCCC", "vCCCC"); mu_assert_streq (sdb_ht_find (ht, "B...
#include "parsing.h" #include "soarInterfaceCommands.h" /* * parsing.c * * Helper functions to deal with the parsing of commands and arguments. * * These functions are not of particular interest to the usage of Soar * or the API, and are documented somewhat more sparsely than the * essential aspects of ...
#include "PCB705.h" DMA_InitTypeDef DMA_InitStruct; TIM_TimeBaseInitTypeDef TIMER_Init_USER; uint16_t USART1_TX_Bufer[SIZE_STRIP * 12]; uint16_t USART2_TX_Bufer[SIZE_STRIP * 12]; uint32_t SendBuffer[SIZE_STRIP]; double BaseArray[SIZE_TAIL + 1]; double TempArray[SIZE_TAIL + 1]; int HeadPosition = -1; uint8_t flagIsN...
/* * gpio.c * * Created on: Jun 21, 2016 * Author: mario * * This file is part of the Gecho Loopsynth & Glo Firmware Development Framework. * It can be used within the terms of CC-BY-NC-SA license. * It must not be distributed separately. * * Find more information at: * http://phonicbloom.com/diy/...
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b...
/* * 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 distributed in the hope that it will be use...
#include "xsuspender.h" #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <glib.h> #include <libwnck/libwnck.h> #include "config.h" #include "entry.h" #include "events.h" #include "exec.h" #include "macros.h" #include "rule.h" static GMainLoop *loop; gboolean xsus_signal_stop ...
/** * Copyright (c) 2011, CESNET z.s.p.o * * 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 li...
/* * Copyright © 2001 <NAME> * Copyright © 2003 <NAME> * Copyright © 2003-2005,2007 <NAME> * * Permission to use, copy, modify, distribute, and sell this software * and its documentation for any purpose is hereby granted without * fee, provided that the above copyright notice appear in all copies * and that bot...
/** * \file * \brief block_server client process. */ /* * Copyright (c) 2007, 2008, 2009, 2010, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Haldeneggsteig 4...
// This is free and unencumbered software released into the public domain. // For more information, please refer to <https://unlicense.org> // bbbbbr 2020 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #include <stdint.h> #include "common.h" #include "path_ops.h" #...
// This example is just sending messages internally and not an actual chat interface like the rust example. #include <stdio.h> #include <unistd.h> #include <stdarg.h> #include <stdlib.h> #include <string.h> #include "../warp/warp.h" #include "../extensions/warp-mp-solana/warp-mp-solana.h" #include "../extensions/warp-...
/*-------------- Telecommunications & Signal Processing Lab --------------- McGill University Routine: AFILE *AFrdSWhead(FILE *fp) Purpose: Get file format information from a Cadence SPW Signal file Description: This routine reads the header for a Cadence SPW Signal file. The heade...
/* From: @(#)k_tan.c 1.5 04/04/22 SMI */ /* * ==================================================== * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved. * Copyright (c) 2008 <NAME>, <NAME>, <NAME>. * * Permission to use, copy, modify, and distribute this * software is freely granted, provided that this n...
/* * Copyright (c) 2020-2021, The OSKAR Developers. * See the LICENSE file at the top-level directory of this distribution. */ #include <stdlib.h> #include "gains/oskar_gains.h" #include "gains/private_gains.h" #include "log/oskar_log.h" #include "math/oskar_find_closest_match.h" oskar_Gains* oskar_gains_create(i...