text
stringlengths
3.12k
18.7k
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (the "License"). * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolar...
#include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <assert.h> #define MAX_STACK 4001 #define MAX_LABEL 1000 #define MAX_INSTRUCTION 3000 #define MAX_ADDRESS 5001 #define INT_LENGTH 11 #define LABEL_BUFFER 2001 #define END (-1) typedef struct stack { int array[MAX_STACK]; in...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <limits.h> #include <errno.h> #include <fcntl.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/un.h> #include <signal.h> #include <netdb.h> #define INT_LEN 30 #define PORT_NUM "50000" #define BACKLOG 50 #define A...
/* lua-datafilter algorithm: md5 * * The MD5 implementation in this file is derived from the one in the * Lua-MD5 library from the Kepler project. It was originally written by * <NAME> and <NAME>, and is * Copyright (c) 2003-2007 PUC-Rio. * This version has been adapted to work within the data-filter architectur...
/* SC A Spreadsheet Calculator * Color manipulation routines * * <NAME> <<EMAIL>> * Original Version Created: January, 2001 * * $Revision: 7.16 $ */ #include <sys/types.h> #ifdef BSD42 #include <strings.h> #else #ifndef SYSIII #include <string.h> #endif #endif #include <curses.h> #include <ctype.h> #incl...
/* ** Copyright (C) 2014-2019 Cisco and/or its affiliates. All rights reserved. ** Copyright (C) 2005-2013 Sourcefire, Inc. ** ** 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. You m...
/* * Copyright (C) 2018 <NAME> <<EMAIL>> * Copyright © 2018 Google, 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 right...
/* Pango * pango-fontset.c: * * Copyright (C) 2001 Red Hat Software * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any l...
/************************************************************** * Implementation of non local means using only cpu, * to prove the correctness of the algorithm * and to compare timings. * The algorithm follows the matlab code was given. **************************************************************/ #include <stdio.h...
/* SPDX-License-Identifier: MIT * Copyright (c) 2014-2021 <NAME> */ #include "../inc/kos_constants.h" #include "../inc/kos_error.h" #include "../inc/kos_instance.h" #include "../inc/kos_memory.h" #include "../inc/kos_object.h" #include "../inc/kos_string.h" #include "../inc/kos_system.h" #include "../inc/kos_threads...
#include <stdio.h> #include <stdlib.h> #include <math.h> #define N 3 /* N次正方行列 */ /* 行列の入力 */ void input_matrix( double **a, char c, FILE *fin, FILE *fout); /* ベクトルの入力 */ void input_vector( double *b, char c, FILE *fin, FILE *fout); /* 行列の領域確保 */ double **dmatrix(int nr1, int nr2, int nl1, int nl2); /* 行列の領域解放 */ v...
#include <string.h> #include <stdio.h> #include <stdlib.h> #include "heclib7.h" #include "zdssKeys.h" #include "zdssLocking.h" #include "zdssMessages.h" #include "hecdssInternal.h" #include "hecdssFort.h" // FORTRAN Callable // call zsrtsd(ifltab1, cpath1, '25JUN1957', '2400', nvals, data1, 'CFS', 'PER-AVER', 0, s...
/* ** ################################################################### ** Processors: MKL28T512VDC7_CORE0 ** MKL28T512VLH7_CORE0 ** MKL28T512VLL7_CORE0 ** MKL28T512VMP7_CORE0 ** ** Compilers: Keil ARM C/C++ Compiler...
/* Portions Copyright (c) 2005 Nokia Corporation */ /* Thread and interpreter state structures and their interfaces */ #include "Python.h" #ifdef HAVE_DLOPEN #ifdef HAVE_DLFCN_H #include <dlfcn.h> #endif #ifndef RTLD_LAZY #define RTLD_LAZY 1 #endif #endif #define ZAP(x) { \ PyObject *tmp = (PyObject *)(x); \ (x)...
/* * This file is a part of Poly2Tri-C * (c) <NAME> <<EMAIL>> * http://code.google.com/p/poly2tri-c/ * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * * Redistributions of source cod...
// <NAME>, 2013 // false.ekta.is // Your choice of BSD 2 Clause, MIT, ISC, X11 or Apache Licensed. #include <errno.h> #include <stdio.h> #include <libopencm3/cm3/nvic.h> #include <libopencm3/cm3/systick.h> #include <libopencm3/stm32/spi.h> #include <libopencm3/stm32/usart.h> #include <libopencm3/stm32/gpio.h> #includ...
/* * Copyright (C) 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, me...
// utility.c // Copyright 2018 <NAME>, <NAME> // License: Apache License Version 2.0 // // 2018-05-03 // // Description: Additional utility functions #include <stdbool.h> #include <string.h> #include "open62541.h" #include "util.h" //------------------------------- // Additional utility functions: //-----------------...
/* tty.c - cursor control * * Copyright 2015 <NAME> <<EMAIL>> * * Common ANSI (See https://man7.org/linux/man-pages/man4/console_codes.4.html) * \e[#m - color change \e[y;xH - jump to x/y pos (1;1 is top left) * \e[K - delete to EOL \e[25l - disable cursor (h to enable) * \e[1L - Inser...
#include "linmath.h" #include "scene.h" #include "geometry.h" #include "write_image.h" #include <stdlib.h> #define M_PI 3.14159265358979323846 #define DEG_TO_RAD 0.01745329251994329577 #define MAX_DEPTH 15 #define SHADOW_BIAS 0.01 bool cast_shadow_ray(scene *s, vec3 P, vec3 L); vec3 cast_ray(scene *s, ray r, int dep...
//******************************************************************* //Author: <NAME> //Description: SNSv5 Header File //******************************************************************* //Register 0x0 typedef union snsv5_r0{ struct{ // LSB First unsigned CDCW_IRQ_EN : 1; unsigned CDCW_MODE_PAR : 1; u...
#include "dynarr.h" #include <assert.h> #include "test_helpers.h" #include <stdlib.h> void print_vals(uint8_t * ptr){ for (uint32_t i = 0; i < dynarr_num(ptr); ++i){ printf("%d=%u\n",i, ptr[i]); } } // define a function that just returns NULL to simulate allocation failure void *bad_realloc(void*ptr, ...
/* * 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 * are...
/* * This file keeps track of all pickup items and generates them from * arrays created by the map generator. */ #include "game.h" #include "player.h" #include <string.h> //base item values #define MIN_HEALTH_VAL 1 #define MAX_HEALTH_VAL 2 #define MIN_ARMOR_VAL 1 #define MAX_ARMOR_VAL 3 #define MIN_WEAPON_VAL 2 #de...
/*************************************************************************************** *** *** *** Copyright (c) 2019, <NAME>, Inc. *** *** ...
/* Copyright 2021 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 i...
/** * \file * * \brief Empty user application template * */ /** * \mainpage User Application template doxygen documentation * * \par Empty user application template * * Bare minimum empty user application template * * \par Content * * -# Include the ASF header files (through asf.h) * -# "Insert system c...
/* Copyright (c) 2011 <NAME> <<EMAIL>> Copyright (c) 2012 <NAME> <<EMAIL>> Permission to use, copy, modify, and 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...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sys/time.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "esp_log.h" #include "file_manage.h" #include "epd2in13.h" #include "epdpaint.h" #include "cc936.h" static const char *TAG = "te...
/* <NAME> 2007-07-26-10.36 Simple OpenGL Image Library Public Domain using Sean Barret's stb_image as a base Thanks to: * <NAME> - for the awesome stb_image * <NAME> - for finding some non-compliant DDS files, and patching some explicit casts * everybody at gamedev.net */ #define SOIL_CHECK_...
/* -*- 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 <math.h> #include <omp.h> #include <mkl.h> #include <sys/time.h> #include <sys/times.h> // dpotrf_(&L, pp_ts, pp_A, pp_ts, &INFO); //extern void dpotrf_ (const char *, int *, const double *, int *, int *); /* void dpotrf_ (const char* uplo, const MKL_INT* n, double* a, const...
/* * DEBUG 78 */ #include "squid.h" #define SWAP_DIR_SHIFT 24 #define SWAP_FILE_MASK 0x00FFFFFF #define MAGIC1 (NUMTHREADS/Config.cacheSwap.n_configured/2) static AIOCB storeAufsReadDone; static AIOCB storeAufsWriteDone; static void storeAufsIOCallback(storeIOState * sio, int errflag); static AIOCB storeAufsOpenD...
/* Unix SMB/Netbios implementation. Version 1.9. Copyright (C) <NAME> 1998 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...
/* * Copyright (c) 2020 <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 copyright notice, * this list of conditions and the following d...
#include "entitymanager.h" #include "collidercomponent.h" #include "spritecomponent.h" #include "collisionsystem.h" #include "aspectsystem.h" #include "prefab.h" void entities_internal_remove_entity(EntityManager* self, Entity entity); void entities_internal_send_message(EntityManager* self, TargetedMessage message); ...
#include "mgos.h" #include "led_master.h" typedef struct { uint8_t rings; uint32_t num_pix; double mid_pos; int mid_pos_cut; tools_rgb_data* all_colors; tools_rgb_data* shade_colors; tools_rgb_data black; tools_rgb_data back_ground; audio_trigger_data* atd; } symmetric_bar_data;...
#include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <math.h> #include <string.h> #include <x86intrin.h> #include "scalar_hamming_weight.h" // straight out of wikipedia static uint64_t scalar_hamming_weight(uint64_t x) { x -= (x >> 1) & 0x5555555555555555; x = ((x>>2)&0x3333333333333333) + (x...
/* * Copyright (c) 2010-2017 TIBCO Software Inc. * Licensed under a BSD-style license. Refer to [LICENSE] * For more information, please contact: * TIBCO Software Inc., Palo Alto, California, USA */ /* * This is a sample C program which can be used (with the directlatrecv program) to * measure basic latency bet...
/***************************************************************************** * Wave Simulation in OpenGL * (C) 2002 <NAME> * http://home.in.tum.de/~thomsen * Modified for GLFW by <NAME> - <EMAIL> * Modified for variable frame rate by <NAME> * 2003-Jan-31: Minor cleanups and speedups / MG * 2010-10-24: Formatti...
/* * Copyright (c) 2014, Linaro Limited * 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 cond...
#include "mavlink_main.h" #include "mavlink_handler.h" #include "mavlink_tcp.h" #include "mavlink_udp.h" #include "mavlink_stream.h" #include "mavlink_util.h" #include "mavlink_serial.h" #include "subscription/subscription.h" #include "c_library_v2/standard/mavlink.h" #include "measurement/measurement.h" #include "u...
/** * fan.c * There are several variations upon the Sequential Minimal Optimization * (SMO) originally proposed by <NAME>. In essence, the methods differ * in the way they pick pairs of Lagrange multipliers to be optimized. * This module implements the method of working-set selection using second order * inform...
// Copyright (C) YelloSoft #include "charm.h" #include <sys/ioctl.h> #include <termios.h> #include <unistd.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // ANSI Escape Codes // http://en.wikipedia.org/wiki/ANSI_escape_code // Terminal information // http://developer.apple.com/libr...
// optimize.c // // Created on: Jan 13, 2018 // Author: Jeff #include "program/optimization/optimize.h" #include <stddef.h> #include <stdint.h> #include "debug/debug.h" #include "entity/entity.h" #include "lang/lexer/token.h" #include "program/instruction.h" #include "program/optimization/optimizer...
#include <stdio.h> #include <stdlib.h> #include <tonc.h> #include "all_gfx.h" SCR_ENTRY map[32][32]; #define BLOCK 0 #define BLOCK_EDGE 1 #define BLOCK_ALONE 2 #define BLOCK_INNER 3 #define BLOCK_UNDER 4 #define COIN0 5 #define COIN1 6 #define COIN2 7 #define SONIC 8 #define SSPIN0 9 #define SS...
/* Copyright (C) 1997-2001 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in th...
/* * Developed by <NAME> * Copyright (c) 2015 Celticom * * Permission to use, copy, modify, and 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 IS" AND T...
/* Psychtoolbox3/Source/Common/SCREENReadNormalizedGammaTable.c AUTHORS: <EMAIL> awi <EMAIL> mk PLATFORMS: All. HISTORY: 1/27/03 awi Created. DESCRIPTION: TO DO: */ #include "Screen.h" // If you change useString then also change the corresponding synopsis string in ScreenSynopsis.c static ch...
/* * 43BSD_HOSTINFO.C - 4.3BSD compatibility host info syscalls * * Copyright (c) 1982, 1986, 1989, 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 condi...
#include "craftus/render/texturemap.h" #include "lodepng/lodepng.h" #include <3ds.h> #include <citro3d.h> #include <malloc.h> #include <stdio.h> #include <string.h> uint32_t hash(char* str) { unsigned long hash = 5381; int c; while ((c = *str++)) hash = ((hash << 5) + hash) + c; /* hash * 33 + c */ return hash; ...
#include "graph.h" //code for Dijkstra // void add_vertex(Graph *g, int i){ // Vertex* vertex = (Vertex*)malloc(sizeof(Vertex)); // g->vertices[i] = vertex; // g->vertices[i]->index = i; // } // void add_edge(Graph *g, int v_index, int weight, int end, int i){ // Vertex *vertex = g->vertices[v_index]; // printf...
#ifndef lint static const char RCSid[] = "$Id: rhd_qtree2c.c,v 3.4 2011/05/20 02:06:39 greg Exp $"; #endif /* * Quadtree display support routines for cone output. */ #include "standard.h" #include "rhd_qtree.h" static void redraw(RTREE *tp, int x0, int y0, int x1, int y1, int l[2][2]); static void cpaint(uby8 rgb[3...
/* * Copyright @ Members of the EMI Collaboration, 2010. * See www.eu-emi.eu for details on the copyright holders. * * 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...
#include "menu.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include "json-util.h" #include "logger.h" #include "read-lines.h" #include "util.h" #include "xalloc.h" static bool has_items(const struct menu_item *item) { return item->items && item->n_items > 0; } static void destroy_item(struct menu_i...
/* * Copyright (C) 2017 XRADIO TECHNOLOGY CO., LTD. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* File: wm.c * Author: <NAME> * Revision Nov 14 2016 * Purpose: Window Management and Public I/O Access */ #include "wm.h" #include "uartlib.h" #include "syslib.h" #include <string.h> // for strncpy #include <stdio.h> #include "window_data_structures.h" #include "supervisor.h" #include <strings.h> e...
/* * Copyright (c) 2007 <NAME> * * The license and distribution terms for this file may be * found in the file COPYING in this distribution or at * http://agnosent.com/wolfcms/open-source/sge2d/license.html */ #include <sge.h> enum sgeKey { sgeUpKey=SDLK_UP, sgeDownKey=SDLK_DOWN, sgeLeftKey=SDLK_LEFT, sgeRi...
#include "i2c.h" #include "ssd1306.h" static uint16_t ssdIndex = 0; static uint8_t ssdBuffer[OLED_SZ] = {0}; static uint8_t ssdTranslateBuffer[OLED_SZ] = {0}; static uint8_t ssdSend = SENT; // Translates one page of the oled display. // Input should be the first byte of the page. static void inverse_translate (uint8...
/* * (C) Copyright <NAME> 2000-2002 * * 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 distr...
/* * File: uint_float.c * * * * --- THIS FILE GENERATED BY S-FUNCTION BUILDER: 3.0 --- * * This file is an S-function produced by the S-Function * Builder which only recognizes certain fields. Changes made * outside these fields will be lost the next time the block is * used to load, edit, a...
// 1. every node is either red or black // 2. root is black // 3. null leaf(sentinel) is black // 4. if a node is red, its sons are black // 5. every path from one node to all its leaves(sentinel) has same number of black nodes #include "agile_rbtree.h" static inline void rbtree_left_rotate(rbtree_node_t** root, rbtr...
/*D*********************************************************** * Modul: DBI - database select * Statuswerte * * Copyright: yafra.org, Switzerland **************************************************************/ #include <mpmain.h> #include <mpsqlsel.h> #include <mpprodbi.h> /* Prototypes f�r ANSI-C ...
/* cMarkovModel.c * 130520 created */ #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include "Python.h" #include "arrayobject.h" #if PYTHON_API_VERSION <= 1012 /* Python 2.3 is 1012. */ #define Py_ssize_t int #endif static char cMarkovModel__max_sum_and_index__doc__[] = "XXX\n"; static PyObject *cMark...
/* * 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...
#include "lin.h" #include "treeview.h" // 用户自己头像相关 extern GtkWidget *button_image, *button_preview; extern GtkWidget *image_user, *image_user_old, *image_user_new; extern gchar *str_image_user, *str_image_user_new; extern char my_id[15]; // 自己的 id extern GData *widget_chat_dlg;// 聊天窗口集, 用于获取已经建立的聊天窗口 GArray *array_i...
/* * Center for Information Technology Integration */ #include <time.h> #include "global.h" #include "mbuf.h" #include "socket.h" #include "netuser.h" #include "udp.h" #include "iface.h" #include "ip.h" #include "internet.h" #include "domain.h" #include "rip.h" #include "cmdparse.h" #include "bootp...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "y.tab.h" #define section_text "\ section .text\n\ \n\ global _start\n\ \n" #define section_data "\ section .data\n\ \n\ buf times 64 db 0xA\n\ \n" #define proc_dump32 "\ dump32:\n\ mov edi, buf + 7\n\ mov ebx, 8\n\ \n\ loop8:\n\ m...
/*************************************************************************\ * Copyright (c) 2012 UChicago Argonne LLC, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * Operator of Los Alamos National Laboratory. * EPICS BASE is distributed subj...
#include "copyright.h" /*============================================================================*/ /*! \file output_pdf.c * \brief Outputs Probability Distribution Functions of selected variables * in formatted tabular form. * * PURPOSE: Outputs Probability Distribution Functions of selected variables * ...
/* * Copyright (c) 2014-2015, Linaro Ltd and Contributors. All rights reserved. * Copyright (c) 2014-2015, Hisilicon Ltd 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: * * ...
/****************************************************************\ * * * Module for various affine gapped models * * * * <NAME>.. mailto:<EMAIL> * *...
/* ==== sleep.c ============================================================ * Copyright (c) 1993, 1994 by <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. Redistribut...
// SPDX-License-Identifier: GPL-2.0-only #include <linux/bitops.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h> #include <linux/regmap.h> #include <linux/regulator/consumer.h> #include <linux/regulator/driver.h> enum { DSV_OUT_VLCM = 0, DSV_OUT_VPOS, ...
/* EVMC: Ethereum Client-VM Connector API. * Copyright 2018-2019 The EVMC Authors. * Licensed under the Apache License, Version 2.0. */ /** * EVMC Helpers * * A collection of C helper functions for invoking a VM instance methods. * These are convenient for languages where invoking function pointers * is "ugly"...
/* Etherboot DEC Tulip driver adapted by <NAME> from FreeBSD netboot DEC 21143 driver Author: <NAME> date: Nov/98 Known to work on DEC DE500 using 21143-PC chipset. Even on cards with the same chipset there can be incompatablity problems with the way media selection and status LED settings are done. ...
/* http://stackoverflow.com/a/36510894/895245 TODO - smooth transition between sines without tic sound. Needs a phase change I imagine. - ADSR https://en.wikipedia.org/wiki/Synthesizer#Attack_Decay_Sustain_Release_.28ADSR.29_envelope Currently, hitting the same not twice sounds the same as hitting it once for dou...
#include <stdio.h> #include <math.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include "astro.h" #include "preferences.h" /* sprint the variable a in sexagesimal format into out[]. * w is the number of spaces for the whole part. * fracbase is the number of pieces a whole is to broken into; valid o...
/* Simulador Universal de Autômatos Finitos Grupo: <NAME>; 11849306; <EMAIL> <NAME>; 11816143; <EMAIL> <NAME>; 11831338; <EMAIL> Documentação disponível em: --- */ #include <stdio.h> #include <stdlib.h> #include <string.h> //#define MOSTRAR_ENTRADA //Definicoe...
/* * Copyright (C) 2014-2017 Freie Universität Berlin * 2015 <NAME> <<EMAIL>> * * * 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 cpu_nrf5x_common * @ing...
/* 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, distrib...
//////////////////////////////////////////////////////////////////////////////// // VITapi - UI helper library that controls Visuals, Input and Terminals. // // Copyright 2010 - 2017, <NAME>. // All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software a...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Use USB Host core driver and HID driver. This sample demonstrates how * to support mouse and keyboard input. * * @copyright SPDX-License-Identifier: Apache-2.0 * @copyright C...
/* --------------------------------------------------------------------------- carray_sort_addr.c This file is part of Ruby/CArray extension library. Copyright (C) 2005-2020 <NAME> ---------------------------------------------------------------------------- */ #include "ruby.h" #include "carray.h" #include <...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/************************************************************\ * Python Module 'Logger' for the Computational Datalogger. * * The functions in this module are designed for interacting * with the attached AVR based datalogger. \************************************************************/ #include <Python.h> #inclu...
#include <sys/socket.h> #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <netinet/in.h> #include <string.h> #include <edhoc/edhoc.h> #include "nanocoap.h" #define MAX_BUF_SIZE (512) edhoc_ctx_t ctx; bool epk = true; // CBOR-encoded authentication key const uint8_t auth_key[] = {0xa4, 0x01,...
/* * Copyright (C) 2008 The Android Open Source Project * Copyright (C) 2011 <<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-...
/*! \file main.c \brief SPI master and slave fullduplex communication with nssp mode \version 2019-6-5, V1.0.0, firmware for GD32VF103 */ /* Copyright (c) 2019, GigaDevice Semiconductor Inc. Redistribution and use in source and binary forms, with or without modification, are perm...
/********************************************************************************************************* * Copyright(c) 2018, Realtek Semiconductor Corporation. All rights reserved. ********************************************************************************************************** * @file rt...
/* * Copyright (C) 2014-2016 Canonical, Ltd. * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT...
/************************************************************************** * * Copyright 2007 T<NAME>, Inc., <NAME>, Texas. * 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 ...
/* $NetBSD: pbus.c,v 1.6 2003/10/10 07:01:50 simonb Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. * All rights reserved. * * Written by <NAME> and <NAME> for Wasabi Systems, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
// helixfuncs.h // Fake function for HELIX decoder that are not supported. // Also framebuffering from incoming chunks is supported. // #define player_AdjustRate(a) #define player_setTone(a) #define FRAMESIZE 1600 // Max. frame size in bytes (mp3 and aac) #define OUTSIZE ...
/* This file is under the LGPL license */ #include <stdio.h> #include <getopt.h> #include <string.h> #include <stdlib.h> #include <errno.h> #include <ctype.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/wait.h> #include <unistd.h> #include "textfile.h" #include "wavfile.h" #include "tts.h" #include "debug.h...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include <stdbool.h> #include <getopt.h> #include "stb_image.h" #include "stb_image_resize.h" #include "color.h" #include "commons.h" #include "image_aspect.h" enum { MODE_BW = 0, MODE_256 = 1, MODE_TRUECOLOR = 2 }; enum { OMODE_TERMINAL = ...
/* * 0BSD * * BSD Zero Clause License * * Copyright (c) 2019 <NAME> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WAR...
/* * Multi2Sim * Copyright (C) 2012 <NAME> (<EMAIL>) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ...
/* *** Core13 *** Arduino core designed for Attiny13 and similar devices. NO WARRANTEE OR GUARANTEES! Written by John "smeezekitty" You are free to use, redistribute and modify at will EXCEPT IF MARKED OTHERWISE IN A PARTICULAR SOURCE FILE! Version 0.21 // ATMEL ATTINY13 - ARDUINO // // +-\/-...
// keccak.c // 19-Nov-11 <NAME> <<EMAIL>> // A baseline Keccak (3rd round) implementation. #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "int-util.h" #include "hash-ops.h" #include "keccak.h" static void local_abort(const char *msg) { fprintf(stderr, "%s\n", msg); #ifdef NDEBUG _exit(1); #e...