text
stringlengths
3.12k
18.7k
/* * MIT License * * Copyright (c) 2020 <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, m...
#define DEGREES_TO_RADIANS(x) ((x) / 180.0 * M_PI) #define RADIANS_TO_DEGREES(x) ((x) / M_PI * 180.0) typedef struct { GLfloat x; GLfloat y; GLfloat z; } Vertex3D; typedef Vertex3D Vector3D; static inline GLfloat Vertex3DDistanceBetweenVertices (Vertex3D vertex1, Vertex3D vertex2) { GLfloat del...
/* * 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...
/* FreeTDS - Library of routines accessing Sybase and Microsoft databases * Copyright (C) 2015 <NAME> * * 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 L...
/* * Copyright (c) 2000 <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 con...
/* The passwd scan is used to parse /etc/passwd, once parsed we can run a few basic checks (seen below). And we use this parsed information in other scans. 1. Report all users with UID 0 2. Report all users with GID 0 3. Report all users with out /nologin 3. Report all users with invalid ...
#include <inttypes.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include "cocogen/ast.h" #include "lib/array.h" #define IND " " #define IND2 IND IND #define IND3 IND IND IND #define IND4 IND IND IND IND #define IND5 IND IND IND IND IND static void print_phase(Phase *phase) { if (phase->start...
/* shttpd (c)1999,2000 <NAME> * see license.txt for copying */ /* response.c * obsluha pozadavku - generovani odpovedi */ #include "response.h" #include <stdlib.h> #include <sys/stat.h> #include <errno.h> #include <string.h> #include "logfile.h" #include "resource.h" #include "config.h" #include "mime.h" /* pos...
#include <std.h> #include <log.h> #include <clk.h> #include <gbl.h> #include <bcache.h> #include <mem.h> // MEM_alloc calls #include <que.h> // QUE functions #include <sem.h> // Semaphore functions #include <sys.h> #include <tsk.h> // TASK functions #include <math.h> #include <stdio.h> #include <stdlib.h>...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #define INIT_BUFSIZE 4096 #define INIT_COLORS 256 #define RGB_SEQ "\033[38;2;" #define SEQ_BUFSIZE 256 #define NAME_BUFSIZE 16 typedef struct Color Color; void convertFile(const FILE *file); Color extractColor(char *str); const char *ad...
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include <limits.h> #include <alloca.h> #include <stdbool.h> #include <math.h> #include "algx.h" // the implementation idea is taken (mainly) from // https://raw.githubusercontent.com/attractivechaos/plb/master/sudoku/sudoku_v1.c // full...
/* This code is part of the tng compression routines. * * Written by <NAME> * Copyright (c) 2010, 2013, The GROMACS development team. * * * This program is free software; you can redistribute it and/or * modify it under the terms of the Revised BSD License. */ #include <stdio.h> #include <stdlib.h> #include <...
/* * JS/Linux Linux starter * * Copyright (c) 2011 <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...
/* * imap/imap.c - responsible for opening and maintaining the IMAP socket */ #define _POSIX_C_SOURCE 201112LL #include <assert.h> #include <poll.h> #include <stdarg.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "absocket.h" #include "imap/imap.h" #i...
/* Target definitions for GNU compiler for Sparc running System V.4 Copyright (C) 1991, 1992 Free Software Foundation, Inc. Written by <NAME> (<EMAIL>). This file is part of GNU CC. GNU CC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> #include <errno.h> #define THREADS_COUNT 30 #define RACE 0 #define EOK 0 pthread_mutex_t mutex_trans = PTHREAD_MUTEX_INITIALIZER; pthread_cond_t cond_trans = PTHREAD_COND_INITIALIZER; typedef struct { pthread_mutex_t* mutex; pthread...
#include "serwer.h" #include "ws_types.h" #include "ws_utils.h" #include "ws_error.h" #include "ws_modes.h" #include "help.h" #include <errno.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <stdarg.h> #include <unistd.h> #include <time.h> handler_t...
/*s: linkers/5l/l.h */ #include <u.h> #include <libc.h> #include <bio.h> #include <common.out.h> #include <5.out.h> #include "../8l/elf.h" //---------------------------------------------------------------------------- // Data structures and constants //----------------------------------------------...
#include "idt.h" #include "idt_structures.h" #include "interrupts.h" #include "pic.h" #include <kernel/segmentation/gdt_structures.h> #include <kernel/assert.h> //extern directives allow us to access the addresses of our ASM ISR handlers extern void isr0(); extern void isr1(); extern void isr2(); extern void isr3(); ...
/* * MP3 quantization * * Copyright (c) 1999 <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, or (at your option) * any later version. * * This program is dis...
/* * FreeRTOS Kernel V10.4.0 * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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, ...
/************************************************************************** * * Copyright 2003 Tungsten Graphics, 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")...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <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 ...
// Copyright (C) 2015-2021 <NAME>, 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: // // (1) Redistributions of source code must retain the above copyright // notice,...
// // NSGeometry_SKExtensions.h // Skim // // Created by <NAME> on 8/22/07. /* This software is Copyright (c) 2007-2015 <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: - Redistributions...
/* Parser implementation */ /* For a description, see the comments at end of this file */ /* XXX To do: error recovery */ #include "Python.h" #include "pgenheaders.h" #include "token.h" #include "grammar.h" #include "node.h" #include "parser.h" #include "errcode.h" #include "graminit.h" #ifdef Py_DEBUG extern int...
/*================================================================ * Copyright: 2020 <NAME> * simple custom ui example The purpose of this example is to demonstrate how to use the gs_gui util to make a simple 'game-like' ui. Press `esc` to exit the application. ====================================...
#include <string.h> #include <stdlib.h> #include <stdio.h> #include "parsing_struct.h" #include "struct_utils.h" #include "nodes.h" #include "cmd.h" #include "environment.h" // Essaye de remplacer le string par un alias existant void try_change_alias(char ** str){ char * res = get_alias_value(*str); if(res != NUL...
/* * Copyright (c) 1987 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that this notice is preserved and that due credit is given * to the University of California at Berkeley. The name of the University * may not be ...
// fen.c // includes #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include "board.h" #include "colour.h" #include "fen.h" #include "option.h" #include "piece.h" #include "square.h" #include "util.h" // "constants" // const char * StartFen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w HAha - 0 1"; ...
/* * Copyright (C) 2012 The Android Open Source Project * Copyright (c) 2012-2014, NVIDIA CORPORATION. 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 * * htt...
// // Common client IPP processing for the Printer Application Framework // // Copyright © 2019-2020 by <NAME>. // Copyright © 2010-2019 by Apple Inc. // // Licensed under Apache License v2.0. See the file "LICENSE" for more // information. // // // Include necessary headers... // #include "pappl-private.h" // // ...
/* Copyright 2020 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. */ /* MPS MP4245 Buck-Boost converter driver. */ #include "common.h" #include "console.h" #include "i2c.h" #include "mp4245.h" #include "util.h" st...
/*- * Copyright (c) 2005 <NAME>. All rights reserved. * Copyright (c) 2010 <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 abov...
#pragma once #include "common.h" #include "text.h" #include "unit.h" enum { ITEM_KIND_SWORD, ITEM_KIND_LANCE, ITEM_KIND_AXE, ITEM_KIND_BOW, ITEM_KIND_STAFF, ITEM_KIND_ANIMA, ITEM_KIND_LIGHT, ITEM_KIND_ELDER, ITEM_KIND_UNK8, ITEM_KIND_UNK9, ITEM_KIND_DRAGON, ITEM_KIND_...
/********************************************************************************/ /* */ /* */ /* Written by <NAME> */ /* IBM Thomas J. Watson Research Center */ /* $Id: PP.c 1490 2019-07-26 21:13:22Z kgoldman $ */ /* */ /* Licenses and Notices */ /* ...
/* Copyright 2007, 2008 <NAME> (<EMAIL>) This file is part of Velvet. Velvet 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 ver...
/* * IPWireless 3G UMTS TDD Modem driver (USB connected) * * Copyright (C) 2004 <NAME> <<EMAIL>> * Copyright (C) 2004 <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 Fou...
/* * librdkafka - Apache Kafka C library * * Copyright (c) 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 copyr...
/**************************************************************************************** Autor: <NAME> Componente Curricular : MI - Algoritmos I Concluido em: XX/04/2016 Declaro que este código foi elaborado por mim de forma individual e não contém nenhum trecho de código de outro colega ou de outro autor, tais ...
#include "drally.h" #include "assets.h" extern byte ___1a1edch[]; extern byte ___1a1ecch[]; extern byte ___1a1ee8h[]; extern byte ___1a1ef8h[]; extern byte ___1a1ee0h[]; extern byte ___1a1eech[]; extern byte ___1a1ec0h[]; extern byte ___1a1ec8h[]; extern byte ___1a1ed0h[]; extern byte ___1a01e0h[]; extern b...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the Apache License...
/* * Copyright (c) 2020 Fuzhou Rockchip Electronic Co.,Ltd * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2020-03-04 <NAME> First version * */ #include "setting_rec_seglen.h" #define DBG_SECTION_NAME "SETSEG" #define DBG_LEVEL DBG_INFO #in...
/* ------------------------------------------------------------------ * Copyright (C) 2011 <NAME> * * 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/L...
/* SPC5 HAL - Copyright (C) 2013 STMicroelectronics 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...
#include "fc3d_AlartCurnierABGenerated.h" #include "funcodegen.h" /*@ requires (0.0 <= rn <= 1.0e+6); requires (-1.0e+6 <= rt1 <= 1.0e+6); requires (-1.0e+6 <= rt2 <= 1.0e+6); requires (-1.0e+6 <= un <= 1.0e+6); requires (-1.0e+6 <= ut1 <= 1.0e+6); requires (-1.0e+6 <= ut2 <= 1.0e+6); requires (0.0 <= mu <= 1.0); requi...
/* * Ett tre-dimensionellt rymd spel * * Copyright (c) 2016 by <NAME> * * This code is licensed under the MIT license * (https://opensource.org/licenses/MIT) */ #include "g_main.h" #include "g_ai.h" #include "gui_main.h" #include "sys_input.h" #include "sys_main.h" #include "v_main.h" List G_ships; Ship* G...
/* T P K G . C * BRL-CAD * * Copyright (c) 2006-2016 United States Government as represented by * the U.S. Army Research Laboratory. * * 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 pu...
#include <u.h> #define Point OSXPoint #define Rect OSXRect #define Cursor OSXCursor #include <Carbon/Carbon.h> #undef Rect #undef Point #undef Cursor #undef offsetof #undef nil #include <libc.h> #include <draw.h> #include <memdraw.h> #include "a.h" extern void CGFontGetGlyphsForUnichars(CGFontRef, const UniChar[], c...
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2015-2020, Renesas Electronics Corporation */ #include <string.h> #include <io.h> #include <trace.h> #include "rcar_common.h" #include "rcar_maskrom.h" #include "rcar_ta_auth.h" #include "platform_config.h" #define TA_KEY_CERT_AREA_SIZE (4096U) #define T...
#include <assert.h> #include <mrsh/shell.h> #include <stdlib.h> static bool run_variable(struct mrsh_state *state, const char *name, long *val, uint32_t *attribs) { const char *str = mrsh_env_get(state, name, attribs); if (str == NULL) { if ((state->options & MRSH_OPT_NOUNSET)) { fprintf(stderr, "%s: %s: unbo...
/** * Copyright (c) 2020 Raspberry Pi (Trading) Ltd. * * SPDX-License-Identifier: BSD-3-Clause */ #include <stdio.h> #include <math.h> #include "pico/stdlib.h" #include "hardware/pio.h" #include "hardware/gpio.h" #include "hardware/dma.h" #include "hardware/pwm.h" #include "st7789_lcd.h" #include "st7789_lcd.pio...
/* * Copyright 2019 <NAME>, <NAME>, <NAME>, * <NAME>, <NAME>, <NAME>, <NAME>, * <NAME>, <NAME>, <NAME>, <NAME>, * <NAME>, <NAME>, <NAME>, <NAME>, <NAME> * * This file is part of acados. * * The 2-Clause BSD License * * Redistribution and use in source and binary forms, with or without * modification, are per...
/****************************************************************************** * Copyright (c) 2016, Xilinx, 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: * * 1. Redistributio...
#include "bme280.h" #include "openairboard.h" #define BME280_BASE_ADDR 0x76 /* add 1 if address pin is set */ #define BME280_CALIB1_BASE 0x88 #define BME280_CALIB1_SIZE 26 #define BME280_CALIB2_BASE 0xe1 #define BME280_CALIB2_SIZE 7 #define BME280_ID_ADDR 0xd0 #define BME280_ID_VAL 0xc0 #define BME280_RESET_ADDR 0xe...
/* * Copyright (c) 2018 Mellanox Technologies, Ltd. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of th...
// File: tromino-tiling-vla.c // Created by hengxin on 17-10-29. /* * Solving the Tromino Tiling puzzle with VLAs. * See the file "1-3-tromino-tiling" for this puzzle. */ #include <stdio.h> #include <math.h> #include <stdlib.h> #include <assert.h> #define REMOVED 0 #define INIT (-1) typedef struct _cell { int...
/* The procedures in this file handle the lifespans of notes. They tell * new notes to play and kill off old ones. The Voice struct tracks an * individual note in a polyphonic performance. You can read more about it * in "voice.h". */ #include <err.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #i...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "xjson.h" static int test_ret = 0; static int test_count = 0; static int test_pass = 0; #define EXPECT_EQ_BASE(equality, expect, actual, format)\ do {\ test_count++;\ if (equality)\ test...
/**************************************************************************** * arch/arm/src/lpc17/lpc17_emc.c * * Copyright (C) 2013 <NAME>. All rights reserved. * Author: <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the ...
/* * Copyright (C) 2010-2011 <NAME> <<EMAIL>> * Copyright (C) 2011 <NAME> <<EMAIL>> * 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, includ...
/* * Copyright (c) 2003, <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 cond...
/* * This file is part of the coreboot project. * * Copyright (C) 2016 secunet Security Networks AG * * 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; version 2 of the License. * * This ...
#include "cfw.h" #include "common.h" #include "hid.h" #include "filepack.h" #include "console.h" #include "aes.h" #include "sdmmc.h" #include "fs.h" #include "ncch.h" #include "CTRDecryptor.h" #include "TitleKeyDecrypt.h" #define FIRMWARE_HASH 0x8116b730 //Encrypted 9.6 NATIVE_FIRM title #define FIRM_ADDR 0x2400000...
/** * * @file * * PLASMA is a software package provided by: * University of Tennessee, US, * University of Manchester, UK. * * @generated from /home/luszczek/workspace/plasma/bitbucket/plasma/core_blas/core_zttmqr.c, normal z -> d, Fri Sep 28 17:38:25 2018 * **/ #include <plasma_core_blas.h> #include "pla...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "nga.c" #ifndef strtok_r char* strtok_r(char *str, const char *delim, char **nextp) { char *ret; if (str == NULL) { str = *nextp; } str += strspn(str, delim); if (*str == '\0') { return NULL; } ret = str; str...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include "ngbtree3d.h" static struct NODE { float center[3],len; /* center and sidelength of treecubes */ float xmin[3],xmax[3]; long count; /* total # of particles in cell */ struct NODE ...
// Resultの見直しと、interpret_command とコマンド結果の描画の切り分けをしたバージョン #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <errno.h> // for error catch // Structure for canvas typedef struct { int width; int height; char **canvas; char pen; } Canvas; //Structure for command (each...
//.............................................................................. // // This file is part of the Jancy toolkit. // // Jancy is distributed under the MIT license. // For details see accompanying license.txt file, // the public copy of which is also available at: // http://tibbo.com/downloads/archive/...
/* * Library: libcrc * File: test/testcrc.c * Author: <NAME> * * This file is licensed under the MIT License as stated below * * License * ------- * Copyright (c) 2008-2016 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documenta...
/* # _____ ___ ____ ___ ____ # ____| | ____| | | |____| # | ___| |____ ___| ____| | \ PS2DEV Open Source Project. #----------------------------------------------------------------------- # Copyright 2001-2004, ps2dev - http://www.ps2dev.org # Licenced under Academic Free License ve...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include <string.h> #include "include/kohoen_network.h" #include "KN_settings.h" #define MAX(x, y) (((x) > (y)) ? (x) : (y)) #define MIN(x, y) (((x) < (y)) ? (x) : (y)) typedef struct out_unit out_unit; struct out_unit { float o; // output ...
#include "application.h" #include "game_types.h" #include "logger.h" #include "platform/platform.h" #include "core/kmemory.h" #include "core/event.h" #include "core/input.h" #include "core/clock.h" #include "renderer/renderer_frontend.h" typedef struct application_state { game* game_inst; b8 is_running; ...
#include <math.h> #include <mex.h> #include <pthread.h> #include "qsort.h" /* use a specialized sort routine; faster than the C library's qsort() */ /* #define _REENTRANT */ /* comparator for the specialized sort */ #define islt(a,b) ((*a)<(*b)) /* Sun Dec 10 23:07:30 CST 2006 * This is a multi...
/* * Copyright (c) 2014, STMicroelectronics International N.V. * 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, ...
/* moveWithRamp Atmel AVR446 datasheet step: Numero de pasos a movernos accel: Aceleración en rad/s2 decel: Deceleración en rad/s2 speed: Velocidad en Hz Notas ----- Algoritmo original AVR446 El prescaler está configurado en 8. El resto de la funcionalidad en 64. Para poder usar el algoritmo l...
#include <unistd.h> #include <stdio.h> #include <string.h> #define STAT_START 0 #define STAT_END 1 typedef struct { char name[256]; long long user; // Time spent in user mode. long long nice; // Time spent in user mode with low priority (nice). long long system; // Time spent in system mode. long ...
/////////////////////////////////////////////////////////////////////////////// // // IMPORTANT NOTICE // // The following open source license statement does not apply to any // entity in the Exception List published by FMSoft. // // For more information, please visit: // // https://www.fmsoft....
/* Copyright (C) 2000-2005 Silicon Graphics, Inc. All Rights Reserved. Portions Copyright (C) 2009-2011 <NAME>. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by the Free Soft...
/* * Copyright (c) 2007 Cisco Systems, Inc. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this source...
/* # Copyright 2021 Hewlett Packard Enterprise Development LP # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, m...
/* * dagd.c - DAG generation and cache management demon * * Copyright (C) 2021 Linzhi Ltd. * * This work is licensed under the terms of the MIT License. * A copy of the license can be found in the file COPYING.txt */ #include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <strin...
/* Copyright ©2004-2006 <NAME> <<EMAIL>beam at gmail dot com> * Copyright ©2006-2007 <NAME> <<EMAIL>> * See LICENSE file for license details. */ #include "dat.h" #include <assert.h> #include <math.h> #include <stdio.h> #include <string.h> #include <strings.h> #include "fns.h" static Image *divimg, *divmask; static ...
//16x11rle char leftn[] = {0x88,0x11,0x10,0x0,0x10,0x11,0x10,0x11,0x3,0x10,0x86,0x0,0x10,0x0,0x10,0x0,0x3,0x10,0x86,0x0,0x10,0x11,0x10,0x1,0x3,0x10,0x82,0x0,0x2,0x10,0x2,0x0,0x8a,0x10,0x11,0x10,0x0,0x10,0x11,0x10,0x11,0x10,0x8,0x0,0x88,0x11,0x10,0x11,0x10,0x11,0x10,0x11,0x2,0x10,0x83,0x0,0x10,0x2,0x0,0x3,0x10,0x8a,0x11...
/* * Copyright (C) 1995-1999 Microsoft Corporation. All Rights Reserved. * * File: rmerror.c * * Error reporting code for D3DRM examples. * */ #include "rmerror.h" #include <stdarg.h> /* Msg * Displays a message box containing the given formatted string. */ void __cdecl Msg( LPSTR fmt, ... ) { char bu...
#include <stdlib.h> #include <dirent.h> #include <errno.h> #include <sys/stat.h> #include <string.h> #include <stdbool.h> #include <pthread.h> #include <unistd.h> #include "error.h" #include "file_io.h" #include "interactive.h" #include "index.h" #define STARTING_INDEX_SIZE 16 typedef struct partial_indexing_data {...
#if defined(_WIN64) || defined(_WIN32) #include <windows.h> struct __POSITION { int unused; }; typedef __POSITION* POSITION; #else #define INVALID_HANDLE_VALUE -1 #define _MAX_PATH 260 #define HANDLE int #define HWND int #define HINSTANCE int #define HMENU int #define HBR...
/* * Copyright 2005-2016 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 int...
/* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * 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 ...
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b...
/***************************************************************************** * * \file * * \brief DFLL and generic clock configuration and sleep mode example. * * Copyright (c) 2009-2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source a...
// // BREventAlarm.c // BRCore // // Created by <NAME> on 5/7/18. // Copyright © 2018 Breadwinner AG. All rights reserved. // // See the LICENSE file at the project root for license information. // See the CONTRIBUTORS file at the project root for a list of contributors. // #include <string.h> #include <limits....
/* Copyright (C) 1994-2016 Lawrence Livermore National Security, LLC. LLNL-CODE-425250. All rights reserved. This file is part of Silo. For details, see silo.llnl.gov. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * R...
#include <sys/mman.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <netdb.h> #include <stdlib.h> #include <signal.h> #include <time.h> static void serve1(int socket_fd) { char buf[128]; memset(buf, 0,...
/* * Copyright (c) 2002-2008 <NAME>, <NAME> * Copyright (c) 2002-2008 Atheros Communications, Inc. * * 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 copie...
// // Copyright 2021 <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, publis...
/***************************************************************************** GIF construction tools ****************************************************************************/ #include "pch.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include "gif_lib.h" #define MAX(x, y) (...
/* * Copyright (c) 2000 <NAME> <sasha at aftercode.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 * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * Th...
/* $NetBSD: callcontext.c,v 1.25 2011/03/04 09:47:47 yamt Exp $ */ /* * Copyright (c) 2006, 2007, 2008 <NAME>. All Rights Reserved. * * Development of this software was supported by the * Research Foundation of Helsinki University of Technology * * Redistribution and use in source and binary forms, with or with...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Show how to use the timer2 capture function to capture timer2 counter value. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved. ...