text
stringlengths
3.12k
18.7k
#include "cardutility.h" #include "gamedefs.h" #include "warui.h" #include "wargame.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <wchar.h> #ifdef _WIN32 #define BOARD_CLEAR system("cls"); #define SYS_PAUSE system("ping 1.1.1.1 -n 1 -w 100 > nul"); #else /* Assume POSIX */ #define BOARD_CLE...
/********************************************************************************************** * * raylib_networking_smaple * a sample network game using raylib and enet * * LICENSE: ZLIB * * Copyright (c) 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this ...
/* $OpenBSD: siop_sgc.c,v 1.1 2007/08/05 19:09:52 kettenis Exp $ */ /* * Copyright (c) 2007 <NAME> * * Permission to use, copy, modify, and 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. ...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (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 * or http://www.opensolar...
/* Title: USB Joystick library Version 0.2 Written by Puck2099 (<EMAIL>), (c) 2006. <http://www.gp32wip.com> If you use this library or a part of it, please, let it know. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Licen...
/* ******************************************************************* * * Copyright 2017 Intel Corporation All rights reserved. * *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complianc...
#include "renderlib.h" #include "png.h" // Add a new chunk to the chunk list // uint32_t pngAddChunk(PNGContext* PNG, const char* Name, const uint32_t Size, const void* Data) { PNGChunk* newChunk; if (!PNG) return 0; // Add new chunk in list newChunk = calloc(1, sizeof(PNGChunk)); newCh...
/* ============================================================================ Copyright (c) 2011-2014, Institute for Microelectronics, Institute for Analysis and Scientific Computing, TU Wien. ----------------- ViennaSHE - Th...
/*! * \file NvmDataMgmt.c * * \brief NVM context management implementation * * \copyright Revised BSD License, see section \ref LICENSE. * * \code * ______ _ * / _____) _ | | * ( (____ _____ ___...
// Copyright(c) 2014-2017, Intel Corporation // // 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...
/* * Copyright 2020 Makani Technologies 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 ...
#include <stdio.h> #include <assert.h> #include <png.h> #include <math.h> #define __DEBUG__ #include "array.h" #include "list.h" typedef unsigned char bool; typedef unsigned char byte; #define false 0 #define true 1 float blur_matrix[] = { 1.0f/4, 1.0f/4, 1.0f/4, 1.0f/4, }; float GX[] = { -1, 0, 1 }; float ...
#include "dat.h" #include "fns.h" #include "error.h" #include <a.out.h> #include <dynld.h> /* * TO DO * - dynamic allocation of Dev.dc * - inter-module dependencies * - reference count on Dev to allow error("inuse") [or how else to do it] * - is Dev.shutdown the right function to call? Dev.config perhaps? */ #...
/* suba - sub-allocate memory from larger chunk of memory * Copyright (c) 2003 <NAME> <mba2000 ioplex.com> * * The MIT License * * 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...
/* mncual.f -- translated by f2c (version 19961017). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__1 = 1; /* ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc */ /* c ...
/* Spook Reference Implementation v1 * * Written in 2019 at UCLouvain (Belgium) by <NAME>, <NAME> * and <NAME>. * To the extent possible under law, the author(s) have dedicated all copyright * and related and neighboring rights to this software to the public domain * worldwide. This software is distributed withou...
/* * Copyright (c) 2017 ASMlover. 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 ofconditions ...
#include "internal.h" #include <c3d/renderqueue.h> // Return bits per pixel static inline size_t fmtSize(GPU_TEXCOLOR fmt) { switch (fmt) { case GPU_RGBA8: return 32; case GPU_RGB8: return 24; case GPU_RGBA5551: case GPU_RGB565: case GPU_RGBA4: case GPU_LA8: case GPU_HILO8: return 16; case G...
/* * * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (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 * or http://www.openso...
/* This file is part of Alpertron Calculators. Copyright 2015 <NAME> Alpertron Calculators is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at ...
#include "json2map.h" #include "config.h" #include <stdio.h> #include <string.h> #include <stdlib.h> #include "jsmn.h" #include "debugging.h" #include "stringlib.h" char *json2map_setTokenValue(char *jsonString, jsmntok_t *token); char *json2map_concatPaths(char *parent, char *key, int arrayIdx); int json2map_calcE...
#include <lasertag/lcd.h> #include <avr/io.h> #include <avr/pgmspace.h> #include <lasertag/clock.h> #include <lasertag/shift.h> /* The number of rows and columns in the LCD. */ #define LCD_COLS 8 #define LCD_ROWS 2 /* RS pin values. */ #define LCD_CMD false #define LCD_DATA true /* Command numbers. */ #define LCD_C...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2015 RDK Management * * 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 ...
typedef struct{ int id; int dmg; int ft; //冷却时间 单位ms int ava; //弹药数 double blow; //击退程度 char c[6]; }item; typedef struct player{ int id,fc; int hp,fd,wt,og; item tol; int eqp; int sx,sy; int team; //阵营 int qut; //死亡宣告 clock_t at,mt,ot,bt,swt; //攻击冷却,移动冷却,氧气冷却,击退延迟,切换冷却 double x,vx,bx,y,vy,by; doub...
/*------------------------------------------------------------------------------ Copyright (c) 2008 The Khronos Group Inc. All Rights Reserved. This code is protected by copyright laws and contains material proprietary to the Khronos Group, Inc. This is UNPUBLISHED PROPRIETARY SOURCE CODE that may not be disclosed i...
// // single pass omni-direcitonal shadow mapping for point lights // author: <NAME> <<EMAIL>> // first v. 30 nov 2015 // #include "apg_maths.h" #include "util.h" #define SM_WIDTH 2048 #define SM_HEIGHT 2048 enum Face_Dir {FWD = 0, LFT, RGT, BCK, UP, DWN}; typedef enum Face_Dir Face_Dir; struct Light {mat4 Vs[6], P...
/* * $ Copyright Cypress Semiconductor $ */ /** @file * * Bluetooth Classic RFCOMM and BLE GATT Dual mode sample application * * Features demonstrated * - Application demonstrates simultaneous usage of BT and BLE * * * On startup this demo: * Initializes the wiced_bt subsystem * Simultenously starts R...
#include<stdio.h> #define MIDTERM 0 #define FINAL 1 void part_one(); int doit(int (*f)(int,int),int first_number,int second_number); int add(int number1,int number2); int sub(int number1,int number2); int multiplication(int number1,int number2); int division(int number1,int number2); int power(int number1,...
/* * (C) Copyright 2006 * <NAME>, DENX Software Engineering, <EMAIL>. * * See file CREDITS for list of people who contributed to this * project. * * 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 Fo...
/* Copyright (c) 2016, DF9DQ * 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 "defs.h" char strbuf[100]; void scan(void) { static int t; if (inp == pgm) t = 0; // initial state else t = token; token = scan1(); // ensure last token is semicolon if (token == 0 && t && t != ';') { strbuf[0] = ';'; strbuf[1] = 0; token = ';'; } #if 0 if (token < 128) printf("token ...
#include <stdio.h> #include <stdlib.h> #include "print_out.h" #include "es_output.h" #define PES_START_CODE 0x000001 #define STREAM_ID_PRIVATE_1 0xBD #define STREAM_ID_PADDING 0xBE #define STREAM_ID_PRIVATE_2 0xBF #define STREAM_ID_AUDIO_MIN 0xC0 #define STREAM_ID_AUDIO_MAX 0xDF #define STREAM_ID_VIDEO_MIN ...
#ifndef lint static const char RCSid[] = "$Id: replmarks.c,v 2.18 2021/02/12 00:53:56 greg Exp $"; #endif /* * Replace markers in Radiance scene description with objects or instances. * * Created: 17 Feb 1991 <NAME> */ #include <stdlib.h> #include <ctype.h> #include <math.h> #include <stdio.h> #include "platform....
/* * Copyright (C) 2003 - 2006 NetXen, 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; either version 2 * of the License, or (at your option) any later versi...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE * or http://www.opensolaris.o...
/********************************************************************************//** * @file main.c * @version V3.00 * @brief * Show a Slave how to receive data from Master in GC (General Call) mode. * This sample code needs to work with USCI_I2C_GCMode_Master. * * SPDX-License-Identifi...
#include <ctype.h> #include <string.h> #include <stdlib.h> #include "const.h" #include "syntax.h" #include "output.h" #include "highlight.h" #include "filetypes.h" /* Defined in config.h */ extern struct editor_config *E; /* Defined in filetypes.h */ extern struct editor_syntax HLDB[]; /*** syntax highlighting ***/...
/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this file to You under ...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <time.h> #include "SFMT.h" #include "fftw3.h" // N: sample size, S: dimension, M: number of finite elements // MAIN: number of independent runs // C:coefficient appearing in the random field a #define N (64) #define M (8) #define S (64) #define C (1) #d...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <stdbool.h> #include <sys/socket.h> // socket, connect, send, recv, bind, listen, accept, getsockopt, setsockopt #include <netinet/in.h> // sockaddr_in, #include <unistd.h> // close #include <arpa/inet.h> // ntohs, inet_ntoa #includ...
/* Testing large objects */ /* Test from <NAME> */ #include "common.h" static char software_version[] = "$Id: blob1.c,v 1.1.2.5 2008/01/12 00:21:39 freddy77 Exp $"; static void *no_unused_var_warn[] = { software_version, no_unused_var_warn }; #define CHECK_RCODE(t,h,m) \ if ( rcode != SQL_SUCCESS && rcode != SQL_...
/* Tinyscript Library * * Copyright 2020 <NAME> * * +-------------------------------------------------------------------- * ¦ TERMS OF USE: MIT License * +-------------------------------------------------------------------- * Permission is hereby granted, free of charge, to any person obtaining * a copy of thi...
/**************************************************************************** * SideStep DOL Loading * * This module runs a DOL file from Auxilliary RAM. This removes any memory * issues which might occur - and also means you can easily overwrite yourself! * * softdev March 2007 ****************************************...
#include <string.h> #include "xmcomp/src/common.h" #include "xmcomp/src/buffer.h" #include "xmcomp/src/logger.h" #include "builder.h" #include "packet.h" void packet_cleanup(IncomingPacket *packet, int mode) { if (!BPT_NULL(&packet->inner_nodes.presence.muc)) { memset(packet->inner_nodes.presence.muc.data, ' ', ...
/* * Copyright (C) 2011 <NAME> * * Permission to use, copy, modify, and 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 ALL...
/* A test program to check whether the type-traversal functions in mpiwrap.c (walk_type, walk_type_array) are correct. It does this by sending a message to itself, thereby discovering what areas of memory the MPI implementation itself believe constitute the type. It then gets walk_type to enumerate the ty...
/* * eBPF user space agent part * * Simple, _self-contained_ user space agent for the eBPF kernel * ebpf_prog.c program, which gets all map fds passed from tc via unix * domain socket in one transaction and can thus keep referencing * them from user space in order to read out (or possibly modify) * map data. Her...
/* hubSearchText.c was originally generated by the autoSql program, which also * generated hubSearchText.h and hubSearchText.sql. This module links the database and * the RAM representation of objects. */ #include "common.h" #include "linefile.h" #include "dystring.h" #include "jksql.h" #include "rangeTree.h" #inc...
/* * Copyright (c) 2018 <NAME> * https://github.com/iotaledger/entangled * * MAM is based on an original implementation & specification by apmi.bsu.by * [ITSec Lab] * * Refer to the LICENSE file for licensing information */ #include <stdlib.h> #include "common/trinary/trit_long.h" #include "mam/v2/wots.h" /*...
/* * "ex" API implementation * http://lua-users.org/wiki/ExtensionProposal * Copyright 2007 <NAME> < medgar at student gc maricopa edu > */ #include <stdlib.h> #include <windows.h> #include <io.h> #include "lua.h" #include "lauxlib.h" #include "spawn.h" #include "pusherror.h" #if LUA_VERSION_NUM >= 502 #define l...
#include <stdio.h> #include <ctype.h> #include <math.h> #if POLY #define CLK (3000 * 1000) #define CLK_PER_LOOP 180 #define DESC_N 4 #define ENV (CLK / 300000) #else #define CLK (750 * 1000) #define CLK_PER_LOOP 8 #define DESC_N 1 #endif #define DEFAULT_BPM 120 #define OCTAVE 12 #define TBASE (4 * 60...
/*------------------------------------------------------------------------- * * resolver.c * * The foreign transaction resolver background worker resolves foreign * transactions that participate to a distributed transaction. A resolver * process is started by foreign transaction launcher for each databases. * *...
/* This will extract all possible k-mers from the input file and convert them into an in-mem keyword tree saving information about k-mers - their mapping to input lines, and to the corresponding reverse complement */ #include "kmers_to_kwtree.h" int convertAllKmersIntoKWTreeReturnTree (FILE *kmersFP, int inputT...
/* beispiel-4.4-numerov.c Datum: 06.05.2020 */ /* dieser Code implementiert ein vereinfachtes Numerov Problem, Erweiterung notwendig bei "Korrektur notwendig fuer g!=0 !!!!" */ #include <stdio.h> #include <stdlib.h> #include <math.h> /* Routine fuer Nullstellensuche mit dem Sekantenverfahren (siehe beispiel-3....
/* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without restriction, * including ...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <unistd.h> #include <sys/time.h> #include <sys/ioctl.h> #include <inttypes.h> #include <math.h> #include "progress.h" static double gettimed() { struct timeval tv; gettimeofday(&tv, NULL); return (double)tv.tv_sec + (double)tv.tv_usec / 1000000; }...
/* Some simple mathematical functions. Don't look for some logic in the function names :-) */ #include <stdlib.h> #include <string.h> #include <math.h> #include "zmath.h" /* ******* Gestion des matrices 4x4 ****** */ void gl_M4_Id(M4 *a) { int i,j; for(i=0;i<4;i++) for(j=0;j<4;j++) if (i==j) a->m[i][j]=1.0;...
// MIT 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, merg...
/*************************************************************************************************/ /*! * \file switch_config.c * * \brief Switch application configuration. * * Copyright (c) 2010-2019 Arm Ltd. All Rights Reserved. * * Copyright (c) 2019 Packetcraft, Inc. * * Licensed under the Apache...
/* extended_standby.c * * Copyright (C) 2013-2014 allwinner. * * By : liming * Version : v1.0 * Date : 2013-4-17 09:08 */ #include <linux/module.h> #include <linux/init.h> #include <linux/regulator/consumer.h> #include <linux/power/axp_depend.h> static unsigned int debug_mask = 0; /* * a33_sys_mas...
/* vim: ft=c et ts=8 sts=4 sw=4 cino= * * Copyright 2011, 2012 Couchbase, 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 * ...
/* * KeyGen is a key- and password generator. * Copyright (C) 2014-2017 offa * * This file is part of KeyGen. * * KeyGen is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License...
/* * Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com * * 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 requir...
// Some util function to render text in the demo. This is based on the // code from Chipmunk (https://chipmunk-physics.net). #include <GL/glew.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "VeraMoBd_ttf.h" #define max(x, y) ((x) >= (y) ? (x) : (y)) #define SCALE 0.70f #d...
// // Created by svalov on 12/12/16. // #include "moarServiceCommand.h" #include <funcResults.h> #include <moarPresentationService.h> #include <moarCommons.h> #include <moarServiceApp.h> #include <moarService.h> #include <moarServicePrivate.h> #include <moarServiceConStore.h> int pushSendToPresentation(ServiceLayer_T...
/* ekops.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__3 = 3; /* $Procedure EKOPS ( EK, open scratch file ) */ /* Subroutine */ int ekops_(integer *handle) ...
/* ########################################################## # This file is part of the AdjoinableMPI library # # released under the MIT License. # # The full COPYRIGHT notice can be found in the top # # level directory of the AdjoinableMPI distribution. # ######################...
/* # clove # # Copyright (C) 2019-2020 <NAME> # # This project is free software; you can redistribute it and/or modify it # under the terms of the MIT license. See LICENSE.md for details. */ #include "../include/ui.h" #include "atlas.inl" #include "../include/image.h" #include "../include/imagedata.h" #includ...
/* * Copyright (c) 2014 dark_neo * All rights reserved. * * Source code released under BSD license. * See LICENSE file for more details. */ /* * Client program. */ /* Standard C headers */ #include <stdio.h> #include <stdlib.h> #include <string.h> /* MULTI-ARCH */ /* Enable debug at compiling time with: -DM...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief * Change system clock to different PLL frequency and output system clock from CLKO pin. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2019 Nuvoton Technology Corp. Al...
/** * @file graphTest.c * @author DaveDeDave --> https://github.com/DaveDeDave * @date August 9, 2021 */ #include "../include/graph.h" #include <assert.h> void directedGraphTest(); void undirectedGraphTest(); graph * prepareDirectedGraphTest(); graph * prepareUndirectedGraphTest(); graph * editDire...
#include "final_sm.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include "alt_types.h" #include "system.h" #define biquad_index (alt_u8*) BIQUAD_INDEX_BASE #define coefficient (alt_u32*) COEFFICIENT_BASE #define to_hw_sig (alt_u8*) TO_HW_SIG_BASE #define to_sw_sig (volatile alt_u8*) TO_SW_...
/* * Library to read and write streams. * * Copyright (C) 2009, 2010, 2013, 2014, 2015 and 2016. <NAME> * * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided with the distribution...
/* (c) 2015 Massachusetts Institute of Technology */ #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 <sys/un.h> #include <pthread.h> #include <bits/signum.h> #include "disk_introspection_server.h" // Lo-Phi...
/*- * Copyright (c) 2004 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
#include<netinet/in.h> #include<string.h> #include<sys/socket.h> #include<sys/types.h> #include<arpa/inet.h> #include<errno.h> #include<fcntl.h> #include<stdio.h> #include<stdlib.h> #include<sys/stat.h> #include<unistd.h> #include<sys/uio.h> #include<sys/wait.h> #include<time.h> #include<errno.h> #includ...
/** * 32 - Text Input and Clipboard Handling */ #include "SDL.h" #include <stdio.h> #include <stdbool.h> #include "common.h" #include "LTexture.h" #include "LTimer.h" #include <string.h> #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 #define SETFRAME(var, arg1, arg2, arg3, arg4) \ do { \ var.x =...
/* * Copyright 2018 <NAME> * * This program is free software; you can redistribute it and/or modify it * under the terms of the standard MIT license. See LICENSE for more details. */ #include "gclogger.h" extern char *optarg; extern int optind; static volatile bool running = true; static int confighandler(voi...
/* * Copyright (C) 2018 Oracle. All Rights Reserved. * * Author: <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...
#include <net-snmp/net-snmp-config.h> #if HAVE_STDLIB_H #include <stdlib.h> #endif #include <stdio.h> #if HAVE_STRING_H #include <string.h> #else #include <strings.h> #endif #if HAVE_UNISTD_H #include <unistd.h> #endif #include <ctype.h> #if HAVE_NETINET_IN_H #include <netinet/in.h> #endif #include <dlfcn.h> #inclu...
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Daisy board-specific configuration */ #include "battery_pack.h" #include "common.h" #include "gaia_power.h" #include "gpio.h" #include "i2c....
/** * \file * \brief Proximity Module * \author <NAME>, <EMAIL> * * This module handles the proximity (IR) sensors to detect an obstacle or another robot. */ #include "McuLib.h" #include "Proximity.h" #include "McuUtility.h" #include "Pin.h" #define PROX_NOF_LEVELS 5 static const int PROX_durationBurstUs[PRO...
#include<stdlib.h> #include<string.h> #include<stdio.h> #include<time.h> #include<math.h> #include"files.h" #include"common.h" #include"contact.h" #include"trace.h" #include"gtk_cairo.h" #include"files.h" #define LOADING_LOCATION_COUNT 0x1 #define UNLOADING_LOCATION_COUNT 0x10 #define LIGHT_LOCATION_COUNT 0x100 #defin...
#include "nbhashmap.c" #include <stdlib.h> #include <unistd.h> #include <string.h> #include <pthread.h> #define TCOUNT 5 #define WCOUNT 50000 #define TRANDOM 5 #define TRANGE 200 #define WRAP 200000 // good hash function is essential; this is murmurhash2a #define mmix(h,k) { k *= m; k ^= k >> r; k *= m; h *= m;...
/* * Copyright ConsenSys AG. * * 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...
/* * Copyright 2009-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at: * * http://aws.amazon.com/apache2.0/ * * or in the ...
/* * hash.c * * Copyright © 2017 <NAME> <<EMAIL>> * This work is free. You can redistribute it and/or modify it under the * terms of the Do What The Fuck You Want To Public License, Version 2, * as published by Sam Hocevar. See the LICENSE file for more details. */ /* WARNING: SOME PARTS OF THIS FILE ARE COPYRI...
/* * osh - A shell for Oracle * * <NAME> (<EMAIL>) * 2Q 2019 * * SPDX-License-Identifier: BSD-2-Clause-FreeBSD */ /* Project headers */ #include "osh.h" /* Identifiers */ #define NAME "lsc" #define BRIEF "Display information about known connections" #define SYNOPSIS "lsc" #define DESCRIPTI...
/************************************************************************ * * File name: interface.c * * Description: main swig interface file * * Copyright 2010 <NAME>, all rights reserved * *************************************************************************/ #include "handle.h" /*******************...
/* * This file is part of the coreboot project. * * Copyright (C) 2008-2009 coresystems GmbH * Copyright (C) 2014 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; version 2 ...
/* $NetBSD: fpu.c,v 1.1 2001/06/19 00:21:16 fvdl Exp $ */ /*- * Copyright (c) 1994, 1995, 1998 <NAME>. All rights reserved. * Copyright (c) 1990 <NAME>. * Copyright (c) 1991 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without...
/* ** <NAME> ** 11/18/20 ** Multi-threaded Producer Consumer Pipeline ** **WARNING: THIS PROGRAM DOESN'T WORK AT ALL** */ #include <pthread.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> void *getInput(void*); void *replaceNewLines(void*); void *replacePlusSigns(void*); void *out...
/**************************************************************************//** * @file timer.c * @version V1.00 * $Revision: 8 $ * $Date: 13/10/05 3:49p $ * @brief MINI51 series TIMER driver source file * * @note * Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved. **********************...
/****************************************************************************** ** File: bsp_ut.c ** ** ** This is governed by the NASA Open Source Agreement and may be used, ** distributed and modified only pursuant to the terms of that agreement. ** ** Copyright (c) 2004-2015, United States government...
/* $NetBSD: plumiobus.c,v 1.5 2002/01/29 18:53:11 uch Exp $ */ /*- * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modi...
#define _GNU_SOURCE #include <stddef.h> #include <stdio.h> #include <uchar.h> #include "stb_image/stb_image.h" #include "stb_image/stb_image_write.h" #include "wcwidth/wcwidth.h" #include "base64.h" #include "colors.h" #include "util.h" #include "vt.h" #include "vt_sixel.h" typedef enum { UL_NONE, UL_NORMAL...
#include "file.h" #include <stdlib.h> #include <string.h> void FileCreate(const char* path) { struct File file; long header_size = sizeof(file.cont_pos) + sizeof(file.meta_pos) + sizeof(file.dir_pos); file.cont_pos = file.meta_pos = header_size; file.dir_pos = header_size + sizeof(((struct MetaList*)NULL)->siz...
/* Copyright (C) 2001-2021 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
/** Author and Copyright 2018 <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 agree...
#define NETVAR #include <pack.h> #define M_ST_OFF(struct_type, member) \ (int)((long)(void *) &(((struct_type*) 0)->member)) const char NAN_NULL[sizeof(double)]={0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}; T_PkgType LongType[]={ {CH_LONG,sizeof(long),0,0,-1}, {-1,0} }; T_PkgType CharType[]={ {CH_CHAR,-1,...