text
stringlengths
3.12k
18.7k
#include <config.h> #ifdef HAVE_LIMITS_H #include <limits.h> #endif #ifdef HAVE_LINUX_LIMITS_H #include <linux/limits.h> #endif #include <sys/stat.h> #include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include <assert.h> #include "clink.h" int listing = 0; int silent = 0...
/*- * Copyright (c) 2002 <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 condition...
/* ========================================================================== Bit Counting routines Author: <NAME> (<EMAIL>) Date: 27 Aug 2002 URL : http://www-db.stanford.edu/~manku/bitcount.html ========================================================================== */ #include <stdlib.h> #...
/* Copyright (c) <NAME>, 1994. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ /** * (c) Copyright 1993, Silicon Graphics, Inc. * ALL RIGHTS RESERVED * Permissio...
/****************************************************************************** * $Id: main.c 580 2012-03-29 09:56:21Z yamada.rj $ ****************************************************************************** * * Copyright (C) 2012 Asahi Kasei Microdevices Corporation, Japan * * Licensed under the Apache License...
/* zbinu.f -- translated by f2c (version 20190311). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of ...
/* * Copyright (c) 2018, Exile Heavy Industries * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the disclaimer * below) provided that the following conditions are met: * * * Redistributions of source co...
/** * @file test_jalp_journal.c This file contains functions to test * jalp_journal_* functions. * * @section LICENSE * * Source code in 3rd-party is licensed and owned by their respective * copyright holders. * * All other source code is copyright Tresys Technology and licensed as below. * * Copyright (c) 2...
/* * Copyright 2015 <NAME> * Copyright 2017 HAW Hamburg * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup drivers_isl29125 * @{ * * @file * @brief Device drive...
/** * One-Way Communication demo client for PSoC 4 BLE. * * Pressing SW2 on the server Pioneer Kit base board should cause * the green LED to light on the client Pioneer Kit base board. * The red LED on the client Pioneer Kit base board is illuminated * when the BLE connection to the server is established. * * ...
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build darwin nacl netbsd openbsd plan9 solaris windows #include "runtime.h" // This implementation depends on OS-specific implementations of // // uintptr...
/* ============================================================================ * Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005, 2008 * * Use of this software is controlled by the terms and conditions found in the * license agreement under which this software has been supplied. * =============...
#include <dirent.h> #include <err.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/param.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #define BUFFSIZE 100000 long beforeandafter = 1000; char buff[BUFFSIZE + 1]; // Faster strlcpy // but no return...
/*****************************************************************************\ ** ** ** FILE: osdepend.c ** ** AUTHORS: <NAME> (<EMAIL>) ** ** Alexios (portin...
/** * \file tests/hbmatmult.c * \brief Comprehensive test of matrix-vector multiply for an * arbitrary data structure transformation (specified by a * OSKI-Lua program), where the matrix is read from a * Harwell-Boeing file. * * Like bcsr.c, also implicitly tests oski_ApplyMatTransforms(). */ #include <a...
// c:/bsd/rigel/sort/C2Split.c // Date: Tue Apr 28 13:34:34 2020 // (C) OntoOO/ <NAME> // const int cut2split = 256*1024; // // const int cut2split = 2*1024*1024; // // const int cut2split = 1024*1024; // // const int cut2split = 600*1024; // 11886 static const int cut2split = 512*1024; // 11793 // const in...
#include<windows.h> #include<stdio.h> #include<time.h> #define turn(x, y) (mapSize.X * (y) + (x)) #define Outside(x, y) (x < 0 || mapSize.X - 1 < x || y < 0 || mapSize.Y - 1 < y) int *map, *mark, count, bomb, firstOpen, game, bombCount, baginTime; int node[8][2] = { 1,0,-1,0,0,1,0,-1,-1,-1,-1,1,1,-1,1,1 }; char *num[10...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <time.h> #include "lexicon.h" typedef int bool; #define true 1 #define false 0 #define LINE_MAX (80) #define DECK_SIZE (52) #define MAX_WORD_SIZE (16) void multiply(int num1, int denom1, int num2, int denom2, int * rNum, int * rDe...
#include "tools.h" #include "sys.h" #include "shed.h" void a_failed(char *file, int line) { uart_puts("Error in "); uart_puts(file); uart_puts(" "); uart_send_int(line); uart_puts("\n"); while (1) { } } int my_strcmp(char * str1, char * str2){ int i=0; while(str1[i]!='\0'){...
/* * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * * Copyright (c) 2011, The Linux Foundation. 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 o...
/* FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the terms of...
/* * * Created on: Oct 28, 2013 * Author: liyixiao */ #include "am1808.h" #include "t_stddef.h" #include "t_syslog.h" #include "tl16c550.h" #include "kernel_cfg.h" #include "driver_common.h" #include "string.h" #include "btstack/btstack.h" #include "../btstack/src/btstack_memory.h" #include "../btstack/src/...
/*static symbolic factorization*/ /*last modified: august 27, 2013*/ /*author: Chen, Xiaoming*/ #include "nicslu.h" #include "nicslu_internal.h" #include "system.h" #include "math.h" #include "nicslu_default.h" extern size_t g_sp, g_sd, g_si; int _I_NicsLU_StaticSymbolicFactorize(SNicsLU *nicslu) { in...
/* version 20110506 <NAME> Public domain. */ #define ROUNDS 20 #include <arm_neon.h> #include "crypto_stream.h" static const unsigned char sigma[16] = "expand 32-byte k"; int crypto_stream_xor( unsigned char *c, const unsigned char *m,unsigned long long mlen, const unsigned char *n, const unsigned char...
/* * Copyright 2010-2015 Dasudian.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://dsd.dasudian.com/apache2.0 * * or...
/* * 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...
// SPDX-License-Identifier: GPL-2.0+ /* * board.c * * Board functions for Bosch Guardian * * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ * Copyright (C) 2018 <NAME> Power Tools GmbH */ #include <common.h> #include <cpsw.h> #include <dm.h> #include <env_internal.h> #include <errno.h>...
/* * Copyright (c) 2018-2019, AT&T Intellectual Property. * All rights reserved. * * SPDX-License-Identifier: GPL-2.0-only * * This file contains functions for extracting a 'configd-friendly' path from * the NETCONF subtree filter that can be passed on to GetTree[Full](), thus * reducing the amount of unnecessa...
#include <headers.h> #include <response.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> const int status_code[] = {[Continue] = 100, [Switching_Protocol] = 101, [OK] = 200, [Created] = 201, ...
/* * Copyright (c) 2015, Joyent, Inc. * See LICENSE file for copyright and license details. */ #include <stdlib.h> #include <err.h> #include <smbios.h> #include <string.h> #include <strings.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <err.h> #include <errno.h> #in...
/* * Copyright (c) 2015-2021 University of Antwerp, Aloxy NV. * * This file is part of Sub-IoT. * See https://github.com/Sub-IoT/Sub-IoT-Stack for further info. * * 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...
/* * Copyright (c) 2012 The DragonFly Project. All rights reserved. * * This code is derived from software contributed to The DragonFly Project * by <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * a...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <limits.h> /* ================== Implementação Ziviani (não alterar) ================== */ /* ========================================================================= */ typedef int TipoChave; typedef struct { int Chave; /*...
/* config.h. Generated from config.h.in by configure. */ /*#if !defined IS_IN_build && !defined __ASSEMBLER__ && !defined _ISOMAC \ && !defined __OPTIMIZE__ # error "glibc cannot be compiled without optimization" #endif*/ /* Another evil option when it comes to compiling the C library is --ffast-math since it...
#include <stdarg.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <sys/param.h> #include <sys/select.h> #include <time.h> #include <unistd.h> #include "getstream.h" #include "psi.h" #define TS_PID_OFF1 1 #define TS_PID_OFF2 2 #define TS_CC_OFF 3 #define TS_CC_MASK 0xf #define TS_AFC_OFF 3 #...
/** @file ioboard_example.c @brief IO board example 4_ioboard_test. @author <NAME> @version 1.2 @date 26.4.2021 The 4_ioboard_test example demonstrates basic IO board with network communication. Implementation doesn't use dynamic memory allocation or multithreading, thus it should run on any ...
/* mdbUpdate - Adds, updates or removes metadata objects and variables from the 'mdb' metadata table. */ #include "common.h" #include "linefile.h" #include "options.h" #include "mdb.h" #include "hash.h" static char const rcsid[] = "$Id: mdbUpdate.c,v 1.3 2010/04/27 22:40:12 tdreszer Exp $"; #define OBJTYPE_DEFAULT "t...
/* * Copyright 2021 Comcast Cable Communications Management, 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...
/* * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in...
/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* ==================================================================== * Copyright (c) 2010 Carnegie Mellon University. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
#include "gen.h" #define CHUNK_SIZE 20000 #define SUCCESS 1 #define FAILURE 0 //#define DEBUG typedef struct _ptr { unsigned short *b; struct _ptr *next; } ptr; typedef struct _ptr_list { ptr list[CHUNK_SIZE]; struct _ptr_list *next_list; } ptr_list; ptr_list *ptr_li...
/* * STM32 Microcontroller * * Copyright (C) 2010 <NAME> * * Implementation based on ST Microelectronics "RM0008 Reference Manual Rev 10" * * 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...
/* * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the * disclaimer below) provided that the following conditions are met: * * * Redistributions of source ...
/* The MIT License (MIT) Copyright (c) 2017-2020 oarplayer(qingkouwei) 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, ...
/* code to support the standard photometric Landolt stars. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "P_.h" #include "astro.h" #include "circum.h" #include "photstd.h" static int addStar (PStdStar *sfp, char buf[]); /* read the given file of standard photometric star...
/* * numa_util.c -- NUMA utilitiy functions. * * Copyright (C) 2011-2012, Computing Systems Laboratory (CSLab), NTUA * Copyright (C) 2011-2012, <NAME> * Copyright (C) 2011-2012, <NAME> * All rights reserved. * * This file is distributed under the BSD License. See LICENSE.txt for details. */ #include "numa_uti...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Runtime symbol table parsing. // See http://golang.org/s/go12symtab for an overview. #include "runtime.h" #include "defs_GOOS_GOARCH.h" #include "os_GOOS.h"...
/** * 20 - Force feedback (haptic device) * */ #include <SDL2/SDL.h> #include <stdio.h> #include <stdbool.h> #include "common.h" #include "LTexture.h" #define SCREEN_WIDTH 640 #define SCREEN_HEIGHT 480 #define SETFRAME(var, arg1, arg2, arg3, arg4) \ do { \ var.x = arg1; \ var.y = arg2; ...
/* Copyright (C) 1989, 1995, 1996, 1997 Aladdin Enterprises. All rights reserved. This file is part of Aladdin Ghostscript. Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or distributor accepts any responsibility for the consequences of using it, or for whether it serves any ...
/* Copyright © 2001-2019 <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, merge, pu...
// This isn't compilable as-is, as it was extracted from a working // integration-in-a-game and makes reference to symbols from that game. #include <assert.h> #include <ctype.h> #include "game.h" #include "SDL.h" #include "stb_tilemap_editor.h" extern void editor_draw_tile(int x, int y, unsigned short tile, int mode,...
/** * relayd.c -- a relay daemon (using one targethost/port) * -- * $Id: relayd.c,v 1.1 2000/12/17 05:34:16 tom Exp $ * * This 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, or (at yo...
/* softmenu.c - stuff to read in pulldowns and numbered item menus from * ascii resource file. * * The format of the resource file is: * Class item * { * stuff specific to class * } * * The only restriction to 'stuff specific to class' is that it * must have a matching number of {'s and }'s exc...
/* ARS.C - Procedure for performing Adaptive Rejection Sampling. */ /* Copyright (c) 1995-2003 by <NAME> and <NAME> * * Permission is granted for anyone to copy, use, modify, or distribute this * program and accompanying programs and documents for any purpose, provided * this copyright notice is retained and prom...
/* * 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. */ /* * prteps.c - print HIPS images ...
/*! ********************************************************************************** * Copyright (c) 2021 Loongson Technology Corporation Limited * Contributed by <NAME> <<EMAIL>> * * \copy * Copyright (c) 2013, Cisco Systems * All rights reserved. * * Redistribution and use in source and binary...
#include "mgos.h" #include "led_master.h" typedef struct { tools_rgb_data* color_bar; tools_rgb_data color_start; tools_rgb_data color_end; tools_rgb_data back_ground; tools_rgb_data black; audio_trigger_data* atd; } vu_meter_data; static vu_meter_data main_vmd; static tools_rgb_data mgos_int...
//***************************************************************************** // Filename : 'spiderplot.c' // Title : Animation code for MONOCHRON spider plot clock //***************************************************************************** #include <math.h> #include "../global.h" #include "../glcd.h" #includ...
/* * $Id: rfc1123.c,v 1.23.2.1 2000/02/09 23:29:51 wessels Exp $ * * DEBUG: * AUTHOR: <NAME> * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ * ---------------------------------------------------------- * * Squid is the result of efforts by numerous individuals from the * Internet community....
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (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 * o...
#include "TM1650.h" #include "font_7seg.h" /** Generate Start condition for TM1650 * @param none * @return none */ void TM1650_Start(m_tm1650 * tm1650) { // wait_us(1); HAL_GPIO_WritePin(tm1650->SCL_GPIOx,tm1650->SCL_GPIO_Pin,GPIO_PIN_SET); HAL_GPIO_WritePin(tm1650->SDA_GPIOx,tm1650->SDA_GPIO_Pin,GPI...
/**************************************************************************//** * @file main.c * @version V1.00 * @brief Demonstrate the usage of Cortex-M23 MPU. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2020 Nuvoton Technology Corp. All rights reserved. ************************************...
/* vim: ts=3 sw=3 sts=3 tw=80 sta noet list */ /** * \file t_pck__readwrite.c * \brief control read and write operations on the binary blob * \author tkieslich * \copyright See Copyright notice at the end of t.h */ #include <string.h> // memcpy #include "t_pck_l.h" #include "t_buf.h" #include "t.h...
/*===-- main.c -------------------------------------------*- TEST -*- C -*-===*/ /** *** @file *** @brief Test Driver *** *** This is the test driver for Ordo which runs a series of tests ranging from *** algorithm test vectors to tests designed to check API behaviour. The array *** of tests is in this file and can be ...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <limits.h> #include <time.h> #define item3D(x, y, z, sx, sz) (y*(sz*sx)) + (x*sz+z) typedef struct { int top; int botton; int left; int right; } coordenadas; typedef struct { unsigned char *imagem; int tamanho;...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <linux/prctl.h> #include <sys/signalfd.h> #include <sys/socket.h> #include <sys/stat.h> #include <sys/un.h> #include <Rk_wifi.h> #include <RkBtBase.h> #include <RkBle.h> #include "rk_ble_app.h" /* Immediate w...
/* * Parse 32-bit ELF files. * Copyright (c) 2004 <NAME>. See LICENSE. */ #include <u.h> #include <libc.h> #include <mach.h> #include "elf.h" typedef struct ElfHdrBytes ElfHdrBytes; typedef struct ElfSectBytes ElfSectBytes; typedef struct ElfProgBytes ElfProgBytes; typedef struct ElfSymBytes ElfSymBytes; struct ...
/** * @file * @brief A simple C example for the ParallelIO Library using PIOc_put_vara() * * This example creates a netCDF output file with one dimension and * one variable. It first writes, then reads the sample file using the * ParallelIO library. * * This example can be run in parallel for 1, 2, 4, 8, or 1...
/* Simple Raw HID functions for Windows - for use with Teensy RawHID example * http://www.pjrc.com/teensy/rawhid.html * Copyright (c) 2009 PJRC.COM, LLC * * rawhid_open - open 1 or more devices * rawhid_recv - receive a packet * rawhid_send - send a packet * rawhid_close - close a device * * Permission is ...
/** * @file * * @date Nov 28, 2019 * @author <NAME> */ #include <util/log.h> #include <stddef.h> #include <unistd.h> #include <drivers/clk/ccm_imx6.h> #include <drivers/common/memory.h> #include <hal/reg.h> #define USB_PHY_QUANTITY 2 /* PHY-related stuff */ /* There are two ports in i.MX6 processors */ #define...
/* * Copyright 2006 Freescale Semiconductor * <NAME> * <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...
/* * Copyright (c) 2018 <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, dis...
/*************************************************************** ** 08.07.2001 // LSTBAS // Busy soft: Basicovy prikaz LIST 01 ** ***************************************************************/ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License...
/** * \file srecParser.c * * \brief Implementation of real time srec parser. * * * Copyright (c) 2020 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 Microc...
/* * 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...
/* Communication-efficient distributed stratified stochastic gradient decent * Copyright © 2022 <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, ...
#include <stdio.h> #include <stdarg.h> #include "hss.h" #include "test_hss.h" static bool rand_1(void *output, size_t len) { unsigned char *p = output; while (len--) *p++ = len; return true; } static bool update_fail(unsigned char *priv_key, size_t len_priv_key, void *context) { return false; } stat...
/* * Copyright (C) 2015, 2016 "IoT.bzh" * Author: <NAME> <<EMAIL>> * * 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...
/** * MIT License * * Copyright (c) 2020 <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...
/* * Main program entry point - read the command line options, then perform * the appropriate actions. * * Copyright 2010 <NAME>, distributed under the Artistic License 2.0. */ #include "options.h" #include "pv.h" #define _GNU_SOURCE 1 #include <limits.h> #include <unistd.h> #include <signal.h> #include <fcntl....
/* Code to save the iptables state, in human readable-form. */ /* (C) 1999 by Paul 'Rusty' Russell <<EMAIL>> and * (C) 2000-2002 by <NAME> <<EMAIL>> * * This code is distributed under the terms of GNU GPL v2 * */ #include "config.h" #include <getopt.h> #include <errno.h> #include <stdio.h> #include <fcntl.h> #incl...
/** * ipcd.c * * purpose: act a middleman between processes to complete communication requests * author: <NAME> * * TODO: - C++ wrappers -- may be worth prioritizing other things - Queue multiple messages - Setup unit testing with new functions BUGS: - Re-feeding messages into IPC eventually ...
#include "mgos_ili9341.h" /* These functions were borrowed from Adafruit's excellent Arduino Graphics library: * https://github.com/adafruit/Adafruit-GFX-Library/ * * Copyright (c) 2012 Adafruit Industries. All rights reserved. */ static void ili9341_drawCircleHelper(int16_t x0, int16_t y0, int16_t r, uint8_t co...
/* SmoothWall setup program. * * This program is distributed under the terms of the GNU General Public * Licence. See the file COPYING for details. * * (c) <NAME>, 2001 * * filename: adsl.c * ADSL things. */ #include "setup.h" extern FILE *flog; extern char *logname; extern char **ctr; extern int automod...
/* * History: * Date Author Comment * 02-20-2006 <NAME>. Create it. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <pthread.h> #include <unistd.h> #include <sys/time.h> #include <sys/ioctl.h> #include "moxadevice.h" // following DIN & DOUT implement #define DIN_PORT...
int x11_init(){ int status; Window root; XSetWindowAttributes window_attributes; Atom wm_state_fullscreen; XTextProperty window_name; pid_t pid = getpid(); XSizeHints* size_hints = NULL; XWMHints* wm_hints = NULL; XClassHint* class_hints = NULL; //x data initialization x11.display = XOpenDisplay(NULL); i...
#include "mio.h" #define SEP " \t\r\n" struct floatarray { int len, cap; float *data; }; struct intarray { int len, cap; unsigned short *data; }; struct partarray { int len, cap; struct part *data; }; // temp buffers are global so we can reuse them between models static struct floatarray position = { 0, 0, N...
/* * Copyright (c) 1991-2013 Kawahara Lab., Kyoto University * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology * Copyright (c) 2005-2013 Julius project team, Nagoya Institute of Technology * All rights reserved */ /* accept_check --- sentence accept checker for DFA grammar */ #incl...
/****************************************************************************** * File Name : mtu_pwm_mode1_demo.c * Version : 1.00 * Device(s) : RX63N * H/W Platform : YRDKRX63N * Description : Defines MTU functions used for the MTU PWM mode1 demo. * : For this demo, the PW...
/********************************************************************** Each of the companies; Qualcomm, and Lucent (hereinafter referred to individually as "Source" or collectively as "Sources") do hereby state: To the extent to which the Source(s) may legally and freely do so, the Source(s), upon submission of a ...
#include "level3.h" #include "defines.h" #include "level1.h" #include "int.h" #include <stdlib.h> #include <string.h> #include <input.h> #include <sound.h> // for bit_beepfx() #define RED_GREEN_BRIGHT INK_RED | PAPER_GREEN | BRIGHT #define RAT_TO_RIGHT 1 #define RAT_TO_LEFT 2 #define UDG_UDG_CORAZON_ROTO_01 128 #defi...
int tiswrapped(Line line) { int len = tlinelen(line); return len > 0 && (line[len - 1].mode & ATTR_WRAP); } char * tgetline(char *buf, const Glyph *gp, const Glyph *last, int gettab) { while (gp <= last) if (gp->mode & ATTR_WDUMMY) { gp++; } else if (gettab && gp->state == GLYPH_TAB) { *(buf++) = '\t'; ...
#include "cs.h" /* --- is_left_cholupdate */ csi is_ind_in_set (csi i, csi *set, csi set_size) { csi k = 0, pos = -1 ; csi inf = 0, sup = set_size - 1, mil ; /* valeur à rechercher : i */ while ((inf<=sup) && (pos==-1)) { mil = (sup+inf)/2 + (sup+inf)%2 ; if (i < set [mil]) ...
/* * cma101.c -- lo-level support for Cogent CMA101 development board. * * Copyright (c) 1996, 2001, 2002 Cygnus Support * * The authors hereby grant permission to use, copy, modify, distribute, * and license this software and its documentation for any purpose, provided * that existing copyright notices are reta...
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include <GLUT/glut.h> #include "Interface.h" #include "Model.h" #include "Solver.h" #define IX(i,j) ((i)+(N+2)*(j)) // ---------------------------------------------------------------------------- static void pre_display (void); static void post_...
#include <stdio.h> #include <stdlib.h> #include "bignum_uint32_t.h" #include "montgomery_array.h" void mont_prod_array(uint32_t length, uint32_t *A, uint32_t *B, uint32_t *M, uint32_t *s) { zero_array(length, s); for (int32_t wordIndex = ((int32_t) length) - 1; wordIndex >= 0; wordIndex--) { for (int i = 0; i < 32...
//Autor: <NAME> #include <stdio.h> #include <math.h> #include <stdlib.h> #include <stdbool.h> #ifdef _WIN64 void clear(){ system("cls"); } #elif _WIN32 void clear(){ system("cls"); } #else void clear(){ printf("\033c"); } #endif #define RESET "\033[0m" #define BLACK "\033[30m...
/*H********************************************************************** * FILENAME : types.h START DATE : 10 Sept 16 * * DESCRIPTION : * Types to be used with all targets and platforms of SC-CL. * * NOTES : * This file is part of SC-CL's include library. * * LICENSE : * * Copyright 2016 SC-CL * * Redistributi...
#include <assert.h> #include <string.h> #include "sysinit/sysinit.h" #include "os/os.h" #include "console/console.h" #include "bsp/bsp.h" #include "hal/hal_gpio.h" #include "i2c/i2c.h" #include "tca95xxa/tca95xxa.h" #include "sht3x/sht3x.h" #if MYNEWT_VAL(USE_BLE) #include <host/ble_hs.h> #endif #define OSTUR_TASK_P...