text
stringlengths
3.12k
18.7k
// get H264 file from a video #include <stdio.h> #include <libavutil/log.h> #include <libavformat/avio.h> #include <libavformat/avformat.h> #ifndef AV_WB32 # define AV_WB32(p, val) do { \ uint32_t d = (val); \ ((uint8_t*)(p))[3] = (d); \ ((uin...
/* * 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...
/*------------------------------------------------------------------------------ * str2str.c : console version of stream server * * Copyright (C) 2007-2011 by T.TAKASU, All rights reserved. * * version : $Revision: 1.1 $ $Date: 2008/07/17 21:54:53 $ * history : 2009/06/17 1.0 new * 2011/05/29...
#include <graphics.h> #include <stdlib.h> /* GGI doesn't use driver files, so we can co-opt the third parameter * to initgraph as a pointer to a valid VESA Mode Info Block * as described on pages 30-31 (5) - see graphics.h for resources * referenced in parentheses */ #ifdef NULL #ifdef MMURTL #undef NULL #define ...
/* * IV uniqueness detection method. * * Copyright (C) 2004-2008 <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 License, or * (at your option) an...
/**************************************************************************** Irem M57 hardware ****************************************************************************/ #include "driver.h" #include "m57.h" UINT8 *m57_scroll; static int flipscreen; static tilemap *bg_tilemap; /**************************...
/////////////////////////////////////////////////////////////// // // STDIO_FS // // STDIO Device Driver using host\FILESERVER over TCP/IP to // implement the file actions (fopen(), fread(), etc). // /////////////////////////////////////////////////////////////// #include <device.h> #include <ccblkfn.h> #ifdef __ADS...
/* * Copyright © 2011 Intel Corporation * * 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, pub...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define TMPEDIT "/tmp/dhex.hex" #define TMPEDITSPACE " /tmp/dhex.hex" #define byte unsigned char #define bool unsigned char #define false 0 #define true !false bool newfile = false; bool seperateout = false; bool verbose = false; bool space = false; const c...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Mupen64plus - audio_backend_compat.c * * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * * Copyright (C) 2014 <NAME> * * ...
/* CM_HB_MX, ScanMatrix_t, and GammaHitMx_t implementations: * dynamic programming matrices for CMs * * CM_HB_MX is based heavily on HMMER 3's p7_gmx.c module. * * Table of contents: * 1. CM_HB_MX data structure functions, * matrix of float scores for HMM banded CM alignment/search * 2. CM_HB_SHADOW_...
/* * Copyright (c) 1997-1999, 2003 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 Software Foundation; either version 2 of the License, or * (at your option) any ...
/* The MIT License (MIT) Copyright (c) 2013-16 <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, pub...
#include "cap1114.h" uint8_t slider_counts = 0; //Number of different sliders. float ** slider_targets; float * slider_mins; float * slider_maxs; void (**slider_callbacks)(float f); uint8_t * target_leds = NULL; //List of leds that indicates wich value is targeted by the slider. uint8_t * slider_leds = ...
/* * * Copyright (c) 2007-2011, <NAME> * Copyright (c) 2012, <NAME> * Copyright (c) 2021, <NAME> * * This source code is released for free distribution under the terms of the * GNU General Public License version 2 or (at your option) any later version. * * This module contains functions for generating t...
/* Unix SMB/CIFS implementation. Common popt routines Copyright (C) <NAME> 2001,2002 Copyright (C) <NAME> 2002,2003,2005 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 ...
/* * GRUB -- GRand Unified Bootloader * Copyright (C) 2003,2007,2010,2011,2019 Free Software Foundation, Inc. * * GRUB 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 3 of the Lice...
// -*- encoding: utf8 -*- // // Copyright (c) 2021 ESET spol. s r.o. // Author: <NAME> <<EMAIL>> // See LICENSE file for redistribution. #include <winsock2.h> #include <windows.h> #include <stdlib.h> #include <stdio.h> #include <openssl/ssl.h> #include <openssl/rsa.h> #include <openssl/evp.h> #include <openssl/bio.h...
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Copyright (c) 2008-2016 <NAME>. All rights reserved. │ │...
#include <stdio.h> #include <ctype.h> #include <string.h> #include <malloc.h> #include <math.h> /* for HUGE_VAL */ #include <assert.h> #include "pom.h" enum {BUFFER_SIZE = 16384}; char *chomp(char *p) { char *q; /* find start of string */ while (isspace(*p)) p++; /* for (; isspace (*p); p++); or whi...
/* * Learn To Solder 2019 board software * * Written by <NAME> of Schmalz Haus LLC * <EMAIL> * * Copyright 2019 * All of this code is in the public domain * * Versions: * */ #include "mcc_generated_files/mcc.h" // Button debounce time in milliseconds #define BUTTON_DEBOUNCE_MS 20 // Number of millis...
/* * This file is part of the coreboot project. * * Copyright (C) 2017 Advanced Micro Devices, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This ...
/* mbed Microcontroller Library * Copyright (c) 2017-2018 ARM Limited * * 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 re...
/* * Copyright 2019-2020 OARC, Inc. * Copyright 2017-2018 <NAME> * Copyright 2006-2016 Nominum, 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 * * h...
/* * Copyright (c) 2012-2013 Etnaviv Project * * 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> #include <string.h> #include <math.h> #include <omp.h> #include "common.h" extern int opt_alt; extern int opt_balt; extern int opt_calt; typedef struct { size_t i; img_t img; float* h,* s,* v; float* err; } tddata_t; #define COLOR_THRESH 2.f #define CLAMP(X, MIN...
/* Copyright 2020 The MathWorks, Inc. * * File : sfun_user_various_hybrid_add.c * * Abstract: * User S-function example * Using a core algorithm shared * by simulation and by C code generation * that dynamically dispatches to different numeric type situations * * This s-function...
#include <CNFG3D.h> #include <unistd.h> #include <os_generic.h> #include <string.h> #include <math.h> #include <spreadgine_vr.h> #include <spreadgine_util.h> #include <spreadgine_remote.h> #include <stdarg.h> #include "modules/textboxes.h" #include "modules/ttyinput.h" TextBox * tbfocus; void HandleKeypress( int ch, ...
#include "cache.h" #include "string-list.h" #include "mailmap.h" #define DEBUG_MAILMAP 0 #if DEBUG_MAILMAP #define debug_mm(...) fprintf(stderr, __VA_ARGS__) #else static inline void debug_mm(const char *format, ...) {} #endif const char *git_mailmap_file; struct mailmap_info { char *name; char *email; }; struct ...
#include "MPKMC.h" int KMCUniteIndexes(int ncluster, int ids0[], int ids1[], int ids2[]) { int i, j; int count = ncluster; for (i = 0; i < ncluster; i++) { ids2[i] = ids0[i]; } count = i; for (j = 0; j < ncluster; j++) { for (i = 0; i < ncluster; i++) { if (ids1[j] == ids0[i]) break; } if (i == ncl...
// SPDX-License-Identifier: (MIT) /* * Copyright (c) 2020 Institute for Control Engineering of Machine Tools and Manufacturing Units, University of Stuttgart * Author: <NAME> <<EMAIL>> */ /* * This uses the simulated axis and interfaces it with the shared memory directly. * To test the simulation of the axis dir...
/* The MIT License (MIT) Copyright (c) 2015 <NAME>, Evotion SAS 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, ...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <inttypes.h> #include <rtthread.h> #include <player.h> #include <player_system.h> #include <audio_stream.h> #include <audio_device.h> #include <audio_codec.h> #include "format_m4a.h" #include "lib_aac_decode/aac_decoder_api.h" #de...
/** * ezd - eazy daemon - makes your life as a daemon conceiver easy. * * Provides the most basic tools for daemonizing a program, such as: * - configuration file parsing and reading (name=value.. pairs) * - pidfile handling with locking * - daemon()ization with wait-for-child-to-fully-start support to * ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "mod_file.h" // copy src to dest replacing non-printable characters and backslashes with spaces static void sanitize_string(char *dest, size_t dest_size, const char *src) { if (dest_size == 0) return; char *d = dest; for (size_t i = 0; i+1 ...
/* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that re...
#include <fcntl.h> #include <stdbool.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/un.h> #include <sys/wait.h> #include <unistd.h> // these definitions are Linux only at the moment #ifndef CMSG_LEN socklen_t CMSG_LEN(size_t len) { return (CMSG...
#include "../kprintf.h" #include "../typedefs.h" #include <stdbool.h> #include "../string/string.h" #include "../kmalloc.h" #include "../stivale2.h" #include "vmm.h" #include "pmm.h" #include "../drivers/video.h" #include "../config.h" #include "../cpu/cpu.h" #define PAGING_KERNEL_OFFSET 0xffffffff80000000 #de...
/* * Copyright (c) 2015-2019 Contributors as noted in the AUTHORS file * * This file is part of Solo5, a sandboxed execution environment. * * 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 th...
#include <stdint.h> #include <float.h> #include <stdio.h> #include "intrinsic.h" #include "velintrin.h" #define VLEN (256) #define NCHW_IDX(n,c,h,w,cl,hl,wl) ((((n)*(cl)+(c))*(hl)+(h))*(wl)+(w)) int BiasAddGrad_NHWC(uint64_t output, uint64_t output_backprop, int batch, int width, int height, int channel) { flo...
#include "globals.h" #include "sys/debug.h" #include <dirent.h> #include <errno.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/mount.h> #include <sys/signal.h> #include <sys/stat.h> #include <sys/syscalls.h> #include <poll.h> #include <unistd.h> /* ...
/** * @section License * * The MIT License (MIT) * * Copyright (c) 2017, <NAME>, barth-dev.de * * 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 wit...
/* screen.c Copyright Menotdan 2018-2019 Screen driver MIT License */ #include <drivers/screen.h> uint32_t screen_offset = 0; color_t white; color_t black; color_t red; color_t green; color_t blue; color_t cyan; char *screen_chars; /* Declaration of private functions */ int get...
/* $OpenBSD: uvm_unix.c,v 1.2 1999/02/26 05:32:08 art Exp $ */ /* $NetBSD: uvm_unix.c,v 1.7 1998/10/11 23:18:21 chuck Exp $ */ /* * XXXCDC: "ROUGH DRAFT" QUALITY UVM PRE-RELEASE FILE! * >>>USE AT YOUR OWN RISK, WORK IS NOT FINISHED<<< */ /* * Copyright (c) 1997 <NAME> and Washington University. * Copyr...
#include <dlfcn.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <mach/mach.h> #include <mach/error.h> #include <errno.h> #include <stdlib.h> #include <mach/mach_vm.h> #include <sys/sysctl.h> #include <dlfcn.h> #include <sys/mman.h> #include <sys/stat.h> #include <pthread.h> #define STACK_SIZ...
/** @author <NAME>, 2011 Implementation of standard and constant-time versions of four different sorting algorithms: Bubblesort, selection sort, insertion sort, and shellsort. A constant execution-time guarantee can be useful in certain real-time systems. These implementations are intended as experiments to see how ...
#include <stdlib.h> #include <stdio.h> #include "error_stuff.h" #include "util.h" /* MPEG header info from http://mpgedit.org/mpgedit/mpeg_format/mpeghdr.htm */ struct mpeg_header { unsigned version : 2; unsigned layer : 2; unsigned crc_missing : 1; unsigned bitrate_idx : 4; ...
/*********************************************** * *Filename: packetSniff.c * *@author: <NAME> *@email: <EMAIL> *@description: --- *Create: 2015-12-27 16:23:56 # Last Modified: 2016-01-22 21:42:40 ************************************************/ #include "packetSniff.h" pcap_t *handle; struct SniffPanel panel; void g...
#include <linux/types.h> #include <stdio.h> #include <stdbool.h> #include <string.h> #include <errno.h> #include "read_note.h" struct whole_elf { size_t size; char *data; }; static void destroy(struct whole_elf *whole_elf) { if(!whole_elf) return; free(whole_elf->data); whole_elf->data = NULL; } struct sec...
#include <stdint.h> #include <stdio.h> #include <string.h> #define IOREG(X) (*(volatile uint32_t *) (X)) // GPIO registers #define GPFSEL0 IOREG(0x20200000) #define GPFSEL1 IOREG(0x20200004) #define GPFSEL2 IOREG(0x20200008) #define GPFSEL3 IOREG(0x2020000C) #define GPFSEL4 IOREG(0x20200010) #define GPFSEL5 IOREG(0x...
/* * file: mobility.c * created: 20160618 * author(s): mr-augustine * * Defines the functions used to initialize and control the steering servo and * drive motor. * * The extern "C" construct allows the main Arduino program to use the * functions declared below. */ #include <util/delay.h> #include <avr/interr...
/* * Copyright (c) 2017, <NAME> (<EMAIL>) * All rights reserved. * * License: BSD/MIT * * 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, thi...
// Copyright(c) 2017-2020, Intel Corporation // // 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, // this list of conditions and...
/* * Copyright 2013 <NAME> * * This file is part of Basenc * * Basenc 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 3 of the License, or * (at your option) any later version. *...
/******************************************************************************* * * E M B E D D E D W I Z A R D P R O J E C T * * Copyright (c) TARA Systems GmbH * written by <NAME> and <NAME> * **************************************...
#define _XOPEN_SOURCE // required by linux #include "config.h" #include <getopt.h> #include <locale.h> #include <math.h> #include <ncurses.h> #include <readline/readline.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/wait.h> #include <term.h> #inc...
#include "sha512.h" #include <memory.h> /* memset */ #define MAX_UINT64 (0xFFFFFFFFFFFFFFFFULL) #define MAX_UINT32 (0xFFFFFFFF) #define MAX_UINT8 (0xFF) /** * 64 bit right shift */ #define shr64(x, n) (((unsigned long long)(x) & MAX_UINT64) >> ((unsigned long long)(n))) /** * 64 bit left ...
/*-------------------------------------------------------------------- * FILE: * recovery.c * * NOTE: * This file is composed of the functions to call with the source * at pglb for the recovery. * * Portions Copyright (c) 2003-2008, <NAME> *----------------------------------------------------------...
#include "kernel.h" #include "utils.h" #include "char.h" uint32 vga_index; uint16 cursor_pos = 0, cursor_next_line_index = 1; static uint32 next_line_index = 1; uint8 g_fore_color = WHITE, g_back_color = BLACK; // if running on VirtualBox, VMware or on raw machine, // change CALC_SLEEP following to greater than 4 //...
#include <curl/curl.h> #include <zlib.h> #include "module.h" #include "module-geoip.h" #include "util.h" #include "database.h" #include "config.h" static const char *database_url = "https://iptoasn.com/data/ip2asn-v4-u32.tsv.gz"; static const char *database_tmp = "/tmp/ip2asn-v4-u32.tsv.gz.tmp"; struct geoip_table { ...
#include <stdio.h> #include <getopt.h> #include <string.h> #include <errno.h> #include <stdlib.h> #include "nav2kml.h" extern char *optarg; extern int optind, opterr, optopt; int main(int argc, char *argv[]) { int opt; char ifn[255]; char ofn[255]; int mode; if (argc != 7) { usage(); retur...
/* $NetBSD: atapi_base.c,v 1.5 1998/01/15 02:21:27 cgd Exp $ */ /* * Copyright (c) 1994, 1995, 1997 <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...
#include <stdint.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include <math.h> #include "tm4c123gh6pm.h" #include "clock.h" #include "gpio.h" #include "wait.h" #include "uart0.h" #include "adc0.h" #include "i2c0_lcd.h" //Pin Definitions #define MEAS_LR PORTA,6 #define HIGHSIDE_R...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (C) 2018 Institute of Computing Technology, CAS * Author : <NAME> (email : <EMAIL>) * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * The ke...
/** * Copyright (C) 2010 <NAME> (aka r3gis - www.r3gis.fr) * This file is part of pjsip_android. * * 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/license...
#include "screen.h" #include "common.h" #include "descriptortables.h" #include "isr.h" #include "process.h" extern void flushGdt(uint32); extern void flushIdt(uint32); extern void flushTss(); static void initializeGdt(); static void initializeIdt(); static void setGdtEntry(int32 num, uint32 base, uint32 limit, uint8...
#include <stdio.h> #include <sys/socket.h> //For Sockets #include <stdlib.h> #include <netinet/in.h> //For the AF_INET (Address Family) #include <arpa/inet.h> #include <pthread.h> // multithreading where child shares memory with parent #include <sys/time.h> #include <string.h> #include <stdbool.h> #include <signal.h> ...
/* PR tree-optimization/86622 - incorrect strlen of array of array plus variable offset Exercise strlen() with a multi-dimensional array of strings with offsets. */ extern int printf (const char*, ...); extern __SIZE_TYPE__ strlen (const char*); typedef char A28[28]; typedef A28 A3_28[3]; typedef A3_28 A2_3...
// Author: <NAME> <<EMAIL>> #include <gtk/gtk.h> #include <ctype.h> #include <dlfcn.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <sys/wait.h> #include "hashmap/errors.h" #include "hashmap/element.h" #include "hashmap/radTrie.h" #include "hashmap/radLoadWords.h" #define T...
/* * This file is part of the coreboot project. * * Copyright (C) 2013 Google, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distr...
/** * Copyright 2020 Alibaba Group Holding Limited. * * 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...
/* finalcv.c: FINALIZATION COVERAGE TEST * * $Id: //info.ravenbrook.com/project/mps/version/1.113/code/finalcv.c#1 $ * Copyright (c) 2001-2013 Ravenbrook Limited. See end of file for license. * Portions copyright (C) 2002 Global Graphics Software. * * DESIGN * * See <design/poolmrg/#test>. * * DEPENDENCIES ...
/* * Copyright (c) 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, dis...
/* $NetBSD: ixp425_timer.c,v 1.5 2003/11/16 12:41:03 scw Exp $ */ /* * Copyright (c) 2003 * <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 sou...
/* $title: 'FN.C ===== Find text in files (with line number) =====' */ /* $subtitle: 'Elipse Ltd. [jms] Revised: 2011 Oct 13' */ /* NOTE: For wildcard expansion to work from the command line, */ /* Link with WildArgv.obj */ /* compile command: wcl386 f...
#include <fluidsynth.h> #include <fluid_midi.h> #include <string.h> #include <gtk/gtk.h> /* GString stuff from https://developer.gnome.org/glib/2.31/glib-Strings.html Memory alloc from https://developer.gnome.org/glib/2.30/glib-Memory-Allocation.html Packing demo from https://developer.gnome.org/gtk-tutorial/2....
/** * @file pwm.c * @author <NAME> * @date 2009.11.02 * @brief PWM interface functions * * 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 ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include "util/xiwilib.h" #include "common.h" #include "initconfig.h" #include "layout.h" #include "map.h" #include "mapmysql.h" #include "mapauto.h" #include "mysql.h" #include "json.h" static int usage(const char *progname) { print...
#include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <libgen.h> #include <termios.h> #include <sys/ioctl.h> #include <sys/select.h> #include <tlpi_hdr.h> #include <time.h> #include <signal.h> #include "../../../tlpi-dist/pty/pty_master_open.h" #include "../../../tlpi-dist/tty/tty_functions.h" /* Dec...
/* K.N.King "C Programming. A Modern Approach." Programming project 8 p.157 "Modify Programming project 8 from chapter 5 so that the user enters a time using the 12-hour clock. The input will have the form: hours:minutes followed by either A, P, AM, or PM (either lowercase or uppercase). Whitespace is allowed (bu...
/** Copyright © 2022 <NAME> Map: (x Y y) = max(x - 1, 1) * max(y - 1, 1) "Minimal" start: 4 level3, story(vertically 1-n4) 3 level2, scene(vertically 1-n3) 2 level1, event (vertically 1-n2) 1 layer seq (vertically 1-n1) 0 layer recs (vertically rec_count) 2 layer pixel...
#include <stdio.h> #include <string.h> #include <unistd.h> #include <math.h> #include <types.h> #include <basics.h> #include <least_square_fit.h> #include <dist_fun.h> #include <err_handle.h> #include <transform_molecule.h> #if 0 #endif int transform_molecule(global_data_pt global, int *template_matches, ...
/* * Author: <NAME> <<EMAIL>> * * Copyright (c) 2014 Kaprica Security, 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 ri...
#include <stdio.h> #include <stdlib.h> #include <mpi.h> #include <string.h> #include <math.h> #include <limits.h> #include "ofmo-def.h" #include "ofmo-prof.h" #ifdef _OPENMP #include <omp.h> #else #include "omp-dummy.h" #endif /* ----------------------------------------------------------------- ...
/* Copyright (c) 2001-2004, <NAME>. * Copyright (c) 2004-2006, <NAME>, <NAME>. * Copyright (c) 2007-2019, The Tor Project, Inc. */ /* See LICENSE for licensing information */ /* * Tests for confparse.c's features that support multiple configuration * formats and configuration objects. */ #define CONFPARSE_PRIVAT...
#include <device/ata.h> #include <ctype.h> #include <debug.h> #include <stdbool.h> #include <stdio.h> #include <device/block.h> #include <device/partition.h> #include <device/io.h> #include <interrupt.h> #include <synch.h> #include <device/console.h> #define STUDENT_NAME "HeoManwoo" static void sector_read (struct at...
/*D************************************************************ * Modul: GRAPHIC gupdcurs.c * * Update the cursor, the temporary objects, * the region name and coordinates when motion * * * Copyright: yafra.org, Basel, Switzerland ************************************************************** *...
/* ** 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...
/* The MIT License (MIT) * * Copyright (c) 2015 Monetra Technologies, 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 Software without restriction, including without limitation the righ...
#include "_TOKENIZER.h" #include "_TRIE.h" #include "_LINKED_LIST.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <mpi.h> void indexing(); void decompose_domain(int domain_size, int world_rank, int world_size, int* subdomain_start, int* subdomain_end) { /***************...
#include "string.h" #include <assert.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include "list.h" typedef struct Node { struct Node* next; void* data; } node_t; node_t* nodeCreate(node_t* next, void* data) { node_t* node = malloc(sizeof(node_t)); node->next = next; node->data ...
#include <ospm/apic.h> struct acpi_madt* madt; struct lapic_t** lapics; int lapic_cnt; struct ioapic_t** ioapics; int ioapic_cnt; struct iso_t** isos; int iso_cnt; struct nmi_t** nmis; int nmi_cnt; #define APIC_ACTIVE_HIGH (1 << 1) #define APIC_LEVEL_TRIGGERED (1 << 3) #define APIC_REDIR_BAD_READ 0x...
/* * Copyright (C) 2015-2016 <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 3 of the License, or * (at your option) any later version. * * This p...
#include "mat.h" matPtr CreateMat(int r, int c){ matPtr T = malloc(sizeof(rawmat)); T->c = c; T->r = r; T->data = calloc(r * c, sizeof(double)); return T; } void FreeMat(matPtr T){ free(T->data); free(T); } int GetMat(matPtr T, FILE *stream){ int len = T->r * T->c; double *_data =...
/* Pcsx - Pc Psx Emulator * Copyright (C) 1999-2002 Pcsx Team * * 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 vers...
// This file is free software, distributed under the BSD license. #include "hack.h" #include "extern.h" #include "mkroom.h" #include "eshk.h" #define ESHK ((struct eshk *)(&(shk->mextra[0]))) void mkshop(void) { struct mkroom *sroom; int sh, sx, sy, i = -1; char let; int roomno; struct monst *shk;...
/* ============================================================================= ____ ___ ____ ___ _ _ ___ __ __ ___ __ __ TM | _ \ |_ _| / ___| / _ \ | \ | | / _ \ | \/ | |_ _| \ \/ / | |_) | | | | | | | | | | \| | | | | | | |\/| | | | \ / | __/ | | ...
/*----------------------------------------------------------------- * ################### BEGIN p2.c ################# * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Author: <NAME> * ----------------------------------------------------------------- * File: p2.c * --------------------------...
/* * BSD 3-Clause License * * Copyright (c) 2018 GitHub. * 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, th...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief * Show how to set different core voltage and main voltage regulator type. * * * @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved. * ***************************...