text
stringlengths
3.08k
10.5k
/** Microsoft Interview Question: April 29, 2020. Position: "UEFI/BIOS Firmware Engineer with Microsoft in Redmond, WA." Alloted solution time: 50 min. **/ /** Count the number of letters that occur in the hexadecimal representation of the numbers in the given range. No standard C library functions allowed. No calc...
/* * gadgetd-serial-function-iface.c * Copyright(c) 2014 Samsung Electronics Co., Ltd. * * 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 *...
#pragma ident "$Id: wdsampchk.c,v 1.1 2016/11/16 22:01:15 dechavez Exp $" /*====================================================================== * * Check for nsamp vs beg/endtime consistency for all channels present * in a wfdsic file. * *====================================================================*/ ...
#include <stdlib.h> #include <string.h> #include <unistd.h> #include <ptef.h> #include <ptef_helpers.h> static void print_help(void) { fprintf(stderr, "usage: ptef-runner [OPTIONS] [TEST]...\n" "\n" " -a BASE runner basename, overriding autodetection from basename(argv[0])\n"...
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2022, <NAME> <<EMAIL>>. All rights reserved. /*- Includes ----------------------------------------------------------------*/ #include <stdalign.h> #include "usb.h" #include "usb_descriptors.h" /*- Variables -----------------------------------------------------...
/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (c) 2020 Synopsys, Inc. and/or its affiliates. * Synopsys DesignWare XPCS helpers * * Author: <NAME> <<EMAIL>> */ #define SYNOPSYS_XPCS_ID 0x7996ced0 #define SYNOPSYS_XPCS_MASK 0xffffffff /* Vendor regs access */ #define DW_VENDOR BIT(15) /* VR_XS_PCS */...
/* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2019-2021 Broadcom * All rights reserved. */ #include <rte_common.h> #include "tf_shadow_identifier.h" #include "tf_common.h" #include "tf_util.h" #include "tfp.h" /** * Shadow identifier DB element */ struct tf_shadow_ident_element { /** * Identifier ...
#include <math.h> #include "lib\tiff.h" #include "lib\allocate.h" #include "lib\randlib.h" #include "lib\typeutil.h" void error(char *name); int main (int argc, char **argv) { FILE *fp; struct TIFF_img input_img, output_img; double **img1, **img2, **perr; int32_t i,j, p,pixel; double sigma_ML[20]...
/* * Copyright (C) 2016 Freie Universität Berlin * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @{ * * @file * @author <NAME> <<EMAIL>> */ #include <assert.h> #include <stdin...
/* File: data_change_notifier.c; Copyright and License: see below */ #include "data_id.h" #include "storage/data_change_notifier.h" #include "storage/data_change_message.h" #include "trace.h" #include "tslog.h" #include <glib-object.h> #include <unistd.h> #include <string.h> #include <assert.h> static bool data_chang...
#include "sprite.h" // Contains a lot of (modified) code from this tutorial: // http://dcemulation.org/?title=PVR_Spritesheets #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <dc/pvr.h> typedef struct dtex_header{ uint8_t magic[4]; //magic number "DTEX" uint16_t width;...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* vs.c :+: :+: :+: ...
/* ------------------------------------------------------------ * * file: xbee-config.c * * purpose: Write configuration to a local XBEE module * * * * return: 0 on success, and -1 on errors. ...
// Copyright (c) 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 must retain the above copyright notice, this // list of conditions a...
/** ****************************************************************************** * File Name : I2S.c * Description : This file provides code for the configuration * of the I2S instances. ****************************************************************************** ...
#include <stdio.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <wiringPi.h> /* PIN ASSIGNMENT */ #define KEY_LISTEN 18 //GPIO24 - pin 18 in hw - pin 5 in wPi #define KEY_SPEAK 16 //GPIO23 - pin 16 in hw /* PROFILE VALUES */ /* This should be sliding-window determined */ #de...
/* * linux/arch/alpha/kernel/err_impl.h * * Copyright (C) 2000 <NAME> (Compaq Computer Corporation) * * Contains declarations and macros to support Alpha error handling * implementations. */ /* * SCB Vector definitions */ #define SCB_Q_SYSERR 0x620 #define SCB_Q_PROCERR 0x630 #define SCB_Q_SYSMCHK 0x660 #def...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* basics_constructors.c :+: :+: :+: ...
/* * Copyright (c) 2015, Linaro Limited * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, ...
/* * * Copyright (c) International Business Machines Corp., 2001 * * 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 l...
/* * FreeRTOS POSIX Demo V1.0.0 * Copyright (C) 2017 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, inc...
/* Copyright avril 2019, <NAME> <EMAIL> SiCF 2.0 simulateur de corde vibrante et spectre Ce logiciel est un programme informatique servant à simuler l'équation d'une corde vibrante, à calculer sa transformée de fourier, et à donner une représentation graphique de ces fonctions. Ce logiciel est régi par la licence CeCI...
/* MIT License Copyright (c) 2020 kmwebnet 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, distr...
#include <LCUI_Build.h> #include <LCUI/LCUI.h> #include <LCUI/gui/widget.h> #include <LCUI/gui/widget/textview.h> #include <LCUI/display.h> #include <LCUI/timer.h> #include <time.h> #include <stdlib.h> #include <stdio.h> #define SCREEN_WIDTH 1600 #define SCREEN_HEIGHT 900 #define BLOCK_COUNT 60 static struct TestStat...
/* $Id: rate.c,v 1.3 2003/07/20 19:04:02 te Exp $ */ #include <stdio.h> #include <string.h> #include <errno.h> #if !defined(min) # define min(a,b) ((a) <= (b) ? (a) : (b)) #endif #if defined (UNIX) # include <sys/time.h> #endif #if defined (_WINDOWS) # include <windows.h> # define snprintf _snprintf #endif /* * c...
/** * This code was originally written by <NAME> * and was copied from his lisp implementation "wisp" which * can be found here: * http://git.nullprogram.com/?p=wisp.git;a=summary */ /* hashtab.c - simple hashtable */ #include <stdlib.h> #include <string.h> #include <stdint.h> #include "hashtab.h" #include <stdi...
/* * Copyright (c) 2012 <NAME> * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be held liable for any damages arising from * the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including commercial a...
// Copyright 2015 Silicon Laboratories, Inc. *80* // Needed: // variable length strings - decoded point to strings in encoded data // substructs // arrays // storage allocation // decoding size determination // parse failure reporting //--------------------------------------------...
/* $Id: test2.c,v 1.13 2007/12/28 13:20:12 cegger Exp $ ****************************************************************************** Test extension test2.c Copyright (C) 1997 <NAME> - <EMAIL> Copyright (C) 1998 <NAME> - <EMAIL> Permission is hereby granted, free of charge, to any person obtaining a ...
#include "types.h" #include "x86.h" #include "defs.h" #include "spinlock.h" #include "sleeplock.h" #include "traps.h" #include "mmu.h" #include "param.h" #include "proc.h" /*struct circular_buffer { char bytes[12]; char *head; char *tail; int count; };*/ //static struct circular_buffer cbuff; static s...
/** 232. Implement Queue using Stacks [Easy] Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front of queue. peek() -- Get the front element. empty() -- Return whether the queue is empty. Example: MyQueue queue = new My...
#include <stdio.h> #include "app.h" #include "utf8.h" #include "wcwidth.h" #define OPTION_CUT_STR "~" #define EMPTY_OPTION_NAME "[empty]" #define DESCRIPTION_NAME "Description" #define FILES_NAME "Files" #define UNSUPPORTED_DESCRIPTION_FORMAT "[Unsupported description format]" void getMDArrayOption(Option *option, MD...
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Copyright 2020 <NAME> │ │ ...
/* Apache License 2.0 */ /* 文件:yd_sha1.c 作者:wzh 邮箱:<EMAIL> 简介:SHA1算法实现,详情参考《FIPS PUB 180-4》 版本:README.md定义 */ #include "yd_sha1.h" /* * 数据填充 * 返回值:false=数据没有填充完;true=数据填充完成 */ static bool padding_bits(uint8_t *msg, uint32_t msg_length, uint32_t *msg_length_remain, ...
/* * ISC License * * Copyright (C) 1985-2018 by * <NAME> * <NAME> * Delft University of Technology * * 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 c...
/* * Copyright 2018 <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, distribute, sublic...
#include "postgres.h" #include "access/heapam.h" #include "executor/execdebug.h" #include "executor/nodeSeqscan.h" #include "executor/nodeClusterScan.h" #include "pggrid/dquery.h" #include "replicate.h" #include "parser/parsetree.h" static TupleTableSlot *ClusterNext(ClusterScanState *node); static void InitClusterSc...
#include "user.h" #include "kernel/types.h" #define BUF_PAGES 16 #define PAGE 4096 #define BUF_SIZE (BUF_PAGES * PAGE) #define MAX_BUFS 10 struct book { void* top; //start of the ring buffer void* write; //current write head void* read; //current read head uint64 nRead; uint64 nWrite; ...
/* Zrychleni vypoctu paralelizaci ulohy s vyuzitim POSIXovych vlaken. 20.3.-2.4.2007 <NAME> - X36OSY - KP FEL CVUT, zdarekj@fel Pro maximalni zkraceni kodu bylo obetovano mnoho kodu, ktery dela program skutecne pouzitelnym, napr.: parametrizace ulohy z prikazove radky, testovani navratovych kodu vsech funkci, kt...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2018 Couchbase, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ht...
/* Copyright (c) 2022 ALIF SEMICONDUCTOR 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 conditions ...
#define MIN(x, y) (((x) < (y)) ? (x) : (y)) #define MAX(x, y) (((x) > (y)) ? (x) : (y)) #include "petscmat.h" #include "petsc_matvec_utils.h" #undef __FUNCT__ #define __FUNCT__ "MatAXPBYmy" PetscErrorCode MatAXPBYmy(PetscScalar a,PetscScalar b,Mat X,Mat Y,Mat *Z) { /* Compute Z = a*X + b*Y, where X,Y,Z are matrices, ...
/*- * Copyright (c) 2015 The FreeBSD Foundation * All rights reserved. * * This software was developed by Semihalf under * the sponsorship of the FreeBSD Foundation. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are...
/* * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. * AUTHOR : <NAME> * CO-PILOT : <NAME> * Copyright (c) 2014 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as * published by the ...
/* * 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 without...
/*- * BSD LICENSE * * Copyright (c) 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 code must retain the above copyri...
/* * forwarding.c: Forwarding queries to other ident servers. * aidentd * * Copyright (c) 2018 <NAME>, https://arkku.com */ #include "forwarding.h" #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <errno.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h>...
#include<stdio.h> #include<string.h> struct student{ char name[20]; int score; }; int who_are_you(); void base_pr(struct student *, int); void num_sequence_pr(struct student [], int); void spell_sequence_pr(struct student [], int); double get_average(struct student [], int); int main() { int signal = 1; in...
/* * Copyright 2008, <NAME>. All rights reserved. * Distributed under the terms of the MIT License. */ #include <KernelExport.h> #include <stdlib.h> #include <string.h> #include <ide_adapter.h> #define IT8211_CONTROLLER_MODULE_NAME "busses/ide/it8211/driver_v1" #define IT8211_CHANNEL_MODULE_NAME "busses/ide/it8211...
#include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include <net-snmp/agent/snmp_agent.h> #include <net-snmp/agent/snmp_vars.h> #include "../hr_disk.h" #if HAVE_DIRENT_H #include <dirent.h> #endif #if defined(HAVE_REGEX_H) && defined(HAVE_REGCOMP) #include <regex.h> #endif #include <linux/fs....
/* * License: Zlib * Copyright (c) <NAME> (<EMAIL>) */ #include "Radiant.h" #include "Internal.h" #include "Internal_Opengl.h" #include <stdint.h> #include <GLFW/glfw3.h> #include <stdlib.h> #include <stdio.h> static GLFWwindow *win; static uint videoResolution[2]; GLFWwindow *Video_GetWin() { return win; } s...
// extract level data from uncompressed dave.exe // named as levelxx.dat #include <stdio.h> #include <string.h> #include "util.h" // all levels in the exe static level_t levels[NUM_EXE_LEVELS]; // copy a single level structure for external use void Util_GetLevel( unsigned n, level_t* lvl ) { if ( n > NUM_EXE_LEVELS ...
#include <sys/param.h> #include <sys/errno.h> #include <sys/fcntl.h> #include <sys/libkern.h> #include <sys/proc.h> #include <sys/stat.h> #include <sys/syscallsubr.h> #include <sys/syslog.h> #include <sys/sysproto.h> #include <sys/time.h> #include <sys/types.h> #include <sys/uio.h> #include <fsyscall/private.h> #inclu...
/* * Copyright (c) 2018 <NAME> * https://github.com/iotaledger/entangled * * MAM is based on an original implementation & specification by apmi.bsu.by * [ITSec Lab] * * Refer to the LICENSE file for licensing information */ #include <stdlib.h> #include <string.h> #include "mam/v2/wots/wots.h" /* * Private f...
/* This file is part of fotix * Copyright (c) 2013 <NAME> * * keyboard.c -- Defines the functions related to the * keyboard driver. */ #include "include/keyboard.h" keymap_t us = { { /* Normal keys */ /* first row - indices 0 to 14 */ 0, 27, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '='...
/** @file A brief file description @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you und...
/* ui_mods.c <NAME> (<EMAIL>), 16 Jun 2021 FreeBSD-style copyright and disclaimer apply */ #include "common.h" #include "render/ui.h" #include "ui/ui.h" // ----------------------------------------------------------------------------- // mods // ------------------------------------------------------------------...
/* * board.c * Ce fichier regroupe l'ensemble des fonctions * qui gèrent le plateau de jeu. * * Le plateau de jeu se présente comme une matrice de caractères de 15 lignes * par 19 colonnes (constantes ROWS et COLS). * Cette matrice est créée à partir d'un fichier map composé de caractères * correspondant à un c...
/* * * termio.c - Terminal support routines for unix * * <NAME> * November 7, 1987 * * This file contains low level routines for manipulating screen input * and output. These functions were originally defined as part of the * Borland C library under MSDOS, but have been converted here to run * under unix. I...
/* Operating system specific defines to be used when targeting GCC for hosting on Windows32, using GNU tools and the Windows32 API Library. Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/o...
/* * File: main.c * Author: svaigen * * Created on April 24, 2015, 10:08 AM */ #include "main.h" par_inteiros sorteia() { par_inteiros p; int i; srand(time(NULL)); for (i = 0; i < 500000000; i++); p.a = populacao[(int) rand() % 19]; p.b = populacao[(int) rand() % 19]; return p; } ...
/****************************************************************************** * * Copyright (C) 2014 Google, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://ww...
#include "iob-knn.h" #include "KNN_sw_reg.h" #include "interconnect.h" #include "iob-uart.h" #include "string.h" #define TEST_ONLY_SOFTWARE 0 #define UNITS 16 #define myAssert(expr) if(!(expr)){ uart_printf("Assert line:%d\n",__LINE__); uart_finish();} static int s_base; typedef union{ struct{ u16 x,y; }; u32 ...
/* t-netmac.c Copyright: Copyright (c) 2008 SFNT Finland Oy. All rights reserved Description: Tests for sshnetmac API. */ #include "sshincludes.h" #include "ssheloop.h" #include "sshtimeouts.h" #include "sshnetmac.h" #include "sshnetconfig.h" #include "sshgetopt.h" #define SSH_DEBUG_MODULE...
#include <math.h> #include <assert.h> #include <immintrin.h> #include <xmmintrin.h> float __interpolation_normal(const float *image, const int width, const float cx, const float cy) { float lx = floor(cx); float ly = floor(cy); float ux = lx + 1.0; float uy = ly + 1.0; ...
/* * $Id: bgp_dump2.c,v 1.1.1.1 2000/08/14 18:46:10 labovit Exp $ */ #include <mrt.h> #include <bgp.h> #include <io.h> #ifndef NT #include <sys/wait.h> #endif /* NT */ int bgp_table_dump_write (int fd, int type, int subtype, int viewno, int seq_num, u_char *pp, int len) { u_char buffer[MAX_MSG_SIZE...
// DGen/SDL v1.15+ // Module for loading in the different rom image types (.bin/.smd) #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> static int load_bin_into(char *name,unsigned char *into) { FILE *hand=NULL; int file_size=0; hand=fopen(name,"rb"); if (hand=...
/* Description: This program implements my backtracking method of solving the "N-Queens Problem" Author: <NAME> (1046900) Year: 5 Parallel Programming in Machine Learning Problems Electrical and Computer Engineering Department, University of Patras Syst...
#define _XOPEN_SOURCE_EXTENDED 1 #include <stdlib.h> #include <stdio.h> #include <curses.h> WINDOW *mainWindow; int rows, columns; int score_p1 = 0; int score_p2 = 0; bool sound = true; //struct json_object *new_obj; struct Ball { int x; int y; bool left; bool right; bool up; bool down; ...
/* COPYRIGHT 2018 <NAME> UNDER THE MIT LICENSE * * SEE LICENSE.MD FOR MORE INFORMATION */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <termios.h> #include "vterm.h" #define ASCII_VALID_START 0x20 #define ASCII_VALID_END 0x7E char* sh_getline(char* buff, int len) { int buff_i...
/* * Copyright (C) 2017 EPFL-LSRO (Laboratoire de Systemes Robotiques). * * 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...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) International Business Machines Corp., 2001 * Copyright (C) 2017 <NAME> <<EMAIL>> */ /* * DESCRIPTION * Testcase to check the basic functionality of the times() system call. * * ALGORITHM * This testcase checks the values that times(2) system call ...
#include "pci.h" #include "../asm/asm.h" #include "../vga/vga.h" #include "../mem/vmm.h" pci_device_t pci_devices[20]; unsigned int pci_devices_num=0; unsigned int pci_read(unsigned int bus, unsigned int device, unsigned int function, unsigned int addr) { outl(PCI_CONFIG_ADDR, ((unsigned int) 0x80000000 | (bus << 1...
//**********************************************************************; // Copyright (c) 2015, 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 s...
#include "tap.h" #include "msutil.h" #include "xmutil.h" struct { XMM inp; int exp; } ffstestv[] = { { (__v2di){0, 0}, -1 }, { (__v2di){1, 0}, 0 }, { (__v2di){2, 0}, 1 }, { (__v2di){3, 0}, 0 }, { (__v2di){4, 0}, 2 }, { (__v2di){0x100, 0x100}, 8 }, { (__v2di){0x200, 0x100}, 9 }, { ...
#include <siphon.h> #include <arpa/inet.h> #define HASHSIZE 1000 struct nlist { struct nlist *next; char *name; unsigned hashval; }; static struct nlist *hashtab[HASHSIZE]; unsigned hash(char *); char *oslookup(int,int,int); struct nlist *lookup(char *); struct nlist *install(char *); int tag = 0; void *lo...
/* * lower_bound.cu * * Created on: 10/04/2012 * Author: <NAME> */ #include "lower_bound.h" #include <math.h> #include <pthread.h> #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/sysinfo.h> #include "utils/types.h" #define MAX_THREAD 256 #define MIN_THREAD_TH...
/* SPDX-FileCopyrightText: 2021 Comcast Cable Communications Management, LLC */ /* SPDX-License-Identifier: Apache-2.0 */ #include "test_common.h" /* Test a fully defined crud message. */ // clang-format off const struct wrp_string parts[3] = { { .s = "Partner 1", .len = 9 }, { .s = "Partner 2", .len = 9 }, ...
/** \file retroreplaywidget.c * \brief Widget to control Retro Replay resources * * \author <NAME> <<EMAIL>> */ /* * $VICERES RRFlashJumper x64 x64sc xscpu64 x128 * $VICERES RRBankJumper x64 x64sc xscpu64/x128 * $VICERES RRBiosWrite x64 x64sc xscpu64/x128 * $VICERES RRrevision x64 x64sc xscp...
#include "config.h" int main(void) { // Set the status every second. while(1) { setStatus(); sleep(1); } } int setStatus(void) { char status[MAXSTR + 1]; status[0] = '\0'; for (int i = 0; i < sizeof(countdowns) / sizeof(Countdown); i++) { char countdownText[MAXSTR]; ...
#include <errno.h> #include <string.h> #include <ctype.h> #include <unistd.h> #include "gsmhelper.h" #ifndef true #define true 1 #define false 0 #endif gn_gsm_number_type get_number_type(const char *number) { gn_gsm_number_type type; if (!number) return GN_GSM_NUMBER_Unknown; if (*number == '+') { type = GN_...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> /* Recebe uma matriz, junto com a posição de determinado elemento, e retorna true caso tenha um elemento repetido na mesma linha ou coluna que esse elemento. Caso contrário, retorna false. */ bool temNumeroRepetidoLinhaColuna(int **quebraCabeca, i...
#include "nine.h" #include "interp.h" /* kernel process support functions: * * note: the list of kernel procs are tracked in the "procs" list while the list * of interpreter procs are stored in the "progs" list. * * hosted virtual proc functions are located in vm.c * */ static int gpid = 0; ...
#include "cc-internal.h" /* * blob_encode * * simple encoder of binary to safe string. caller must free! */ static char hex[16] = {'0','1','2','3','4','5','6','7','8','9', 'a','b','c','d','e','f'}; static char *blob_encode(char *from, size_t len, size_t *enc_len) { char *enc, *e; unsigne...
/* include the enumerator header. */ #include "enum.h" #include "enum-thread.h" #include "enum-prune.h" /* include the c float header. */ #include <float.h> /* enum_prune_future_t: structure for holding information required for * future distance feasibility pruning closures. */ typedef struct { /* @ntest, @nprun...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* dumper_parts.c :+: :+: :+: ...
/* Copyright (c) 2002-2003 krzYszcz and others. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ #include <string.h> #include "m_pd.h" #include "shared.h" #include "loud.h" #include "vefl.h" #include "sic.h" #define CYCLE...
#include "test.h" #include "ebpn.h" DEFINE_TEST(test_ctor) { int layerspec[] = {2, 4, 5, 3}; t_ebpn *e = ebpn_ctor(layerspec, 4, .5, .8, 1, HTAN); test_assert(e != NULL, "ebpn allocation failed!"); test_assert(e->n_layers == 4, "number of layers"); test_assert(e->layers != NULL, "layers is NULL"...
/* * 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 ...
/* $Id$ Copyright 1989-2014 <NAME> This file is part of Linear/C3 Library. Linear/C3 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 3 of the License, or any later v...
#include "quakedef.h" #include "meshqueue.h" typedef struct meshqueue_s { struct meshqueue_s *next; void (*callback)(const entity_render_t *ent, const rtlight_t *rtlight, int numsurfaces, int *surfaceindices); const entity_render_t *ent; int surfacenumber; const rtlight_t *rtlight; float dist; dptransparentsor...
/* * This file is part of the coreboot project. * * Copyright (C) 2017 <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 Foundation; version 2 of the License. * * This program is d...
#include <stdio.h> char ch; int token; int row_num = 1; int col_num = 0; FILE *fin = NULL; enum e_TokenCode { TK_PLUS, // + TK_MINUS, // - TK_STAR, // * TK_DIVIDE, // / TK_MOD, // % TK_EQ, // == TK_NEQ, // != TK_LT, // < TK_LEQ, // <= TK_GT, // > TK_GEQ, //...
// // inversioni.c // // // Created by <NAME>,<NAME> on 10/10/2021. // #include <stdio.h> #include "stdlib.h" #include"string.h" typedef int array_type; /* fai il merge calcolando le inversioni */ void merge(array_type *array_input,unsigned int starting,unsigned int middle_point,unsigned int end, int*inversi...
#include <stdio.h> #include <stdlib.h> #include "mc_main.h" #include "pert.h" #include "mc_read_input.h" /* global variables */ extern struct Photon *photptr; extern struct Tissue *tissptr; extern struct Output *outptr; extern struct perturb *pertptr; extern struct SourceDefinition *source; extern struct D...
/* * Copyright (c) 2013 - 2015, 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 "board.h" #include "usb_device_config.h" #include "usb.h" #include "usb_device.h" ...
// Spectrogram display example // Include files #include <stdio.h> #include <gnuplot_c.h> // Gnuplot/C // Define constants #define PLOT_LENGTH 10 // Plot X axis length - change this to plot full or partial spectrogram #define X_AXIS_LENGTH 20 #define Y_AX...
/******************************************************************************* Crypto Speed Test Source File Company: Microchip Technology Inc. File Name: cryptoSTE_generate.c Summary: Pseudo-random sequence generators Description: This file contains functions to produce repeatable seque...
/************************************************************************ * * Definitions of Misc. Functions * ------------------------------ * * Copyright (C) 1993, 1994 <NAME> * * This file is part of PROFIL/BIAS. * * PROFIL/BIAS is free software; you can redistribute it and/or * modify it under the terms o...
/* Copyright (c) 2007 <NAME> <<EMAIL>> Copyright (c) 2009 <NAME> <<EMAIL>> Copyright (c) 2007-2009 Center for Bioinformatics, University of Hamburg Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyrigh...