text
stringlengths
3.12k
18.7k
/* * Copyright © 2009-2012 Inria. All rights reserved. * Copyright © 2009-2012 Univers<NAME> 1 * Copyright © 2009-2011 Cisco Systems, Inc. All rights reserved. * See COPYING in top-level directory. */ #include <private/autogen/config.h> #include <hwloc.h> #ifdef HWLOC_LINUX_SYS #include <hwloc/linux.h> #endif ...
#include "include\cinterface" typedef TLnat4 TL_TL_priority_t; struct TL_TL_ExceptionInfo { TLint4 quitCode; TLint4 libraryQuitCode; TLstring errorMsg; }; typedef TLnat1 __x383[1]; struct TL_TL_HandlerArea { TLint4 quitCode; TLnat4 lineAndFile; TLaddressint fileTable; struct TL_T...
// Copyright (c) 2016, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions a...
/* $NetBSD: play.c,v 1.4 1997/10/12 11:45:40 lukem Exp $ */ /* * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME>. * * Redistribution and use in source and binary forms, with or without * mod...
/* Copyright (C) 2019-2020 JingWeiZhangHuai <<EMAIL>> Licensed under the Apache License, Version 2.0; you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
/* RADIO LIBRARY FOR TI RADIO MODUELS RADIO_CC110L.h - CC110L module library Author : <NAME> Version : 0.1 DATE : MARCH 9, 2012 EMAIL : <EMAIL> This library is designed to use CC110L module on Arduino platform. */ #ifndef CC1190 #define RSSI_OFFSET 74 #else #define RSSI_OFFSET 81 #endif...
// // Created by maxim on 5/10/19. // #include "weapon.h" double weapon[WEAPON_COUNT * 6] = { //Min dmg | Max dmg | Min reload | Max reload | auto fire | missRange | wtype 5, 10, 30, 32, 0, 0.05, //0 - pistol 10, 30, ...
/*---------------------------------------------------------------*/ /*--- begin host_generic_regs.c ---*/ /*---------------------------------------------------------------*/ /* This file is part of Valgrind, a dynamic binary instrumentation framework. Copyright (C) 2004-2013 Op...
/* * tc_client_example.c * This program uses trickcomm "tc" routines to create a client that * connects to a server and writes and reads 10 messages. */ #include "../include/attributes.h" #include "../include/tc_proto.h" #include <string.h> void sigint_hndlr( int sig ); void stupid( int sig ); TCDevice** de...
#include "defs.h" // encrypts a hash value (32 bytes max) and returns the 64 byte result in sig void ec256_encrypt(struct keyinfo *key, uint8_t *hash, int len, uint8_t *sig) { uint32_t *d, *h; h = ec_buf_to_bignum(hash, len); d = ec_buf_to_bignum(key->key_data + key->ec_private_key_offset, key->ec_private_key_len...
/* * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */ /* * Copyright (c) 1980 Regents of the University of California. * All rights reserved. The Berkeley software License Agreement ...
#include "hardware.h" // TODO: recheck memory map (A8 port) typedef struct { int type; int num; } mPageNr; static mPageNr msxMemTab[4][4] = { {{MEM_ROM, 0}, {MEM_ROM, 1}, {MEM_RAM, 1}, {MEM_RAM, 0}}, {{MEM_SLOT,0},{MEM_SLOT,0},{MEM_SLOT,0},{MEM_SLOT,0}}, {{MEM_SLOT,1},{MEM_SLOT,1},{MEM_SLOT,1},{MEM_SLOT,1}}, {...
/*H***************************************************************************** * * Copyright (c) 2017 ChipCraft Sp. z o.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...
/***************************************************************************** * * Elmer, A Finite Element Software for Multiphysical Problems * * Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland * * This program is free software; you can redistribute it and/or * modify it under the te...
/** * * \section COPYRIGHT * * Copyright 2013-2015 Software Radio Systems Limited * * \section LICENSE * * This file is part of the srsLTE library. * * srsLTE is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Soft...
/**************************************************************************//** * @file main.c * @version V1.00 * $Revision: 6 $ * $Date: 14/11/27 2:33p $ * @brief Use PDMA channel 6 to transfer data from memory to memory. * @note * Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved. ...
#define _UNIX_UNDERSCORE_ #ifdef _WIN_INTEL_FORT_ #define DBG_Get_Addr DBG_GET_ADDR #define DBG_Type_Control DBG_TYPE_CONTROL #define DBG_Init DBG_INIT #define DBG_Finalize DBG_FINALIZE #define DBG_Get_Handle DBG_GET_HANDLE #define DBG_BeforeParallel DBG_BEFORE_PARALLEL #define DBG_ParallelEvent DBG_PARALLEL_EVENT #...
#include <stdlib.h> #include <gtk/gtk.h> #include <epoxy/gl.h> #include <gthree/gthree.h> #include "utils.h" GthreeScene *scene; GthreePerspectiveCamera *camera; GthreeObject *group = NULL; GthreeScene *ortho_scene; GthreeOrthographicCamera *ortho_camera; GthreeTexture *sprite0_texture; GthreeTexture *sprite1_text...
/* * FreeBSD, PCI product support functions * * Copyright (c) 1995-2001 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above ...
/****************************************************************************** NAME: sr2gr - converts slant range images to ground range images DESCRIPTION: This program converts slant range imagery into ground range imagery. The algorithm calculates the ground range to the first pixel in the image and from the ...
/* * $Id: glrgui.h,v 1.6 1998/05/18 18:52:59 fuhrmann Exp $ */ #include <Xm/XmAll.h> #define NUMOFDPYLISTS 9 /* TYPES FOR GUI */ #define DEBUG 0 #define SLIDER_MAX 65535 #define ROTMAX 360 #define ROTMIN -360 #define DIVVALUE 100 /* containers */ #define DISPLAYLISTS 0 #define ROTATION 1 #define TRANSLATION 2 #d...
/* * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/** ** nbody-mpi.c ** ** Calculates the solution to a 3D n-body problem in parallel using MPI. ** ** The number of particles to simulate and the number of iterations, are given ** as constants at the top of this file. Each particle is assigned a mass of ** 1.0 and a random position by the "master" processor. The...
/* * AIY GPIO/PWM Driver * * Author: <NAME> <<EMAIL>> * Copyright 2017 * * 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 Foundation. * * This program is distributed in the hope t...
/* Copyright 2009-2010, jimmikaelkael <<EMAIL>> Copyright 2009-2010, misfire <<EMAIL>> Licenced under Academic Free License version 3.0 Review OpenUsbLd README & LICENSE files for further details. */ #include <tamtypes.h> #include <iopcontrol.h> #include <kernel.h> #include <sifrpc.h> #include <loadfile.h> #i...
// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // $Id:$ // // Copyright (C) 1993-1996 by id Software, Inc. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // a...
/* * 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...
#include <stdio.h> #include <stdint.h> #include <assert.h> #include <time.h> #include "fpga_utils.h" #define WAIT 150 #define EVFLAGS (FPGA_CREATE_EVS_HUGE | FPGA_CREATE_EVS_WITH_TEST) // FPGA_CREATE_EVS_SMALL | FPGA_CREATE_EVS_WOUT_TEST #define EVS_VERBOSE 1 #define EVS_NONVERB 0 //////////////...
#include "config.h" #include <gtk/gtk.h> typedef struct { GtkTextView parent; } MyTextView; typedef struct { GtkTextViewClass parent_class; } MyTextViewClass; static GType my_text_view_get_type (void); G_DEFINE_TYPE (MyTextView, my_text_view, GTK_TYPE_TEXT_VIEW); static void snapshot_background (GtkWidget *wi...
/* This file is part of UFFS, the Ultra-low-cost Flash File System. Copyright (C) 2005-2010 <NAME> <<EMAIL>> UFFS is free software; you can redistribute it and/or modify it under the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at y...
/** * \file rtc_only_app_main.c * * \brief This is an Example application to demonstrate the RTC-Only mode * of Power Management mechanism. * * Application Use-case: * 1. Demonstrating the Sleep and Wakeup sequence in RTC Only mode. * 2. Wakeup Sequence is demonstrated using...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/socket.h> #include <bluetooth/bluetooth.h> #include <bluetooth/rfcomm.h> #include <bluetooth/hci.h> #include <bluetooth/hci_lib.h> #include <bluetooth/sdp.h> #include <bluetooth/sdp_lib.h> #include <errno.h> #include "rfcomm-client.h" #define STD...
/* The IGEN simulator generator for GDB, the GNU Debugger. Copyright 2002-2021 Free Software Foundation, Inc. Contributed by <NAME>. This file is part of GDB. 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 t...
#include<stdio.h> #include <stdlib.h> #include <stdbool.h> #include <limits.h> struct AdjListNode{ int dest; struct AdjListNode* next; }; struct AdjList{ struct AdjListNode *head; }; struct Graph{ int V; struct AdjList* array; }; struct Node{ int data; struct Node *next;...
/* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
/* * Copyright © 2018 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
#include <stdint.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <float.h> #include <assert.h> #include <stdio.h> #include "util/block_alloc.h" #include "quantile.h" #include "rmalloc.h" typedef struct Sample { // Variables are named per the paper double v; // Value represented float g; ...
/* Copyright 2018 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, ...
/* *------------------------------------------------------------------ * memif_api.c - memif api * * Copyright (c) 2017 Cisco and/or its affiliates. * 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 ...
/* SPDX-License-Identifier: MIT */ #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <stdbool.h> #include "liburing/compat.h" #include "liburing/io_uring.h" #include "liburing.h" #include "liburing/barrier.h" #include "syscall.h" /*...
/* * SPDX-License-Identifier: BSD-3-Clause * * Copyright 2019-2021, <NAME> <<EMAIL>> */ #include <assert.h> #include <getopt.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "parse.h" #include "utils.h" static const struct option opts[] = { {"print-...
#include <stdio.h> #include <stdbool.h> #include <unistd.h> #include <IOKit/graphics/IOGraphicsLib.h> #include <ApplicationServices/ApplicationServices.h> /* As of macOS 10.12.4, brightness set by public IOKit API is overridden by CoreDisplay's brightness (to support Night Shift). In addition, using CoreDisplay ...
/* * Copyright (c) 2012 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of conditions an...
/* * Copyright (c) 2016 Freescale Semiconductor, Inc. * Copyright (c) 2017, NXP * * SPDX-License-Identifier: Apache-2.0 */ #include <errno.h> #include <device.h> #include <gpio.h> #include <soc.h> #include <fsl_common.h> #include <fsl_port.h> #include "gpio_utils.h" struct gpio_mcux_config { GPIO_Type *gpio_ba...
// Copyright (c) 2021 <NAME> // Licensed under an MIT style license, see LICENSE.md for details. // You are free to copy and modify this code. Happy hacking! #include <stdlib.h> #include "grid_engine/grid_engine.h" #include "grid_engine/mz_grid.h" static const uint8_t MAZE_RENDER_VALUE_LOW = 50; static const uint8_...
/*********************************************************************** ** ** REBOL [R3] Language Interpreter and Run-time Environment ** ** Copyright 2012 REBOL Technologies ** REBOL is a trademark of REBOL Technologies ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** you may not use this...
/* * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * * 1. Redistributions of source code must retain the above * copyright notice, this list of conditions and the * following disclaimer. * * 2. Redistrib...
/*----------------------------------------------------------------------------*/ /* Big Brother webpage generator tool. */ /* */ /* This is a replacement for the "mkbb.sh" and "mkbb2.sh" scripts from the ...
/* C */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <locale.h> #include <errno.h> #include <stdint.h> #include <stdbool.h> #include <assert.h> #include <malloc.h> #include <error.h> #include <stdbool.h> /* Unix */ #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/io...
/*----------------------------------------------------------------------------- * $RCSfile: xmliconv.c,v $ * * See Copyright for the status of this software. * * The OpenSOAP Project * http://opensoap.jp/ *----------------------------------------------------------------------------- */ #if (!defined(_WIN32)) ||...
/* * Copyright (C) 2008 <NAME> * Copyright (C) 2009 <NAME> * * This file is part of wasp, some code taken from paparazzi (GPL) * * wasp 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,...
/* * 14.8.c -- The Colossus Airlines fleet consists of one plane with a seating * capacity of 12. It makes one flight daily. Write a seating reservation * program with the following features: * * a. The program uses an array of 12 structures. Each structure should * hold a seat identification number, a marker ...
/** * \file * \brief PCI */ /* * Copyright (c) 2007, 2008, 2009, 2011, 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, CH-8092 Zurich. Attn: S...
#ifdef COMPILE_FOR_TEST #include <assert.h> #define assume(cond) assert(cond) #endif void main(int argc, char* argv[]) { int x_0_0;//global::bugs int x_0_1;//global::bugs int x_0_2;//global::bugs int x_0_3;//global::bugs int x_1_0;//global::execCount int x_1_1;//global::execCount int x_1_2;//global::execCount i...
#include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "ite/itp.h" #include "ite/ite_mac.h" #define PACKET_SIZE 1500//1514 static uint8_t packet[PACKET_SIZE]; //static uint8_t* packet; #define TX_BUF_NUM 128 static uint32_t tx_index=0; static uint32_t rx_index=0; static uint32_...
// SPDX-License-Identifier: GPL-2.0-only // Copyright(c) 2021 Intel Corporation. All rights reserved. #include <linux/platform_device.h> #include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/sizes.h> #include <linux/bits.h> #include <cxlmem.h> #define LSA_SIZE SZ_128K #define EFFECT(x) (1U << x...
#ifdef WIN32 // Shouldn't be using these things. #define _huge #define _export #define _loadds #define SELECTOROF(x) ((UINT)(x)) #define OFFSETOF(x) ((UINT)(x)) #define ISLPTR(pv) ((BOOL)pv) #define MAKELP(hmem,off) ((LPVOID)((LPBYTE)hmem+off)) #define MAKELRESULTFROMUINT(i) ((LRESULT)i) #define...
/** ****************************************************************************** * File Name : CCS811.C * Description : This file contains the common defines of the application ****************************************************************************** * * COPYRIGHT(c) 2017 <NAME> ...
/***************************************************************************** * Copyright (C) Queen's University Belfast, ECIT, 2017 * * * * This file is part of libsafecrypto. * * ...
// // Created by liuzikai on 12/7/19. // #include "gui_render.h" #include "../vga/vga.h" #include "../terminal.h" #include "gui.h" #include "gui_font_data.h" #include "gui_window.h" #include "qsort.h" #include "gui_objs.h" #include "../vidmem.h" #include "../rtc.h" static int curr_y = 0; // double buffering y coor...
#include <string.h> #include <stdio.h> #include "ch.h" #include "hal.h" #include "orchard-app.h" #include "led.h" #include "orchard-ui.h" #include "images.h" #include "fontlist.h" #include "userconfig.h" #include "gfx.h" #include "ides_gfx.h" #include "unlocks.h" #include "src/gdriver/gdriver.h" #include "src/ginp...
/* * Copyright (c) 2000-2004 Silicon Graphics, 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 distributed in the hope that it would be ...
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) SigmaTel, Inc. All rights reserved. // // SigmaTel, Inc. // Proprietary & Confidential // // This source code and the algorithms implemented therein constitute // confidential information and may comprise trade sec...
/* * This table is the switch used to transfer * to the appropriate routine for processing a system call. * Each row contains the number of arguments expected * and a pointer to the routine. */ #include "sys/param.h" #include "sys/systm.h" int alarm(); int biasclock(); int chdir(); int chmod(); int chown(); int ...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <assert.h> #include <string.h> #include <getopt.h> #include "diskimg.h" #include "unixfilesystem.h" #include "inode.h" #include "file.h" #include "directory.h" #include "pathname.h" #include "chksumfile.h" int quietFlag = 0; int idumpFlag = 0; int p...
/* * Copyright (c) 2014, Linaro Limited * 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 conditi...
/* Copyright 2004,2007,2008,2010,2019 IPB, Universite de Bordeaux, INRIA & CNRS ** ** This file is part of the Scotch software package for static mapping, ** graph partitioning and sparse matrix ordering. ** ** This software is governed by the CeCILL-C license under French law ** and abiding by the rules of distributio...
#include <stdbool.h> #include <stdio.h> #include <errno.h> #include <stdlib.h> #include <signal.h> #include <getopt.h> #include <pthread.h> #include <unistd.h> #include <zmq.h> #include "../dbg.h" #include "../version.h" #include "../helptext.h" #include "servedir.h" #define DEFAULT_N_WORKER_THREADS 5 #define MAX_N_...
/* GStreamer * * unit test for voaacenc * * Copyright (C) <2009> <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at you...
#include "wire.h" #include "wire_fd.h" #include "wire_pool.h" #include "wire_stack.h" #include "macros.h" #include "http_parser.h" #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <memory.h> #include <errno.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/ip.h> #include <stdarg.h>...
/******************************************************************************************** * Supersingular Isogeny Key Encapsulation Library * * Abstract: supersingular isogeny key encapsulation (SIKE) protocol *********************************************************************************************/ #include ...
#include <sys/socket.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <arpa/inet.h> #include <netinet/in.h> #include <string.h> #include <fcntl.h> #include <sys/stat.h> #include <signal.h> #include <ctype.h> /* TODO * client-server application to transfer files from client to server * * ./serv...
//2019 sleeping burrito MIT //sampleRate 8372 #include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdint.h> #include <assert.h> #include <stdbool.h> #include <ctype.h> #include <string.h> double * samples = NULL; int32_t sampleLength = 0; int32_t timeLengthMs = 0; char * fileBuffer = ...
#include <stdio.h> #include <sys/types.h> #include <sys/socket.h> // #include <sys/un.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <string.h> // #include <fcntl.h> // #include <assert.h> #include <openssl/ssl.h> #include <openssl/err.h> #define SSL_SERVER_RSA_CERT "/home/user/cacert/...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include "oDF2.h" void DelayLine_init(DelayLine * delayline, long N) { DF2Node * last; DF2Node * temp; long i=1; delayline->N = N; delayline->root = (DF2Node*) malloc(sizeof(DF2Node)); delayline->root->prev = NULL; delayline->root->value = 0; dela...
#include <liborkagd.h> #include <llp.h> #include <mmgmt.h> #include <unistd.h> #include "debug.h" #include "orka_types.h" struct llp_ap2_context { void *target_fpga; size_t ip_list_len; ORKAGD_FPGAComponent_t const **orka_ip_list; bool verbose; }; // struct llp_ap2_context sollte hier rein: // #include <llp_...
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferab...
#include <allegro5/allegro.h> #include <allegro5/allegro_image.h> #include <allegro5/allegro_font.h> #include <allegro5/allegro_primitives.h> #include <math.h> #include "common.c" static void draw_pyramid(ALLEGRO_BITMAP* texture, float x, float y, float z, float theta) { ALLEGRO_COLOR c = al_map_rgb_f(1, 1, 1); ...
/*********************************************************** Astrocade custom 'IO' chip sound chip driver <NAME> Portions copied from the Pokey emulator by <NAME> First Release: 09/20/98 Issues: Noise generators need work Can do lots of speed optimizations *************************************...
/* Copyright (c) 1991-1999 <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, publi...
/* * This file is part of the coreboot project. * * Copyright (C) 2017 <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; version 2 of the License. * * This program is d...
/* * File: main.c * Author: kshitijkarthick * Program: Basic Editor * Created on August 31, 2014, 4:49 PM */ #include<stdio.h> #include<stdlib.h> #include "conio.h" #define WORD_SIZE 10 // Double Linked List Implementation. struct node { char info[WORD_SIZE]; struct node *llink; struct node *rlink; }; typ...
///////////////////////////////////////////////////////////////////////// // // ir_receive.c // // Authors: <NAME>, <NAME>, <NAME> // // Parameters: // argc and argv // // Argument 1: preamble_length // Provide a number from 0-5 to indicate the // number of preamble sequences that the // transmitter is expeceted t...
///////////////////////////////////////////////// // alexnet.c // basically a simple CNN // kindly contributed by group 7 Fall 2019 // - <NAME>, 12/2019 ///////////////////////////////////////////////// #include <stdio.h> #include <stdlib.h> #define TEST_ITR 3 #include "tj_malloc.h" #ifndef DEBUG extern void exit...
#include <stdio.h> #include "compiler.h" #include "compile_parse.h" #include "compile_utility.h" #include "compile_messages.h" int TEMP = 55555; char *parseLet(struct Token symbolTable[MAXSYMS], struct Token labels[MEMSIZE], int core[MEMSIZE]) { struct Token inpt, *inptPtr = 0; char oper[SSIZE], *string; ...
/* * Copyright (c) 2021 Huawei Device Co., 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 applicable law ...
/* * LIBRARY.C * * RSM Service : Library management * * Author: ErvinP * * (c) 2001 Microsoft Corporation * */ #include <windows.h> #include <stdlib.h> #include <wtypes.h> #include <ntmsapi.h> #include "internal.h" #include "resource.h" #include "debug.h" LIBRARY *N...
/* * Copyright 1996-2018 Cyberbotics 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 applicable law or ...
#include <assert.h> #include <stdio.h> #include "pop_api.h" #include "route.h" #include "map.h" /* util */ static struct route *forward(struct entity *esw, int in_port, int out_port) { struct route *r = route(); route_add_edge(r, edge(NULL, 0, esw, in_port)); route_add_edge(r, edge(esw, out_port, NULL, 0)); return...
/* Copyright (c) 2010 <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, distr...
#include "../common/messages.h" #include "../common/utils.h" #include "control.h" #include "options.h" #include "profiler.h" #include "screen.h" #include <math.h> #include <stdlib.h> int screen_width, screen_height, client_width, client_height, window_left, window_top, window_width, window_height; void control_sc...
/* This file is part of the software similarity tester SIM. Written by <NAME>, Vrije Universiteit, Amsterdam. $Id: text.c,v 1.11 2012-11-28 20:49:52 Gebruiker Exp $ */ #include <stdio.h> #include "debug.par" #include "sim.h" #include "token.h" #include "stream.h" #include "lang.h" #include "Malloc.h" #include "opti...
/* * Copyright (c) 2017 <NAME> * Copyright (c) 2017 <NAME> * * HW Acceleration API (video decoding) decode sample * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Softwar...
#include <SDL.h> #include "system/stacktrace.h" #include <stdio.h> #include <stdlib.h> #include "math/pi.h" #include "sound_samples.h" #include "system/log.h" #include "system/lt.h" #include "system/nth_alloc.h" #include "config.h" // TODO(#1022): Sound_samples does not implement volume control. struct Sound_samples...
// // debug.c: Debugging/Profiling support code // // Copyright 2014 Xamarin Inc. // // Based on code from mt's libmonotouch/debug.m file. // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <arpa/inet.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/select.h> #include <sys/time.h> #i...
/** @file @brief CAN Example 1 Send and Receive messages between CAN0 and CAN1 and poll the response. */ /* * ============================================================================ * History * ======= * 2 Oct 2014 : Created * * Copyright (C) Bridgetek Pte Ltd * ====================================...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <window.h> #include <pipe.h> #include <file.h> #include <path.h> void shell(); int main() { shell(); return 0; } #define SHELL_CMD_NUM 18 #define COUNT_ARGV 32 unsigned long argv_pointer[COUNT_ARGV]; unsigned long _v_; void (*call_loader) (i...
// // keep_alive.c // Created by <NAME> on 1/23/14. //This file is part of the OpenKinect Project. http://www.openkinect.org // // Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB file // for details. // // This code is licensed to you under the terms of the Apache License, version // 2.0, ...
#include "factory_test.h" #include "rfid_thread.h" #include "vehicle_ctrl_thread.h" #include "thread_wdt.h" #include "config.h" #include "thread_gps.h" #include "factory_test_unique.h" #include "fifo.h" #include "rs485Thread.h" #include "modbus_rtu.h" #define FACTORY_START_TIMEOUT (10*1000) #define FACTORY...
#include "interface.h" void showCOORD (COORDENADA c){ int letra = c.x; int linha = c.y; printf ("%c%d",(letra+'A'),8-linha); } void prompt (ESTADO *est){ int nJogada= est-> num_jogadas; int jogador= est->jogador_atual; COORDENADA atual = est-> pos; printf ("\n # %d PL%d (%d)>",nJogada,jogador,(nJogada/2)+1); ...