text
stringlengths
3.08k
10.5k
#include <mruby.h> #include <mruby/irep.h> #include <mruby/dump.h> #include <mruby/array.h> #include <mruby/class.h> #include <mruby/string.h> #include <mruby/proc.h> #include <mruby/compile.h> #include <mruby/variable.h> #include <stdlib.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <fcntl.h...
/* This software is being provided to you, the LICENSEE, by the Massachusetts Institute of Technology (M.I.T.) under the following license. By obtaining, using and/or copying this software, you agree that you have read, understood, and will comply with these terms and conditions: Permission to use, copy, modify and ...
/** \file request.h \author <NAME> \version 1.0 \date 13 Decembre 2015 \brief Interface de traitement des requetes et reponses HTTP. Fichier d'interface entre la bibliothèque et votre programme. Votre programme doit inclure ce fichier d'entete #include <request.h> La compilation doit inclure l'opti...
/* Copyright Statement: * * (C) 2005-2017 MediaTek Inc. All rights reserved. * * This 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") and/or its licens...
#include <_syslist.h> #include <errno.h> #include <stddef.h> #include <stdint.h> #include <stdlib.h> #include <string.h> extern int main(int argc, char *argv[]); extern void (*__init_array_start[])(void); extern void (*__init_array_end[])(void); static void HandlerC(unsigned long *hardfault_args); static int SYS_OPEN...
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com #include "stdint.h" #include "lib.h" #include "keyboard.h" #include "naiveConsole.h" #include "screen.h" #include "schedule.h" //entre codes de pressed y rele...
/* 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,...
/* * Classifies a poker hand */ #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <ctype.h> #include <time.h> #define NUM_CARDS 5 #define NUM_RANKS 13 #define NUM_SUITS 4 static bool straight, flush, royal, four, three; static int pairs; /* Generate random hand. * hand[0][0] - rank of the f...
/* Copyright 2015 <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/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
/* * 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 ...
/* * tracking.c * gunavigation * * Created by <NAME> on 12/10/2020. * Copyright © 2020 <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 mu...
#include <lcom/lcf.h> #include <minix/sysutil.h> #include <lcom/lab3.h> #include <stdbool.h> #include "i8254.h" #include <stdint.h> #include "i8042.h" #include "keyboard.h" //#include <timer.c> /* #define IRQ_KB 1 #define DELAY_US 20000 #define EXIT_CODE 0x81 #define I_O_BUFFER 0x60 */ uint32_t cnt=0; uint32_t sc...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "speedbee.h" /* * sample 8 シリアライズカーソル検索 */ // [カラム定義1] // カラムタイプ Hi // サンプリングレート 10kHz // メモリ保存 2000 件 #define COL_PAR1 "COL_TYPE=H;DATA_SIZE=4;SMPL_RATE=10000;SAVE_COUNT=2000" #define COL_NAME1 "ch1" // カラム名称 // [カラム定義2] /...
/* $OpenBSD: bt_subr.c,v 1.9 2003/06/02 23:27:53 millert Exp $ */ /* $NetBSD: bt_subr.c,v 1.5 1996/03/14 19:44:32 christos Exp $ */ /* * Copyright (c) 1993 * The Regents of the University of California. All rights reserved. * * This software was developed by the Computer Systems Engineering group * at Lawrence B...
/* Copyright (c) 2018, <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 followi...
/* Copyright (c) 2010, Dust Networks. All rights reserved. */ /******************************************************************** Includes ********************************************************************/ #include "dnm_rate_ctrl.h" #include "dnm_local.h" #include "dnm_ucli.h" /*****************************...
#define R_NO_REMAP #include <R.h> #include <Rinternals.h> #include "wk-v1.h" #include <stdlib.h> #include <memory.h> typedef struct { SEXP result; R_xlen_t result_size; R_xlen_t feat_id; int n_geom; int n_ring; R_xlen_t n_coord; } count_handler_t; SEXP count_handler_alloc_result(R_xlen_t size...
#include "arrow/state.h" #include <time/time.h> #include <http/client.h> #include <json/json.h> #include <sys/mem.h> #include <http/routine.h> #include <arrow/events.h> #include <debug.h> #include <data/chunk.h> static JsonNode *state_tree = NULL; static char *_device_hid = NULL; int state_handler(char *str) __attrib...
typedef enum { /* --------- List of flags --------- */ OFF = 0, /* General-purpose flags for on/off */ ON = 1, /* */ ERROR = 2, /* Non-recoverable error */ WARNING = 3 /* Not too seri...
/* This module takes an input an masked fasta file of reads and an length * threshold. If the unmasked region of a read is below that length threshold * then throw the read away. Another input is the quality file for the same set * of reads. The output is the quality scores of the unmaksed bases in the same * order...
/* Copyright (c) 2011, 2012, <NAME> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIE...
#include <sys/mman.h> #include <sys/ioctl.h> #include <linux/fb.h> #include <fcntl.h> #include <errno.h> #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <stdint.h> #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" static int screenX, screenY, bitsPerPixel, pitch; static uint32_t ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* cb_keyboard.c :+: :+: :+: ...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <hurd.h> #include <hurd/trivfs.h> #include "logging.h" #include "ports.h" #include "proto.h" #include "timer.h" #include <fcntl.h> mach_port_t ip_port; /* TrivFS symbols */ int trivfs_fstype = FSTYPE_MISC; int trivfs_fsid = 0; int tr...
/* * Copyright 2020 RISE Research Institutes of Sweden * * 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 appli...
/* * Copyright (C) <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, publish...
/* Copyright 2017  Regents of the University of California 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 follo...
#include "stm32f0xx_it.h" #include "config_periph.h" #include "capture_configure.h" #include "math.h" #include "analyse.h" #include "stdlib.h" #ifndef M_PI #define M_PI 3.1415926535f #endif extern float APD_temperature;//temperature value in deg #define OMEGA ((2.0 * M_PI * K_COEF) / POINTS_TO_SAMPLE)...
/****************************************************************************** * @file main.c * @version V1.00 * $Revision: 4 $ * $Date: 16/10/17 3:04p $ * @brief * Implement a code and execute in SRAM to program embedded Flash. * (Support KEIL MDK Only) * @note * Copyright (C) 2016 N...
// Copyright 2013 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 appl...
#include <micro/binfmt.h> #include <micro/elf.h> #include <arch/mmu.h> #include <micro/task.h> #include <micro/stdlib.h> #include <arch/cpu_func.h> #include <micro/thread.h> #include <micro/vfs.h> #include <micro/errno.h> #define PUSH_STR(stack, x) { stack -= strlen(x) + 1; strcpy((char*)stack, x); } #define PUSH(stac...
#include <time.h> #include <stdio.h> #include <sys/time.h> #include "geohash.h" uint64_t get_current_epoch_millis() { struct timeval timeValue; gettimeofday(&timeValue, NULL); uint64_t ret = ((uint64_t) timeValue.tv_sec) * 1000; ret += ((timeValue.tv_usec) / 1000); return ret; } int test_1() { ...
/* $XFree86$ */ /* * Copyright 2002 Red Hat Inc., Durham, North Carolina. * * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * w...
/*- * Copyright (c) 1992, 1993, 1994 * The Regents of the University of California. All rights reserved. * Copyright (c) 1992, 1993, 1994, 1995, 1996 * <NAME>. All rights reserved. * * See the LICENSE file for redistribution information. */ #include "config.h" #ifndef lint static const char sccsid[] = "@(#)d...
/* SPDX-License-Identifier: BSD-3-Clause */ #include <stdbool.h> #include "log.h" #include "object.h" #include "tpm2_alg_util.h" #include "tpm2_options.h" typedef struct tpm2_startauthsession_ctx tpm2_startauthsession_ctx; struct tpm2_startauthsession_ctx { struct { TPM2_SE type; TPMI_ALG_HASH ha...
#include "eam_at.h" #include <math.h> #include "ddcMalloc.h" #include "utilities.h" #include "species.h" #include "units.h" #include "mpiUtils.h" /** Input parameters must be given in this order: * * A alpha B b0 c c0 c1 c2 d * * i.e., * Ta = 2.591061 1.05 91.0 2.8629 4.20 1.2157373 0.0271471 -0.1217350 4.0769...
/* * 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...
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2015-2018 <NAME> <<EMAIL>>. All Rights Reserved. * * This is a specialized constant-time base64/hex implementation that resists side-channel attacks. */ #include <string.h> #include "encoding.h" static inline void encode_base64(char dest[static 4], const uint...
#include "../inc/OutputConsole.h" #include "../inc/SHG_runner.h" #include "../../FreeRTOS-CMSIS/FreeRTOS.h" #include "../../FreeRTOS-CMSIS/task.h" #include "../..//FreeRTOS-CMSIS/main.h" #include "../../FreeRTOS-CMSIS/cmsis_os.h" #include <stm32f4xx_hal.h> #include <defines.h> #include <tm_stm32_disco.h> #include <tm_s...
/* Kafel - test harness ----------------------------------------- Copyright 2017 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....
/* This file is tc-alpha.h Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 2005, 2006 Free Software Foundation, Inc. Written by <NAME> <<EMAIL>>. This file is part of GAS, the GNU Assembler. GAS is free software; you can redistribute it and/or modify it under the terms of the...
/* * Machine driver for EVAL-ADAU1x61MINIZ on Analog Devices bfin * evaluation boards. * * Copyright 2011-2014 Analog Devices Inc. * Author: <NAME> <<EMAIL>> * * Licensed under the GPL-2 or later. */ #include <linux/module.h> #include <linux/device.h> #include <linux/slab.h> #include <sound/core.h> #include <s...
#include <stdio.h> #include <stdlib.h> #include <glib.h> #include <string.h> #include <stdarg.h> #include <pthread.h> #include <sys/types.h> #include <unistd.h> #include <sys/syscall.h> #include <stdint.h> #include <sys/time.h> /******************************************************************************* ** ...
#include "f2c.h" #include "blaswrap.h" /* Table of constant values */ static integer c__1 = 1; /* Subroutine */ int stpt01_(char *uplo, char *diag, integer *n, real *ap, real *ainvp, real *rcond, real *work, real *resid) { /* System generated locals */ integer i__1, i__2; /* Local variables */ int...
/* $OpenBSD: adm1030.c,v 1.9 2008/05/01 23:02:05 deraadt Exp $ */ /* * Copyright (c) 2005 <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. *...
#include <kernel/memory.h> #include <kernel/atag.h> #include <common/stdio.h> #include <common/string.h> extern uint8_t __end; static uint32_t pages; IMPLEMENT_LIST(page); struct page *all_pages; struct page_list free_pages; static struct heap_segment *heap_segment_list_head; /** * Initialise the heap of size KE...
#include <stdio.h> #include <stdlib.h> #include <math.h> typedef struct { int m, n; double ** v; } mat_t, *mat; mat matrix_new(int m, int n) { mat x = malloc(sizeof(mat_t)); x->v = malloc(sizeof(double*) * m); x->v[0] = calloc(sizeof(double), m * n); for (int i = 0; i < m; i++) x->v[i] = x->v[0] + n * i; x->...
// SPDX-License-Identifier: GPL-2.0+ /* * EFI block driver * * Copyright (c) 2017 <NAME> * * The EFI uclass creates a handle for this driver and installs the * driver binding protocol on it. * * The EFI block driver binds to controllers implementing the block io * protocol. * * When the bind function of th...
/** @file pa_minlat.c @ingroup test_src @brief Experiment with different numbers of buffers to determine the minimum latency for a computer. @author <NAME> http://www.softsynth.com */ /* * $Id$ * * This program uses the PortAudio Portable Audio Library. * For more information see: http://www.portau...
/* Copyright (C) 2016-2017 churuxu * https://github.com/churuxu/xfoundation * * 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...
/* * Utilities for reading HP-UX 5.0 filesystems * Version 1 * * This program may be freely redistributed, * but this entire comment MUST remain intact. * * Copyright (c) 2000, <NAME> */ /* * Dump header and superblock information for an IPC filesystem. */ static char *ipc_dump_revision = "$Id: ipc_dum...
#include <stdio.h> #include <sys/types.h> #include <ctype.h> #include <sys/wait.h> #include <unistd.h> #include <sys/socket.h> #include <string.h> #include <netinet/in.h> #include <stdlib.h> #include <errno.h> #define SERVER_STRING "Server: jdbhttpd/0.1.0\r\n" void son_process(int); void unimplemented(int); int read_...
#include <stdio.h> #include <stdbool.h> #include <math.h> #include "FuzzyFault.h" /* Calculates Phi given a point x,y. */ void EvalPhi(double loc[], double* phi) { phi[0] = loc[1] - 10.0; /* y - 10 */ } /* Checks if the location is within the fault */ void PointInFaut(double distLoc, double delta, bool *InFault) ...
/* Copyright 2008, UCAR/Unidata See COPYRIGHT file for copying and redistribution conditions. This program tests a large file bug on 32-bit platforms in versions previous to netCDF-4.1.2, writing to a record variable with more than 2 dimensions and more than 2**32 values per record, where the write starts ...
#include <stdio.h> #include <math.h> #include <esp32/rom/ets_sys.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "driver/gpio.h" #include "driver/ledc.h" #include "driver/periph_ctrl.h" #include "esp_log.h" #define data_LED GPIO_NUM_17 //uint8_t data = 0b0001; /* data example for ht1613 0b0...
// la structure de donnees Lexeme typedef struct Lexeme { int taille; int type; /* -2 chaine de caractere -1 Value 0 Nombre 1 Operation 3 Mot clées 4 ( 5 ) 6 [ 7 ] 8 == 9 != 10 < ...
/* * Copyright (c) 2016, Freescale Semiconductor, Inc. * Copyright 2016-2017 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "fsl_device_registers.h" #include "fsl_debug_console.h" #include "fsl_ecspi.h" #include "pin_mux.h" #include "clock_config.h" #include "board.h" /********...
/* * Copyright (c) 2014 DeNA Co., 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, including without limitation the * rights to use, copy, modify, merge, publ...
/* * Copyright 2014, 2017, <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, ...
//----------------------------------------------------------------------------- // Common.c // Routines which are common to running frozen executables. //----------------------------------------------------------------------------- #include <compile.h> #include <eval.h> #include <osdefs.h> // define format for sys....
/////////////////////////////////////////////////////////////////////////////// // /// \file lzma_encoder_optimum_fast.c // // Author: <NAME> // // This file has been put into the public domain. // You can do whatever you want with this file. // /////////////////////////////////////////////////////////////...
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ /* Includes ------------------------------------------------------------------*/ #include "main.h" #include "stm32l0xx_hal.h" #include <aos/aos.h> #include <k_api.h> #include <aos/kernel.h> /* rhino task definition */ #define DEMO_TASK_STACKS...
/* $OpenBSD: ds1631.c,v 1.11 2009/08/12 17:13:30 kettenis Exp $ */ /* * Copyright (c) 2005 <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. ...
/* * auxiliary_lib.c * * * Created by <NAME> on 13/11/12. * Copyright 2012 Universitat de les Illes Balears. All rights reserved. * * 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, ei...
// SPDX-License-Identifier: GPL-2.0 /* * Resctrl tests * * Copyright (C) 2018 Intel Corporation * * Authors: * <NAME> <<EMAIL>>, * <NAME> <<EMAIL>> */ #include "resctrl.h" #define BENCHMARK_ARGS 64 #define BENCHMARK_ARG_SIZE 64 bool is_amd; void detect_amd(void) { FILE *inf = fopen("/proc/cpuinfo", "...
#include "raycast.h" #include "vec.h" #include <stddef.h> bool raycast(Ray* ray, Sphere* sphere, RayHit* hit){ // intersection test between sphere and ray // hit's value is updated to contain useful data // https://www.youtube.com/watch?v=HFPlKQGChpE vec3f ro = ray->origin; vec3f rd = ray->direct...
#include <u.h> #include <libc.h> #include <lua.h> #include <lauxlib.h> #include "../base/common.c" /* * The following global state designates the Lua state * responsible for registering and running note handler * functions -- the one (and only) loading this module. * Additionally the note itself is communicated ...
/***************************************************************************** * Copyright © 2019-2020 <NAME> <<EMAIL>> * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this softw...
/* RNC2 source <NAME>, 2011 Adapted from copywritten Intel Assembler Source Not for commercial use */ #include "driver2.h" #include "STRINGS.H" struct RNCheader { u_int identifier; //must contain 'R', 'N', 'C', method u_int unpackSize; //unpacked data size u_int packSize; //p...
/* bobsymbol.c - 'Symbol' handler */ /* Copyright (c) 2001, by <NAME> All rights reserved */ #include <string.h> #include "bob.h" /* property handlers */ static BobValue BIF_printName(BobInterpreter *c,BobValue obj); /* Vector methods */ static BobCMethod methods[] = { BobMethodEntry( 0, ...
// SPDX-License-Identifier: GPL-2.0+ /* * Amazon Kindle Fire (first generation) codename kc1 config * * Copyright (C) 2016 <NAME> <<EMAIL>> */ #include <config.h> #include <common.h> #include <linux/ctype.h> #include <linux/usb/musb.h> #include <asm/omap_musb.h> #include <asm/arch/sys_proto.h> #include <asm/arch/m...
/* * solutions_to_assgn/ch15/bankacc.c *************************************************************** * This program is part of the source code released for the book * "Hands-on System Programming with Linux" * (c) Author: <NAME> * Publisher: Packt * * From: Ch 15 : Multithreading Part II - Synchronizatio...
/* * drv_X11.c - A simple X11 graphics driver for SPD. * <NAME> (<EMAIL>), 3/8/97 * * This driver requires an 8-bit PseudoColor Visual and has no * support for redrawing caused by exposure events. * * drv_x11.c is written using Xlib calls based on the X11R6 distribution. A * ...
#include <stdio.h> #include <string.h> #include <errno.h> #define ERRNO_EQ(ERR) \ do { \ if (0 == strcmp(err, #ERR)) { \ return ERR; \ } \ } while (0) int assert_errno_eq(const char* er...
#include "Incluir_Carta.c" #include "../estruturas/Pilha.c" int inserirNosEspacos(Carta carta, DEQUE **espacos, Fila **ptrFila){ if (carta.carta == 99) return 0; int opcao; do{ printf("\nOpcoes\n1. Inserir no espaco E1\n2. Inserir no espaco E2\n3. Inserir no espaco E3\n4. Inserir no espaco E4\nDigite uma opcao...
/*************************************************************************** tms9914/read.c ------------------- begin : Dec 2001 copyright : (C) 2001, 2002 by <NAME> email : <EMAIL> ************************...
/* $NetBSD: rbus_machdep.c,v 1.7.2.1 2000/10/20 17:29:13 tv Exp $ */ /* * Copyright (c) 1999 * <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 c...
/* FMP Tools - A library for reading FileMaker Pro databases * Copyright (c) 2020 <NAME> (except where otherwise noted) * * 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 restrict...
#include <stdio.h> #include <stdlib.h> #define MAX_PROCESSES 5 #define MIN 9999 typedef struct { int name; // name of process int at; // arrival time int burst; // burst time int wait; // wait time int TAT; // turn around time int remaining; // remaining time } process; process p[MAX_PROCESSES]; // shortest ...
#include <pcap.h> #include "hacking.h" #include "hacking-network.h" void pcap_fatal(const char *, const char *); void decode_ethernet(const u_char *); void decode_ip(const u_char *); u_int decode_tcp(const u_char *); void caught_packet(u_char *, const struct pcap_pkthdr *, const u_char *); int main() { struct pcap_...
/* * $Id: libnet-example-1.c,v 1.1.1.1 2000/05/25 00:28:49 route Exp $ * * libnet example code * example 1: raw socket api / TCP packet * * Copyright (c) 1998 - 2001 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitt...
#include <win/platform.h> #include <internal.h> #include <utils.h> #include <mimas/mimas.h> #include <stdlib.h> #include <string.h> #include <shlobj_core.h> #include <shlwapi.h> #include <shobjidl.h> #include <combaseapi.h> static IShellItem* create_shell_item_from_path(Mimas_String_View path) { mimas_i64 path...
/*---------------------------------------------------------------------------- * RL-ARM - RTX *---------------------------------------------------------------------------- * Name: RT_EVENT.C * Purpose: Implements waits and wake-ups for event flags * Rev.: V4.60 *-------------------------...
/**** Direct Sound ****/ #include "main.h" extern const unsigned int mysize; extern const signed char mystuffa[]; extern const signed char mario[]; extern const unsigned int marioSize; extern const char g_ucFont[]; u32 key_curr = 0; u32 key_prev = 0; char HELP[] = {"PRESS KEY L/R TO START/STOP"}; // stops playing...
/* eXosip - This is the eXtended osip library. Copyright (C) 2001-2015 <NAME> <EMAIL> eXosip 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 ...
#include "vnmodrabin_bn.h" #include "vnmodrabin_gc.h" #include "vnmodrabin_lip.h" #include "vnrabinenc_bn.h" #include "vnrabinenc_gmp.h" #include "vnasymcrypt.h" #include "testcomm.h" #include <gcrypt.h> void TestSign( VNTestArgs_t * args ) { int ret = 0; struct vn_iovec pubKey, privKey; struct vn_iovec srcPl...
/****************************************************************************** * Copyright (c) 2018 - 2021 Xilinx, Inc. All rights reserved. * SPDX-License-Identifier: MIT ******************************************************************************/ #include "pm_client.h" #include <xil_cache.h> #include "xpm_node...
#include <io.h> #include <stdio.h> #include <stdlib.h> #define WIN32_LEAN_AND_MEAN #include <windows.h> #include "ebmusv2.h" #include "id.h" FILE *rom; int rom_size; int rom_offset; char *rom_filename; unsigned char pack_used[NUM_SONGS][3]; unsigned short song_address[NUM_SONGS]; struct pack rom_packs[NUM_PACKS]; str...
/*- * Copyright (c) 2011 NetApp, Inc. * Copyright (c) 2015 xhyve developers * 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 copy...
#include <stdio.h> #include <string.h> #include <sys/stat.h> #include <fcntl.h> #include <assert.h> #include <unistd.h> /*#define REALLY_VERBOSE*/ #include "registers.h" #include "clowndev.h" int firstcode = -1; int link_overhead = 0;/* not really needed */ int listing = 0;/* not really needed */ Clof_Type module_type...
// This code is from: https://github.com/3v1n0/indicators-examples-snaps/blob/master/gtk3-appindicator/simple-client.c // The original license is as follows: /* A small piece of sample code demonstrating a very simple application with an indicator. Copyright 2009 Canonical Ltd. Authors: <NAME> <<EMAIL>> This progr...
/* * wpa_supplicant - EAPOL fuzzer * Copyright (c) 2015-2019, <NAME> <<EMAIL>> * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #include "utils/eloop.h" #include "eapol_supp/eapol_supp_sm.h" #include ...
#include "altrep-int64-util.h" #include "altrep-int64-api.h" #include "utils.h" #include "int64.h" // -------------------------------------------------------------- /* * Construct a new int64 altrep object. * * `data1` is used to hold the RAWSXP. It is never materialized. The use of * ALTREP here is mainly for th...
#include <stdio.h> #include <string.h> #include <stdlib.h> static int is_hex_digit(const char c) { if ((c >= '0') && (c <= '9')) return 1; if ((c >= 'A') && (c <= 'F')) return 1; if ((c >= 'a') && (c <= 'f')) return 1; return 0; } static char *is_ull_postfix(const char *str) { /* * Check the ULL postfix....
/* * The Python Imaging Library. * $Id: FliDecode.c 2134 2004-10-06 08:55:20Z fredrik $ * * decoder for Autodesk Animator FLI/FLC animations * * history: * 97-01-03 fl Created * 97-01-17 fl Added SS2 support (FLC) * * Copyright (c) <NAME> 1997. * Copyright (c) Secret Labs AB 1997. * * See the README file f...
/* list.c * * A basic doubly linked list implementation. */ #include "stdio.h" #include "stdlib.h" #include "list.h" ListNode* listnode_new(void* item){ ListNode* n = malloc(sizeof(ListNode)); n->prev = NULL; n->next = NULL; n->data = item; return n; } List* List_new(){ List* this = (List...
/* Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/). All Rights Reserved. This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */ #include <stdio.h> #include "sha1.h" #include <limits.h> /* to get...
/* * This software is Copyright (c) 2010 bartavelle, <bartavelle at bandecon.com>, and it is hereby released to the general public under the following terms: * Redistribution and use in source and binary forms, with or without modification, are permitted. */ #if AC_BUILT #include "autoconfig.h" #endif #include <std...
#define thisprog "xe-timeconv1" #define TITLE_STRING thisprog" v 2: 21.May.2016 [JRH]" #define MAXLINELEN 1000 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> /* <TAGS>string</TAGS> v 2: 21.May.2016 [JRH] - switch to new long-int version of strstr1 v 2: 1.December.2014 [JRH] - add co...
#ifndef HAVE_KDBCONFIG #include "kdbconfig.h" #endif #include "base64_functions.h" #include <kdb.h> #include <kdbassert.h> #include <kdberrors.h> #include <stdlib.h> #include <string.h> static const char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; #define ALPHABET_LENGTH (sizeof (a...