text
stringlengths
3.08k
10.5k
/**************************************************************** * <NAME> * Date: 06/18/2015 * Event: XSEDE Summer Boot Camp June 16-19, 2015 * * Laplace MPI Template C Version * * T is initially 0.0 ...
#include "medtronic_test.h" typedef struct { char *byte_str; char *time_str; } decode_time_case_t; decode_time_case_t decode_time_cases[] = { { "1F 40 00 01 05", "2005-01-01 00:00:31" }, { "09 A2 0A 15 10", "2016-02-21 10:34:09" }, { "42 22 54 65 10", "2016-04-05 20:34:02" }, { "79 23 0C 12 10", "2016-04-18 12:...
#include "mex.h" #include <stdlib.h> #include <math.h> #include <limits.h> #include <string.h> /* Silly little macros. */ #define index(A,B,C,DIM) ((C)*DIM[0]*DIM[1] + (B)*DIM[0] + (A)) #ifndef PI #define PI 3.14159265358979 #endif #ifndef MIN #define MIN(A,B) ((A) > (B) ? (B) : (A)) #endif #ifndef MAX #define MAX...
/************************************************************************ * UTFCMN.H * * * * This header file declares the global variables used in the UTF * * device driver. * * * ** * * Log: * * S. Jacobs/NCEP 7/97 Added asize * * S. Jacobs/NCEP 8/97 Reorgani...
/************************************************************************** * * \file * * \brief QTouch Controller * * Copyright (c) 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, a...
#include "decompress.h" #include "common.h" #include "cvector.h" /* Structure of the file * * Common header * * BTAF section * |_ Start offset * |_ End offset * * BTNF section * * GMIF section * |_ Files * */ typedef struct { u_int32_t start_offset; u_int32_t end_offset; } BTAF_Entry_t; typedef struct { ...
/* align.c -- test alignment (important for 16-bit systems) This file is part of the LZO real-time data compression library. Copyright (C) 1996-2014 <NAME> <NAME> All Rights Reserved. The LZO library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public L...
#include "kernel/types.h" #include "kernel/fcntl.h" #include "user/user.h" // don't use malloc. #define MAX_CMD_LEN 800 char* uargv[10]; char buffer[MAX_CMD_LEN]; typedef enum cmd_type {EXEC, REDIRECT, PIPE} ctype; struct cmd { ctype ctype; }; struct execcmd { ctype ctype; char* uargv[10]; } execcmd[MAX_CM...
/* Copyright (C) 2000 <NAME> <<EMAIL>>. This file is part of the yampp system. 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 opti...
#include<stdlib.h> #include"adlist.h" #include"zmalloc.h" list *listCreate(void) { struct list *list; if((list = zmalloc(sizeof(*list))) == NULL) return NULL; list->head = list ->tail = NULL; list->len = 0; list->dup = NULL; list->free = NULL; list->match = NULL; return list; } void listRelease(list *list)...
/* Copyright (c) 2014 Cryptography Research, Inc. * Released under the MIT License. See LICENSE.txt for license information. */ #include "f_field.h" /** Requires: input limbs < 9*2^51 */ void gf_mul (gf_s *__restrict__ cs, const gf as, const gf bs) { const uint64_t *a = as->limb, *b = bs->limb, mask = ((1ull<<...
#include "HF_interface.h" #include "bulkEP0.h" #include "usb_config.h" #include "spi.h" #include "pins.h" #include "deviceconfig.h" #define MAX(x, y) (((x) > (y)) ? (x) : (y)) #define MIN(x, y) (((x) < (y)) ? (x) : (y)) enum{ HFINTERFACE_TASK_NOP = 0, HFINTERFACE_TASK_TRANSFER = 1, HFINTERFACE_TASK_HRST =...
/*- * Copyright (c) 2014-present MongoDB, Inc. * Copyright (c) 2008-2014 WiredTiger, Inc. * All rights reserved. * * See the file LICENSE for redistribution information. */ #include "wt_internal.h" /* * __directory_list_worker -- * Get a list of files from a directory, MSVC version. */ static int __direc...
#include "DiskCachedData.h" #include <sys/types.h> #include <sys/stat.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include "loggingUtils.h" static __file_pos_t x_getFilePosition(FILE *fp); static void x_positionFile(FILE *fp,__file_pos_t offs); int sortCachedDataAsc(const void *a, const voi...
// // wifi_sta.c // esp32-ota-https // // Updating the firmware over the air. // // This module is responsible for establishing and maintaining the // WIFI connection to the defined access point. // // Created by <NAME> on 11.01.2017. // Copyright © 2017 Classy Code GmbH // // Licensed under the Apache License, ...
/** * * @file pts.h * @brief libpts is a library for reading pointclouds stored in pts files. * @details libpts is a library for reading pointclouds stored in pts files. * This includes additional information line remission values, color * values or quality information. The pts fi...
/* * 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...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #define expressionfile "expressions.txt" #define resultfile "result.txt" #define solveshow 1 /* datas and structures used */ typedef struct backchainf { float data; struct backchainf * prevchain; } backchainf; typedef struct Float_stack { backch...
/*------------------------------------------------------------------------- * * src/monitor/node_metadata.h * * Declarations for public functions and types related to node metadata. * * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the PostgreSQL License. * *-----------------------...
/* RetroArch - A frontend for libretro. * Copyright (C) 2010-2014 - <NAME> * Copyright (C) 2011-2017 - <NAME> * * RetroArch 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 Found- * ation, either version 3 of th...
/* The MIT License (MIT) Copyright (c) 2015 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
#include <stdio.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <pthread.h> #include <math.h> #include <fcntl.h> #include <unistd.h> pthread_t tid[20]; int tind=0; //<NAME> //16CS01032 struct user { int port, socket;...
/** ****************************************************************************** * @file rtc.c * @brief This file provides code for the configuration * of the RTC instances. ****************************************************************************** * @attention * * <h2><center>&copy;...
/* * The Shadow Simulator * See LICENSE for licensing information */ #include "torflow.h" struct _TorFlowFileListener { TorFlowEventManager* manager; in_port_t listenPort; gint descriptor; guint workerID; gchar* id; GHashTable* servers; guint numServerSuccesses; guint numServerFa...
#define _LARGEFILE64_SOURCE #define _XOPEN_SOURCE 500 // FTW_DEPTH | FTW_PHYS #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <string.h> #include <unistd.h> //usleep #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <time.h> #include <sys/types.h> #include <stdint.h> //uint64_t #...
/*- * Copyright (c) 2005 <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 co...
/* PMSIS includes */ #include "pmsis.h" #include "bsp/flash.h" #include "bsp/flash/hyperflash.h" /* Variables used. */ #define NB_TASKS ( 4 ) #define BUFFER_SIZE ( 2048 ) TaskHandle_t xHandler[NB_TASKS] = {NULL}; struct args_s { pi_device_t *flash; uint8_t *buff; uint8_t *rcv_buff; uint3...
/* -*- Mode: c; c-basic-offset: 2 -*- * * raptor_www_curl.c - Raptor WWW retrieval via libcurl * * Copyright (C) 2003-2008, <NAME> http://purl.org/net/dajobe/ * Copyright (C) 2003-2004, University of Bristol, UK http://www.bristol.ac.uk/ * * This package is Free Software and part of Redland http://librdf.org/ ...
#include <pebble.h> static Window *window; static TextLayer *text_layer; static AppTimer *timer; static const uint16_t timer_interval_ms = 1000; static const uint32_t MINUTES_KEY = 1 << 1; static const uint32_t SECONDS_KEY = 1 << 2; static const uint32_t VIBES_KEY = 1 << 3; static const uint32_t FLASHES_KEY = 1 << 4; i...
/* * Phoenix-RTOS * * Operating system kernel * * CPU related routines (RISCV64) * * Copyright 2018, 2020 Phoenix Systems * Author: <NAME> * * This file is part of Phoenix-RTOS. * * %LICENSE% */ #include "../../include/errno.h" #include "cpu.h" #include "spinlock.h" #include "syspage.h" #include "string.h...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <fcntl.h> #include <errno.h> #include <hw/pci.h> #include <hw/inout.h> #include <sys/neutrino.h> #include <sys/mman.h> #include <stdint.h> #include "_regs_PLX9080.h" #include "_prog_conventions.h" #define VENDOR_ID 0x10b5 #define DEVICE_ID 0x9080 unsig...
/* * gpio-hammer - example swiss army knife to shake GPIO lines on a system * * Copyright (C) 2016 <NAME> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published by * the Free Software Foundation. * * Usage: * gpio-...
#include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <time.h> #include <errno.h> #include <string.h> #include <math.h> #define _POSIX_C_SOURCE #include <alsa/asoundlib.h> #include <alsa/input.h> #include <alsa/output.h> #include <alsa/conf.h> #include <alsa/seq.h> #include "ni-mk2.h" struct alsa_kb {...
/* * PgBouncer - Lightweight connection pooler for PostgreSQL. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS...
/**------------------------------------------------------------------------- @file Vector_STM32L011xx.c @brief Interrupt Vectors table for ARM Cortex-M0 STM32L011xx. CMSIS & GCC compiler linker section name .Vectors is used for the table @author <NAME> @date Feb. 2, 2018 @license Copyright (c) 2014, I-SYST i...
/** * \file * * \brief SAM Analog Comparator Driver Quick Start * * Copyright (c) 2012-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 Microchi...
/* * TwoLAME: an optimized MPEG Audio Layer Two encoder * * Copyright (C) 2001-2004 <NAME> * Copyright (C) 2004-2006 The TwoLAME Project * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Softw...
/* mpfr_sinh_cosh -- hyperbolic sine and cosine Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. Contributed by the AriC and Caramel projects, INRIA. This file is part of the GNU MPFR Library. The GNU MPFR Library is free software; you can redistri...
/* * ===================================================================================== * * Filename: aa_pb.c * * Description: assess assembly with pacbio data * * Version: 1.0 * Created: 15/09/2018 10:18:51 * Revision: none * Compiler: gcc * * Author: <N...
#include <u.h> #include <libc.h> #include <stdio.h> #ifdef PLAN9 #include <stdarg.h> #else #include <varargs.h> #endif #include <cda/fizz.h> int f_iline; FILE *ifp; char *f_ifname; int f_nerrs; Board *f_b; char * comment; static char linebuf[BUFSIZ]; extern void f_board(char *), f_chip(char *), f_package(char *); ext...
/* * Copyright 2019 <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, dist...
/* * Created by <NAME> * CS 2060 section 3, Spring 2018 * University of Colorado at Colorado Springs * * Licensed under the MIT License (see LICENSE.txt) */ /* Implementation of createPanel and destroyPanel from engine.h */ #include <engine.h> #include <stdlib.h> /* Default panel functions */ void defaultAddObj...
// memcheck.c // Simple framework for debugging memory errors in C programs. // // @author <NAME> // #include "memcheck.h" // We don't want these defined for this file, since it would prevent the proper // malloc from being called by the wrapper functions (i.e. it memcheck_malloc // would call memcheck_malloc would c...
#include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <sys/stat.h> #include <dirent.h> #include <string.h> #include <unistd.h> #include "./log.h" #include "./sig_handling.h" #include "./inoutput.h" #include "./xmod.h" #include "./perms.h" extern struct timespec start_time, end_time; extern long int time_...
/* * MIT License * * Copyright (c) 2021: imec-COSIC KU Leuven, 3001 Leuven, Belgium * Author: <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, ...
/********************************************************************** * SEGGER Software GmbH * * Solutions for real time microcontroller applications * ********************************************************************** * ...
/* dosfsck.c - User interface Copyright (C) 1993 <NAME> <<EMAIL>> Copyright (C) 1998 <NAME> <<EMAIL>> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, ...
////////////////////////////////////// // <NAME>, NASA JPL/Caltech // Copyright 2017 ////////////////////////////////////// #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #define PI 3.1415926535897932384626433832795028841971693993751058 typedef struct { float re; flo...
/* * Copyright (c) 2014-2016, NVIDIA CORPORATION. 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 t...
/* * MUSCLE SmartCard Development ( http://www.linuxnet.com ) * * Copyright (C) 2006-2007 * <NAME> <<EMAIL>> * * $Id: pcscdaemon.c 2377 2007-02-05 13:13:56Z rousseau $ */ /** * @file * @brief utility functions */ #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <errno.h> #include <std...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <libgen.h> #include <errno.h> #include <stdarg.h> // for stat #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <limits.h> #include <unistd.h> #include <fcntl.h> /* compute crc32 */ #include <zlib.h> #include "mpi.h" #inclu...
/* * Copyright (c) 2018-2020, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #include <stddef.h> #include <stdint.h> #include "tfm_attest_hal.h" #include "tfm_plat_boot_seed.h" #include "tfm_plat_device_id.h" #ifdef CRYPTO_HW_ACCELERATOR #include "crypto_hw.h" #include "mbedtls_...
/** * Copyright (C) 2021 NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "uct_md.h" #include "uct_vfs_attr.h" #include <ucs/debug/log_def.h> #include <ucs/sys/sys.h> #include <ucs/vfs/base/vfs_cb.h> #include <ucs/vfs...
/** Edit Memory submenu. */ #include "main.h" #define HEXEDIT_XPOS 30 #define HEXEDIT_YPOS 100 #define HEXEDIT_WIDTH 560 #define HEXEDIT_HEIGHT 328 #define HEXEDIT_NUM_LINES ((HEXEDIT_HEIGHT / LINE_HEIGHT) - 3) #define HEXEDIT_NUM_COLS 8 static u8 cursorX = 0; u32 hexEditAddr = RAM_START; u32 hexEditPrevAddr = RAM_S...
/** * \file * * \brief Alert Notification Application * * Copyright (c) 2016 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redist...
/* * Copyright (c) 2019, 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...
void fatal(char *str) { perror(str); exit(EXIT_FAILURE); } FILE *efopen(char *path, char *mode) { FILE *fp; errno = 0; if ((fp = fopen(path, mode)) == NULL) { fprintf(stderr, "cannot open \"%s\"\n", path); fatal("fopen"); } return fp; } void efclose(FILE *fp) { errno = 0; if (fclose(fp) < 0) fatal("f...
/* Copyright (c) 2012 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <dbus/dbus.h> #include <errno.h> #include <poll.h> #include <stdint.h> #include <stdlib.h> #include <syslog.h> #include <sys/select.h>...
// Basic Linker // Copyright (c) 2021-2 <NAME> // blink main. #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <assert.h> #include "utils.h" #include "object.h" #include "module.h" #include "combine.h" #include "consolidate.h" #include "resolve.h" #include "image.h" #include "format.h" #include "e...
/* This source as presented is a modified version of original wiiuse for use * with RetroArch, and must not be confused with the original software. */ #include <stdio.h> #include <math.h> #include <string.h> #include <time.h> #ifndef WIN32 #include <unistd.h> #endif #ifdef GEKKO #include <ogcsys.h> #endif #include "...
// // controls.c // #include <ctype.h> #include <stdlib.h> #include <string.h> #include "log.h" #include "player.h" #include "controls.h" #include "io/input.h" #include "io/display.h" // Some wrapper functions called from the controls structure static void cmd_quit(int argc, const char ** argv) { exit(EXIT_SUCCESS);...
/* * Objectively: Ultra-lightweight object oriented framework for GNU C. * Copyright (C) 2014 <NAME> <<EMAIL>> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is ...
/* * libusb test library helper functions * Copyright © 2012 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your opt...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2020 <NAME> for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to d...
/* * Copyright (c) 2013-2020, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <assert.h> #include <errno.h> #include <string.h> #include <lib/semihosting.h> #ifndef SEMIHOSTING_SUPPORTED #define SEMIHOSTING_SUPPORTED 1 #endif long semihosting_call(unsign...
/* Copyright 2016 <NAME> <<EMAIL>> This file is part of libvigor. libvigor is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. l...
#include <Python.h> #include <linux/videodev2.h> #include "uvc_lib.h" #define PYUVC_INFO_OK 0 #define PYUVC_ERROR_DEV -1 #define PYUVC_ERROR_PARAMS -2 #define PYSDK_VERSION "PYUVC version: 0.3" int fd; int width = 1920; int height = 1080; int fps = 30; int fmt_type = V4L2_PIX_FMT_MJPEG; int capture_opend = 0; int...
#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <pthread.h> #include <sys/types.h> #include <signal.h> #define MAX_CLIENTS 100 #define BUFFER_SZ 2048 #define NAME_LEN 32 static _Atomic uns...
/* * R : A Computer Language for Statistical Data Analysis * Copyright (C) 2000--2013 The R Core Team * * 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...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> //Needed for strcspn function double min(double* array, int dimen); //Find the absolute minimum value in an array and return it double* mem_alloc(size_t dim); //Memory allocation function for pointers to make code less cluttered double power_...
/* ************************************************************************** */ /* */ /* :::::::: */ /* ft_prfdbl.c :+: :+: ...
/******************************************************************************* * (c) 2016 Ledger * (c) 2018, 2019 ZondaX GmbH * (c) 2019 IoTeX Foundation * * 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 c...
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../includes/heap.h" #include "../includes/list.h" #include "../includes/macros.h" heap_ptr heap_create(int (*heap_cmp_func)(void*, void*), void (*heap_print_func)(void*, FILE*), void (*he...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/signal.h> #include <sys/wait.h> int childID = 1; pid_t *pids; void dfs_fork(int lv, int argc, char *argv[]); void print_help(); void genSignalMessage(int); void genPassMessage(int); int main(int argc, char *argv[]) { in...
/** * * \file convert.c * @brief getdns label conversion functions * */ /* * Copyright (c) 2013, NLnet Labs, Verisign, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistri...
/* * Greybus Simulator * * Copyright 2014 Google Inc. * Copyright 2014 Linaro Ltd. * * Provided under the three clause BSD license found in the LICENSE file. */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/inotify.h> #include <sys/types.h> #include <sys/stat.h> #in...
#include <stdio.h> #include <stdlib.h> /* GraphRanker L'obiettivo del progetto di quest'anno è la gestione di una classifica tra grafi diretti pesati La classifica tiene traccia dei k "migliori" grafi.Il programma da realizzare riceve in ingresso due parametri, una sola volta (sulla prima riga del file, separati da s...
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include "./libc.h" #include "./syscalls.h" static int strlen(const char *str) { int len = 0; while (str[len] != 0) len++; return len; } void printf(const cha...
// Base32, urlEncode and QR-code implementations // // Derived from work: // Copyright 2010 Google Inc. // Author: <NAME> // // Modifications are Copyright 2016 by <NAME> <<EMAIL>> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. /...
/****************************************************************************** * Copyright (c) 2017 <NAME>. * * 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 abov...
#include "wm_webserver.h" static const char* TAG = "NetworkChoiceWebServer"; static const char* index_html_head = "<!DOCTYPE html><html><head><meta name=\"viewport\" content=\"initial-scale=1\"><title>Select WiFi</title><style>*{border:none;border-radius:3px;font-family:sans-serif}form{display:flex;flex-direction:col...
#include "cl_helper.h" #include <stdio.h> #include <stdlib.h> const char* cl_err_code(cl_int err_in) { switch (err_in) { case CL_SUCCESS: return "CL_SUCCESS"; case CL_DEVICE_NOT_FOUND: return "CL_DEVICE_NOT_FOUND"; case CL_DEVICE_NOT_AVAILABLE: return "CL...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** * * COPYRIGHT(c) 2015 STMicroelectronics * * Redistribution and...
/* * Copyright © 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, modify, merge, publ...
/************************************************************************ * Call a SIAP search service and print a summary selected fields of the * results. * * Usage: siap1 ra dec size [serviceURL] * * Or call with no args for the built-in unit test. * * <NAME>, NOAO, June 2006 */ #include <...
// // arduino-serial-lib -- simple library for reading/writing serial ports // // 2006-2013, <NAME>, http://todbot.com/blog/ // #include "arduino-serial-lib.h" #include <stdio.h> // Standard input/output definitions #include <unistd.h> // UNIX standard function definitions #include <fcntl.h> // File control defi...
/* * This file is subject to the terms and conditions of the GNU General * Public License. See the file "COPYING" in the main directory of * this archive for more details. * * Copyright (C) 2005 by <NAME> * */ #include <err.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <stdio.h> #inc...
/* * mini-parser.c * This file is part of mini, a library to parse INI files. * * Copyright (c) 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: * 1. Redistribution...
#include <SDL.h> #include "Entity.h" #include "gf2d_graphics.h" #include "gf2d_sprite.h" #include "gfc_audio.h" #include "simple_logger.h" #include "Player.h" #include "Level.h" #include "Axel.h" #include "Menu.h" #include "MainMenu.h" #include "boss3.h" #include "ironboss.h" #include "Spawns.h" #include <SDL_image.h> ...
// // Constants.h // DiceGame // // Created by Coody0829 on 12/12/16. // // #define mainMenuTagValue 10 #define sceneMenuTagValue 20 #define MaxDiceNumber 20 #define MaxSuperDiceNumber 4 #define MaxCountScoreDiceNumber 4 #define ANIMATION_TALK_BUBBLE_MOVE_TIME 1 #define animationDiceBreakTime 0.6 #define animationC...
/* -*- c-basic-offset: 2 -*- */ /* Copyright(C) 2015-2017 Brazil This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be ...
// Copyright (c) 2015, <NAME> tm(at)tm3d.de // 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...
/* SPDX-License-Identifier: BSD-3-Clause * Copyright (c) 2016-2022 Intel Corporation */ #include <stdio.h> // for stdout, NULL #include <stdint.h> // for uint16_t, uint64_t, uint8_t, int32_t #include <stdlib.h> // for atoi #include <string.h> // for strcmp, strerror #include <linux/netli...
/* * Copyright (c) 2017 ASMlover. 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 ofconditions ...
/** * Usage: * */ #include <kernel/fs/dfs.h> #include <kernel/fs/vfs.h> #include <kernel/mm/mm.h> #include <kernel/io/io.h> #include <lib/libc/string.h> struct DFS_ENTRY * dfs_deviceHead = NULL; struct DFS_ENTRY * dfs_add(char * name, struct IO_CALLTABLE * calltable, int type){ struct DFS_ENTRY * device; devi...
#include "MCP41HV51_driver.h" static SPI_HandleTypeDef *hspi= NULL; static uint8_t tx_buffer[2] = { 0}; static uint8_t rx_buffer[2] = { 0}; // prptotypes static uint8_t chip_select (uint8_t , GPIO_PinState ); static MCP41HV51_status_t mcp41hv51_cmd_8bit(uint8_t , uint8_t ); MCP41HV51_status_t mcp41hv51_cmd_16bit(...
/*- * Copyright (c) 2012 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
#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...
/*========================================================== File: sdl.c Author: _pragma Description: Initializes SDL and controls main loop. ==========================================================*/ #include <stdlib.h> #include <stdio.h> #ifdef POSIX #include <unistd.h> #include <fcntl.h> #endif ...
#include<stdio.h> #include<stdlib.h> struct Node { int COEF; int EXP; struct Node *link; }; struct Node* Multiplication(struct Node *Head,struct Node *Head1) { struct Node *Hptr,*H1ptr,*Head2=NULL,*next,*H2ptr; Hptr=Head,H1ptr=Head1; Head2=(struct Node *)malloc(sizeof(struct Node)); H2ptr=H...