text
stringlengths
3.12k
18.7k
/* * ISC License * * Copyright (C) 1985-2018 by * <NAME> * <NAME> * Delft University of Technology * * 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 c...
/* * Copyright (C) 2019 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <types.h> #include <cpu.h> #include <pgtable.h> #include <rtl.h> #include <mmu.h> #include <sprintf.h> #include <ept.h> #include <logmsg.h> #include <boot.h> #include <crypto_api.h> #include <seed.h...
/* $OpenBSD: malloc.c,v 1.3 2015/01/16 00:03:37 deraadt Exp $ */ /* * Copyright (c) 2008 <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 co...
/* * nvidia_resolution.c * * * Created by <NAME> on 19/03/10. * Copyright 2010 ---. All rights reserved. * */ #include "nvidia_resolution.h" vbios_map * open_nvidia_vbios(vbios_map *map) { UINT16 nv_data_table_offset = 0; UINT16 nv_modeline_2_offset = 0; UINT16 * nv_data_table = NULL; ...
#include "utils.h" #include<stdlib.h> struct sorting_coords { int i, j; double dat; }; typedef struct sorting_coords triplet; void basic_sparsemm(const COO, const COO, COO *); void basic_sparsemm_sum(const COO, const COO, const COO, const COO, const COO, const COO, ...
/*! \file cgcs_slist_demo.c \brief Client source file for cgcs_slist \author <NAME> \date 24 May 2021 */ #include "cgcs_slist.h" #include <stdio.h> #include <stdlib.h> #include <string.h> // Callback functions for (char *) type static inline void print_cstr(void *arg) { printf(...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * File Name : stm32f4xx_hal_msp.c * Description : This file provides code for the MSP Initialization * and de-Initialization codes. **********************...
/***************************************************************************** * kmyth_sgx_retrieve_key_demo.c - * untrusted app to demonstrate kmyth functionality for retrieving a key * from a remote server into the SGX enclave *****************************************************************************/ #includ...
/*- * Copyright (c) 1997, 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 conditio...
/* Based on Nathan "noonat" Ostgard's "Intersect" CoffeeScript library Converted into a Ruby C-extension by <NAME> (August, 2013) NB: "slood" stands for "Saved Length is Out-Of-Date". */ #include "ruby.h" #include <math.h> static VALUE m_Intersect, c_Point, c_Hit, c_Sweep, c_AABB; /*/ Class definitions ///...
/**************************************************************************** Copyright Echo Digital Audio Corporation (c) 1998 - 2004 All rights reserved www.echoaudio.com This file is part of Echo Digital Audio's generic driver library. Echo Digital Audio's generic driver library is free software; ...
#include "mapreduce.h" #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #define NUM_MAPS 888 int counter; pthread_mutex_t fileLock; Partitioner partitioner; int NUM_REDUCER; int NUM_FILES; char** file_names; Mapper map; Reducer reducer; typedef struct __v_node{ c...
/* * 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 the hope that it will be use...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "types.h" #include "util.h" #include "levels.h" const char* UNLOADED = "ERROR"; const char* PROJECT_HEADER = "HAX1.1"; const char* PROJECT_FOOTER = "ENDHAX"; const char* LEVEL_HEADER = "LEV2.1"; const char* LEVEL_FOOTER = "ENDLEV"; const char* PATTER...
#include "radixlog.h" #include <limits.h> #include <stdbool.h> #include "allocator.h" #include "config.h" #include "debug.h" #include "slist.h" #define ALLOC_TABLE(table, type, parent, index) \ do { \ table =...
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/crypto/ecdsa_p256/ecdsa_p256.h" #include "sw/device/lib/base/hardened.h" #include "sw/device/lib/crypto/drivers/otbn.h" #include "sw/device/lib/...
/************************************************************************* * Copyright (C) 2017-2019 Barcelona Supercomputing Center * * Centro Nacional de Supercomputacion * * All rights reserved. * * ...
#include "..\nonport.h" #include "screen.h" #include "font.h" static u16 gTopScreen[SCREEN_HEIGHT * SCREEN_WIDTH]; static u16 gBottomScreen[SCREEN_HEIGHT * SCREEN_WIDTH]; static int gPos; static int gPrintMode = PRINT_TO_DEBUGGER; static void VBlankIntr(void) { // Reflect virtual screen to VRAM DC_FlushRange( gTopS...
/* * Utility functions for process management. * * Note: in Lab1, only one process (i.e., our user application) exists. Therefore, * PKE OS at this stage will set "current" to the loaded user application, and also * switch to the old "current" process after trap handling. */ #include "riscv.h" #include "strap....
/* * (C) 2005-2020 MediaTek Inc. All rights reserved. * * Copyright Statement: * * This MT3620 driver software/firmware and related documentation * ("MediaTek Software") are protected under relevant copyright laws. * The information contained herein is confidential and proprietary to * MediaTek Inc. ("MediaTek"...
#include <Python.h> #include <arrayobject.h> #include <math.h> #include <stdlib.h> #include <time.h> #define PI 3.14159265359 double getitem2d(PyArrayObject* array2d, int x, int y) { npy_intp ptr[2] = { y, x }; PyObject* dummy = PyArray_GETITEM(array2d, PyArray_GetPtr(array2d, ptr)); double result = PyFl...
typedef int bool; enum { false, true }; #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <straight/straight.h> #define DEBUG 1 char inputAFileName[256] = ""; char noteFileName[256] = ""; char outputFileName[256] = ""; char outputPluginName[256] = "output...
/*************************************************************************\ * Copyright (c) 2008 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 <string.h> #include <stdlib.h> #include "heclib.h" #include "zdssMessages.h" #include "hecdssInternal.h" /** * Function: zlocationStore * * Use: Semi-Public * * Description: Store location information for a dataset * * Declaration: int zlocationStore(long long *ifltab, zStructLocation *locationStruct,...
#include "math.h" #include "matrix.h" // Generates a 4x4 identity matrix mat4_t mat4_identity(void) { /* | 1 0 0 0 | | 0 1 0 0 | | 0 0 1 0 | | 0 0 0 1 | */ mat4_t m = {{ { 1, 0, 0, 0 }, { 0, 1, 0, 0 }, { 0, 0, 1, 0 }, { 0, 0, 0, 1 } }};...
/* errno.c * * Copyright (c) 1996-2005 <NAME>, NcFTP Software. * All rights reserved. * */ #include "syshdrs.h" #ifdef PRAGMA_HDRSTOP # pragma hdrstop #endif static const char *gErrList[kErrLast - kErrFirst + 2] = { "gethostname() failed", /* -100 */ "hostname does not include domain name", /* -101 */ ...
/* * Open Surge Engine * lock_camera.c - Locks an area of the playfield * Copyright (C) 2010, 2011 <NAME> <<EMAIL>f(at)gmail(dot)com> * http://opensnc.sourceforge.net * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by ...
/*--------------------------------------------------------------- Problem: Buddy Memory Allocater Proponent: <NAME>, DCC-Univ. Porto / <EMAIL> Contest: MIUP'2001 Date: 16/09/2001 Language: C The problem is inspired in the Operating System books. Input: U,L Req[]={{A,70},{B,35},......
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <printf.h> #include "../../../../../superh/port/logmarkers.h" /* Model Summary: Model: "sequential_3" _________________________________________________________________ Layer (type) Output Shape Param # =========...
// Copyright 2019 Espressif Systems (Shanghai) PTE LTD // // 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...
/* * Blocklist Copyright 2013 Regents of the University of Michigan * * 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 */ #include "blocklist.h"...
/* * Copyright (c) 2013-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, * publ...
#include "dns.h" #include "hdef.h" #include "hsocket.h" #include "herr.h" void dns_free(dns_t* dns) { SAFE_FREE(dns->questions); SAFE_FREE(dns->answers); SAFE_FREE(dns->authorities); SAFE_FREE(dns->addtionals); } // www.example.com => 3www7example3com int dns_name_encode(const char* domain, char* buf...
/* packet-dvb-data-mpe.c * Routines for DVB-DATA (ETSI EN 301 192) MultiProtocol Encapsulation * Copyright 2012, <NAME> <<EMAIL>> * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms ...
#include <lmp2atomstyle.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <ctype.h> #define BUFFERSIZE 1024 struct lmp_t { uint16_t flags; uint8_t numprops; }; #ifndef bool #define bool int #endif #ifndef true #define true 1 #endif #ifndef false #define false 0 #endif en...
#include<stdio.h> #include<stdlib.h> struct BstNode{ struct BstNode* left; struct BstNode* right; int data; }; struct BstNode* root = NULL; void insert(int value){ struct BstNode* newNode = (struct BstNode*)malloc(sizeof(struct BstNode)); newNode->data = value; if(root == NULL){ roo...
#include <stdlib.h> #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #define NUM_OF_MAPPED_ADDR 10 struct { struct { unsigned int phy_addr; unsigned int size; unsigned int* vir_addr; } mmapped[ NUM_OF_MAPPED_ADDR ]; int _fd; } g_ctx...
/* This file is part of fotix * Copyright (c) 2013 <NAME> * * paging.c -- Defines functions to be used to help * with virtual memory management. */ #include "include/paging.h" #include "include/kheap.h" /* The kernel's page directory */ page_directory_t *kernel_directory = 0; /* The current page directory */ p...
/* * GStreamer * Copyright (C) <2010-2015> <NAME> <<EMAIL>> * * Exclusion - color exclusion video effect. * Based on Pete Warden's FreeFrame plugin with the same name. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Sof...
/* * Copyright © 2013 <NAME> * Copyright © 2013 Red Hat, 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, c...
/**************************************************************************** * * warpwarp.c * * sound driver * <NAME> <<EMAIL>>, jan 2000 * ****************************************************************************/ #include <math.h> #include "driver.h" #define CLOCK_16H (18432000/3/2/16) #defi...
/* Module: mGetHdr.c Version Developer Date Change ------- --------------- ------- ----------------------- 1.5 <NAME> 25Nov03 Added extern optarg references 1.4 <NAME> 25Aug03 Added status file processing 1.3 <NAME> 30Apr03 Added checkFile() reference for infile ...
// this header file does not have an include guard! // can be used multiple times, with different types #include <string.h> // memcpy #include "assume.h" #include "error.h" #include "alloc.h" #include "log.h" #define RHC_NAME_CONCAT(a, b) a ## b #define RHC_NAME_CONCAT2(a, b) RHC_NAME_CONCAT(a, b) #d...
/** ****************************************************************************** * @file Demonstrations/Src/fatfs_storage.c * @author MCD Application Team * @brief This file includes the Storage (FatFs) driver ****************************************************************************** * @attenti...
#include "types.h" #include "stat.h" #include "defs.h" #include "param.h" #include "traps.h" #include "spinlock.h" #include "sleeplock.h" #include "fs.h" #include "file.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "x86.h" //****************** CHANGED START ************************ #define mini...
/* * Copyright (c) 2016 Intel Corporation * * 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 ...
/* P I X R O T . C * BRL-CAD * * Copyright (c) 1986-2014 United States Government as represented by * the U.S. Army Research Laboratory. * * This program 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 ...
/* * 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...
/* GStreamer * Copyright (C) 2006 <NAME> <<EMAIL>> * * 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 later version. * *...
#include "conf.h" #include "base64.h" #include "client.h" #include "codec.h" #include "server.h" #include "ioctl.h" #include "sig.h" #include <arpa/inet.h> #include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/stat.h> #include <unistd.h> static void vtun_...
#include <string.h> #include <stdlib.h> #include "getstream.h" #include "psi.h" #include "crc32.h" /* * PSI (Program Specific Information) handling * * Reassembly of TS Packets into sections * Handling of multiple sections * Callback on change * * * */ static uint32_t psi_crc(struct psisec_s *section) { ui...
/*************************************************************************** * PHAST: PHylogenetic Analysis with Space/Time models * Copyright (c) 2002-2005 University of California, 2006-2010 Cornell * University. All rights reserved. * * This source code is distributed under a BSD-style license. See the * fi...
// This file contains the implementation of the getPublicKey command. It is // broadly similar to the signHash command, but with a few new features. Since // much of the code is the same, expect far fewer comments. // // A high-level description of getPublicKey is as follows. The user initiates // the command on their ...
#include <stdlib.h> #include <stdio.h> #include <limits.h> #include <malloc.h> #include <memory.h> #include <time.h> #if 0 #define IS_SIGNED(type) ((type)-1 == (unsigned)-1) #else #define IS_SIGNED(type) 1 #endif #define MIN(m, n) (((m) < (n)) ? (m) : (n)) #define MAX(m, n) ...
/* * Huffandpuff minimal Huffman coder * * (c)2013 <NAME> <<EMAIL>> * This code is in the public domain and is distributed with NO WARRANTY. */ #include "huffman.h" struct _huffman_node { struct _huffman_node *lr[2]; struct _huffman_node *qprev,*qnext; double prob; unsigned long c; }; struct _huffman_encode...
/** @file @brief 仮想 AUDIO ドライバ @date 2012.11.02 @authoer <NAME> sudo apt-get install libasound2-dev */ #include <alsa/asoundlib.h> #include <unistd.h> #include "device.h" #include "task/syscall.h" #include "device/audio_ioctl.h" #include "tkprintf.h" //#define DEBUG #ifdef DEBUG #define VSPRINTF tk...
/* * Copyright 2005-2018 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an intergover...
/* * DO NOT MODIFY * * This file was generated by dtoc from a .dtb (device tree binary) file. */ /* Allow use of U_BOOT_DEVICE() in this file */ #define DT_PLATDATA_C #include <common.h> #include <dm.h> #include <dt-structs.h> /* Node /clock-controller@ff440000 index 0 */ static struct dtd_rockchip_rk3328_cru dt...
#include <stdio.h> #include <stdint.h> //NOTES: I have a hunch a table is best for this, though, we might have plenty of free time //If that's the case, this should just be a test of the bit logic. //#define DPLUSFIRST //if so, 1's place = D+ bit // 2's place = D- bit //Example from wikipedia //uint8_t input_...
/* SYR2 - Projet - Partie 2 <NAME> <NAME> */ #include <clientserver.h> /** * The main program * * Parameters: * - int argc => The number of arguments passed * - char** args => The arguments list * * Return: * - int => The result of the execution */ int process_params(int argc, ch...
/*! * \file RADARDEMO_rangeProc_utils.c * * \brief Utility functions for Range processing. * * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
/* * Copyright (c) <NAME> & G<NAME> * * 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 THE AUTHOR DISCLAIMS ...
#include "linmath.h" #include "gfc_matrix.h" #include "gf3d_entity.h" #include "simple_logger.h" #include "local.h" #include "..\include\physics.h" Bool run_think(Entity_T* ent) { float thinktime; thinktime = ent->nextthink; if (thinktime <= 0) return true; if (thinktime > level.time + 0.001) return true; e...
/* Mnemonic: jwrapper_test2 Abstract: This will attempt to put the jwrapper code through its paces. Unlike jwapper_test.c which allows a user supplied set of json to be given this uses a static json string so as to test specific things and report a binary good/bad for each. Example: Author: <NAM...
/* * Copyright (c) 2016-2017 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include "vm.h" #include "accessvm.h" #include "rs232.h" #define MAXFILES 64 /* Host functions operate on the stack and have access to host resources. Parameter passing is through the stack, whose pointer is passed to them. The return value is the n...
/* * Copyright (c) 2006-2016 <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 conditi...
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * * THE BSD LICENSE * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistribut...
/******************************************************************************* Snes9x - Portable Super Nintendo Entertainment System (TM) emulator. (c) Copyright 1996 - 2003 <NAME> (<EMAIL>) and <NAME> (<EMAIL>) (c) Copyright 2002 - 2003 <NAME> and <NAM...
/** * Copyright 2019 Tampere University * * 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 agre...
Alarm* alarm(int, void (*)(Alarm*), void*); void alarminit(void); Block* allocb(ulong); int anyready(void); void append(List**, List*); Image* attachimage(int, Chan*, ulong, ulong); int blen(Block *); int bround(Block *, int); void buzz(int, int); void cachepage(Page*, Image*); void cancel(Alarm*); int cangetc(void*);...
/* * SpanDSP - a series of DSP components for telephony * * tsb85_tests.c * * Written by <NAME> <<EMAIL>> * * Copyright (C) 2008 <NAME> * * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2.1,...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2017 Socionext Inc. * Author: <NAME> <<EMAIL>> */ #include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include "pinctrl-uniphier.h" static const unsigned emmc_pins[] = {31, 32, 33, 34, 35, 36, 37, 38}; static const int emmc_muxvals[] = {0, 0, 0, 0,...
/* io.c - Various input/output functions UltraRogue Copyright (C) 1985 <NAME> All rights reserved. Based on "Advanced Rogue" Copyright (C) 1982, 1984, 1985 <NAME>, <NAME> and AT&T All rights reserved. Based on "Rogue: Exploring the Dungeons of Doom" Copyright (C) 1980, 1981 <NAM...
/* * Copyright (c) 1999 <NAME> <<EMAIL>> * Copyright (c) 1991 <NAME> * * Device-independent routines to determine clipping regions. */ /* Clip cache rectangle information. * After calling GdClipPoint, this rectangle is guaranteed to contain the * specified point (among others), and all points in the rectangle a...
#include <stdlib.h> #include <stdio.h> #include "filesystem.h" #include "time.h" #include "dir.h" #include "utils-f.h" /* header */ void print_boot_sector(struct fat16_filesystem *); void print_root_dir(struct fat16_filesystem *); void print_dir_entry(struct fat16_filesystem *, struct fat_dir_entry *); /* implementa...
#include <stdbool.h> #include <stddef.h> #include <stdint.h> #include "util.h" #include "cc.h" #define F (1<<8) #define S (2<<8) static void cast(struct expr *expr) { unsigned size; size = expr->type->size; if (expr->type->prop & PROPFLOAT) size |= F; else if (expr->type->prop & PROPINT && expr->type->basic.iss...
#include "../keen.h" #include "menu_editor.fdh" #include "../menu.h" extern void editor_resetmap(void); extern void editor_addborder(void); extern void editor_exit(void); extern void editor_nextep(void); extern void editor_saveas(void); extern void editor_resizemap(void); extern void editor_settimelimit(void); extern ...
/* ** Splint - annotation-assisted static program checker ** Copyright (C) 1994-2003 University of Virginia, ** Massachusetts Institute of Technology ** ** 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 Sof...
#include "2048.h" #include <X11/Xlib.h> #include <X11/keysym.h> #include <X11/Xutil.h> #include <stdio.h> #include <string.h> #define VALUE_MAX_SIZE 5 // "2048\0" #define SCORE_MAX_SIZE 16 // "Score: 999999..." static const int WIDTH = 340; static const int HEIGHT = 400; static const int TILE_SIZE = 64; static con...
/* Copyright 2016 Vanderbilt University 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...
// Copyright 2021 <NAME> // SPDX-License-Identifier: Apache-2.0 #include <logging/log.h> LOG_MODULE_REGISTER(app, CONFIG_IOTA_APP_LOG_LEVEL); #include <inttypes.h> #include <shell/shell.h> #include <stdio.h> #include <zephyr.h> #include <net/http_client.h> #include <net/socket.h> #include "client/network/http.h" #i...
/* * Copyright (C) 1989-2015, <NAME>, <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...
/* usbdump.c * * Wiretap Library * Copyright (c) 1998 by <NAME> <<EMAIL>> * * File format support for usbdump file format * Copyright (c) 2017 by <NAME> <<EMAIL>> * * SPDX-License-Identifier: GPL-2.0-or-later */ /* * This wiretap is for an usbdump file format reader. The format is * reverse engineered from ...
/* Copyright (c) 2015 by <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, distribute, subli...
/* ------------------------------------------------------------------------ */ /* LHa for UNIX */ /* lhlist.c -- LHarc list */ /* */ /* ...
/* db_berkeley.c--SASL berkeley db interface * <NAME> * <NAME> */ /* * Copyright (c) 1998-2016 Carnegie Mellon University. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redist...
// ./bin/Debug/task8 input.bmp SobelX output.bmp #include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> const double pi = 3.1415926535897932384626433832795; const double sigma = 0.6; #pragma pack(push, 1) struct bmp_file { unsigned short bf_type; unsigned int bf_size; unsigned short ...
/* * Copyright (c) 2012-2022 Filip "widelec-BB" Maryjanski, BlaBla group. * All rights reserved. * Distributed under the terms of the MIT License. */ #include <proto/exec.h> #include <proto/dos.h> #include <proto/ezxml.h> #include <libvstring.h> #include "locale.h" #include "globaldefines.h" #include "application....
/* Panel bootloader via twi This code is located in the bootloader section of the flash memory (0x3800 - 0x3fff). Fuse bits: The bootsector size must be set to 1024 words and the reset function must be set to bootloader. Commands: E: Exit boot loader (jump to the start of application data space) (twi 1 byte...
/* * 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...
/************************************************************************ * dlb_wave * Copyright (c) 2021, Dolby Laboratories 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: * * ...
/** * @file main.c * @author <NAME> * @date 2014.10.24 * @brief Main program * * MIT License * * Copyright (c) 2022 <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 * i...
/*########################################################################### # # Copyright (C) 1993 by <NAME> <<EMAIL>> # Copyright (C) 2008 by nixkoenner <<EMAIL>> # # License: GPL # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publi...
/* This file is part of the sgui samples collection. I, <NAME>, author of this file hereby place the contents of this file into the public domain. */ /* This small programm is supposed to demonstrate how to use the sgui texture canvas with Direct3D 9. */ #include "sgui.h" #include "sgui_d3d9.h" #i...
/**************************************************************************** ** Copyright (C) 2020 MikroElektronika d.o.o. ** Contact: https://www.mikroe.com/contact ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and associated documentation files (the "Software"...
// Copyright (c) 2021 <NAME> // All rights reserved #define SLIPTERM_VERSION "0.01" // GENERAL NOTEs/TODO: // 1) Should we use ctrl+] like IDF? // 2) Actually test. #include <errno.h> #include <fcntl.h> #include <pcap.h> #include <signal.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <str...
/* * %CopyrightBegin% * * Copyright Ericsson AB 2002-2017. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
/* C-part for Molecular Dynamics Simulation on a Sphere To be used with python. Particles on a unit-sphere. Radius of sphere is R = 1. MIT license Copyright(c) 2015 - 2019 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "So...
/* $Id: timer-r0drv-freebsd.c $ */ /** @file * IPRT - Memory Allocation, Ring-0 Driver, FreeBSD. */ /* * Copyright (c) 2007 <NAME>. osmundsen <<EMAIL>> * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to de...