text
stringlengths
3.12k
18.7k
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdint.h> #include <stdbool.h> #include <unistd.h> #include <getopt.h> #include <signal.h> #include <errno.h> #include <sys/socket.h> #include <sys/un.h> #include <sys/stat.h> #define LOG_MODULE "foot-client" #define LOG_ENABLE_DBG 0 #include "log.h...
/* tu.c: draws horizontal lines */ # include "t.h" void makeline(int i, int c, int lintype) { int cr, type, shortl; type = thish(i, c); if (type == 0) return; shortl = (table[i][c].col[0] == '\\'); if (c > 0 && !shortl && thish(i, c - 1) == type) return; if (shortl == 0) for (cr = c; cr < ncol && (ctype(...
// SPDX-FileCopyrightText: 2021 <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 agr...
/* dhcp.c - getlocalip */ #include <xinu.h> /*------------------------------------------------------------------------ * dhcp_get_opt_val - Retrieve a pointer to the value for a specified * DHCP options key *------------------------------------------------------------------------ */ char* dhcp_get_opt_val( ...
/* * Copyright (c) 2012 The Native Client Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "native_client/src/include/portability_string.h" #include "native_client/src/include/nacl_macros.h" #include "native_client/src/i...
/******************************************************************************* NAME SPACE OBLIQUE MERCATOR (SOM) PURPOSE: The first method to Transform input Easting and Northing to longitude and latitude for the SOM projection. The Easting and Northing must be in meters. The longitude...
/** * \copyright * MIT License * * Copyright (c) 2021 Infineon Technologies AG * * 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 ...
// // General-purpose Photovoltaic Device Model gpvdm.com - a drift diffusion // base/Shockley-Read-Hall model for 1st, 2nd and 3rd generation solarcells. // The model can simulate OLEDs, Perovskite cells, and OFETs. // // Copyright 2008-2022 <NAME> https://www.gpvdm.com // r.c.i.mackenzie at googlemail.com // // Pe...
/* Oct 13 2008 23:18:56 Add subsequence lengths together instead of multiply in the first stage Copyright 2007 <NAME> <EMAIL> Distribution is permitted under the terms of the GNU General Public Licence */ /* Dec 23 2006 17:11:09 Variant of hashplugin.c to generate spell version Main principle of both version...
/*###########################################################################*/ /*HW02_Ali_Yasin_Eser_141044058_part2.c */ /*_______________________________ */ /*<NAME> tarafindan 28 Subat 2015'de yazilmistir. */ /* */ /*Aciklama */ /*________...
/* $NetBSD: encoding.c,v 1.3 2014/12/10 04:37:56 christos Exp $ */ /* * encoding.c - get DNS/Local encodings * * Software\JPNIC\IDN\Where * \LogFile * \LogLevel * \InstallDir * \PerProg\<name>\Where * \PerProg\<name>\Encoding ...
/* * CC6303: A C compiler for the 6803/6303 processors * (C) 2019 <NAME> * * This compiler is built out of a much modified CC65 and all new code * is placed under the same licence as the original. Please direct all * cc6303 bugs to the author not to the cc65 developers unless you find * a bug that is also prese...
/**\ * Copyright (c) 2020 Bosch Sensortec GmbH. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause **/ /******************************************************************************/ /*! Header Files */ #include <stdio.h> #include "bmi270_ma...
#include "motif_logo.h" #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <getopt.h> #include <string.h> #include <inttypes.h> #include <ctype.h> #include <cairo.h> #include "tldevel.h" #include "global.h" #define WIDTH 48 #define HEIGHT 142 #define STRIDE (WIDTH * 4) ...
/* * Copyright (c) 2005, 2007-2008, 2010, 2013 Genome Research Ltd. * Author(s): <NAME> * * 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 ...
/* * main.c * * Created on: Jul 4, 2021 * Author: igor * * N1 sends a message(led number) using Data Frame for every 1sec to N2 * After the reception of message(led number) N2 has to glow the corresponding LED * N1 also sends a Remote frame to request 2 bytes of data for every 4secs * N2 upon receiving t...
#include <runtime.h> #include <x86_64.h> #include <kvm_platform.h> #include <page.h> #include <region.h> #include <apic.h> #define INTERRUPT_VECTOR_START 32 /* end of exceptions; defined by architecture */ static char *interrupts[] = { "Divide by 0", "Reserved", "NMI Interrupt", "Breakpoint (INT3)", ...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * Copyright by the Board of Trustees of the University of Illinois. * * All rights reserved. * * ...
/* Copyright (c) 2007, Stanford University * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of condi...
/* * Copyright (c) 2017, Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of c...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/poll.h> #include <sys/time.h> #include <sys/mman.h> #include <fcntl.h> #include <errno.h> #include <pthread.h> #include <signal.h> #include <stdlib.h> #include <stdio.h> #includ...
/* * Copyright (c) 1996-2001 <NAME>. * See README file for details. * * * Compute minimax weights for local regression. */ #include "local.h" int mmsm_ct; static int debug=0; #define CONVTOL 1.0e-8 #define SINGTOL 1.0e-10 #define NR_SINGULAR 100 static lfdata *mm_lfd; static design *mm_des; static doubl...
#include "framework.h" #include <float.h> SDL_Window* window; SDL_Renderer* renderer; SDL_bool isRunning; void init(void) { SDL_Init(SDL_INIT_VIDEO); window = SDL_CreateWindow("", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 400, 400, 0); renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_PRESE...
/* Copyright (c) 2016, ENEA Software AB * Copyright (c) 2016, Nokia * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <unistd.h> #include <getopt.h> #include <string.h> #include <inttypes.h> #include <sys/socket.h> #include "ofp.h" #define MAX_WORKERS 32 /** * Parsed command line ...
/* * server-mock.c * Copyright (c) 2016-2019 <NAME> * * This file is a part of bluez-alsa. * * This project is licensed under the terms of the MIT license. * * This program might be used to debug or check the functionality of ALSA * plug-ins. It should work exactly the same as the BlueALSA server. When * conn...
// // PatchSVC.c // IPAPatch-DummyApp // // Created by ParadiseDuo on 2021/4/28. // Copyright © 2021 ParadiseDuo. All rights reserved. // #include "PatchSVC.h" #include <mach-o/dyld.h> #include <string.h> #include <malloc/_malloc.h> #include <sys/mman.h> #include <mach/mach.h> #include <libkern/OSCacheControl.h> ...
/* Copyright 2007,2010,2012 IPB, Universite de Bordeaux, INRIA & CNRS ** ** This file is part of the Scotch software package for static mapping, ** graph partitioning and sparse matrix ordering. ** ** This software is governed by the CeCILL-C license under French law ** and abiding by the rules of distribution of free ...
/*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME>. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
/* xldbg.c - debugging routines */ /* Copyright (c) 1984-2002, by <NAME> All Rights Reserved See the included file 'license.txt' for the full license. */ #include "xlisp.h" #include "xlbcode.h" /* instruction output formats */ #define FMT_NONE 0 #define FMT_BYTE 1 #define FMT_2BYTE ...
#include <avr/io.h> #include <util/delay.h> #include <util/atomic.h> #include "gsm.h" #include "uart.h" #include "watchdog.h" #include "eeprom_addr.h" #include "gsm_at_cmds.h" volatile unsigned long g_seconds; //NOTE: A unsigned long holds values from 0 to 4,294,967,295 (2^32 - 1). It will roll over to 0 after reach...
// // Book: OpenGL(R) ES 2.0 Programming Guide // Authors: <NAME>, <NAME>, <NAME> // ISBN-10: 0321502795 // ISBN-13: 9780321502797 // Publisher: Addison-Wesley Professional // URLs: http://safari.informit.com/9780321563835 // http://www.opengles-book.com // // Stencil_Test.c // // This ex...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/* * Copyright (c) 2013, University of Michigan. * * Copyright (c) 2015, Weptech elektronik GmbH * Author: <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. Redis...
/* SPDX-License-Identifier: BSD-3-Clause * * Arm Revere VFIO demo * * Copyright (C) 2018-2019 Arm Ltd. * Author: <NAME> <<EMAIL>> */ #include <stdio.h> #include <stdlib.h> #include <err.h> #include <sys/mman.h> #include <linux/pci_regs.h> #include <string.h> #include <unistd.h> #include "cmdline.h" #include "rev...
/* spasum.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__6 = 6; /* $Procedure SPASUM ( SPACIT, summarize binary file ) */ /* Subroutine */ int spasum_(log...
/* Copyright 2013-2015 IBM Corp. * * 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 ...
/* This is a simple yet efficient WebSocket server benchmark much like WRK */ #define _BSD_SOURCE #include <endian.h> #include <stdint.h> #include <libusockets.h> int SSL; #include <stdio.h> #include <stdlib.h> #include <string.h> /* Whatever type we selected (compressed or not) */ unsigned char *web_socket_request...
/* * syst_np.c - simple cpu-wide counting but forced on a remote CPU * * Copyright (c) 2009 Google, Inc * Contributed by <NAME> <<EMAIL>> * * Based on: * Copyright (c) 2002-2006 Hewlett-Packard Development Company, L.P. * Contributed by <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any...
/* * Copyright (C) <NAME> * * Based on code named fromn the opentx project * th9x - http://code.google.com/p/th9x * er9x - http://code.google.com/p/er9x * gruvin9x - http://code.google.com/p/gruvin9x * * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html * * This program is free software; you can r...
#include <stdio.h> #include <stdlib.h> #include <time.h> #define KNRM "\x1B[0m" #define KRED "\x1B[31m" #define KGRN "\x1B[32m" #define KYEL "\x1B[33m" #define KBLU "\x1B[34m" #define KMAG "\x1B[35m" #define KCYN "\x1B[36m" #define KWHT "\x1B[37m" void mazeGenerator(char* maze, int row, int col); void dfsMaze...
/*- * Copyright (c) 2005 <NAME> * Copyright (c) 1989, 1992, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software developed by the Computer Systems * Engineering group at Lawrence Berkeley Laboratory under DARPA contract * BG 91-66 and contributed to Ber...
/** * libpsd - Photoshop file formats (*.psd) decode library * Copyright (C) 2004-2007 Graphest Software. * * libpsd is the legal property of its developers, whose names are too numerous * to list here. Please refer to the COPYRIGHT file distributed with this * source distribution. * * This program is ...
/* bufzip.c Author: <NAME> <<EMAIL>> Copyright (c) 1995 <NAME> <<EMAIL>>, Espoo, Finland All rights reserved Created: Wed Oct 25 22:12:46 1995 ylo A generic wrapper for various compression methods. */ /* * $Id: bufzip.c,v 1.8 1998/07/24 15:05:01 mjos Exp $ * $Log: bufzip.c,v $ * $EndLog$ *...
#include "qcc.h" float pr_globals[MAX_REGS]; int numpr_globals; char strings[MAX_STRINGS]; int strofs; dstatement_t statements[MAX_STATEMENTS]; int numstatements; int statement_linenums[MAX_STATEMENTS]; dfunction_t functions[MAX_FUNCTIONS]; int numfunctions; ddef_t globals[MAX_GLOBALS]; int numglob...
/* * Copyright (c) 2016 Google Inc. * Copyright (c) 2016 <NAME> (<EMAIL>) * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the...
/* ==================================================================== * Copyright (c) 1991-2000 Carnegie Mellon University. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Red...
#include <stdlib.h> #include <assert.h> #include <mpi.h> #include <utofu.h> #include "common.h" char send_buffer[MAX_SIZE]; volatile char recv_buffer[MAX_SIZE]; // 送信と送信完了確認 static void send(utofu_vcq_hdl_t vcq_hdl, utofu_vcq_id_t rmt_vcq_id, utofu_stadd_t lcl_send_stadd, utofu_stadd_t rmt_recv_stadd, size_t lengt...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright 2014-2017 (c) <NAME>, Fraunhofer IOSB * Copyright 2014, 2016-2017 (c) <NAME> * Copyright 2...
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <l...
/********************************************************************** Copyright(c) 2011-2017 Intel Corporation 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 co...
#include <AudioUnit/AudioUnit.h> #include <AudioToolBox/AudioQueue.h> #include <CoreFoundation/CFString.h> #include <CoreAudio/CoreAudio.h> #include "../../media-io/audio-resampler.h" #include "../../util/circlebuf.h" #include "../../util/threading.h" #include "../../util/platform.h" #include "../../obs-internal.h" #i...
/* * uml_conf.c: UML driver configuration * * Copyright (C) 2006-2014 Red Hat, Inc. * Copyright (C) 2006 <NAME> * * This library 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...
#include "rhythm.h" #include "log.h" #include <stdlib.h> #include <string.h> int compare_groups(const void *group1, const void *group2) { struct StemGroup *a = (struct StemGroup *)group1; struct StemGroup *b = (struct StemGroup *)group2; if (a->offset < b->offset) return -1; if (a->offset == b->offse...
// Add markers #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <math.h> #include <string.h> #define STB_IMAGE_IMPLEMENTATION #include "../externals/stb/stb_image.h" #define STB_TRUETYPE_IMPLEMENTATION #include "../externals/stb/stb_truetype.h" #include "easypng.h" // Utility ////////////////////...
// Copyright (C) 2003-2016 <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: // // * Redistributions of source code must retain the above copyright // notice, this lis...
// RUN: %clang_cc1 -ffreestanding -triple armv8-eabi -target-cpu cortex-a57 -O -S -emit-llvm -o - %s | FileCheck %s -check-prefix=ARM -check-prefix=AArch32 // RUN: %clang_cc1 -ffreestanding -triple aarch64-eabi -target-cpu cortex-a57 -target-feature +neon -target-feature +crc -target-feature +crypto -O -S -emit-llvm -o...
#include <switch.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <time.h> #include "draw.h" #include "types.h" #include "heart48_bin.h" u8* g_framebuf; u32 g_framebufWidth; color_t color_black; color_t color_red; static struct { int t; int dt; int dc; u8 lives...
/** includes **/ // feature test macro #define _DEFAULT_SOURCE #define _BSD_SOURCE #define _GNU_SOURCE #include <ctype.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/types.h> #include <termios.h> #include <unistd.h> /** defines **/ #define KILO_...
/* * Copyright (c) 2007-2009 Xilinx, Inc. All rights reserved. * * Xilinx, Inc. * XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A * COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS * ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR * STANDARD, XILINX IS MAKING ...
// // begin license header // // This file is part of Pixy CMUcam5 or "Pixy" for short // // All Pixy source code is provided under the terms of the // GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html). // Those wishing to use Pixy source code, software and/or // technologies under different lice...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> #include <sys/times.h> #include <errno.h> #include <string.h> #include <math.h> #include "utilities.h" #include "simulation.h" #include <omp.h> void write_bin(float **u, float **v, float **p, char **flag, int imax, int jmax, float xle...
/***************************************************************************** FILE: generate_date_bands.c PURPOSE: Contains defines and prototypes to generate a date/year band. PROJECT: Land Satellites Data System Science Research and Development (LSRD) at the USGS EROS LICENSE TYPE: NASA Open Source Ag...
/** ****************************************************************************** * @file SPI/FullDuplex_SoftNSS/main.c * @author MCD Application Team * @version V3.1.2 * @date 09/28/2009 * @brief Main program body *************************************************************************...
/******************************************************************************* MPLAB Harmony Application Source File Company: Microchip Technology Inc. File Name: btApp.c Summary: This file contains the source code for Bluetooth module related functions. Description: This file contai...
// // Created by <NAME> on 7/24/20. // /* file minunit_example.c */ #include <stdio.h> #include "simpletest.h" #include "../src/buffer.h" #include "../src/bufferarray.h" #include "../src/recycler.h" #include "../src/bufferarray.h" #include <string.h> #include <time.h> #include <ctype.h> #include "../src/hashtable.h" ...
/* * Copyright (C) 2006 Free Software Initiative of Japan * * Author: <NAME> <gniibe at fsij.org> * * This file can be distributed under the terms and conditions of the * GNU General Public License version 2 (or later). * */ #include <errno.h> #include <usb.h> #include <stdio.h> #include <string.h> #define U...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <fcntl.h> #include <linux/uvcvideo.h> #include <linux/videodev2.h> #include <libusb-1.0/libusb.h> #include "dfk73.h" #define ID_VENDOR 0x199e #define ID_PRODUCT ...
/* * Copyright (c) 2021, <NAME> * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include <hal/clk_gate_ll.h> #include <soc/uart_periph.h> #include <hal/uart_ll.h> #include <esp32/rom/ets_sys.h> #include <esp32/rom/gpio.h> #include <esp32/clk.h> #include "zephyr/types.h" #include "tools/util.h" #include...
/* Copyright 2018 <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,...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <poll.h> #define NETMAP_WITH_LIBS #include <net/netmap_user.h> #include <net/ethernet.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/tcp.h> #include <netinet/udp.h> #include <arpa/inet.h> #include <sys/time.h> #include <signal.h> ...
/************************************************************************************ * Copyright (c) 2015, University of Arkansas - Hybridthreads Group * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are...
#include <string.h> #include <limits.h> #include <malloc.h> #include <stdint.h> #include "cache2.h" #include "ite/ith.h" #include <pthread.h> typedef struct _NOR_CONTEXT { unsigned long reservrdFatSectors; // reserved size in fat sector unsigned long pageSize; // page size in byte unsigned long pagesPerS...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * File: pHSystem.c * * Code generated for Simulink model 'pHSystem'. * * Model version : 1.3...
#include <math.h> #include "blas.h" #include "common.h" #include "lsoda.h" #include "lsoda_internal.h" /* This routine returns from stoda to lsoda. Hence freevectors() is not executed. */ #define endstoda() \ { \ double r; ...
#include <stdio.h> #include <stdlib.h> #include "utils.h" #include <string.h> //#region typedef typedef struct track { char *nome; char *id; double acousticness; double danceability; double energy; double instrumentalness; double liveness; double loudness; double speechiness; dou...
#include <stdio.h> #include <stdlib.h> #define SPEC_NO_RUIDO 2 #define SPEC_ONDAS_GUIA 10 char *spec_tipos_fichero[]={ "Program", "Number Array", "Character Array", "Bytes", "Flag" }; //int spec_ondas_leidas; unsigned char spec_carry; unsigned char *memoria; unsigned char *memoria_original; unsigned ...
/* $OpenBSD: process_machdep.c,v 1.4 2004/02/01 15:00:42 miod Exp $ */ /* $NetBSD: process_machdep.c,v 1.1 2003/04/26 18:39:31 fvdl Exp $ */ /*- * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. *...
#include <libusb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include "cybtldr_parse.h" #define VERSION "0.1.0" #define VENDOR_ID 0x04b4 #define PRODUCT_ID 0xb71d #define INTERFACE 0 #define READ_BUF_SIZE 8192 #define MAX_DATA_LENGTH (64-7-9) const static int reqIntLen=6...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <err.h> #define MAX_FIELD_SIZE 100 //CLASSE SERIE typedef struct { char nome[MAX_FIELD_SIZE]; char formato[MAX_FIELD_SIZE]; char duracao[MAX_FIELD_SIZE]; char pais[MAX_FIELD_SIZE]; char idioma[MAX_FIELD_SIZE]; ...
/////////////////////////////////////////////////////////////////// // Dandelion Settings // Load/Save settings for Dandelion network visualiser // // <NAME> // Liverpool John Moores University // // Spring 2010 /////////////////////////////////////////////////////////////////// ///////////////////////////...
/** @file * Copyright (c) 2016-2019, Arm Limited or its affiliates. All rights reserved. * SPDX-License-Identifier : Apache-2.0 * 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...
/* * screen.c - terminal-specific procedures * * * Only procedures in Sman.c should access screen.c. Entry points: * * scr_clr() * Clear the remainder of the row, i.e., delete the characters * under, and to the right of, the cursor. * * scr_cls() * Clear all characters from the screen. * * scr_delc(i) * int i; * ...
/* * Copyright (c) 2022 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pu...
#include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <GL/gl.h> #define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0])) #define SCR_X0 32 #define SCR_Y0 34 #define FRGB(r, g, b) {(r) / 255.0f, (g) / 255.0f, (b) / 255.0f} const float coltbl[16][3] = { FRGB(0, 0, 0), // black FRGB(255, 255, 255), // white FRGB(187, 10...
#include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <malloc.h> #include <string.h> #include <ctype.h> #define MAXSTR 51200 typedef struct vcf_info vcf_info; struct vcf_info { char chrom[20]; int pos; char id[20]; char ref[512]; char alt[512]; char qual[10]; char filter[512]; char info[5...
/* see exception.s */ #include "trap.h" #include "kstddef.h" #include "arm1176jzfs.h" #include "undefined.h" #include "dev/bcm283x_irq.h" #include "../h/types.h" #include "../h/param.h" #include "../h/dir.h" #include "../h/user.h" #include "../h/proc.h" #include "../h/systm.h" #include "../h/reg.h" #include "../h/sig....
/** * @file get.c * @brief get read(record) given the read_id from a SLOW5 file * @author <NAME> (<EMAIL>) <NAME> (<EMAIL>), <NAME> (<EMAIL>) * @date 27/02/2021 */ #include <getopt.h> #include <stdio.h> #include <slow5/slow5.h> #include "thread.h" #include "cmd.h" #include "misc.h" #define READ_ID_INIT_CAPACITY ...
#include <time.h> #include <stdio.h> #include <netdb.h> #include <ctype.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <arpa/inet.h> #include <sys/socket.h> #include "knetfile.h" static int socket_wait(int fd, int is_read) { fd_set fds, *fdr = 0, *fdw = 0; struct timev...
#include <fcntl.h> #include <termios.h> #include <sys/types.h> #include <sys/mman.h> #include <sys/wait.h> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> /*Se esta trabajando en usar la sobreescritura de un archivo ya generado, pero hace falta revisar la estructura de...
#include "algorithm.h" #include <stdbool.h> #include <openssl/obj_mac.h> #include <openssl/objects.h> #include "log.h" static bool is_asn1_null_object(ANY_t *any) { return (any->size == 2) && (any->buf[0] == 5) && (any->buf[1] == 0); } static bool is_asn1_null(ANY_t *any) { return (any == NULL) || is_asn1_null_ob...
/* * Copyright (c) 2018, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice...
/* * Copyright (c) 2007, 2008 University of Tsukuba * 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 ...
/* * ============================================================= * peval.c * C implementation of peval.m * * INPUTS * x: nvars-by-npts matrix each column of which specifies a point * at which to evaluate the polynomial * coef: nterms-by-lp coefficient matrix where lp is the length * ...
#include <platform.h> #include <kernel/config.h> #include <kernel/faction.h> #include <kernel/race.h> #include <util/language.h> #include <util/unicode.h> #include <util/log.h> #include <util/base36.h> #include <util/log.h> #include <quicklist.h> #include <sqlite3.h> #include <md5.h> #include <assert.h> #include <strin...
#include "ps.h" #include <driver/ps2.h> #include <driver/sd.h> #include <driver/vga.h> #include <zjunix/bootmm.h> #include <zjunix/buddy.h> #include <zjunix/fs/fat.h> #include <zjunix/fs/ext2.h> #include <zjunix/memory.h> #include <zjunix/time.h> #include <zjunix/log.h> #include <zjunix/syscall.h> #include <zjunix/util...
#include <sys/attribs.h> #include <plib.h> // Microchip PIC32MX Peripheral Library //Defines #include <stdint.h> #include <sys/attribs.h> #include <proc/p32mx340f512h.h> #define SYSCLK (8000000) #define BAUDRATE (9600) #define INPUT 1 #define OUTPUT 0 #define HIGH 1 #define LOW 0 #define INVERT_LED (LATFINV = 0b10) ...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #include "tokens.h" extern char *yytext; static char *desugar_num(char*, char*); void print_token(int token) { switch (token) { case ';': printf("Semi"); break; case ',': printf("Comma"); break; case '.': printf("Dot"); break; ca...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <strings.h> //Länge eines Bits #define BLEN (16) #define MINOLEN (BLEN*10-BLEN/4) //Länge des Buffers #define BSIZE (BLEN*256) //Bitrate für Zeitangabe #define BRATE (1200) double *b=NULL; int cnt=0; double get_sample(const ...
#include "aptina.h" #include "aptina_i2c.h" // Waits until the bits of the register are clear void aptWaitClr(u8 device, u16 reg, u16 mask) { while(aptReadRegister(device, reg) & mask) { swiWaitForVBlank(); } } // Waits until the bits of the register are set void aptWaitSet(u8 device, u16 reg, u16 mask) { while...
/* * Copy: Copyright (c) 2019 Flux * Vers: 1.0.0 01/30/2019 - Programming the framework and adding support for batch. * Desc: Calculates the values for 1D, 2D, and Beam Support problems. */ // Libraries #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> // Function Declarations int projec...