text
stringlengths
3.12k
18.7k
/* Copyright 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 required by applicable law or...
#include "fs_private.h" #include "cx/container/sarray.h" // platform-agnostic path manipulation string fsPathSepStr = _S"/"; string fsNSSepStr = _S":"; // Get parent directory bool pathParent(string *out, strref path) { int32 len = strLen(path); int32 sep = strFindR(path, len - 1, fsPathSepStr); if (sep ...
#include "cachelab.h" #include <string.h> #include <stdio.h> #include <stdlib.h> #include <math.h> #define MAXLRU (999) typedef unsigned long ulong; typedef struct CacheLine { int vilad; ulong tag; int access; } CacheLine; typedef struct CacheSet { CacheLine *lines; } CacheSet; typedef struct Cache...
/*================================================================ * Copyright (C) 2020 Sangfor Ltd. All rights reserved. * * FileName:file_dir.c * Author:<EMAIL> * CreateTime:2020年09月08日 * Describtion:-- * ================================================================*/ #include "file_dir.h" #defin...
/* modify.c - modify request handler for back-asyncmeta */ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 2016 The OpenLDAP Foundation. * Portions Copyright 2016 <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or with...
/* See LICENSE file for copyright and license details. */ #include <dirent.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <time.h> #include <unistd.h> #include "data.h" #include "http.h" #include "util.h" enum status (* const data_fct[])(const struct response *, ...
/* * Copyright (c) 2001 <NAME> <<EMAIL>> * Copyright (c) 1991, 1993 * The Regents of the University of California. 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 ...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include "random.h" #include "network.h" float logistic(float x) { return 2.0/(1 + exp(-x)) - 1; } float gaussian(float x, float sigma) { return exp(-((pow(x, 2) / (2 * pow(sigma, 2))))); } float mexican_hat(float x, float sigma) { retur...
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ /* */ /* Auxiliary Routines File */ /* */ /* Generated by KPP-2.2 symbolic ch...
/* * mp_tables.c: Dynamically writes MP table info into the ROMBIOS. * * In order to work with various VCPU counts, this code reads the VCPU count * for the HVM partition and creates the correct MP tables for the VCPU count * and places the information into a predetermined location set aside in the * ROMBIOS duri...
/** * @file touch.c * @brief Capacitive Touch Sensor Reading for EFM32GG * @version 1.0 * * @note Uses ACMP1 Channel 0,1,2,3 as in STK-3700 board * * @note Pinout and Ports * * Signal | Port/Pin | Analog comparator channel * ------------|---------------|---------------------------- ...
#undef Elf_ #undef Elf_Vword #undef ELF_ST_BIND #undef ELF_ST_TYPE #undef ELF_ST_INFO #undef ELF_ST_VISIBILITY #undef ELF_R_SYM #undef ELF_R_TYPE #undef ELF_R_INFO #undef ELF_M_SYM #undef ELF_M_SIZE #undef ELF_M_INFO #ifdef R_BIN_ELF64 # define Elf_(name) Elf64_##name # define ELF_ST_BIND ELF64_ST_BIND # define ...
#include <common.h> static void gcrun(char * const *cmd, long *_ngcs, long *_xput, double *_gcfrac) { int p[2]; if (pipe(p) == -1) err(-1, "pipe"); pid_t c = fork(); if (c == -1) err(-1, "fork"); if (!c) { close(p[0]); if (dup2(p[1], 1) == -1) err(-1, "dup2"); close(p[1]); const int cmdsz = 62; ...
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #pragma once #define S905D2_GPIOZ_COUNT 16 #define S905D2_GPIOA_COUNT 16 #define S905D2_GPIOBOOT_COUNT 16 #define S905D2_GPIOC_COUNT 8 #define S905D2_GPIO...
/* * mm-naive.c - The fastest, least memory-efficient malloc package. * * In this naive approach, a block is allocated by simply incrementing * the brk pointer. A block is pure payload. There are no headers or * footers. Blocks are never coalesced or reused. Realloc is * implemented directly using mm_malloc an...
/* * (C) Copyright 2002 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> * <NAME> <<EMAIL>> * * (C) Copyright 2002 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> * <NAME> <<EMAIL>> * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can red...
/* * File: main.c * Author: <NAME> * * Created on January 18, 2016, 2:13 PM * * Does a feedback control sequence in which up * to two motors repeatedly goes between three * set points. If an end-effector is present on * the bus it will be used once during each set * point. * * Electrical connections (uC l...
/* * Tegra 12x SoC-specific mcerr code. * * Copyright (c) 2012-2014, NVIDIA Corporation. 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; either version 2 of the Lic...
#include "stk_env_api.h" #include "stk_env.h" #include "stk_internal.h" #include "stk_common.h" #include "stk_timer.h" #include "stk_options_api.h" #include "stk_smartbeat_api.h" #include "stk_timer_api.h" #include "stk_name_service_api.h" #include "stk_data_flow_api.h" #include "stk_tcp_client_api.h" #include "stk_udp...
#include "../../suprc/inc/common.h" #include "../../suprc/inc/sup_tlock.h" #include "../../suprc/inc/sup_draw.h" #include "../../suprc/inc/sup_exfunc.h" #include "../inc/sta_cross.h" #include "../inc/sta_basic.h" #include "../../conf-anls.h" typedef enum _CIN_SIGN_ { C_LOSE = 3, //方向 C_LEFT, C_RIGHT, C_CROSS_P...
/* ** Zabbix ** Copyright (C) 2001-2021 Zabbix SIA ** ** 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. ** **...
/* ______ ___ ___ * /\ _ \ /\_ \ /\_ \ * \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___ * \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\ * \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \ * \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/ *...
/* libh2o -- steam & water properties * (c) 2012 <NAME> * Released under the terms of the 2-clause BSD license */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include <assert.h> #include "consts.h" #include "region2.h" #include "xmath.h" /* Based on IF97-Rev, s. 6: Equations for Region 2 */ /* ideal-gas pa...
#include "l.h" #define KIF "kernel interface file" static Prog *datp; static Sym *linkt; static int *strind; static Prog* newprg(int, Prog*); static int isstring(Sym *s) { return s != S && strcmp(s->name, ".string") == 0; } void kif(char *f) { int i, n, d; long o; Prog *p, *q, *fp, *lp, *dp; Sym *s; s = l...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <limits.h> #include <fcntl.h> #include <math.h> #include <errno.h> #include <sys/types.h> #include <sys/param.h> #include <sys/socket.h> #include <sys/time.h> #include <sys/utsname.h> #include <netdb.h> #include <netinet/in.h> #in...
/* * Copyright 2003 VMware, Inc. * 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 rights to use, copy, m...
void io_hlt(void); void io_cli(void); void io_out8(int port, int data); int io_load_eflags(void); void io_store_eflags(int eflags); void write_mem8(int addr, int data); /* c语言,即使在同一个源文件内,定义前使用需要声明 */ void init_palette(void); void set_palette(int start, int end, unsigned char *rgb); void boxfill8(unsigned char *vram, i...
#include "common/hardware/cop0.h" #include "common/hardware/gpu.h" #include "common/hardware/hwregs.h" #include "common/hardware/irq.h" #include "common/syscalls/syscalls.h" #include "common/util/djbhash.h" #ifdef DEBUG #define printf ramsyscall_printf #define hexdump hexdump_impl #else #define printf(...) #define hex...
#include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include "initialize_game.h" static inline int rank_by_shift( const MPI_Comm communicator, const int* restrict const self_coords, const int* restrict const dims, const int dim0, const int dim1) { const int coords[2] = { self_coords...
#include <string.h> /* memcpy */ #include "common.h" #include "constants.h" #include "objectMemory-gc.h" #include "objectMemory-gc-old.h" #include "objectMemory-gc-remembered.h" #include "objectMemory.h" #include "objectMemory-objects.h" #include "objectMemory-smallIntegers.h" #include "context-stack-active.h" #include...
/* * NB: This file is machine generated, DO NOT EDIT! * * Edit vmod.vcc and run make instead */ #include "config.h" #include <stdio.h> #include "vdef.h" #include "vcl.h" #include "vrt.h" #include "vcc_snw_if.h" #include "vmod_abi.h" typedef VCL_STRING td_snw_info(VRT_CTX); typedef VCL_STRING td_snw_hello(VRT_CTX...
#include <stddef.h> #include <stdio.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/un.h> #include <fcntl.h> #include <signal.h> #include <unistd.h> #include "ubus.h" #define MODE_TERMINAL 1 #define MODE_TAP 2 #define MODE_POOL 3 #define MODE_CONNECT 4 char stdineof...
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: MIT-0 * * 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, inc...
/* BEGIN_ICS_COPYRIGHT4 **************************************** Copyright (c) 2015-2020, Intel Corporation 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 copyri...
enum { kGraphACCOverAllAC, kGraphACCOverAllACS2, kGraphACCOverAllSMH, kGraphACCOverAllACRej, kGraphACCOverAllACS2Rej, kGraphACCOverAllSMHRej, kGraphV0BGOverAllAC, kGraphV0BGOverAllAC2, kGraphV0BGOverAllSMH, kGraphV0BGOverAllACRej, kGraphV0BGOverAllAC2Rej, kGraphV0BGOverAllSMHRej, kGraphNe...
/* * test_options.c * Copyright (c) 2020 K.Kosako */ #include "config.h" #ifdef ONIG_ESCAPE_UCHAR_COLLISION #undef ONIG_ESCAPE_UCHAR_COLLISION #endif #include <stdio.h> #include "oniguruma.h" #include <string.h> #define SLEN(s) strlen(s) static int nsucc = 0; static int nfail = 0; static int nerror = 0; #if...
/* * Copyright 2000, International Business Machines Corporation and others. * All Rights Reserved. * * This software has been released under the terms of the IBM Public * License. For details, see the LICENSE file in the top-level source * directory or online at http://www.openafs.org/dl/license10.html */ /* ...
#include "blunt.h" /* --------------------------------------------------------------- */ /* reverse arithmetics */ /* --------------------------------------------------------------- */ /* --------------------- subtraction ----------------------------- */ static t_class *rmi...
/* include all peptide headers. */ #include "peptide.h" #include "peptide-atoms.h" #include "peptide-bonds.h" #include "peptide-angles.h" #include "peptide-torsions.h" #include "peptide-impropers.h" /* peptide_graph_complete(): transform a sparsely connected graph into a * completely connected one by adding interval...
/************************************************************************* * * Used with ICCARM and AARM. * * (c) Copyright IAR Systems 2011 * * File name : main.c * Description : Main module * * 1. Date : September 2011 * Author : <NAME> * Description : Create * * ...
#include "config.h" #include "SysConfig.h" #include "CommApp.h" #include "imu.h" #include "Altitude.h" uint8_t flyLogF=0; uint8_t flyLogApp=0; uint32_t lastGetRCTime; uint8_t appCmdFlag=0; uint8_t armState=DISARMED;//,disarmRequest=0; uint8_t btSrc=0; #define MAX_LEN 32 volatile uint8_t UdataBuf[MAX_LEN]; uint8_t ...
/****************************************************************************** * @file main.c * @version V1.00 * $Revision: 11 $ * $Date: 18/07/18 3:39p $ * @brief Demonstrate how to implement a composite device.(Virtual com port and Mass storage device) * * @note * SPDX-License-Identifier: Apache-2.0 ...
// Options: --no-arrays --no-pointers --no-structs --no-unions --argc --no-bitfields --checksum --comma-operators --compound-assignment --concise --consts --divs --embedded-assigns --pre-incr-operator --pre-decr-operator --post-incr-operator --post-decr-operator --unary-plus-operator --jumps --longlong --int8 --uint8...
/* * Copyright (c) 1989 - 1992, <NAME> * Copyright (c) 1996 - 1999, <NAME> * Copyright (c) 2003 - 2005, <NAME> * Copyright (c) 2008 - 2009, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions *...
/* * Copyright 2014 Broadcom Corporation. * * SPDX-License-Identifier: GPL-2.0+ */ #include <config.h> #include <common.h> #include <blk.h> #include <errno.h> #include <fastboot.h> #include <fb_mmc.h> #include <image-sparse.h> #include <part.h> #include <sparse_format.h> #include <mmc.h> #include <div64.h> #ifnde...
/********************** Read temperature from DS18B20 sensor via 1-wire interface and display on 8 digit 7-segment LED display with MAX7219 controller chip supported hardware: - Sduino Uno (https://github.com/roybaer/sduino_uno) setup: DS18B20: Supply with 3.3V! DATA <-> to pin 5 ...
// snake.cpp: 定义控制台应用程序的入口点。 #include "snake.h" static short map[HEIGHT][WIDTH] = {0}; // 地图 static short size; // 蛇的长度 static Direction dire, diren; // 方向 static short x, y; // 蛇头位置 static clock_t mark; // 时间标记 //SDL_Renderer *ren;//刷子 //SDL_Rect rec;//框子 static bool end = false; //static boo...
// licensed under https://tamberg.mit-license.org/ // for https://twitter.com/HikingHack/status/1481353359294701570 // assumes csv files with 1 header line, 2+ values per line, line ending "\r\n" // $ gcc -o match match.c // $ ./match file0.csv file1.csv #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #incl...
#include "crypto.h" void print_Last_error(char *msg) { char * err = malloc(130);; ERR_load_crypto_strings(); ERR_error_string(ERR_get_error(), err); printf("%s ERROR: %s\n",msg, err); free(err); } int public_encrypt(unsigned char * data,int data_len, unsigned char *encrypted) { FILE *pemFi...
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is d...
/* @file: controlCommand.c * * @description: This module responds to the requests received from the host over TCP. * */ #include "controlCommand.h" #include <math.h> long int sensorData[3] = {0}; // For storing the x,y,z sensor readings of accelerometer/ Gyroscope long int motorSpeed[4] = {0}; // Motor speeds o...
#include <stdlib.h> #include <string.h> #include <stdio.h> #ifndef _MSC_VER #include <unistd.h> #endif #include "SDL.h" #include "SDL_net.h" #define TIMEOUT (5000) /*five seconds */ #define ERROR (0xff) int udpsend(UDPsocket sock, int channel, UDPpacket *out, UDPpacket *in, Uint32 delay, Uint8 expect, int...
#include <stdio.h> #define NB_CONNECTION 50 #define DATABUFSIZE 10240 #if defined(_WIN32) #pragma comment(lib, "Ws2_32.lib") #include <winsock2.h> #include <ws2tcpip.h> #define close closesocket static int tcp_init_win32(void) { /* Initialise Windows Socket API */ WSADATA wsaData; if (WSAStartup...
//XXX: _GNU_SOURCE must be defined before including dlfcn to get RTLD_NEXT symbols #define _GNU_SOURCE #include <dlfcn.h> #include "systems_headers.h" #include "linklist.h" #include "anpwrapper.h" #include "tcp.h" #include "utilities.h" #include "subuff.h" #include "ethernet.h" #include "route.h" #include "anp_netdev....
#include "record_descr.h" const record_descr record_descr_array[] = { /* RFC 1035 class insensitive well-known types */ [WDNS_TYPE_CNAME] = { class_un, { rdf_name, rdf_end } }, [WDNS_TYPE_HINFO] = { class_un, { rdf_string, rdf_string, rdf_end } }, [WDNS_TYPE_MB] = { class_un, { rdf_name, rdf_end } }, [W...
/* ZEsarUX ZX Second-Emulator And Released for UniX Copyright (C) 2013 <NAME> This file is part of ZEsarUX. ZEsarUX 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 t...
/*--------------------------------------------------------------------------------- Touch screen control for the ARM7 Copyright (C) 2005 - 2010 <NAME> (joat) <NAME> (dovoto) <NAME> (WinterMute) This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held...
#include <stdio.h> #include <pthread.h> #include <SDL.h> #include <unistd.h> #include <AtomVM/context.h> #include <AtomVM/defaultatoms.h> #include <AtomVM/interop.h> #include <AtomVM/mailbox.h> #include <AtomVM/term.h> #include <AtomVM/utils.h> #define SCREEN_WIDTH 320 #define SCREEN_HEIGHT 240 #define BPP 4 #define ...
/*************************************************************************** * __________ __ ___. * Open \______ \ ____ ____ | | _\_ |__ _______ ___ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / * Jukebox | | ( <_> ) \___| < | \_\ ( <_> ...
#include <Configuration.h> #include <Task_manager.h> #include <stm32f10x_gpio.h> #include <stm32f10x_usart.h> #include <stm32f10x_pwr.h> LED_String LED_Display[5]; unsigned char Data_to_running_string[1024] = {"12:34"}; unsigned char String_to_run[1024] = {0}; extern unsigned char string_brightness; exte...
/** * \file flt_phpsessauth.c * \author <NAME>, <<EMAIL>> * * This plugin implements user authentification over the HTTP authentification */ /* {{{ Initial comments */ /* * $LastChangedDate$ * $LastChangedRevision$ * $LastChangedBy$ * */ /* }}} */ /* {{{ Includes */ #include "cfconfig.h" #include "defines.h...
/************************************************************************** *** COPYRIGHT (c) 2002 by TransNexus, Inc. *** *** *** *** This software is property of TransNexus, Inc. *** *** This softwar...
#include <lib.h> #include <process.h> #include <systask.h> #include <const.h> #include <global.h> #include <protect.h> #include <proto.h> #include <type.h> #include <process.h> #include <hd.h> #include <usr.h> MessageChain messageQueue[QUEUESIZE]; static u32 get_pid(Process *process); static int physic_copy(void *de...
/* * $Id: bpy_app.c 40976 2011-10-13 01:29:08Z campbellbarton $ * * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the Licens...
#pragma once #include "Draw.h" #include "Algebra.h" #include "Distance.h" #include "Sampling.h" static const double FOV = 60.; static const int DRAFT_SIZE = 48; static const double FILLING = 0.12; static const double THICKNESS = 0.8; void renderWireFrame(Puppet * puppet, Vector3D angles, ...
#include <string.h> #include "variable.h" #include "memory.h" #include "io.h" #include "init.h" #include "table.h" /* The variable module defines functions for constructing new difference constraint variables. The function mkVar(const char*) returns a unique identifier for a difference constraint varia...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
/****************************************************************************** * File Name : calib_control_lever.c * Date First Issued : 08/31/2014 * Board : DiscoveryF4 * Description : Master Controller: Control Lever calibration **********************************************************...
/** * The domain system provides: * * - Standard formats for resource data. * * - Standard methods for querying the database. * * - Standard methods for name servers to refresh local data from * foreign name servers. */ #include "protocol/message.h" #include "dns_util.h" #include "dns_impl.h" ...
//***************************************************************************** // Filename : 'cascade.c' // Title : Animation code for MONOCHRON cascade clock //***************************************************************************** #include "../global.h" #include "../glcd.h" #include "../anim.h" #include "s...
/** ****************************************************************************** * @file STemWin/HelloWorld/Core/Src/main.c * @author MCD Application Team * @brief This file provides main program functions ****************************************************************************** * @attention ...
#include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <errno.h> #include "nandc_ecc.h" #define REVERSE_DATA_LENTH 32 struct oobuse_info * get_oobuse_info(enum page_type pagetype, enum ecc_type ecctype); static int reverse_buf(unsigned char *buf, unsi...
/*D*********************************************************** * Modul: GUI - global profile * handle global profile, read/write to file, * get host/display names * * Copyright: yafra.org, Basel, Switzerland * Author: Administrat...
/** * @defgroup libraries Library sources * @file jacobi.c * @ingroup libraries * @author <NAME> (bissim.github.io) * @brief Jacobi method functions. * @version 0.1.0-rc.4+20200421 * @date 2020-02-04 * * @copyright Copyright (c) 2020 * */ #define _XOPEN_SOURCE 700 /**< Use timespec definition from POSIX */...
#include "precomp.h" #pragma hdrstop /**************************************************************************** FUNCTION: MakeRect PURPOSE: Fill in RECT structure given contents. ****************************************************************************/ VOID MakeRect( PRECT pRect, INT...
// Copyright (c) 2021-2022 ByteDance Inc. // // 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...
/*************************************************************************** Copyright (c) 2013-2016, The OpenBLAS Project 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...
/* Copyright (C) 2017 The Android Open Source Project * * 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 applic...
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
#include <stdlib.h> #include <unistd.h> #include <string.h> #include "rs232c.h" #include<math.h> #include<pthread.h> #include <stdio.h> #include"shm.h" #define DEFAULT_KEY 1000 static RS_PORT backup_attr; float aaa,bbb,ccc; float result1,result2; float X,Y; FILE *fp, *fp1, *fp2; float *share_X, *share_Y = 0; int *s...
/** *Licensed to the Apache Software Foundation (ASF) under one *or more contributor license agreements. See the NOTICE file *distributed with this work for additional information *regarding copyright ownership. The ASF licenses this file *to you under the Apache License, Version 2.0 (the *"License"); you may n...
/* * pmatrixcompare.c - A parallel program to compare two matrices element-wise */ // compile as: gcc -DN=10000 -DGOOD -DCHECK -lpthread -lrt -o <prog> // // run as: ./<prog> <numthreads> #include <pthread.h> #include <stdlib.h> #include <stdio.h> #include <time.h> // for clock_gettime() #include <errno.h> /...
/***************************************************************************** * @file mqtt.c * @brief Handle ota related events ******************************************************************************* Copyright 2020 GL-iNet. https://www.gl-inet.com/ Licensed under the Apache License, Version 2.0 ...
/* * 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 <stdio.h> #include <stdlib.h> #include <time.h> #include <SDL/SDL.h> #include "sq_List.h" #include "cons.h" #include "calc.h" void Blit_map(SDL_Surface *screen, SDL_Surface *color[], int map[][NB_BLOCK_HEIGHT]); int List_exist (SqList *l, char c); void copy (int map[][NB_BLOCK_HEIGHT], int dest_...
//Implementation of Luffa-224 v1.0 //Author: <NAME> //Universidade de Campinas - Institute of Computing - Brazil //<EMAIL> //#include "crypto_hash.h" #include <stdio.h> #include <string.h> #include "crypto_hash.h" typedef unsigned char u8; typedef unsigned int u32; typedef unsigned long long u64; //rou...
#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...
/*This program evaluates the differential equations for a photon's geodesic in a perturbed Minkowski spacetime in SPHERICAL coordinates restricted to RADIAL MOTION only.*/ /*This program solves the particular case for the Minkowski perturbed spacetime with metric: $g_{ab} = {\eta}_{ab} + h_{ab}$. Where $h_{ab}$ corres...
/* Common utility functions. */ #include <stdlib.h> #include "oleg.h" #include "utils.h" #include "errhandle.h" #include "logging.h" #include "errhandle.h" #include "lz4.h" #include "file.h" #include "aol.h" ol_bucket *_ol_get_last_bucket_in_slot(ol_bucket *bucket) { ol_bucket *tmp_bucket = bucket; int depth =...
/* * The MIT License (MIT) * * Copyright (c) 2019 <NAME> (tinyusb.org) * * 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 ...
// File: typename.c #include <tmc.h> #include <string.h> #include "defs.h" #include "tmadmin.h" #include "typename.h" #include "type.h" /* Given a base type 'bt', return a string containing the name of * that type. */ static tmstring name_basetype( BASETYPE bt ) { tmstring ans = tmstringNIL; switch( bt ){...
/* ************************************************************ ** ** Created by: codebench 0.55 (19.10.2017) ** ** Project: AmiMarkdown ** ** File: hyperlink_editor.c ** ** Date: 08-01-2021 16:33:40 ** ************************************************************ */ #include <string.h> #include <ctype.h> #include <...
/*!\file ip4_out.c * IPv4 output routines. */ /* Copyright (c) 1997-2002 <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyrigh...
/* saslist.c * <NAME> * zicew * ECE 2230 Fall 2018 * MP1 * * See ECE 2230 programming guide for required comments! * * Purpose: ADT code for sequential list to create list, * destruct list, add record, remove record, l- * ook up record. access record, and get the i- * formation lik...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) 2018 Institute of Computing Technology, CAS * Author : <NAME> (email : <EMAIL>) * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * The ke...
/* * Copyright (c) 2010 Aalto University and RWTH Aachen University. * * 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 ...
/* modifier 0 means no modifier */ static int xsrfuseragent = 1; /* Append Surf version to default WebKit user agent. */ static char *fulluseragent = ""; /* Or override the whole user agent string */ static char *scriptfile = "~/lib/xsrf/script.js"; static char *styledir = "~/lib/xsrf/styles/"; static char *certdir = ...
#include <stdio.h> /*snprintf*/ #include <locale.h> /*setlocale*/ #include <glib.h> /* g_main_loop_new g_bus_own_name g_main_loop_run g_signal_connect g_dbus_interface_skeleton_export */ #include <gtk/gtk.h> /*gtk_main_quit*/ #include <stdbool.h> #include <gio/gio.h> #include "killtimer.h" /*KillTimer alive*/ ...
/*************************************************************************************/ /* main.c */ /* NTLMMessageDecoder */ /* ...
#include "tatysoundviewer.h" #include "view.h" #include <app_control.h> #include <device/power.h> #include <system_info.h> #include <bundle.h> #include <app_event.h> typedef struct appdata { Evas_Object *win; Evas_Object *conform; Evas_Object *list; Evas_Object *box; Evas_Object *nf; } appdata_s; //static Eco...