text
stringlengths
5.8k
28.2k
/***** spin: main.c *****/ /* Copyright (c) 1991,1995 by AT&T Corporation. All Rights Reserved. */ /* This software is for educational purposes only. */ /* Permission is given to distribute this code provided that this intro- */ /* ductory message is not removed and no monies are exchanged...
#include <u.h> #include <libc.h> #include <draw.h> #include <thread.h> #include <mouse.h> #include <cursor.h> #include <keyboard.h> #include <frame.h> #include "flayer.h" #include "samterm.h" #define DELTA 10 static Flayer **llist; /* front to back */ static int nllist; static int nlalloc; static Rectangle lDrect; V...
/* * port.c * Portability functions. Some of these functions are drop-ins for * systems missing them and others just centralize differences. * * Copyright (c) 2011 eSilo, LLC. All rights reserved. * This is free software; see the source for copying conditions. There is * NO warranty; not even for MERCHANT...
/* zzvoxscl.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_b6 = 100000; static doublereal c_b18 = .33333333333333331; /* $Procedure ZZVOXSCL ( MKDSK, compute...
/* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright (C) 2015-2020 Micron Technology, Inc. All rights reserved. */ #include <hse_util/logging.h> #include <hse_util/platform.h> #include <hse_util/event_counter.h> #include <hse_util/config.h> #include <hse_util/param.h> #include <hse_util/rest_api.h> #include <hs...
#include <time.h> #include <linux/videodev2.h> #include <sys/ioctl.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <fcntl.h> #include <engine.h> #include <internal/engine.h> #include <stdbool.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <errno...
#include <assert.h> #include <limits.h> #include <stdio.h> #include <math.h> #include "eigen_and_diag.h" #include "matrix_operations.h" #include "matrix_core.h" #include "vector_core.h" #include "inv_and_det.h" #include "settings.h" //See header file for documentation struct matrix *B_matrix(const struct vector * co...
/* The MIT License Copyright (c) 2008 Genome Research Ltd (GRL). 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...
/* lollyTrack -- load and draw lollys */ /* Copyright (C) 2019 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "obscure.h" #include "hgTracks.h" #include "bedCart.h" #include "bigWarn.h" #include "lolly.h" #include "limi...
/* ** FFT and FHT routines ** Copyright 1988, 1993; <NAME> ** Copyright (c) 1999-2000 <NAME> ** ** fht(fz,n); ** Does a hartley transform of "n" points in the array "fz". ** ** NOTE: This routine uses at least 2 patented algorithms, and may be ** under the restrictions of a bunch of different organiza...
/*++ Copyright (c) 1992 Microsoft Corporation Module Name: preview.c Abstract: This module contains the code for console preview window Author: <NAME> (thereses) Feb-3-1992 (swiped from Win3.1) Revision History: --*/ #include "shellprv.h" #pragma hdrstop #include "lnkcon.h...
/* * Copyright (c) 2007-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, modify, merg...
/*------------------------------------------------------------------------- * * theme_loader.c * a routines for loading theme (style) definition * * Portions Copyright (c) 2017-2021 <NAME> * * IDENTIFICATION * src/theme_loader.c * *------------------------------------------------------------------------- ...
/** * \file * * \brief Slider widget implementation * * Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip products. ...
/* * tasks - handle Taskwarrior io and task structs * for tasknc * by mjheagle */ #define _GNU_SOURCE #include <curses.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <time.h> #include "common.h" #include "config.h" #include "log.h" #include "sort.h" #in...
/* $OpenBSD: dhcrelay.c,v 1.34 2010/07/03 04:44:52 guenther Exp $ */ /* * Copyright (c) 2004 <NAME> <<EMAIL>> * Copyright (c) 1997, 1998, 1999 The Internet Software Consortium. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided tha...
// Majordomo Protocol broker // A minimal C implementation of the Majordomo Protocol as defined in // http://rfc.zeromq.org/spec:7 and http://rfc.zeromq.org/spec:8. #include "czmq.h" #include "mdp.h" // We'd normally pull these from config data #define HEARTBEAT_LIVENESS 3 // 3-5 is reasonable #define HE...
// Copyright 2013 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...
/* * 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...
#include <stdint.h> #include <stddef.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <dhara/map.h> #include "sim.h" #include "util.h" #define GC_RATIO 4 static const uint8_t raw_data1[] = { 0x53, 0x42, 0x26, 0x01, 0x70, 0x00, 0x00, 0x20, 0x1A, 0x12, 0xAD, 0x2D, 0x03, 0x00, 0x00, 0x0...
/* utils.c part of lisy80 bontango 01.2019 */ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include<stdio.h> #include<stdlib.h> #include <unistd.h> #include <fcntl.h> #include<string.h> #include<signal.h> #include<errno.h> #inc...
/* * Copyright 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
/***************************************************************************** * * test_sigma.c * * System test to compute the surface tension via measurement of the * Laplace pressure difference between the inside an outside of a * stationary droplet. * *****************************************************...
#include <celib/memory/allocator.h> #include "cetech/resource/resource.h" #include "celib/id.h" #include "celib/memory/memory.h" #include "celib/api.h" #include <celib/ydb.h> #include <celib/macros.h> #include <celib/math/math.h> #include <celib/log.h> #include <celib/cdb.h> #include <celib/module.h> #include <celib/...
/* * (C) Copyright 2015 Kurento (http://kurento.org/) * * 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...
/***************************************************************************** * rrd_hw_update.c Functions for updating a Holt-Winters RRA ****************************************************************************/ #include "rrd_tool.h" #include "rrd_format.h" #include "rrd_hw_math.h" #include "rrd_hw_update.h" ...
/* * object.c * * Constructors and operations for the data types * * Copyright (C) 2013-03-17 liutos <<EMAIL>> */ #include <assert.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "object.h" #include "types.h" #include "write.h" #define HEAP_SIZE 1000 extern char port_...
/* play2to3.c - CircleMUD v2.2-to-v3.0 player file converter June 12th, 1995 This is a quick&dirty hack to convert a player file from CircleMUD v2.2 to CircleMUD v3.0. As far as I know it works and it should be portable, but I have only compiled and tested it under Linux 1.1.59. <NAME> <EMAIL> ...
/************************************************************************* * * file: rhsfun.c * * ======================================================================= * RHS Function Management for Soar 6 * * The system maintains a list of available RHS functions. Functions * can appear o...
/****************************************************************************** * File Name : pod6.c * Date First Issued : 06/02/2015 * Board : STM32F103VxT6_pod_mm * Description : Use pod board to prototype two AD7799 w CAN for winch *******************************************************...
/************************************************************************** * Parts copyright (c) 2001 by <NAME>. All rights reserved. * * Parts copyright (c) 2005, 2008, 2009 by <NAME>, /k/ Embedded Java * * Solutions. All rights reserved. * * ...
/* * Copyright (c) 2010-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...
/* zzdsksgr.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__6 = 6; /* $Procedure ZZDSKSGR ( DSK, return segment bounding radius ) */ doublereal zzdsksgr_(double...
//forward declarations void generateSums(data *,const parameters *); void refitFilterPoly4(const parameters *, const data *, fit_results *, plot_data *, long double); //evaluates the fit function at the specified point long double evalPoly4(long double x, const fit_results * fr) { return fr->a[0]*x*x*x*x + fr->a[1]*x...
/* * Copyright (c) 2014 The WebM project authors. All Rights Reserved. * Copyright (c) 2020 Intel Corporation * * 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 ...
static char help[] = "Solve nonlinear Liouville-Bratu equation in 2D on a structured-grid. Option prefix lb_.\n" "Solves\n" " - nabla^2 u - lambda e^u = 0\n" "on the unit square [0,1]x[0,1] subject to zero Dirichlet boundary conditions.\n" "Critical value occurs about at lambda = 6.808. Optional exact solution\n" "(...
#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...
/* * Copyright (C) 2017-2018 <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, copy, modify, merg...
#include"delaunay.h" extern PointSet pointSet; extern EdgeSet edgeSet; //extern Point *points; // extern Edge *edges; // extern long edgeCounter; // extern long nPoints; // extern long nEdges; void delaunay(long start, long end, long *leftEdgeIdx, long *rightEdgeIdx) { long edgeOneIdx, edgeTwoIdx, edgeThreeIdx; ...
/* Author: <NAME> (c) 1997 Rabin public-key encryption. See "Handbook of Applied Cryptography" by <NAME> et al Section 8.3 pages 292 - 294. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "lip.h" #define BITS_PER_CHAR 8l #define DEBUG char MAGIC[32] = {1, 0, 1, 0, 1...
// This code was adapted, optimized and converted to C from the MBED C++ Library for the SSD1331 OLED Display // It includes some of my own functions and relies on some functions I wrote in the devSSD1331.c file // For reference, the link to the MBED driver is here : https://os.mbed.com/users/star297/code/ssd1331//file...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <time.h> #include <string.h> #include "motion_input.h" #include "wiimote_protocol.h" typedef enum ext_status { // Extension detection hasn't begun yet EXT_STATUS_UNKNOWN = 0, // Detection is in progress EXT_STATUS_IN_PROGRESS = 1, ...
/* * Copyright (c) 2014-2018 Cesanta Software Limited * 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 * * ...
/* * $Id: sendserver.c,v 1.30 2010/06/15 09:22:52 aland Exp $ * * Copyright (C) 1995,1996,1997 <NAME> * * Copyright 1992 Livingston Enterprises, Inc. * * Copyright 1992,1993, 1994,1995 The Regents of the University of Michigan * and Merit Network, Inc. All Rights Reserved * * See the file COPYRIGHT for the re...
/* $OpenBSD: pchb.c,v 1.85 2010/08/31 17:13:46 deraadt Exp $ */ /* $NetBSD: pchb.c,v 1.65 2007/08/15 02:26:13 markd Exp $ */ /* * Copyright (c) 2000 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
/* * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc. * All Rights Reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation. * * This program is distributed in the hope that it woul...
#ifndef lint static const char RCSid[] = "$Id: pmapbias.c,v 2.5 2016/05/17 17:39:47 rschregle Exp $"; #endif /* ================================================================== Bias compensation for photon density estimates For background see: <NAME>, "Bias Compensation for Photon Maps", Co...
/***********************license start*************** * Copyright (c) 2003-2010 <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 cod...
/**************************************************************** * Calculate observables in the 2D Thirring model. * (arXiv:0910.5736). The mass term is represented as a field of * monomers (occupied sites) and the four fermion term is * represented as dimers (occupied links). * **********************...
#include <stdio.h> #include <stdlib.h> double MorningInterval = 0.0; double NoonInterval = 0.0; double EveningInterval = 0.0; int MorningVisitors = 0; int NoonVisitors = 0; int EveningVisitors = 0; const int MoringVisitorsPH = 5; const int NoonVisitorsPH = 14; const int EveningVisitorsPH = 42; const int CommonCostP...
#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...
/* MIT LICENSE Copyright 2014-2019 Inertial Sense, Inc. - http://inertialsense.com 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 u...
/* spliceProbeVis.c - Visualize some plots for data. Since R is slow to call build up entire script to make all plots and then call R once, have to build up html in a buffer too or else browser starts looking for files that aren't there yet. */ #include "common.h" #include "hdb.h" #include "cheapcgi.h" #include "htm...
/*$Header: /data/petsun4/data1/src_solaris/peak_4dfp/RCS/burn_sphere_4dfp.c,v 1.13 2010/11/08 23:51:53 avi Exp $*/ /*$Log: burn_sphere_4dfp.c,v $ * Revision 1.13 2010/11/08 23:51:53 avi * extend -s functionality to single voxels (orad <= 0) * * Revision 1.12 2010/11/02 23:41:39 avi * option -s * * Revision...
/* * MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm * * Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All * rights reserved. * * License to copy and use this software is granted provided that it * is identified as the "RSA Data Security, Inc. MD5 Message-Digest * Algorithm" in all ...
/* * linux/fs/xiafs/inode.c * * Copyright (C) <NAME>, 1993. * * Based on Linus' minix/inode.c * Copyright (C) <NAME>, 1991, 1992. * * This software may be redistributed per Linux Copyright. */ #ifdef MODULE #include <linux/module.h> #include <linux/version.h> #else #define MOD_INC_USE_COUNT #define MOD...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include "neuron.h" #include "randtool.h" //---------------Switches--------------- const int ADAM_ON = 1; const int L2_ON = 0; //---------------Simple Function------------- double equal(double x) { return x;} double equal_p(double x) {re...
#include <unistd.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <errno.h> #include <time.h> #include <pthread.h> #if defined(__linux__) #include <sys/prctl.h> #endif #include "gtr_thread_pool.h" #ifdef GTR_THREAD_POOL_DEBUG #define GTR_THREAD_POOL_DEBUG 1 #else #define GT...
/* * IoT Hub Raspberry Pi C - Microsoft Sample Code - Copyright (c) 2017 - Licensed MIT */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <azure_c_shared_utility/xlogging.h> #include <azure_c_shared_utility/platform.h> #include <azure_c_shared_utility/threadapi.h> #include <azu...
/** * Crypto Incognito common library. */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #ifndef __EMSCRIPTEN__ #include <omp.h> #endif #include "epir.h" #include "common.h" #define min(a, b) ((a) < (b) ? (a) : (b)) void epir_create_privkey(unsigned char *privkey) { crypto_core_e...
#include <multicore_boot.h> #include <asserts.h> #include <utils.h> #include <ports.h> #include <console.h> #include <idt.h> #include <timer.h> typedef struct { uint64_t start, end; } mem_zone; static mem_zone get_ebda_zone(void) { //De acuerdo a OSDEV, y en GRUB parece asumir lo mismo // http://linux4u.jinr.ru/pu...
#define USB2_0 1 #define USB1_0 0 // #define CH375_DBG 1 #define CH375_MAX_DATA_LEN 0x40 /* max package length */ /* ********************************************************************************************************************* */ /* Commands */ #define CMD_RESET_ALL 0x05 /* Reset Device */ ...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2020 ST...
/****************************************************************************** * @section DESCRIPTION * * This routine computes the evaporation, traspiration and throughfall of the * vegetation types for multi-layered model. * * The value of x, the fraction of precipitation that exceeds the canopy * storage cap...
// Copyright 2018 Schibsted #include <string.h> #include <stdlib.h> #include "utf8.h" #include "memalloc_functions.h" #include "string_functions.h" /* * From http://en.wikipedia.org/wiki/Windows-1252 * * Most modern web browsers and e-mail clients treat the MIME charset * ISO-8859-1 as Windows-1252 to accommodat...
/* remove.c -- core functions for removing files and directories Copyright (C) 1988-2015 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 by the Free Software Foundation, either version 3 of...
/* * Open Surge Engine * stageselect.c - stage selection screen * Copyright (C) 2010, 2012 <NAME> <alemartf(at)gmail(dot)com> * http://opensnc.sourceforge.net * * 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 Fr...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <hiredis.h> #include <gd.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <regex.h> #include "base64.h" /* * Data */ static const char *HostName = "127.0.0.1"; static redisContext *Context; static const int Port = 6379; s...
#include "s.h" #include <string.h> #include <stdlib.h> #include <stdio.h> #include <ctype.h> #define P_HERO 0xff0000 #define P_NONE 0xffffff #define P_WALL 0x000000 #define P_EJECTOR 0x800000 #define P_PULSATOR_CONTRACTED 0x787878 #define P_PULSATOR_EXPANDED ...
/** * |---------------------------------------------------------------------- * | Copyright (C) <NAME>, 2014 * | * | 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 3 of...
/********************************************************************************/ /* */ /* TPM ASN.1 */ /* Written by <NAME> */ /* IBM Thomas J. Watson Research Center */ /* $Id: TpmAsn1.c 1519 2019-11-15 20:43:51Z kgoldman $ */ /* */ /* Licenses and Notic...
/* * Ultrastor [13]4f SCSI Host Adapter. * Originally written by <NAME>, <EMAIL>. * Needs work: * handle multiple controllers; * set options from user-level; * split out to handle adaptec too; */ #include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "io.h" #include "...
// Zorro Beginner's Interface ////////////////////////// // redefine variables to less scary names ////////////// #define Slider1 g->vSlider[1] #define Slider2 g->vSlider[2] #define Slider3 g->vSlider[3] #define CVolatility VolatilityC #define PlotScale g->nPlotScale #define PlotWidth g->nPlotWidth #define PlotHeigh...
// Copyright (C) 2004-2011 <NAME> & <NAME> // This file is part of the "Luxinia Engine". // For conditions of distribution and use, see luxinia.h #include <Windows.h> #include <al/alut.h> #include <al/al.h> #include <string.h> #include "../resource/resmanager.h" #include "../common/memorymanager.h" #include "../c...
/*********************************************************************** * $Id:: mw_usbd_cdcuser.c 1728 2014-09-19 17:56:35Z nxp73930 $ * * Project: USB device ROM Stack * * Description: * USB Communication Device Class User module. * ************************************************...
/******************************************************************************* Main Source File Company: Microchip Technology Inc. File Name: main.c Summary: This file contains the "main" function for a project. Description: This file contains the "main" function for a project. The ...
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved. * * 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 * righ...
/** Sample program that reads tags in the background * and calculates direction of travel. * Assumes antennas 1 and 2 are connected and facing in opposing directions. */ #include <tm_reader.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #ifndef WIN32 #include <signal.h> #include <unistd.h> #include <...
/*---------------------------------------------------------------------------- * Copyright (c) <2018>, <Huawei Technologies Co., Ltd> * 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. Redist...
/* Sccsid: @(#)varsub.c 2.1.8.3 */ #include <stdio.h> #ifndef _POSIX_SOURCE #include <malloc.h> #endif /* POSIX_SOURCE */ #if (defined(_POSIX_)||!defined(WIN32)) #ifndef DOS #include <unistd.h> #endif #endif /* WIN32 */ #include <string.h> #include "config.h" #include "dss.h" #include "tpcd.h" #ifdef ADHOC #include...
/* * Copyright © 2012 Intel Corporation * * 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, pub...
/* Copyright 2012 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 ...
/* * rc-map.h - define RC map names used by RC drivers * * Copyright (c) 2010 by <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 by * the Free Software Foundation; either version 2 of the License, or * (at your o...
// Copyright (c) Open Enclave SDK contributors. // Licensed under the MIT License. #define OE_NEED_STDC_NAMES #include <openenclave/advanced/allocator.h> #include <openenclave/bits/defs.h> #include <openenclave/bits/types.h> #include <openenclave/corelibc/stdlib.h> #include <openenclave/corelibc/string.h> #include <op...
/* * Copyright (c) 2018-2019 <NAME>. * All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the BSD_LICENSE file. * * SPDX-License-Identifier: BSD-2-Clause */ #include <unistd.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #i...
/* * slcanpty.c - creates a pty for applications using the slcan ASCII protocol * and converts the ASCII data to a CAN network interface (and vice versa) * * Copyright (c)2009 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License a...
/* * Copyright (c) 2005-2020 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...
/* * Functions for detecting DFU USB entities * * Written by <NAME> <<EMAIL>> * Copyright 2007-2008 by OpenMoko, Inc. * Copyright 2013 <NAME> <<EMAIL>> * Copyright 2016 <NAME> <<EMAIL>> * * Based on existing code of dfu-programmer-0.4 * * This program is free software; you can redistribute it and/or modify *...
/** * Copyright 2017 autopp * * 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 w...
/*============================================================================================= * * PiSlaveApplication.h * * --------------------------------------------------------------------------------------------- * * MIT License * * Copyright(C) 2017 : KUNBUS GmbH, Heerweg 15C, 73370 Denkendorf, Germany * * Per...
/* * Copyright (c) 2018 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ /* These assertions are very useful when debugging the tree code * itself, but produce significant performance degradation as they are * checked many times per operation. Leave them off unless you're * working on the rbtree co...
/* DESCRIPTION: Conway's Game of Life project for UoA dit, September 2020. * * AUTHOR: <NAME>, 1115201500201, UoA, dit. * DATE: September 2020. */ /*********************** * Libraries to import * ***********************/ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> ...
/* * Copyright 2018 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...
#ifndef lint static const char RCSid[] = "$Id: ra_ps.c,v 2.31 2019/12/28 18:05:14 greg Exp $"; #endif /* * Radiance picture to PostScript file translator -- one way! */ #include <math.h> #include <ctype.h> #include "platform.h" #include "rtio.h" #include "color.h" #include "resolu.h" #define UPPER(c) ((c)&~...
/// \file /// Computes forces for the 12-6 Lennard Jones (LJ) potential. /// /// The Lennard-Jones model is not a good representation for the /// bonding in copper, its use has been limited to constant volume /// simulations where the embedding energy contribution to the cohesive /// energy is not included in the two-b...
/* * Copyright (c) 2013-2014, ARM Limited and Contributors. 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 * l...
//************************************************************************ //* wiring_analog.c //* //* Arduino core files for PIC32 //* Copyright (c) 2010, 2011 by <NAME> //* //* //************************************************************************ //* this code is based on code Copyright (c) 2005-2006 <NAME> /...
//------------------------------------------------------------------------------ // sgl-microui.c // // https://github.com/rxi/microui sample using sokol_gl.h, sokol_gfx.h // and sokol_app.h // // NOTE: for the debugging UI, cimgui is used via sokol_gfx_cimgui.h // (C bindings to Dear ImGui instead of the ImGui C+...
/* * ESPRESSIF MIT License * * Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> * * Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to dea...
/** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * This notice applies to any and all portions of this file * that are not betwee...