text
stringlengths
3.12k
18.7k
/* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */ /* * GTK - The GIMP Toolkit * Copyright (C) 2006 <NAME> <<EMAIL>> * * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free S...
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
#include "../d3d.h" #include <assert.h> #include <curses.h> #include <stdlib.h> #include <tgmath.h> #include <time.h> // Input keys for moving the camera: #define FORWARD_KEY 'w' #define LEFT_KEY 'a' #define BACKWARD_KEY 's' #define RIGHT_KEY 'd' #define TURN_CW_KEY 'e' #define TURN_CCW_KEY 'q' #define QUIT_KEY 'x' /...
#include "elvan_rdkafka_consumer.h" static VALUE elvan_module; // Utility Methods static void logger(const rd_kafka_t *rk, int level, const char *fac, const char *buf) { struct timeval tv; gettimeofday(&tv, NULL); fprintf(stderr, "%u.%03u RDKAFKA-%i...
/**************************************************************************** * ****************************************************************************/ #include "wb_dma_drv.h" #include <string.h> #include <stdio.h> #ifdef USE_SV_BFMS_RW_API #include "sv_bfms_rw_api_if.h" #define WB_DMA_WRITE32(drv, ad...
/* $OpenBSD: sdhc_acpi.c,v 1.8 2016/04/30 11:32:23 kettenis Exp $ */ /* * Copyright (c) 2016 <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. ...
/* common.c - Common data structures and functions * * Copyright 1992-1998 <NAME> * Copyright 1999-2005 <NAME> * Copyright 2009-2011 <NAME> * All rights reserved. * * Licensed under the terms contained in the file 'COPYING' * in the source directory. */ #define _GNU_SOURCE #include <unistd.h> #include <st...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <stdbool.h> #include <signal.h> #include <stdbool.h> #include <fcntl.h> #include <sys/wait.h> #include <sys/resource.h> #include <libgen.h> #include <unistd.h> #include <sys/types.h> #include <sys/st...
/* * Copyright 2015 Rockchip Electronics 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...
#include <stdlib.h> //exit() #include <signal.h> //signal() #include <math.h> #include "ICNT86X.h" #include "EPD_2in9_V2.h" #include "GUI_Paint.h" extern ICNT86_Dev ICNT86_Dev_Now, ICNT86_Dev_Old; // flags / counter : typedef struct { bool display_update; // partial bool display_refresh; // not partia...
#include "unity/unity.h" #include "../src/http/http.h" void http_test_canParseRequestLine() { http_t *http = http_create(); string_t *request = string_fromBuffer("GET /index.html HTTP/1.1"); // Can parse initial request TEST_ASSERT(http_parseRequestLine(http, request) == true); TEST_ASSERT_EQUAL_INT(http->...
/****************************************************************************** * File Name: main.c * * Description: This is the source code for the XMC MCU: CCU8 Timer Example * for ModusToolbox. * * Related Document: See README.md * **********************************************************************...
/* * xlogdump_statement.c * * a collection of functions to build/re-produce (fake) SQL statements * from xlog records. */ #include "xlogdump_statement.h" #include "access/tupmacs.h" #include "catalog/pg_type.h" #include "storage/bufpage.h" #include "utils/datetime.h" #include "utils/timestamp.h" #include "xlogdu...
/* * upsfetch - utility program to retrieve data from apcupsd.status * * Original Author: <NAME> <<EMAIL>> * * This source creates a handy object file that can be linked into other * programs for easy retrieval of common UPS parameters from the apcupsd * status file. * * Modified: <NAME> <<EMAIL>> * 1...
//****************************************************************** // // Copyright 2015 Intel Mobile Communications GmbH All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except ...
//Vongsprache interpreter //Copyright (C) 2018 Arc676/<NAME> <<EMAIL>> ///Permission is hereby granted, free of charge, to any person obtaining //a copy of this software and associated documentation files (the "Software"), //to deal in the Software without restriction, including without limitation the //rights to use...
/** * memop.c * Written by <NAME> */ #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <fcntl.h> #include <inttypes.h> #include <sys/stat.h> #include <sys/mman.h> #include "util.h" /* Definitions */ /* #define DEV_M...
/* * compact_int.c * * Copyright 2020 <NAME> <<EMAIL>> * * The MIT License (MIT) * * 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 limitat...
/** * \file mycrypt.c * * \brief Password encryption for PennMUSH * * Routines for hashing passwords and comparing against them. * Also see player.c. */ #include <stdio.h> #include <string.h> #include <time.h> #include <openssl/sha.h> #include <openssl/evp.h> #include "conf.h" #include "mypcre.h" #include "log...
/* * game.c * Ce fichier regroupe l'ensemble des fonctions * qui gèrent le jeu et son état. * * Objectifs : * - Créer, modifier et détruire un état de jeu * - Mettre le jeu en pause * - Quitter le jeu * - Lancer l'action de l'utilisateur * - Lancer l'action d'une entité * ...
#include "types.h" #include "defs.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "x86.h" #include "traps.h" #include "spinlock.h" // Interrupt descriptor table (shared by all CPUs). struct gatedesc idt[256]; extern uint vectors[]; // in vectors.S: array of 256 entry pointers ...
/* # Family Name: Cakmak # Given Name: Ege # Section: E / EECS 3221 # Student Number: 215173131 # CSE Login: cakmake */ #include <stdio.h> #include <string.h> #include <stdlib.h> typedef int bool; #define true 1 #define false 0 //struct to store a word and its frequency. typedef struct { char word[101]; ...
#include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "esp_system.h" #include "esp_wifi.h" #include "esp_log.h" #include "esp_event_loop.h" #include "esp_spiffs.h" #include "driver/gpio.h" #include "driver/i2c.h" #include "driver/touch_pad.h" #include "...
/* * --- Revised 3-Clause BSD License --- * Copyright (C) 2016-2019, SEMTECH (International) AG. * 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 c...
/** ****************************************************************************** * @file usbd_msc_hid_wrapper.c * @author MCD Application Team * @version V1.0.1 * @date 31-January-2014 * @brief This file calls to the separate MSC and HID class layer handlers. ****************************...
#include <GLFW/glfw3.h> #include <cglm/cglm.h> #include "camera.h" #include "clickcolor.h" #include "editor.h" #include "input_handling.h" #include "manager.h" #include "player.h" #include "scene_loader.h" #include "scene_save.h" #include "settings.h" #include "utils.h" int firstMouse; int left_mouse_pressed; int ri...
/* * Copyright (c) 1991 <NAME> * * Disclaimer: No guarantees of performance accompany this software, * nor is any responsibility assumed on the part of the authors. All the * software has been tested extensively and every effort has been made to * insure its reliability. */ /* * subseq.c - extract a subseque...
#define _POSIX_C_SOURCE 1 #include <glib.h> #include <libconfig.h> #include <sys/types.h> #include "headers/argparser.h" #include "headers/backend.h" #include "headers/control_process.h" #include "headers/daemonize.h" #include "headers/general.h" #include "headers/logger.h" static inline pid_t get_b_pid(GList* item)...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Change duty cycle of output waveform by configured period. * * @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved. ********************************************************...
/* * linux/fs/isofs/dir.c * * (C) 1992 <NAME> Modified for ISO9660 filesystem. * * (C) 1991 <NAME> - minix filesystem * * isofs directory handling functions */ #include <linux/errno.h> #include <asm/segment.h> #include <linux/fs.h> #include <linux/iso_fs.h> #include <linux/kernel.h> #include <linux/sta...
/* ** Copyright 2020 Telenor Digital AS ** ** 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...
/* * Copyright 2019 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or * its subsidiaries. * * 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/lice...
/* * Copyright (c) 2011-2013, <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...
// ***************************************************************************** // Screen Wobble SGDK Sample // // Written in 2020 by <NAME> // ***************************************************************************** // ----------------------------------------------------------------------------- // ...
#include <stdint.h> #include <stdbool.h> #include <time.h> #include <FreeRTOS.h> #include <task.h> #include "tm4c123gh6pm.h" #include <queue.h> #include <time.h> #include <semphr.h> #include "driverlib/sysctl.h" #include "driverlib/gpio.h" #include "driverlib/timer.h" #include "inc/hw_types.h" #include "in...
/* * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause OR Arm's non-OSI source license * */ /************* Include Files ****************/ #include "cc_pal_types.h" #include "cc_pal_mem.h" #include "cc_util_int_defs.h" #include "cc_util_defs.h" #...
#include "stm32h7xx_hal.h" #include "core_hw.h" #include "i2c.h" I2C_HandleTypeDef hi2c1; I2C_HandleTypeDef hi2c2; I2C_HandleTypeDef hi2c3; I2C_HandleTypeDef hi2c4; /* TODO: This is global, and the board gets set for each init. * Its a bit redundant, but I'm just trying to validate some hardware * with...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <naos.h> #include <art32/strconv.h> #include "led.h" #include "sensors.h" #include "stepper_driver.h" typedef enum { NET_STEPPER_IDLE, NET_STEPPER_ABSOLUTE, NET_STEPPER_CONTINUOUS } net_stepper_mode_t; static struct { bool powered; int resoluti...
/* Copyright (c) 2019 <NAME> A permissão é concedida, gratuitamente, a qualquer pessoa que obtenha uma cópia deste software e arquivos de documentação associados (o "Software"), para lidar no Software sem restrição, incluindo, sem limitação, os direitos para usar, copiar, modificar, mesclar, publicar, distribuir, subl...
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas at Austin Copyright (C) 2018 - 2019, Advanced Micro Devices, Inc. Redistribution and use in source and binary forms, with or without modification, are permitted prov...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdio.h> #define DELAY 90000000 //symbol displayed when Cell is alive char symbol = 254; //dimensions of the Map int x,y; /** * Shows the Map. * @param map */ void showMap(char** map){ for(int i = 0;...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
#include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> #include "ADF.h" #include "getargs.h" #define MAX_LEADER 1024 #define INDENT 2 static char leader[MAX_LEADER+1]; static int leader_len; static int indent = INDENT; static int follow_links = 0; static int out_flags = 0; static char opti...
#include "bootconf.h" #include "simple_types.h" #include "riscv_mmio.h" #include "serial_func.h" #include "plat_def.h" void plat_bc_fix(void) { struct bootconf *bc = (struct bootconf *)PLAT_RAM_BC; volatile unsigned char *addr; uint32_t val; addr = (unsigned char *)PLAT_SYSCSR_BOOT_MODE; val = readl(addr); val ...
/* * Copyright 2021 The Modelbox Project Authors. 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 at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
/* ---------------------------------------------------------------------------- */ /* Atmel Microcontroller Software Support */ /* SAM Software Package License */ /* --------------------------------------------------------------------...
/* * hccontrol.c * * Copyright (c) 2001-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 retain the above copyright * n...
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2014 The PHP Group | +---------...
/* Copyright (C) 2002-2008 <NAME> <<EMAIL>> This file is part of Siproxd. Siproxd 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)...
// // jssy.c // jssy // // Created by tihmstar on 04.04.17. // Copyright © 2017 tihmstar. All rights reserved. // #include "jssy.h" #define clearTok(tok) tok->type = JSSY_UNDEFINED, tok->size=0, tok->value = NULL, tok->subval = NULL, tok->next = NULL, tok->prev = NULL #define assure(code,cond) do {if (!(cond)){bu...
/*! \file main.c \brief SPI fullduplex communication use DMA \version 2014-12-26, V1.0.0, firmware for GD32F10x \version 2017-06-20, V2.0.0, firmware for GD32F10x \version 2018-07-31, V2.1.0, firmware for GD32F10x \version 2020-09-30, V2.2.0, firmware for GD32F10x */ /* Copyright (c) ...
/* * Copyright (c) 2013, Institute for Pervasive Computing, ETH Zurich * 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 ...
/* * Copyright (c) 2009, 2010, 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, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. */ #include <stri...
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* lib/crypto/builtin/sha2/sha256.c - SHA-256 implementation */ /* * Copyright (c) 2006 <NAME> * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modif...
/** * (C) Copyright 2019-2021 Intel Corporation. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ /** * This file is part of daos. It implements daos specific RPC input/output proc * functions that need to be shared by both client and server modules. */ #define D_LOGFAC DD_FAC(common) #include <daos/common.h...
/* ====================================================================== Photon map interface to out-of-core octree <NAME> (<EMAIL>, <EMAIL>}) (c) Lucerne University of Applied Sciences and Arts, supported by the Swiss National Science Foundation (SNSF, #147053) ================================...
/* * This file is part of GreatFET */ #include <toolchain.h> #include <time.h> #include <errno.h> #include <debug.h> #include <greatfet_core.h> #include <drivers/comms.h> // FIXME: replace with libgreat driver #include <libopencm3/lpc43xx/adc.h> #include "../usb_streaming.h" #define CLASS_NUMBER_SELF (0x111)...
/* * (C) Copyright 2000-2002 * <NAME>, DENX Software Engineering, <EMAIL>. * * (C) Copyright 2004, Psyent Corporation <www.psyent.com> * <NAME> <<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 un...
/* * ===================================================================================== * * Filename: SR_OutHashTable.c * * Description: * * Version: 1.0 * Created: 07/01/2011 08:35:32 PM * Revision: none * Compiler: gcc * * Author: YOUR NAME (), * ...
/* * Copyright 2019 International Business Machines * * 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 applicab...
/* * Copyright (C) 2004-2006 Atmel Corporation * * 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 Foundation; either version...
/* * QEMU SCI/SCIF serial port emulation * * Copyright (c) 2007 <NAME> * * Based on serial.c - QEMU 16450 UART emulation * Copyright (c) 2003-2004 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to d...
/** @file * Copyright (c) 2021, Arm Limited or its affiliates. All rights reserved. * SPDX-License-Identifier : Apache-2.0 * 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://ww...
#include <stdlib.h> #include <linux/limits.h> #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <stdlib.h> #include <sys/types.h> #ifndef __USE_XOPEN2K #define __USE_XOPEN2K #endif #include <sys/socket.h> #include <netinet/in.h> #includ...
/* echo-client.c - Networking echo client */ /* * Copyright (c) 2017 Intel Corporation. * Copyright (c) 2018 Nordic Semiconductor ASA. * * SPDX-License-Identifier: Apache-2.0 */ /* * The echo-client application is acting as a client that is run in Zephyr OS, * and echo-server is run in the host acting as a ser...
/* Copyright (c) 2008-2009, 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 <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include "esp_system.h" #include "esp_wifi.h" #include "esp_event.h" #include "esp_log.h" #include "nvs_flash.h" #include "lwip/err.h" #include "lwip/sys.h" #include "nvs_wifi_info.h" #includ...
/* * * Copyright 2015 gRPC authors. * * 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...
// SPDX-License-Identifier: GPL-2.0-or-later /* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2001-2002 Nokia Corporation * Copyright (C) 2002-2003 <NAME> <<EMAIL>> * Copyright (C) 2002-2010 <NAME> <<EMAIL>> * Copyright (C) 2002-2003 <NAME> <<EMAIL>> * * */ #ifdef HAVE_CONFIG_H #i...
#include "mob.h" #include "random.h" #include <stdlib.h> #include <memory.h> Mob *enemy(int hp, int minDamage, int maxDamage, char symbol, int form); Mob *create_mob(int depth, rl_coords coords) { // difficulty ranges // // level 1: 1 - 2 // level 2: 2 - 4 // level 3: 3 - 6 // level 5: 5 - 10 ...
#include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <fcntl.h> // for open #include <unistd.h> // for close #include "transfer.h" #include <libgen.h> #include <arpa/inet.h> #include <netinet/in.h> #include <pthread.h> #include <time.h> #include <dirent.h> #d...
/* * This file is part of the µOS++ distribution. * (https://github.com/micro-os-plus) * Copyright (c) 2014 <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 * restr...
/* CalculiX - A 3-dimensional finite element program */ /* Copyright (C) 1998-2019 <NAME> */ /* This program is free software; you can redistribute it and/or */ /* modify it under the terms of the GNU General Public License as */ /* published...
/* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2015 The University of Tennessee and The University * of Tennessee Resea...
// Copyright (c) 2009, 2011, <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: // * Redistributions of source code must retain the above copyright // notice, this list of con...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2013 Intel Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyr...
/* * Copyright (c) 1991-1994 by Xerox Corporation. All rights reserved. * * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. * * Permission is hereby granted to use or copy this program * for any purpose, provided the above notices are retained...
/* Routine to draw all the graphics from The Golden Baton At the moment all the important values are hard coded - in the fseek() is the pointed to the 0xff 0x00 at the start of the image data after the Object Data. '32' in the for is the number of rooms hardcoded in! Code by <NAME> 19/01/2000 */ #inclu...
#include "global.h" #include "io.h" #include "module.h" #include "graph.h" #include "core/log.h" #include "modules/api.h" #include <sys/types.h> #include <sys/stat.h> #include <dirent.h> #include <unistd.h> #include <dlfcn.h> #include <stdio.h> #include <locale.h> dt_pipe_global_t dt_pipe; // reads one line of a con...
/* * Copyright (c) 2015 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 License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* -*- mode: C -*- */ /* IGraph library. Copyright (C) 2011-2012 <NAME> <<EMAIL>> 334 Harvard street, Cambridge MA, 02139 USA This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; e...
#include "libjdx.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <libdeflate.h> // TODO: For creating, copying, and appending JDXDataset consider using block memory allocation instead of many mallocs JDXError JDX_ReadDatasetFromFile(JDXDataset *dest, FILE *file) { JDXHeader header; JDXError ...
#include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <stdint.h> #include <getopt.h> #include <string.h> #include <errno.h> #include <stdlib.h> struct rom { char *name; int inputs; int outputs; }; struct rom roms[] = { { "39FS010A", 17, 8 }, { "39FS020A", 18, 8 }, { "39FS040", 19,...
/*****************************************************************/ /* Arvore Binaria de Pesquisa (BST) | PROG2 | MIEEC | 2015/16 */ /*****************************************************************/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "bst.h" /* declaracao das funcoes utilitarias ...
/*- * 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/* * Copyright (c) 2015, 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 h...
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define import_spp #define import_knames #include <iraf.h> #include "../bootProto.h" #define MAXEXTN 128 #define ALL 0 /* delete all files */ #define ...
#include "main.h" #include "world.h" #include "scene.h" #include "input_callbacks.h" #include <sys/time.h> #include <time.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include "models/plane.h" #include "models/terrain.h" #include "models/tetrahedron.h" #include "models/sphere.h" #in...
/**************************************************************** NAME: accum_offset SYNOPSIS: accum_offset METAfile1 METAfile2 ... DESCRIPTION: This program calculates the accumulative offsets of a chain of images. While this program is stand alone, the output was formatted for use by auto_swath_mosaic. A...
/* $NetBSD: get.c,v 1.1.1.2 2014/04/24 12:45:26 pettai Exp $ */ /* * Copyright (c) 1997-2004 <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 conditi...
/* Monitor: */ Monitor *createmon(void) { Monitor *m; m = ecalloc(1, sizeof(Monitor)); m->tagset[0] = m->tagset[1] = 1; m->mfact = mfact; m->nmaster = nmaster; m->showbar = showbar; m->topbar = topbar; m->lt[0] = &layouts[0]; m->lt[1] = &layouts[1 % LENGTH(layouts)]; strncpy(m->ltsymbol, layouts[0].symbol, ...
#include "um6.h" #define PT_HAS_DATA 0x80 //10000000 #define PT_IS_BATCH 0x40 //01000000 #define UM6_EULER_PHI_THETA 0x62 #define UM6_EULER_PSI 0x63 #define UM6_EULER_SCALE_FACTOR 0.0109863 #define UM6_GYRO_SCALE_FACTOR 0.0610352 #define UM6_ZERO_GYROS 0xAC #define UM6_GYRO_PROC_XY 0x5C #def...
/** \file * \brief multi-hop interconnect driver test code * * We send messages from the client to the server and the opposite way in order * to make sure that the multi-hop interconnect driver works for bidirectional * message passing. */ /* * Copyright (c) 2010, ETH Zurich. * All rights reserved. * * T...
/* * Acceleration for the Leo (ZX) framebuffer - Tiled/stippled rectangle filling. * * Copyright (C) 1999, 2000 <NAME> (<EMAIL>) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software witho...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * All rights reserved. * * * * T...
// // gc.c // digi // // Created by <NAME> on 8.06.2020. // Copyright © 2020 mustafa. All rights reserved. // #include "vm.h" #define COUNT_PER_TICK 128 #define GCSTEP_INIT 0 #define GCSTEP_MARKSTACK 1 #define GCSTEP_MARKQUEUE 2 #define GCSTEP_SWEEP 3 #define GCSTEP_SWEEP2 4 int gc_pau...
/** * $Id: scatter.c 36271 2011-04-21 13:11:51Z campbellbarton $ * * ***** BEGIN GPL LICENSE BLOCK ***** * * 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 Licen...
/* * Smart Sensor Simulator 2 * * Arduino Sketch to define the board pins and features * Uses the Teensy 3.6 * * Written By Dr. <NAME> * The University of Tulsa * Department of Mechanical Engineering * * 22 May 2017 * * Released under the MIT License * * Copyright (c) 2017 <NAME> * * Permissi...
#include <Arduino.h> #include "XC3714.h" #define MAX_DISPLAYS 4 int clkPins[MAX_DISPLAYS] = {}; int csPins[MAX_DISPLAYS] = {}; int dataPins[MAX_DISPLAYS] = {}; int displayCount = 0; void MAX7219senddata(int unitNumber, byte reg, byte data){ if (unitNumber >= MAX_DISPLAYS) { return; } int csPin = csPins[unitNumb...