text
stringlengths
3.08k
10.5k
/****************************************************************************** * The MIT License * * Copyright (c) 2012 LeafLabs, LLC. * * 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 ...
/* * Copyright (C) 2008 The Android Open Source 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: * * Redistributions of source code must retain the above copyright * notice, t...
#include <stdio.h> #include <string.h> #include <winsock2.h> #include <ws2tcpip.h> #include "iot_import.h" #ifdef _MSC_BUILD #include <Winbase.h> #pragma comment(lib,"ws2_32") #endif #define PLATFORM_WINSOCK_PERROR printf /** * @brief Create a UDP socket. * * @param [in] port: @n Specify the UDP port of UDP s...
/* copyright 2013 <NAME> and contributors (see LICENSE for licensing information) */ #define _GNU_SOURCE #include "menu.h" #include <errno.h> #include <glib.h> #include <regex.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/wait.h> #include <unistd.h> #include "dbus.h...
/* * An rtc/i2c driver for the EM Microelectronic EM3027 * Copyright 2011 CompuLab, Ltd. * * Author: <NAME> <<EMAIL>> * * Based on rtc-ds1672.c by <NAME> <<EMAIL>> * * 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 * pub...
#include <stdarg.h> #include <curses.h> #define screen_attr attributes[0] #define shadow_attr attributes[1] #define dialog_attr attributes[2] #define title_attr attributes[3] #define border_attr attributes[4] #define button_acti...
/*====================================================================* * * Copyright (c) 2013 Qualcomm Atheros, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or * without modification, are permitted (subject to the limitations * in the disclaimer below) p...
#include<sys/socket.h> #include<sys/types.h> #include<netinet/in.h> #include<stdio.h> #include<arpa/inet.h> #include<stdlib.h> #include<unistd.h> #include<string.h> #include <fcntl.h> #define MAX_RECV_BUF 256 #define MAX_SEND_BUF 256 // Rewriting puts() function so it takes in considitation ';' as the end of the reque...
/* ============================================================================= ** Homebrew: <NAME>, file: main.c Created 12/16/2021 ** ** Copyright 2021 <NAME> TX, USA ** All rights reserved. ** ** Redistribution and use of this source file, with or without modification, is ** permitted provided that the following co...
/************************************************************************** * * Copyright (C) 2018 Collabora Ltd * * 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, i...
/** * @file effectlive.c DAW EffectLive Overlay Plugin * * Copyright (C) 2013-2018 studio-link.de */ #include <stdlib.h> #include <string.h> #include <re.h> #include <rem.h> #include <baresip.h> #include <math.h> #include <pthread.h> #define SAMPLE_16BIT_SCALING 32767.0f #define SAMPLE_16BIT_MAX 32767 #define S...
/* * This file is part of TISEAN * * Copyright (c) 1998-2007 <NAME>, <NAME>, <NAME> * * TISEAN 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...
uint8_t channelSelection = 2; uint32_t loadBuffer(); /*********************************************************/ /*********************************************************/ void DACC_Handler(void) { aaAudio.dacHandler(); //Link the DAC ISR/IRQ to the library. Called by the MCU when DAC is read...
/* This file is part of JellingStone - (C) The Fieldtracks Project JellingStone is distributed under the civilian open source license (COSLi). You should have received a copy of COSLi along with JellingStone. If not, please contact <EMAIL> Based on esp-idf example code, distributed as public domain an...
// Copyright 2021 Phyronnaz #pragma once #include "CoreMinimal.h" // Enable this to enable double precision in generators and voxel graphs #ifndef VOXEL_DOUBLE_PRECISION #define VOXEL_DOUBLE_PRECISION 0 #endif // Assert on non finite numbers. Used to track NaNs. #define VOXEL_ENABLE_NAN_DIAGNOSTIC 1 ...
#include <stdio.h> #include <stdlib.h> #include <string.h> void airports(char * fname){ FILE * f; char c; f = fopen(fname, "r"); c = fgetc(f); while (c != EOF){ printf("%c", c); c = fgetc(f); } fclose(f); } int main(int argc, char ** argv){ if (argc < 3){ printf...
/* Copyright (c) 2014 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. */ /* IT8380 ADC module for Chrome EC */ #include "adc.h" #include "adc_chip.h" #include "clock.h" #include "console.h" #include "common.h" #incl...
/** * \file * \brief Functions used to boot the system. * \author <NAME> * \copyright Copyright (c) 2015-2018, <NAME>. All rights reserved. * \license MIT. See LICENSE for the full license text. */ #include "boot.h" #include "console.h" #include "fs/fs.h" #include "elf.h" #include "config.h" #include "vb...
// // Copyright (c) 2006-2009 <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 c...
/* Copyright 2005-2011 - <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 and the foll...
/* nova_clk.c: NOVA real-time clock simulator Copyright (c) 1993-2008, <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 ...
/*//////////////////////////////////////////////////////////////////////// Copyright (c) 1994-2000 <NAME> Copyright (c) 1994-2000 Electrotechnical Laboratry (ETL), AIST, MITI Permission to use, copy, and distribute this material for any purpose and without fee is hereby granted, provided that the above copyright notic...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <sys/stat.h> void help(char *name) { printf("%s - BINARY to Intel HEX file convertor version 1.00\n"\ "(c)BCL <NAME> 2001 (<EMAIL>)\n\n",name); printf("Usage: %s [-option] binfile hexfile\n"\ " -l ...
/** * Copyright (c) 2016-2020, ETH Zurich, Computer Engineering Group * 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 no...
// SPDX-License-Identifier: GPL-2.0 /* * Implementation of HKDF ("HMAC-based Extract-and-Expand Key Derivation * Function"), aka RFC 5869. See also the original paper (Krawczyk 2010): * "Cryptographic Extraction and Key Derivation: The HKDF Scheme". * * This is used to derive keys from the fscrypt master keys. *...
/* * Copyright (c) 2015-2018 Nexenta Systems, inc. * * This file is part of EdgeFS Project * (see https://github.com/Nexenta/edgefs). * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informat...
/********************************************************************************* * Copyright: (C) 2021 9305 * All rights reserved. * * Filename: transfer.c * Description: The function of the file is realized by calling rc522 function * * Version: 1.0.0(04/16/2021) * ...
/* Made by <NAME> Valter *** Based on: The RiverCrossing code (Little book of Semaphores) PoloGarcia's Cigarrete-Smokers Code -->https://github.com/PoloGarcia/Classical-Semaphores/blob/master/Cigarette-Smokers/smokers.c BaboonCrossing code (Littl...
// bliss.c // 18-Jun-15 <NAME> <<EMAIL>> #include <stdlib.h> #include <string.h> #include <math.h> #include "bliss.h" #include "distribution.h" #include "ntt32.h" #include "sha3.h" #include "notrandom.h" // local utility functions // absolute maximinum of a vector int vecabsmax(const int32_t v[], int n) { int...
/* vim: set tabstop=8 shiftwidth=4 softtabstop=4 expandtab smarttab colorcolumn=80: */ /* * Copyright 2016 Red Hat, 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://...
/** * Function which counts the number of components in a graph. * * Author: <NAME> <<EMAIL>> */ #include <float.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "graph/graph.h" #include "graph/bfs.h" #include "util/array.h" #include "util/compare.h" #include "stats/stats.h" #include "stats...
/* * 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...
/* Electric UI Barebones Example project Runs electricui-embedded and exposes interfaces over uart MIT licenced. */ #include <stdio.h> #include <string.h> #include "sdkconfig.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_log.h" #include "driver/uart.h" #include "driver/gpio.h" #...
/*- * Copyright (c) 2017, <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 unmodified, th...
/* You need to label the w5500 spi cs pin as WCS in STM32CubeMX. Or change the code below to proper value. Then include network.h in main.c and call network_start(); */ #include <gpio.h> #include <spi.h> #include <network.h> #include "Ethernet/socket.h" #include "Internet/DHCP/dhcp.h" #include "ne...
/* * BSD LICENSE * * Copyright(c) 2017 Cavium, Inc.. All rights reserved. * 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 reta...
/** * @file opensles/player.c OpenSLES audio driver -- playback * * Copyright (C) 2010 <NAME> */ #include <re.h> #include <rem.h> #include <baresip.h> #include <SLES/OpenSLES.h> #include "SLES/OpenSLES_Android.h" #include "opensles.h" #define N_PLAY_QUEUE_BUFFERS 2 #define PTIME 10 struct auplay_st { auplay_w...
/*! * table_cache.c - sstable cache for lcdb * Copyright (c) 2022, <NAME> (MIT License). * https://github.com/chjj/lcdb * * Parts of this software are based on google/leveldb: * Copyright (c) 2011, The LevelDB Authors. All rights reserved. * https://github.com/google/leveldb * * See LICENSE for more inform...
/* MikMod sound library (c) 1998, 1999 <NAME> and others - see file AUTHORS for complete list. 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 yo...
/* * 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 ...
/* * Copyright (c) 2002, 2007, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
/* *++ * libgen.c - Library generation * * This module handles library file creation and * the reading of a library file's header. Serialization * and deserialization of declared names are handled in * in the nametables module. * * Section 16.6 of the LRM describes BLISS libraries, including * the types of d...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/wait.h> #include <sys/stat.h> #include <fcntl.h> #include "utilities.h" #include "support.h" #define MSGSIZE 10000 int initialize(FILE *fileName, DocumentNode *documentArray){ int maxLength = 1, curLength = 0, lineId = 0...
#include <stdio.h> #include <stdlib.h> #include "sis.h" typedef struct _similarity_t { int id; int sameas; int tag; } similarity_t; static int get_root(int id, similarity_t *similaritys); static int merge(similarity_t *similaritys, int id1, int id2); #if 0 int main(int argc, char **argv) { char buf[255]; in...
/* * This file is part of Libav. * * Libav 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 option) any later version. * * Libav is distributed in...
/* These tests are based on the NIST Statistical Reference Datasets See http://www.nist.gov/itl/div898/strd/index.html for more information. */ #include <config.h> #include <stdlib.h> #include <gsl/gsl_math.h> #include <gsl/gsl_test.h> #include <gsl/gsl_multifit.h> #include <gsl/gsl_multifit_nlin.h> #include <gs...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <malloc.h> #define VNODENUM 100 typedef struct arcnode{ int vernum; struct arcnode *next_arc; } ArcNode, *PArcNode; typedef struct vnode{ char data; struct arcnode *first_arc; } Vnode, *PVnode; typedef struct graph{ int vernum,...
#include "main-app-sl.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <glib-unix.h> static void exit_app(MainAppSL* this, char* reason) { this->exit_code = 1; g_message("Exiting: %s", reason); g_main_loop_quit(this->loop); } // No (simple) lambdas here... static gboo...
/* * Portions of this file Copyright 2008-2011 University of Nebraska-Lincoln * * This file is licensed under the * terms of the Apache Public License, found at * http://www.apache.org/licenses/LICENSE-2.0.html. */ #include <hdfs.h> #include <stdint.h> #include <openssl/md5.h> #include "globus_gridftp_server....
/* * Copyright (C) 2008 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 app...
/*- * Copyright (c) 1998 <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...
/* * Copyright (c) 2001, Swedish Institute of Computer Science. * 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 *...
/****************************************************************************** # * Alunos: <NAME>, Núm. USP: 4898948 # * Curso: Bacharelado em Ciências da Computação # * Tarefa 7 -- Calculo do diâmetro de um grafo. # * MAC0328 -- 17/04/2013 -- IME/USP, -- Prof. <NAME> # * Compilador: gcc linux 4.6.3 # * Editor: ...
/* * bsp.c * * Created on: 2019. 6. 14. * Author: <NAME> */ #include "bsp.h" #include "uart.h" #include "rtos.h" #include "led.h" static void SystemClock_Config(void); void bspInit(void) { GPIO_InitTypeDef GPIO_InitStruct; HAL_Init(); SystemClock_Config(); rtosInit(); __HAL_RCC_GPIO...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include "heap.h" //#define DEBUG #ifdef DEBUG #include "ioutils.h" #endif /* INITIALIZERS */ HeapNode * newHeapNode(int *value) { HeapNode *new_node = malloc(sizeof(HeapNode)); new_node->value = value; new_node->parent = NULL; new_n...
/* * jabberd - Jabber Open Source Server * Copyright (c) 2002 <NAME>, <NAME>, * <NAME>, <NAME> * * 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...
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/tcp.h> #include <arpa/inet.h> #include <math.h> #include "sampa.h" #include "sampa_sock.h" #include <time.h> void report(const char* msg, int terminate) { perror(msg); if ...
/************************************************************************ * LEGALESE: "Copyright (c) 2015, Dell Inc. All rights reserved." * * This source code is confidential, proprietary, and contains trade * secrets that are the sole property of Dell Inc. * Copy and/or distribution of this source code or ...
#include "graph.h" GraphNode* graphNodeInsert(GraphNode *first, int z, int state){ GraphNode *new = malloc(sizeof(GraphNode)); if (new == NULL){ fprintf(stderr, "Malloc failed. Memory full"); exit(EXIT_FAILURE); } new->z = z; new->state = state; new->neighbours = 0; new->ne...
/* * Copyright (c) 2000 * 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: (1) source code distributions * retain the above copyright notice and this paragraph in its entirety, (2)...
#include "niteprio.h" static unsigned int char2hex(unsigned char *a_data, unsigned int *a_type); static int parse_line(CheatEngine* prEngine, const char* sLine); static unsigned int char2hex(unsigned char *a_data, unsigned int *a_type) { unsigned int dword = 0; unsigned int power = 0; while (power < 8) {...
// // T146-lru-cache.c // algorithm // // Created by Ankui on 5/5/20. // Copyright © 2020 Ankui. All rights reserved. // // https://leetcode-cn.com/problems/lru-cache/ #include "T146-lru-cache.h" #include "algorithm-common.h" /** * Your LRUCache struct will be instantiated and called as such: * LRUCache* obj =...
/* SPDX-License-Identifier: MIT */ #include "utils.h" /* HID registers */ #define SYS_HID0 sys_reg(3, 0, 15, 0, 0) #define HID0_FETCH_WIDTH_DISABLE (1UL << 28) #define HID0_CACHE_FUSION_DISABLE (1UL << 36) #define HID0_SAME_PG_POWER_OPTIMIZATION (1UL << 45) #define SYS_HID1 s...
#include "commonFilesList.h" #define USER_PROFILE_ENV_VAR L"%UserProfile%" TCHAR* g_initFilesList[NUM_OF_FILES] = { L"%SystemDrive%\\temp_file_do_not_touch.docx", L"%SystemDrive%\\Python27\\temp_file_do_not_touch.txt", L"%UserProfile%\\temp_fil...
/* Copyright 2015 Google Inc. 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 Unless required by applicable law or agreed to in wri...
/** * \file nwkDataReq.c * * \brief NWK_DataReq() implementation * * Copyright (C) 2012-2014, Atmel Corporation. All rights reserved. * * \asf_license_start * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * ...
/** * BSD-2-Clause * * Copyright (c) 2020 Tristan * 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 ...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team, * check out http://www.gromacs.org for more information. * Copyright (c) 2012,2013, by the GROMACS development team, l...
/* This is the code for converting postfix expression to corresponding infix expression. The input is postfix expression(Eg: ab+). * This code gives output as the corresponding infix expression with parenthesis(a+b). This approach uses stack data structure. */ #include<stdio.h> #include<stdlib.h> #include<stdio_ext....
// Program for a number guessing game #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<string.h> #include<math.h> #include<time.h> extern int i; void welcomemessage() { // Printing welcome message printf("\n\n\n===================================\n"); printf("\n< WELCOME...
#include "common.h" #include <stdarg.h> void PrintObject(PyObject *obj, const char *format, ...) { PyObject *namestr_obj = PyObject_ASCII(obj); Py_INCREF(namestr_obj); // Now try and get the string'd version of that object puts(PyUnicode_AsUTF8(namestr_obj)); va_list ap; va_start(ap, format); vprintf(format, a...
/* $OpenBSD: vax1k_exec.c,v 1.2 2002/03/14 01:26:51 millert Exp $ */ /* $NetBSD: vax1k_exec.c,v 1.1 1998/08/21 13:25:47 ragge Exp $ */ /* * Copyright (c) 1993, 1994 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
/* 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,...
#include <stdio.h> #include <stdlib.h> /* NULL */ #include <stdarg.h> #include <string.h> #include <ctype.h> #include <errno.h> #include <limits.h> #include <assert.h> #include "escape.h" #include "str.h" #include "macros.h" typedef int digit_test(int); static int escape_char1(int c) { struct { char from, to; ...
/* This file sets configuration parameters for the MINIX kernel, FS, and MM. * It is divided up into two main sections. The first section contains * user-settable parameters. In the second section, various internal system * parameters are set based on the user-settable parameters. */ /*==========================...
/*- * Copyright (c) 2008 Isilon Inc http://www.isilon.com/ * Authors: <NAME> <<EMAIL>> * Developed with Red Inc: <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 ...
/* ============================================================================ Name : gateway-factory.c Author : <NAME> Version : Copyright : Your copyright notice Description : Hello World in C, Ansi-style ============================================================================ */ #incl...
// --------------------------------------------------------------------------- // Copyright <NAME> 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt)...
/*---------------------------------------------------------------------------- | File: | xcpSlave.c | | Description: | XCP on UDP Slave | | | Copyright (c) Vector Informatik GmbH. All rights reserved. | Licensed under the MIT license. See LICENSE file in the project root for details. | -----------------------------...
/* KallistiOS 2.0.0 nehe09.c (c)2014 <NAME> (c)2001 <NAME> (c)2000 <NAME> */ #include <kos.h> #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> #define NUM_STARS 50 /* Number Of Stars To Draw */ typedef struct { /* Create A Structure For Star */ int r, ...
/* * Copyright 2007 <NAME> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that copyright * notice and this permission notice appear in suppo...
/*D************************************************************ * Modul: GUI - BM dialog xBMtest.c * test function of BM parts * * Functions: * Callbacks: * * Copyright: yafra.org, Basel, Switzerland ************************************************************** */ /*R RCS Information: $Header: /yaf...
/* * FILE : find.c * * This program takes a MD5 hash and searches * the gutenberg library for a 19 character string * that has the same MD5 hash. * * It uses an FPGA board that is connected via * an FTDI serial link to accelerate the processing * of strings into MD5 hashes to find the match. * * AUTHOR : <NA...
/* * Amstrad E3 (Delta) keyboard port driver * * Copyright (c) 2006 <NAME> * Copyright (c) 2010 <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. * * Thanks to <NAM...
/* --COPYRIGHT--,BSD_EX * Copyright (c) 2012, Texas Instruments Incorporated * 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 c...
/* * NAppGUI Cross-platform C SDK * 2015-2022 <NAME> * MIT Licence * https://nappgui.com/en/legal/license.html * * File: oscomwin.c * */ /* Operating System native common windows */ #include "oscomwin.h" #include "osgui.inl" #include "osgui_gtk.inl" #include "oscontrol.inl" #include "cassert.h" #include "colo...
/******************************************************************************************* * Copyright (c) 2006-7 Laboratorio di Sistemi di Elaborazione e Bioingegneria Informatica * * Universita' Campus BioMedico - Italy * * ...
/* <NAME> Copyright (C) 2001 <NAME> This file is released under the terms of the MIT license. Read LICENSE.txt for more information. */ #include <stdio.h> #include <string.h> #include <allegro.h> #include "dkbk.h" #define MAX_HISCORES 10 #define MAX_CHARS_PER_NAME 23 typedef struct HISCORE { char...
/*---------------------------------------------------------------------------- * File: ooaofooa_MSG_SM_class.c * * Class: Synchronous Message (MSG_SM) * Component: ooaofooa * * your copyright statement can go here (from te_copyright.body) *--------------------------------------------------------...
#include "m_pd.h" static t_class *samplelooper_tilde_class; typedef struct _samplelooper { t_object x_obj; t_float samplestart; t_float sampleend; t_float loopstart; t_float loopend; double position; t_float pitch_ratio; t_int lfo_enabled; t_int loop_enabled; t_outlet *index_out; t_outlet *finished_out;...
/** * @file src/gen_malloc_wrappers.h * @author <NAME>(<EMAIL>) * @date January 2014 * * @brief Generating HW heaps and malloc wrappers for memluv. */ #include <time.h> #include "gen_memluv_wrappers.h" #include "memluv.h" void GenMemluvWrappers(void) { FILE* fd; int i; time_t t; t = time(NULL); fd...
#include "tor_crypto.h" #include "tor4iot.h" #include "sha1.h" #include "tinydtls.h" /* RANDOM */ int compute_random (uint8_t* target, uint8_t len) { static uint8_t random[] = { 0xe6, 0xdb, 0x68, 0x67, 0x58, 0x30, 0x30, 0xdb, 0x35, 0x94, 0xc1, 0xa4, 0x24, 0xb1, 0x5f, 0x7c, 0x72, 0x66, 0x24, 0xec, 0x26, ...
/** * Copyright (C) Mellanox Technologies Ltd. 2021. ALL RIGHTS RESERVED. * * See file LICENSE for terms. */ #include "config.h" #include "tl_ucp.h" #include "barrier.h" #include "core/ucc_progress_queue.h" #include "tl_ucp_sendrecv.h" #include "coll_patterns/recursive_knomial.h" #include "utils/ucc_math.h" enum ...
/* This is supposed to be a "real" DFU implementation, just as specified in the * USB DFU 1.0 Spec. Not overloaded like the Atmel one... * * The code was originally intended to interface with a USB device running the * "sam7dfu" firmware (see http://www.openpcd.org/) on an AT91SAM7 processor. * * (C) 2007-2008 b...
/***************************************************************************** * Product: DPP example * Last Updated for Version: 4.5.02 * Date of the Last Update: Jul 04, 2012 * * Q u a n t u m L e a P s * --------------------------- * innovating embedded s...
#include "tm4c123gh6pm.h" #include<string.h> #include<stdlib.h> #include<stdio.h> #define RED 0x02U #define BLUE 0x04U #define GREEN 0x08U #define OFF 0x00U #define MAGENTA 0x06U #define YELLOW 0x0AU #define CYAN 0x0CU #define WHITE 0x0EU void delay() { int volatile counter=0; while(counter<...
/***************************************************************************** // // Copyright (c) 2005 Broadcom Corporation // All Rights Reserved // No portions of this material may be reproduced in any form without the // written permission of: // Broadcom Corporation // 16215 <NAME> // ...
#include "types.h" #include "stat.h" #include "fcntl.h" #include "user.h" #include "x86.h" #define size 64 struct PS { int inuse; void* ptr; void* stack; }; struct PS structPtrs[size]; //int count = 0; //int start = 0; //int end = 0; static inline int fetch_and_add(int *var, int val) { //printf(1, "...
/****************************************************************************/ /** Software: GUI prototype dedicated to master-mind **/ /** Author : <NAME> (Email: <EMAIL>) **/ /****************************************************************************/ /** Handle a d...
/* ** 2017 April 07 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ***********************...