text
stringlengths
3.12k
18.7k
////////////////////////////////////////////////////////////////////////////// // This file is part of 'SLAC Firmware Standard Library'. // It is subject to the license terms in the LICENSE.txt file found in the // top-level directory of this distribution and at: // https://confluence.slac.stanford.edu/display/ppa...
/*****************************************************************************/ /* Ethernet raw access driver */ /* */ /* erlang-tcpip, Copyright (C) 2004 <NAME> */ /* ...
/* * molfile fortran interface * $Id: f77_molfile.c,v 1.1 2006/03/10 22:48:49 johns Exp $ * (c) 2006 <NAME> <<EMAIL>> */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include "molfile_plugin.h" #include "libmolfile_plugin.h" #include "vmdplugin.h" #define F77TESTME 1 /* fortra...
/* $NetBSD: t_vfsops.c,v 1.11 2011/04/04 19:16:58 hannken Exp $ */ /*- * Copyright (c) 2010 The NetBSD Foundation, Inc. * 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. Redistributio...
#include "sam.h" /* * GROWDATASIZE must be big enough that all errors go out as Hgrowdata's, * so they will be scrolled into visibility in the ~~sam~~ window (yuck!). */ #define GROWDATASIZE 50 /* if size is > this, send data with grow */ void rcut(List*, Posn, Posn); int rterm(List*, Posn); void rgrow(List*, Posn,...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <float.h> struct data{ int index; float notaMediaNaEscola; float horasDeEstudosSemanais; int aprovado; float distanciaEuclideanaTreinoVsAmostra; }; struct dadoFiltrado{ int index; float d; }; float calculaDistanciaEuclidea...
/* Copyright (c) 1998 by <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli...
#define WIN32_LEAN_AND_MEAN #include <windows.h> #include <winuser.h> #define BUF_W 40 #define BUF_H 15 #define BUF_AREA (BUF_W * BUF_H) #define GAME_W (BUF_W - 2) #define GAME_H (BUF_H - 2) #define MS_PER_FRAME_HORIZONTAL 150 #define MS_PER_FRAME_VERTICAL 190 #define false 0 #define true 1 #define i8 char #define ...
/*===========================================================================* * * * tstsmtp.c - Test SMTP agent * * * * ...
/*------------------------------------------------------------------------- * * xlogutils.c * * PostgreSQL transaction log manager utility routines * * This file contains support routines that are used by XLOG replay functions. * None of this code is used during normal system operation. * * * Portions Copyrig...
/***************************************************************************** * vt_utils.c: videotoolbox/cvpx utility functions ***************************************************************************** * Copyright (C) 2017 VLC authors, VideoLAN and VideoLabs * * This program is free software; you can redistri...
/* * ReadNFF.c - Simple NFF file importer. Uses lib to output to * many different raytracer formats. * * Author: Eduard [esp] Schwan * * input file parameter... */ #include <stdio.h> #include <math.h> #include <string.h> /* strchr */ #include <stdlib.h> /* atoi */ #include "def.h" #include "drv.h" /* display_...
#include <nm_core.h> #include <nm_utils.h> #include <nm_form.h> #include <nm_menu.h> #include <nm_string.h> #include <nm_window.h> #include <nm_database.h> #include <nm_rename_vm.h> static const char NM_RENAME_FORM_MSG[] = "New VM name"; enum { NM_FLD_NEWNAME = 0, NM_FLD_COUNT }; static void nm_rename_vm_in_...
/* * * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2006-2010 Nokia Corporation * Copyright (C) 2004-2010 <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 Softwa...
#include "geminc.h" #include "gemprm.h" #include "vfcmn.h" #define CNAM_LEN 256 extern SpcInfo_t newinfo; extern SpcInfo_t spcinfo; void vfwsev ( int *iret ) /************************************************************************ * vfwsev *...
/* Copyright 2015 Google Inc. 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 Unless required by applicable law or agreed to in wri...
/*! \file serial.c \brief Serial channel handler \details Serial channel dependent implementations. \details We use no parity, 8 bit, single stop bit USART. Baudrate can be configured from the config file. \details This is an interrupt driven implementation of USART. So upon exit, all interrupts...
/* yarrow256.c The yarrow pseudo-randomness generator. Copyright (C) 2001, 2008, 2013 <NAME> This file is part of GNU Nettle. GNU Nettle is free software: you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free ...
#include <stdio.h> #include <wayland-client.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <fcntl.h> #include <twclient/ui.h> #include <twclient/egl.h> #include <twclient/client.h> #include <twidgets/nk_backends.h> #include <twclient/theme.h> #include <wa...
/* * This is the code that implements the hierarchical part of the LMS hash * based signatures; in this case, incremental signing */ #include <string.h> #include "hss.h" #include "common_defs.h" #include "hss_verify_inc.h" #include "lm_verify.h" #include "lm_common.h" #include "lm_ots.h" #include "lm_ots_verify.h" ...
//--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1996 - 1997 // // File: iis2.h // // Contents: Macros for ADSI IIS methods // // History: 25-Feb-97 SophiaC Created. // //-------------------------------...
/** * ART file unpacker by <NAME>, ViaThinkSoft (C) 2014-2018 * Supports: * - Where's Waldo? Exploring Geography * - Eraser Turnabout by Imagination Pilots * - Virtual K'Nex by Imagination Pilots * Revision: 2018-02-15 **/ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <string.h...
#include "networking.h" /* Return a string array of files in a given directory. */ /* If the file is a directory, it will be terminated with a slash (/) */ /* Will return NULL if path does not exist! */ sarray *list_dir(const char *path) { DIR *directory; struct dirent *entry; directory = opendir(path); ...
#include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "../port/error.h" #include "probe.h" enum { Qdir, Qctl, Qdata, }; enum { ProbeEntry = 1, ProbeExit }; /* fix me make this programmable */ enum { defaultlogsize = 1024, printsize = 64, }; typedef struct Probel...
#include <stdint.h> float scalbnf(float x, int n); #define FORCE_EVAL(x) do { \ if (sizeof(x) == sizeof(float)) { \ volatile float __x; \ __x = (x); \ } else if (sizeof(x) == sizeof(double)) { \ volatile double __x; \ __x = (x)...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* Copyright (c) 2003, Danga Interactive, Inc. * Copyright (c) 2020, <NAME> * * Thread management for memcached. * All fancy business like pausing, stopping threads was removed * and only the essential parts for a scalable multi threaded...
/* foidl_iterators.c Library support for data iterations Copyright <NAME> All Rights Reserved */ #define ITERATORS_IMPL #include <foidlrt.h> #include <stdio.h> // set iterator: Find the next node that has a value static PFRTAny trieiterator_searchNextValueNode(PFRTTrie_Iterator itr) { while(itr->currentStac...
#include "ttp.h" #include <argp.h> enum {ERR_USAGE = 1, ERR_NTEAM, ERR_FILENAME, ERR_GENSCHED, ERR_REQS}; const char *argp_program_version = "rdb-ttp v1.0"; const char *argp_program_bug_address = "<<EMAIL>>"; /* Program documentation */ static char doc[] = "rdb-ttp -- a c implementation of the travelling team p...
/*D*********************************************************** * Modul: DBI - database select * Kontingent * * Copyright: yafra.org, Basel, Switzerland **************************************************************/ #include <mpmain.h> #include <mpsqlsel.h> #include <mpprodbi.h> /* Prototypes f�r A...
/* * The MIT License (MIT) * * Copyright (c) 2015 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
#include <stdint.h> #include <stdio.h> #include <stdbool.h> #include "vdp.h" #include "cpu.h" #define VRAM_READ_ADDR 0b00 #define VRAM_WRITE_ADDR 0b01 #define VDP_REG_WRITE 0b10 #define CRAM_WRITE_ADDR 0b11 #define REG_MODE_CONTROL1 0x00 #define REG_MODE_CONTROL2 0x01 #define RE...
/* * Generated by asn1c-0.9.21 (http://lionet.info/asn1c) * From ASN.1 module "DSRC" * found in "../downloads/DSRC_R36_Source.ASN" * `asn1c -fcompound-names` */ #include <asn_internal.h> #include "RTCM-Revision.h" int RTCM_Revision_constraint(asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_...
#include "message.h" #include "./crypto/sha256/sha256.h" #include "./crypto/aes/aes.h" // Needs an extra 16 bytes for the padding (Padding always added even when length before encryption is mod(16)) uint8_t message_buf[SCEWL_MAX_DATA_SZ + 32]; int read_preamble(intf_t *intf, scewl_id_t *src_id, scewl_id_t *tgt_id, s...
/* Configuration file for an hppa64 risc OpenBSD target. Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU CC. GNU CC 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,...
/****************************************************************************** * Copyright (C) 2019 Broadcom. The term "Broadcom" refers to Broadcom Limited * and/or its subsidiaries. * * This program is the proprietary software of Broadcom and/or its licensors, * and may only be used, duplicated, modified or...
/* * SPDX-License-Identifier: MIT * SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> */ #define _GNU_SOURCE #include <errno.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/epoll.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "readline/his...
#include <arpa/inet.h> /*COMING FROM CLIENT*/ #include <sys/types.h> #include <sys/socket.h> #include <sys/wait.h> #include <netinet/in.h> #include <err.h> #include <errno.h> #include <limits.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <tls.h> //usi...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <signal.h> #include <time.h> #include <sys/types.h> #include <sys/sysinfo.h> #include <sys/stat.h> #include <stdint.h> #include <syslog.h> #include <ctype.h> #include <bcmnvram.h> #include <shutils.h> #include <shared.h> #includ...
/* Project: Small Expression Evaluator for Q library * Author: <NAME> * License: The Unlicense * See: <https://en.wikipedia.org/wiki/Shunting-yard_algorithm> */ #include <assert.h> #include <ctype.h> #include <limits.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "q.h...
#include "keyboard.h" #include "pic.h" #include "x86.h" #include "stdio.h" #include <stdint.h> #include <stdbool.h> static bool MagicKeyActive = false; static bool ExtendedMode = false; static bool ShiftMode = false; static char NormalKeymap[256]; static char ExtendedKeymap[256]; static char ShiftKeymap[256]; void k...
// // Copyright (c) 2018, <NAME>, <NAME>, <NAME>, Institute // of Informatics and Telematics of the Italian National Research Council // (IIT-CNR). All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: //...
#include "os/rtos.h" #include "key.h" #include "key_drv_ad.h" #include "key_drv_io.h" #include "key_drv_matrix.h" #include "init.h" #include "sys_timer.h" /* #define DEBUG_ENABLE */ #include "debug_log.h" /*按键门槛值*/ #define KEY_BASE_CNT 4 #define KEY_LONG_CNT 75 #define KEY_HOLD_CNT 1...
#include "types.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "defs.h" #include "x86.h" #include "elf.h" // Check ELF header int readelfhdr(struct inode *ip, struct elfhdr *elf) { return readi(ip, elf, 0, sizeof(*elf)) == sizeof(*elf) && elf->e_ident[0] == ELFMAG0 &...
#include "lapi.h" #include "cc.h" #include "common.h" #include "env.h" #include "ir.h" #include "lex.h" #include "value.h" #include "parser.h" #include "rhhm.h" #include "string.h" #include <stdio.h> #include <string.h> /* gc */ #define gmalloc malloc #define gfree free struct gc_object { u64 ptr; // lsb == 1 -> b...
#include <stdio.h> #include <stdlib.h> #include <argp.h> #include <cairo.h> #include <cairo-ft.h> #include <ft2build.h> #include <png.h> #include <zlib.h> #include <sys/stat.h> #include <sys/types.h> #include FT_SFNT_NAMES_H #include FT_FREETYPE_H #include FT_GLYPH_H #include FT_OUTLINE_H #include FT_BBOX_H #include FT...
/* * gadgetd-descriptors.c * Copyright(c) 2012-2014 Samsung 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 * * U...
/* * Copyright (c) 2009-2012, Freescale Semiconductor, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this...
#include <stddef.h> #include <stdbool.h> #include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <poll.h> #include <sys/stat.h> #include <errno.h> #include "gpio.h" #define FILE_PATH_MAX 256 static const char *gpio_direction_to_string[] = { [...
/** \file Homebus.c *********************************************************** * * Project: Homebus Reference Design * Filename: Homebus.c * Description: Handling of the Homebus interface * (send and receive TMCL commands via homebus) * * Revision History: ...
/* Copyright Statement: * * (C) 2005-2016 MediaTek Inc. All rights reserved. * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. ("MediaTek") and/or its licens...
#define _POSIX_C_SOURCE 200809L #define _XOPEN_SOURCE 700 #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <err.h> #include <signal.h> #include <syslog.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/reso...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <X11/Xlib.h> #include <X11/Xft/Xft.h> #include "dtext/dtext.h" #define MAX_TEXT_SIZE 1024 #include "config.h" #define LENGTH(X) (sizeof X / sizeof X[0]) #define CLEANMASK(mask) (mask & ~LockMask & (ShiftMask|ControlMask|Mod1Mask...
#include <sys/param.h> #include <sys/types.h> #include <sys/time.h> #include <stdio.h> #include <netdb.h> #include <unistd.h> #include <sys/file.h> #include "ctypes.h" #include "local.h" #include "debug.h" #include "miv.h" #include "asn.h" #include "mix.h" #include "systm.h" #include "oid.h" #define systmStringSi...
#include <stdlib.h> #include <stdio.h> typedef int key_t; typedef int object_t; typedef struct hp_n_t { key_t key; object_t* object; struct hp_n_t* left; struct hp_n_t* right; struct hp_n_t* up; struct hp_n_t* r_up; int rank; enum {complete, deficient} state; } heap_no...
// Authors: <NAME>, <NAME>, <NAME> // Copyright: the authors and <NAME> // Simple_Image.c // // This is a simple example that draws an image with a 2D // texture image. // #include <stdlib.h> #include <stdio.h> #include "esUtil.h" #include <sys/ipc.h> #include <sys/shm.h> /////////////////// Global variables /////////...
#include <linux/kernel.h> #include <linux/bug.h> #include <asm/string.h> #include <linux/uuid.h> #include "api.h" #include "transducer_list.h" #include "../../include/common.h" #include "../../include/mod_syscall.h" #include "../../include/mod_net.h" #include "../../include/mod_log.h" #include "../../include/mod_all...
/* SPDX-License-Identifier: BSD-2-Clause */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <assert.h> #include <stdbool.h> #include <fcntl.h> #include <linux/fb.h> #include <linux/kd.h> #include <sys/mman.h> #include <sys/ioctl.h> #include <unistd.h> #include <termios.h> #inclu...
/* * Copyright (c) 2007, 2008, <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) any later version. * ...
/****************************************************************************** * * Copyright(c) 2015 - 2018 Realtek Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundat...
/* * Copyright 2017, Google Inc. * 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 cond...
#define ENABLE_RELOAD_PATCH 1 #define LNX_DLL_PATCH_VERBOSE 1 #include <elf.h> #include <link.h> int dlinfo(void *handle, int request, void *info); // These two lines to avoid defining _GNU_SOURCE #define RTLD_DI_LINKMAP 2 #include <stdint.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> typedef uint8...
#pragma config(Motor, port1, MobileR, tmotorVex393_HBridge, openLoop) #pragma config(Motor, port2, Lift1, tmotorVex393_MC29, openLoop) #pragma config(Motor, port3, Lift2, tmotorVex393_MC29, openLoop) #pragma config(Motor, port4, Claw, tmotorV...
/* * Licensed Materials - Property of IBM * * trousers - An open source TCG Software Stack * * (C) Copyright International Business Machines Corp. 2004, 2005 * */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include "bi.h" #include "list.h" #include "tsplog.h" static unsigned long *primes; stat...
#include "../inc/CommandConsole.h" #include "../inc/SHG_runner.h" #include "../../FreeRTOS-CMSIS/FreeRTOS.h" #include "../../FreeRTOS-CMSIS/task.h" #include "../..//FreeRTOS-CMSIS/main.h" #include "../../FreeRTOS-CMSIS/cmsis_os.h" #include "../../FreeRTOS-CMSIS/usart.h" #include <stm32f4xx_hal.h> #include <defines.h> #...
// // Created by igor on 18/08/18. // #include "../../lib/CLBST/CLBST.h" // ####### Private functions //HashMap List HM_DLST *HM_LSTPTR_insert_queue(HM_LSTPTR *cell, CBST_node *new) { HM_DLST *tmp = calloc(1, sizeof(HM_DLST)); if (cell->f == NULL) { //create first node cell->f = tmp; //c...
#include "arp.h" int i; unsigned char etertype[2]={0x08,0x06}; unsigned char tramaenviada[48]; unsigned char tramarecivida[48]; unsigned char harware[2]={0x00,0x01}; unsigned char protocolo[2]={0x08,0x00}; unsigned char ldh=6; unsigned char ldp=4; unsigned char codenvio[2]={0x00,0x01}; unsigned char codrespuesta[2]={0x...
/* * (C) Copyright 2002 ELTEC Elektronik AG * <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 under the terms of the GNU General Public License as * published by the Free Software Foundatio...
/* $Id$ Copyright 1989-2014 MINES ParisTech This file is part of PIPS. PIPS 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 any later version. PIPS is distr...
#include "vf_procfs_impl.h" /** * DOC - Linux' procfs callbacks are evil, so we use seq_file. * * There are multiple ways to "plug in" the code for reading/writing a * proc file. Linux' procfs provides callbacks itself, both for * reading and writing. These callbacks are set by filling in fields * of the struc...
/** * <NAME> 519021910703 */ #include "cachelab.h" #include <getopt.h> #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> /* Constants */ #define PATH_MAX_LENGTH 1024 const char *USAGE = "Usage: ./csim-ref [-hv] -s <num> -E <num> -b <num> -t <file>\n" "Options:\n" "-h ...
#include <avr/io.h> #include <avr/iom32.h> #include <util/delay.h> #include <avr/interrupt.h> #include "sd_cmd.h" // Useful macros. #define SETB(port, bit) port|=(1<<bit) #define CLRB(port, bit) port&=~(1<<bit) // Motor pinouts. #define LEFT PORTA #define LEFT_DDR DDRA #define RIGHT PORTA #define RIGHT_DDR ...
/* Copyright 2010-2013 SourceGear, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
/* SPDX-License-Identifier: BSD 3-Clause License */ /* Copyright (c) 2022, University of Washington, Max Planck Institute for Software Systems, and The University of Texas at Austin */ #define _GNU_SOURCE #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <signal.h> #include <assert.h> #include <pthre...
/* * Copyright (C) 2016 by Open Source Routing. * * 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 progr...
//#pragma once #include "typedef.h" #include <mpi.h> // ====================================== // VARIABLES (Image Data ) // ====================================== BYTE *temp_image_rgba32; // Temporary Image Data (RGBA32 Pixels) BYTE *temp_image_rgba32_ptr; // Pointer for the Temporary Image Data (RGBA32 Pixels...
#include "glmc.h" inline void glmc_matrix2f_identity(matrix2f dest) { dest[0][0] = 1.0f; dest[0][1] = 0; dest[1][0] = 0; dest[1][1] = 1.0f; } inline void glmc_matrix2f_scale(matrix2f dest, float src_sx) { dest[0][0] = src_sx; dest[0][1] = 0; dest[1][0] = 0; dest[1][1] = 1.0f; } inline void glmc...
/**************************************************************** * Name : <NAME> * * Class : CSC 415 * * Date : 3/5/2019 * * Description : Writting a simple bash shell program *...
// TCP Server Foundation Framework written in C // // Author: <NAME> (<EMAIL>) // #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #ifndef __USE_GNU #define __USE_GNU #endif #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <assert.h> #include <unistd.h> #include <time.h> #include...
#include <stdio.h> #include "pico/stdlib.h" #include "hardware/i2c.h" static const uint MIN_BAUDRATE = 2000; static const uint MAX_BAUDRATE = 2000000; static const uint BAUDRATE_INC = 1000; static const uint SCANS_PER_LINE = 32; static const int SUCCESS = 0; static const int ERROR = -1; static int read_byte( i...
// // SUMP LA // //#ifdef SUMP_LA #include "base.h" #include "UART.h" #include "busPirateCore.h" #include "SUMP.h" //commandset //http://www.sump.org/projects/analyzer/protocol/ #define SUMP_RESET 0x00 #define SUMP_RUN 0x01 #define SUMP_ID 0x02 #define SUMP_DESC 0x04 #define SUMP_XON 0x11 #define SUM...
#include <bi/node.h> #include <bi/matrix.h> #include <stdlib.h> #include <string.h> BiNode* bi_node_init(BiNode* n) { bi_raw_node_init((BiRawNode*)n,BI_NODE_TYPE_NODE); n->x = n->y = n->w = n->h = 0; n->angle = 0; n->scale_x = 1; n->scale_y = 1; n->anchor_x = 0; n->anchor_y = 0; n->visible = true; n-...
// vi:nu:et:sts=4 ts=4 sw=4 /* * Generated 11/03/2019 08:11:26 */ // All code under test must be linked into the Unit Test bundle // Test Macros: // TINYTEST_ASSERT(condition) // TINYTEST_ASSERT_MSG(condition,msg) // TINYTEST_EQUAL(expected, actual) // TINYTEST_EQUAL_MSG(expecte...
/* Copyright (c) 2021, <NAME> All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. */ #include "solard.h" #include "uuid.h" #define INFO_TAB(SN) \ { SN, "agent_name", 0, DATA_TYPE_STRING,&info->agent,sizeof(info->agent), ...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "banana01.h" #include "particle.h" #include "energy.h" #include "step.h" #include "globaltime.h" #include "io.h" #include "calc_energy.h" #include "hermite.h" #include "timestep.h" #include "timeprof.h" #include "gp6util.h" void initialize_iparticle(str...
#include <stdlib.h> #include <math.h> #include <stdio.h> #include <string.h> #include "vicmain_c.h" void rgb2ish (double R, double G, double B, double * I, double * S, double * H); void ish2rgb (double I, double S, double H, double * R, double * G, double * B); /* program rgb2ish 1) Reads byte, half or full word...
/* * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause OR Arm's non-OSI source license * */ #define CC_PAL_LOG_CUR_COMPONENT CC_LOG_MASK_INFRA #include "hw_queue.h" #include "cc_plat.h" #ifdef HW_DESC_DUMP_HOST_BUF #define HOST_DESC_BUF_ADDRESS...
/********************************************************************************************************* * Copyright(c) 2018, Realtek Semiconductor Corporation. All rights reserved. ********************************************************************************************************** * @file * @brie...
/* * This file is part of the Nice GLib ICE library. * * (C) 2018 <NAME> <<EMAIL>> * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozill...
#include <string.h> #include <errno.h> #include <stdlib.h> #include "gpuarray/buffer.h" #include "gpuarray/buffer_collectives.h" #include "gpuarray/error.h" #include "util/error.h" #include "private.h" extern const gpuarray_buffer_ops cuda_ops; extern const gpuarray_buffer_ops opencl_ops; const gpuarray_buffer_ops ...
// // BRBIP32Sequence.c // // Created by <NAME> on 8/19/15. // Copyright (c) 2015 eactalk LLC // // 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 withou...
/***************************************************************************/ /* */ /* gxvbsln.c */ /* */ /* Tr...
/* Asynchronous SSE Server * Author: <NAME> (<EMAIL>) * License: GPL */ #include <fcntl.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <arpa/inet.h> #include <errno.h> #include <netdb.h> #include <netinet/in.h> #include <pwd.h> #include <signal.h> ...
// SPDX-License-Identifier: GPL-2.0 /****************************************************************************** * * Copyright(c) 2009-2013 Realtek Corporation. * * Contact Information: * wlanfae <<EMAIL>> * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, * Hsinchu 300, Taiwan. * * <N...
/* Prototypes for exported functions defined in avr.c Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by <NAME> (<EMAIL>) This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under th...
// File: LCD_Raw.c // Author: JSpicer // Date: 12/23/17 // Purpose: LCD driver for Hitachi HD44780 controller variants. // Hardware: TM4C123 Tiva board // // Tested with: Lumex LCM-S01601DSR (16x1) // Techstar TS1620A-21/B (16x2) // New Haven NHD-0420AZ-FL-YBW-33V3 (20x4) #include ...
// // BRBCashAddr.c // breadwallet-core // // Created by <NAME> on 1/20/18. // Copyright (c) 2018 breadwallet LLC // // 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...
#include "common.h" #include <arpa/inet.h> #include <ctype.h> #include <errno.h> #include <memory.h> #include <netdb.h> #include <netinet/in.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <unistd.h> char buffer[1024]; bool debug; #if 0 typedef struct fd_set { u...
/*++ Copyright (c) 1991 Microsoft Corporation Module Name: mc.c Abstract: This is the main source file for the Win32 Message Compiler (MC) Author: <NAME> (stevewo) 21-Aug-1991 Revision History: --*/ #include "mc.h" #include "version.h" #include <ntverp.h> #include <common.v...
/* * 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 "stdio.h" #include "stdint.h" #include "math.h" #include "cc_pal_perf.h" #include "cc_pal_perf_plat...