text
stringlengths
3.12k
18.7k
/*====================================================================* - Copyright (C) 2001 Leptonica. 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 c...
/* Unix SMB/Netbios implementation. Version 1.9. NBT netbios routines and daemon - version 2 Copyright (C) <NAME> 1994-1998 Copyright (C) <NAME> 1994-1998 Copyright (C) <NAME> 1994-1998 This program is free software; you can redistribute it and/or modify it under the terms of the GNU Genera...
/* * Copyright (c) 1982, 1986, 1989, 1991, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix Syst...
/* * 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...
/* * Author: <NAME> <<EMAIL>> * * This code is heavily based on the semtech lora library at: * https://github.com/Lora-net/LoRaMac-node * which is licensed under the BSD license at: * upm/src/sx127x/LICENSE.txt */ #pragma once #include "upm.h" #include "mraa.h" #include "sx127x.h" #define RECEIVE_DELAY1 ...
/* ** strmlength: estimates the streamwise length of the "main stream" for ** each subbasin in a DEM. "Main stream" is defined as the path ** of maximum drainage area, working upstream. If two or more ** upstream directions have the same drainage area, one is ** selected ...
#include "../../Rasware/RASLib/inc/common.h" #include "../../Rasware/RASLib/inc/motor.h" #include "../../Rasware/RASLib/inc/gpio.h" #include "../../Rasware/RASLib/inc/spi.h" #include "../../Rasware/RASLib/inc/time.h" #include "../../Rasware/RASLib/inc/uart.h" #include <stdint.h> #include <stdio.h> #include <StellarisWa...
#include "spi.h" void spiNewInit() { OSCCONbits.SPLLEN=1; OSCCONbits.SCS0=0; TRISAbits.TRISA0 = 1; // AN0 = A/D Thermistor pin2 TRISAbits.TRISA1 = 1; // AN1 = isense pin3 TRISAbits.TRISA2 = 1; // AN2 temp pin4 TRISAbits.TRISA3 = 1; // c1in1+ pin5 ...
#include "drally.h" #pragma pack(1) typedef struct menubox_s { __DWORD__ row_n; // +00 __DWORD__ x; // +04 __DWORD__ y; // +08 __DWORD__ row_h; // +0C __DWORD__ w; // +10 __DWORD__ h; // +14 __DWORD__ row_i; // +18 } menubox_t; menubox_t ___185a5ch[9] = { /*0*/ { 7, 0x91, 0x7c, 0x1c,...
/************************************************************************ * * libio - A CLI project * * Copyright (C) 2016 <NAME> (<EMAIL>) * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be held liable for any damages arising from the use of this so...
/* The VDRIVER - A Classic Video Game Engine By <NAME> and Divine Entertainment (1997-2000) Support: If you find problems with this code, send mail to: <EMAIL> For additional information and updates, see our website: http://www.divent.org Disclaimer: I could put things here that would make me soun...
#include "cons.h" #include "emCLI.h" #include "config.h" #include "string.h" #include "stdio.h" #include "io.h" #include "cmsis_os.h" uint8_t *cBuf; uint32_t *cLen; /* typedef bool(*CmdFunc)(const char*); typedef struct EMCCommand { const char* cmdName; const char* shortDescr; const char* longDescr; const CmdFu...
/* ******************************************************************************** * * GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001 * R99 Version 3.3.0 * REL-4 Version 4.1.0 * *********************...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* A Bison parser, made by GNU Bison 2.5. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
/* Copyright 2021 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You may * obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing...
//<NAME> //University of Michigan //Linear Book Scanner //Stepper Controller //December 12, 2013 /* * The purpose of this program is to control a stepper motor * for the Linear Book Scanner. Essentially we want a real * time opperating system commanding the steps so that we * know that the velocity is...
/* disc.c Interface to the low level disc functions. Used by the higher level file system code. Based on code originally written by MightyMax Copyright (c) 2006 <NAME>" Chisholm Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condition...
/* getopt.c Copyright 1997-2013 by <NAME>. All rights reserved. This code is released under the terms of the GNU General Public License Version 2. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridg...
#include "c_types.h" #include "c_stdio.h" #include "user_interface.h" #include "mem.h" #include "osapi.h" #include "sntp.h" #include "espconn.h" #include "user_config.h" #include "util/bitwise_utils.h" #include "mqtt.h" #include "mqtt_msg.h" #include "mqtt_api.h" // #define USER_TEST_MSG //<--Uncomment to send the t...
/*------------------------------------------------------------------------------ DHT22 temperature & humidity sensor AM2302 (DHT22) driver for ESP32 Jun 2017: <NAME>, new for DHT22 Code Based on Adafruit Industries and <NAME> and <NAME>. Please help to improve this code. This example code is in the Public...
/** * @file lv_draw_arc.c * */ /********************* * INCLUDES *********************/ #include "lv_draw.h" #include "lv_draw_arc.h" /********************* * DEFINES *********************/ /********************** * TYPEDEFS **********************/ /********************** * STATIC PROTOTYP...
/* *************************************************************************** * * Copyright 2019 Samsung Electronics 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. * You may obtain a copy of the License a...
#include "platform/glfw.h" static GLFWwindow* window; static GLubyte screen[SCREEN_HEIGHT][SCREEN_WIDTH][3]; static COLOR color; static GLuint vertex_array_id; static GLuint vertex_buffer_id; static GLuint index_buffer_id; static GLuint texture_id; static GLuint vertex_shader_id; static GLuint fragment_shader_id; sta...
/*++ Copyright (c) 1996-1999 Microsoft Corporation Module Name: brush.c Abstract: DrvRealizeBrush Environment: Windows NT Unidrv driver Revision History: 05/14/97 -amandan- Created --*/ #include "unidrv.h" BRGBColorSpace(PDEV *); LONG FindCachedHTPat...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* @(#) Function to extract a portion of a Vasari format picture. * @(#) Function im_extract() assumes that the imin image * @(#) is either memory mapped or in the buffer pimin->data. * @(#) * @(#) int im_extract(pimin, pimout, pbox) * @(#) IMAGE *pimin, *pimout; * @(#) IMAGE_BOX *pbox; * @(#) * @(#) All functi...
/* * External declarations for the run-time system. */ /* * External declarations common to the compiler and interpreter. */ extern TRuntime_Status rt_status; extern struct b_proc *op_tbl; /* operators available for string invocation */ extern int op_tbl_sz; /* number of operators in op_tbl */ extern ...
/*************************************************************************\ * Copyright (c) 2002 Southeastern Universities Research Association, as * Operator of Thomas Jefferson National Accelerator Facility. * EPICS BASE is distributed subject to a Software License Agreement found * in file LICENSE that is includ...
/** * (C) Copyright 2016 Intel 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...
/** * fake data generation code; used for development and debugging * send lots of data to a network port * */ // http://beej.us/guide/bgnet/output/html/singlepage/bgnet.html#theory // needed for GNU extension to recvfrom: recvmmsg, bswap #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <unistd...
// reln.c ... functions on Relations // part of signature indexed files // Written by <NAME>, March 2019 #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include "defs.h" #include "reln.h" #include "page.h" #include "tuple.h" #include "tsig.h" #include "bits.h" #include "hash.h" #include "psig.h" #include "...
/* * This example demonstrates how to configure analog * to digital converter */ #include "stm32f0xx_ll_rcc.h" #include "stm32f0xx_ll_system.h" #include "stm32f0xx_ll_bus.h" #include "stm32f0xx_ll_gpio.h" #include "stm32f0xx_ll_adc.h" #include "stm32f0xx_ll_dma.h" #include "xprintf.h" #include "oled_d...
/* * Licensed to Systerel under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Systerel licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this * file except ...
/* * Copyright (c) 2005 <NAME> * (Royal Institute of Technology, Stockholm, Sweden). * 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 th...
/* * BlueALSA - hci.c * Copyright (c) 2016-2019 <NAME> * * This file is a part of bluez-alsa. * * This project is licensed under the terms of the MIT license. * */ #include "hci.h" #include <errno.h> #include <poll.h> #include <string.h> #include <sys/socket.h> #include <sys/time.h> #include <unistd.h> #incl...
#include "r4300/exception.h" #include "common.h" typedef enum { EXC_INT = 0, EXC_MOD = 1 << 2, EXC_TLBL = 2 << 2, EXC_TLBS = 3 << 2, EXC_ADEL = 4 << 2, EXC_ADES = 5 << 2, EXC_IBE = 6 << 2, EXC_DBE = 7 << 2, EXC_SYS = 8 << 2, EXC_BP = 9 << 2, EXC_RI = 10 << 2, EXC_CPU = ...
/* ** Copyright 2007-2018 RTE ** Author: <NAME> ** ** This file is part of Sirius_Solver. ** This program and the accompanying materials are made available under the ** terms of the Eclipse Public License 2.0 which is available at ** http://www.eclipse.org/legal/epl-2.0. ** ** This Source Code may also be made availabl...
#include "snapconfig.h" /* $Log: binfile.c,v $ Revision 1.4 2004/04/22 02:35:23 ccrook Setting up to support linux compilation (x86 architecture) Revision 1.3 1998/06/25 02:13:37 ccrook Fixing bug introduced when a file is opened for reading such that the end of section code is run in error when...
/* Copyright (c) 2013, The Linux Foundation. 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 version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope...
/* * Soft: Keepalived is a failover program for the LVS project * <www.linuxvirtualserver.org>. It monitor & manipulate * a loadbalanced server pool using multi-layer checks. * * Part: MISC CHECK. Perform a system call to run an extra * system prog or script. ...
/* CUJ2K - JPEG2000 Encoder on CUDA http://cuj2k.sourceforge.net/ Copyright (c) 2009 <NAME>, <NAME>, <NAME>, <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 restrict...
//LAB 3 TASK C SKELETON FILE //This file is not complete and requires modification to get Task C to work //This file will not compile in its current form //You also need to have some correct modules included in the TI-RTOS .cfg file // Add include files here /* XDCtools Header files */ #include <xdc/std.h> #include <...
// 0x0700D370 - 0x0700D388 static const Lights1 wf_seg7_lights_0700D370 = gdSPDefLights1( 0x66, 0x66, 0x66, 0xff, 0xff, 0xff, 0x28, 0x28, 0x28 ); // 0x0700D388 - 0x0700D488 static const Vtx wf_seg7_vertex_0700D388[] = { {{{ -252, 261, 75}, 0, { 0, -3138}, {0x00, 0x7f, 0x00, 0xff}}}, {{{ ...
#include "process.h" #include "scheduler.h" #include "syscalls.h" #include "lib.h" #include "readwrite.h" char buff2[8]; Colour colour2 = {255, 255, 255}; Colour yellow2 = {100, 1000, 255}; static int nextPid = 1; //Esta variable le asigna a cada proceso un pid distinto tProcess* createProcess(char* processName,void*...
/* * Australian Public Licence B (OZPLB) * * Version 1-0 * * Copyright (c) 2004 National ICT Australia * * All rights reserved. * * Developed by: Embedded, Real-time and Operating Systems Program (ERTOS) * National ICT Australia * http://www.ertos.nicta.com.au * * Permissi...
/* * Vortex OpenSplice * * This software and documentation are Copyright 2006 to TO_YEAR ADLINK * Technology Limited, its affiliated companies and licensors. All rights * reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file e...
#include "stats.h" int stats_shmid; process_stats_t * init_stats(config_t **config, int cfg_count, int thread_count, int conn_count) { int stats_shm_size=0; process_stats_t * stats; thread_stats_t * thread_stats; conn_stats_t * conn_stats; int i; int j; int tmp_thread_count; stats_shm_size=sizeof(conn...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define NAME_LEN 64 #define PHONE_LEN 20 #define ADDRESS_BOOK_SIZE 256 int univoco = 0; typedef struct { int id; // id numerico del contatto (valore univoco) char name[NAME_LEN + 1]; // nome della persona char phone[PHONE_LEN + 1]; // numero di t...
/* See LICENSE file for copyright and license details. */ /* appearance */ static const unsigned int borderpx = 2; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar ...
/* * File XmPciLpEvent.h created by <NAME> on Mon Jan 15 2001. * * This module handles PCI interrupt events sent by the iSeries Hypervisor. */ #include <linux/pci.h> #include <linux/init.h> #include <linux/threads.h> #include <linux/smp.h> #include <linux/param.h> #include <linux/string.h> #include <linux/bo...
/* Copyright (c) 2018 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL W...
// Source: http://paulbourke.net/papers/triangulate/triangulate.c // #include <stdlib.h> #include <math.h> #pragma clang diagnostic ignored "-Wcomma" typedef struct { int p1, p2, p3; } ITRIANGLE; typedef struct { int p1, p2; } IEDGE; typedef struct { float x, y; int i; } XYZ; typedef struct { doub...
/**************************************************************************** ** (c) Copyright IBM Corp. 2007 All rights reserved. ** ** The following sample of source code ("Sample") is owned by International ** Business Machines Corporation or one of its subsidiaries ("IBM") and is ** copyrighted and licensed, not...
/*********************************** <NAME> 04/02/2011 Ice Mice ***********************************/ #include <stdio.h> #include <stdlib.h> #include <math.h> #define PI 3.1415926535897932384626433832795 //Data structure representing a coordinate struct Point{ double x; double y; }; double to...
#include "driver.h" UINT8 *skykid_textram, *skykid_videoram, *skykid_spriteram; static tilemap *bg_tilemap,*tx_tilemap; static int priority,scroll_x,scroll_y; /*************************************************************************** Convert the color PROMs. The palette PROMs are connected to the RGB ou...
#include "configurator.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <inttypes.h> #define UNKNOWN_PARAM -1 #define WRITE_BY_TIME_PARAM 1 #define WRITE_BY_SIZE_PARAM 2 #define PARSE_MODE_PARAM 3 #define MAX_THREADS_PARAM 4 #define OUTPUT_FILENAM...
#include <my.h> #include "coss.h" #include "instructions.h" #ifdef __OSS__ #include <lld.h> #include <oss.h> //#define printf(str, ...) {printf(str __VA_OPT__(,) __VA_ARGS__); refresh();} #else #include <stdio.h> #include <string.h> #include <stdlib.h> #endif coss_t *global_coss = 0; void init_coss_global(void...
/* ambi-tv: a flexible ambilight clone for embedded linux * Copyright (C) 2013 <NAME> * * This file is part of ambi-tv. * * ambi-tv 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 ...
/* * Copyright (c) 2011-2019, Triad National Security, LLC. * All rights Reserved. * * CLAMR -- LA-CC-11-094 * * Copyright 2011-2019. Triad National Security, LLC. This software was produced * under U.S. Government contract 89233218CNA000001 for Los Alamos National * Laboratory (LANL), which is operated...
#include<stdio.h> #include<math.h> #define PI 3.1415927 // NDVI double ndvi(double red, double nir){ double result; if(red+nir<=0.001){ result=-1.0; }else{ result=(nir-red)/(red+nir); } return result; } // WATER int water_modis(double surf_ref_7, double ndvi) { double result; if (surf_ref_7<0.04&&ndvi<0.1)...
/* $NetBSD: pidlock.c,v 1.3 1997/10/19 18:10:58 mycroft Exp $ */ /* * Copyright 1996, 1997 by <NAME> <<EMAIL>>. * * 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 th...
/* * Copyright 2018-2019 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #include "./traverse_order.h" #include "../../util/arr.h" #include "../../util/vector.h" #include "../../util/rmalloc.h" #include <assert.h> #define T 1 // Transpose pena...
/* SoftScript expressions These are expressions which are compiled into an AST but not yet dereferenced. by <NAME> 4/9/2018 */ #include <stdlib.h> #include <stdio.h> #include "softscript.h" #include "hollow_lists.h" #include "dictionary.h" expression *create_expression(){ expression *output; outp...
#include "mru.h" #include "fuzzy.h" #include "json_msg_handler.h" #include "search_helper.h" #include "str_pool.h" #include <ctype.h> #include <fcntl.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #define INITIAL_CACHE_SIZE 100 static file_info_t *g_mru_cache; sta...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <limits.h> // constants #define MAX_CYCLES 10000 #define STACKSIZE 10000 #define MEMORYSIZE 16384 // globals int Memory[MEMORYSIZE] = {}; int programCounter = 0; int cycleCounter = 0; char* Code; typedef struct { int size; ...
/* * ssl.c * * Created on: May 13, 2020 * Author: Jeff */ #include "impl/ssl.h" #include <stddef.h> #include "../../arena/strings.h" #include "../../class.h" #include "../../datastructure/array.h" #include "../../datastructure/map.h" #include "../../datastructure/tuple.h" #include "../../element.h" #inclu...
#include <stdio.h> #include <stdarg.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <limits.h> #include <unistd.h> #include <sys/types.h> #include <errno.h> void terminar(char *error, ...) { va_list a; va_start(a, error); vfprintf(stderr, error, a); va_end(a); exit(1); }//Fun...
#include <assert.h> #include <ctype.h> #include <errno.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> // needed by GNU getopt #include <gmp.h> // must be included after stdlib.h #include "version.h" #define USAGE "Usage: %s [-1g[r num]] n" #d...
/* company.c License CC0 PUBLIC DOMAIN To the extent possible under law, <NAME> has waived all copyright and related or neighboring rights to tabitha. This work is published from: United States. */ #include "company.h" #include "error.h" #include "password.h" #include "trim.h" extern void company_trim( s...
#include "dll_loader.h" #include <stdio.h> #include <string.h> #define SET_ERROR_CONTEXT(context_ptr, value) \ (context_ptr)->output.context = (value) #define SET_ERROR_STATUS(context_ptr, value) \ (context_ptr)->output.status = (value) #define SET_ERROR_MESSAGE(context_ptr, len, ...) \ do { ...
/* Author: Romain "Artefact2" <NAME> <<EMAIL>> * * This program is free software. It comes without any warranty, to the * extent permitted by applicable law. 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 ...
#include <bitcoin/block.h> #include <bitcoin/chainparams.h> #include <ccan/cast/cast.h> #include <ccan/crypto/sha256/sha256.h> #include <ccan/mem/mem.h> #include <common/bech32.h> #include <common/bech32_util.h> #include <common/bolt12.h> #include <common/bolt12_merkle.h> #include <common/features.h> #include <secp256k...
/* * Various data structure read/write/report routines. * Copyright (C) 2010-2014 <NAME> * All rights reserved. * * This Source Code Form is subject to the terms of the Mozilla * Public License, v. 2.0. If a copy of the MPL was not * distributed with this file, You can obtain one at * http://mozilla.org/...
/* BLAKE reference C implementation Copyright (c) 2012 <NAME> <<EMAIL>> 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 without any warranty. You should have...
/* * Copyright Β© 2004-2008 Red Hat, Inc. * Copyright Β© 2008 University of South Australia * * 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 both ...
/* $Id: m_pool.c,v 1.7 2002/12/31 22:30:57 te Exp $ */ /* * Copyright (c) 2002 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must r...
#include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <sys/stat.h> #include <string.h> #include <ctype.h> #include "strbuf.h" #include "parse-options.h" #include "png-chunk-processor.h" #include "utils.h" #include "zlib.h" #define DEFLATE_STREAM_BUFFER_SIZE 16384 static int extract(co...
/* Copyright (c) 2010, 2012 The Linux Foundation. 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 version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the...
#include <stdio.h> #include <string.h> #include <ctype.h> #include <stdlib.h> #include <avr/io.h> #include <avr/interrupt.h> #include <avr/wdt.h> #include "./global.h" #include <util/delay.h> #include "./sys.h" #include "./app.h" // defines #define SYS_UART_BYTE_RECEIVED (UCSR0A & (1 << RXC0)) #define SYS_UART_UDR...
// mpicc -lm -o mpi mpi.c && mpirun -np 2 mpi img/input1.png img/output1.png 8 #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <unistd.h> #include <sys/time.h> #include <assert.h> #include <mpi.h> char* IMAGEN_ENTRADA; char* IMAGEN_SALIDA; int ARG; float kernel[3][3] = {{-1,-...
#include "functions.h" //Takes the nickname from STDIN in string username[10] void takeUsernameForLeaderbord(WINDOW *winGame, char username[10]){ keypad(winGame, TRUE); int inputKey; username[10] = '\0'; int index = 0; while(index != 10) username[index++] = ' '; index = 0; while(1){ inputKey = wgetch(winGam...
/* Copyright 2001 - Cycling '74 <NAME> <EMAIL> */ #include "jit.common.h" typedef struct _jit_scissors { t_object ob; long rows; long cols; long max; } t_jit_scissors; void *_jit_scissors_class; t_jit_scissors *jit_scissors_new(void); void jit_scissors_free(t_jit_scissors *x); t_jit_err jit_sc...
/* * Copyright (c) 2009-2011 The University of Tennessee and The University * of Tennessee Research Foundation. All rights * reserved. * * @precisions normal z -> s d c * */ #include "common.h" #include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h" static...
/* * Copyright (c) 2019 Sprint * Copyright (c) 2020 T-Mobile * * 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 ...
/* Copyright 2013 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed...
#include <fate/defs.h> #ifndef FE_TARGET_WINDOWS #include <sys/types.h> #endif #include <fate/dbg.h> #include <stdlib.h> #include <stddef.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <inttypes.h> typedef struct { const char *fmt; const enum { FE_FMT_POINTER, FE_FMT_CHA...
/* Copyright 2017 PrismTech Limited 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 ...
/* * Copyright (c) 2018 <NAME> */ #include <exec/types.h> #include <exec/ports.h> #include <exec/tasks.h> #include <exec/nodes.h> #include <exec/lists.h> #include <exec/execbase.h> #include <exec/memory.h> #include <libraries/dos.h> #include <intuition/intuition.h> #include <graphics/gfxbase.h> #include <hardware/...
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2012-02-13 mojingxian first version */ #include "board.h" #include "rtconfig.h" #include "rtdef.h" #include "rthw.h" #include "serial.h" #include <signal.h> #...
/* Copyright (C) 1989, 2000 Aladdin Enterprises. All rights reserved. */ /*$Id: ansi2knr.c,v 1.14 2003/09/06 05:36:56 eggert Exp $*/ /* Convert ANSI C function definitions to K&R ("traditional C") syntax */ /* ansi2knr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distrib...
#include <stdio.h> #include <stdlib.h> #include "typedef.h" #include "basic_op.h" #include "oper_32b.h" #define LENGTH_WORD16_TEST_NUMBERS 13 Word16 stdWord16_TestNumbers[LENGTH_WORD16_TEST_NUMBERS] = { MIN_16 - (Word16)1, MIN_16, MIN_16 + (Word16)1, (MIN_16 / 2) - (Word16) 123, (MIN_16 / 2) + (Wo...
#include <stdlib.h> #include <stdio.h> #include "tester.h" int (*test_functions[])(void) = { &test_0__devel, &test_1__allavailable_reader, &test_2__inplace_reader, &test_3__bufferelasticity_tester, &test_4__monitoring_reader, &test_5__monitoringall_reader, &test_6__buffer_access, &test_7__buffer_access...
/* * Basic timekeeping functions * * Independent of clock discipline */ /*- * Copyright (c) 2018, <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 so...
/* * ***************************************************************************** * * Copyright 2018 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES ...
#include "DS1307.h" #define DS1307_SELF_ADDRESS 0xA0 // DS1307 slave address #define DS1307_WRITE_ADDRESS 0xD0 // DS1307 slave write address #define DS1307_READ_ADDRESS 0xD1 // make LSB bit high of slave address for read #define DS1307_TIME_START_ADDRESS 0 #define DS1307_DATE_START_ADDRESS 3 #def...
/* * Adapted in part from MIT Kerberos 5-1.2.1 slave/kprop.c and from * http://docs.sun.com/?p=/doc/816-1331/6m7oo9sms&a=view * * Copyright (c) 2002 The Regents of the University of Michigan. * All rights reserved. * * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> */ /* * slave/kprop.c * *...
/*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-β”‚ β”‚vi: set et ft=c ts=8 tw=8 fenc=utf-8 :viβ”‚ β•šβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β• β”‚ ...
#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> #include "bemanitools/jbio.h" #include "util/log.h" #include "util/thread.h" typedef struct { uint8_t r, g, b; } rgb_t; enum jbio_light_mode { LIGHTS_OFF, LIGHTS_ON, LIGHTS_INPUT }; #define IS_BIT_...
/* ** Implementation of LISA algorithm ** for statistical inference of fMRI images ** ** generic plug-in. ** A file containing a list of all 3D permutation images must be supplied. ** ** G.Lohmann, April 2017 */ #include <viaio/Vlib.h> #include <viaio/file.h> #include <viaio/mu.h> #include <viaio/option.h> #include <v...