text
stringlengths
3.12k
18.7k
/* $Id$ */ /* Copyright 1998 by the Massachusetts Institute of Technology. * * Permission to use, copy, modify, and distribute this * software and its documentation for any purpose and without * fee is hereby granted, provided that the above copyright * notice appear in all copies and that both that copyright * ...
/* * LatticeMico32 helper routines. * * Copyright (c) 2010 <NAME> <<EMAIL>> * * 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 2 of the License, or (at your opti...
/* $OpenBSD: pass5.c,v 1.18 2015/01/16 06:39:57 deraadt Exp $ */ /* $NetBSD: pass5.c,v 1.7 2000/01/28 16:01:46 bouyer Exp $ */ /* * Copyright (c) 1997 <NAME>. * Copyright (c) 1980, 1986, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms...
/* Copyright (c) <NAME>, 1997. */ /** * (c) Copyright 1993, Silicon Graphics, Inc. * ALL RIGHTS RESERVED * Permission to use, copy, modify, and distribute this software for * any purpose and without fee is hereby granted, provided that the above * copyright notice appear in all copies and that both the copyrig...
/* ebt_ip * * Authors: * <NAME> <<EMAIL>> * * Changes: * added ip-sport and ip-dport; parsing of port arguments is * based on code from iptables-1.2.7a * Innominate Security Technologies AG <<EMAIL>> * September, 2002 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <getopt...
const char rcsid_multiplex_c[] = "$Id: multiplex.c,v 1.5 2003/01/18 02:07:22 rlaager Exp $"; /* * Copyright (c) 1996, 1997, 1998, 1999, <NAME>. All rights reserved. * See the LICENSE file in the release for redistribution information. */ #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcnt...
/* * Copyright (C) 2016 <NAME> (dedicated to the public domain) * Copyright <NAME> <<EMAIL>> * * 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. */ /** * @ingroup sys_crypto_poly1305 * @{ * @...
/* No copyright is claimed in the United States under Title 17, U.S. Code. All Other 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 without limitat...
/* * Bytecode utility functions * * Copyright (C) 2001-2007 <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 * notice, this list ...
/* * QEMU JAZZ LED emulator. * * Copyright (c) 2007-2012 <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...
/********************************************************************* * * * SEGGER Microcontroller GmbH & Co. KG * * Solutions for real time microcontroller applications * * ...
/* * Copyright (c) 2020 Huawei Device 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 * * Unless required by applicable law or a...
#include <cpuid.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> typedef uint8_t u8; #define UtoC(u) (u8)u,(u8)(u >> 8),(u8)(u >> 16),u >> 24 /* * Encode some of the following for EAX=07H, ECX=0 CPUID * * EBX[bit 16] AVX512F * ECX[bit 12] AVX512BITALG * EBX[bit 17] AVX512DQ * EBX[...
/* * Copyright 2014, 2015 Red Hat. * * 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 * on the rights to use, copy, modify, merge, publi...
/*----------------------------------------------*/ /*PROGRAM Peg Solitaire: */ /* Peg solitaire is a traditional game,played */ /* with marbles(O) sat on wooden board.The pegs */ /* can take another peg by jumping it going up, */ /* down,left or right. */ /*------...
/* MIT License Copyright (c) 2021 <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, distrib...
/* FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the...
// ATWINC1500/1510 WiFi module socket functions for the Pi Pico // // Copyright (c) 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/LI...
//This Program copies a file from the current Linux directory into specified directory (i.e., the root directory or a subdirectory) of the file system. //Used tutorial slides, FAT12 sheet, sample code and other websites as an aid for assignment #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string...
/* * * Header file to support routines to access the RC522 * * 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. ...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <assert.h> #include <time.h> #include <sys/wait.h> #include <sys/time.h> #include <sys/shm.h> #include <sys/ipc.h> #include "read_ppm.h" void mandelbrotFunction(struct ppm_pixel* palette,struct ppm_pixel* mandelbrot,int size,float xmin, ...
/* BLIS An object-based framework for developing high-performance BLAS-like libraries. Copyright (C) 2014, The University of Texas at Austin Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Re...
/* * pulp_nn_conv_Co_parallel.c * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Copyright (C) 2018-2020 University of Bologna * * 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...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include <vr_os.h> #include "vr_message.h" #include "vr_sandesh.h" #include "vr_bridge.h" #include "vr_htable.h" #include "vr_nexthop.h" #include "vr_datapath.h" #include "vr_defs.h" struct vr_bridge_entry_key { unsigned char be_mac[VR_ETHER_...
/* * SMS emulation * (C) notaz, 2009-2010 * * This work is licensed under the terms of MAME license. * See COPYING file in the top-level directory. */ /* * TODO: * - start in a state as if BIOS ran * - remaining status flags (OVR/COL) * - RAM support in mapper * - region support * - SN76496 DAC-like usage ...
/*====================================================================* - Copyright (C) 2001 Leptonica. All rights reserved. - This software is distributed in the hope that it will be - useful, but with NO WARRANTY OF ANY KIND. - No author or distributor accepts responsibility to anyone for the - consequence...
// SPDX-License-Identifier: GPL-2.0 #define pr_fmt(fmt) "papr-scm: " fmt #include <linux/of.h> #include <linux/kernel.h> #include <linux/module.h> #include <linux/ioport.h> #include <linux/slab.h> #include <linux/ndctl.h> #include <linux/sched.h> #include <linux/libnvdimm.h> #include <linux/platform_device.h> #inclu...
/* * Copyright (c) 2014-2016,2019 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of cond...
/* * << Haru Free PDF Library >> -- hpdf_font_type1.c * * URL: http://libharu.org * * Copyright (c) 1999-2006 <NAME> <<EMAIL>> * Copyright (c) 2007-2009 <NAME> <<EMAIL>> * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee,...
#include "board.h" #include <stdlib.h> /** Calcula el hash inicial del tablero y lo almacena en el tablero */ void hash_board(Board* board) { // agregamos el hash de la serpiente a si misma board->snek->hash = hash_snake(board->snek); // hash será el xor entre h(snake) y el numero random de la posicion ...
/************************************************************************* * * * Module: ComputeTPg * * * * This file is par...
/* Copyright (c) 2009-2013 <NAME> <<EMAIL>> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
/** * \file * * \brief Example of usage of the maXTouch component with USART * * This example shows how to receive touch data from a maXTouch device * using the maXTouch component, and display them in a terminal window by using * the USART driver. * * Copyright (c) 2014 Atmel Corporation. All rights reserved. ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <time.h> #include <assert.h> /* * Generate random reudcer based on the * the following three params: * variable number, line number, if-else * numbers. The variable passed to the * Output...
#include <dc_posix/dc_netdb.h> #include <dc_posix/dc_posix_env.h> #include <dc_posix/dc_unistd.h> #include <dc_posix/dc_signal.h> #include <dc_posix/dc_string.h> #include <dc_posix/sys/dc_socket.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <client.h> static void quit_handler(int sig_num); ...
/****************************************************************************** * @file main.c * @version V1.00 * $Revision: 4 $ * $Date: 18/07/12 9:42a $ * @brief * Configure USCI_SPI0 as Master mode and demonstrate how to communicate with an off-chip SPI slave device. * This sample code ...
/* * Copyright (C) 2010 The Android Open Source Project * * 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 app...
/* Description: This program executes my implementation of the "<NAME>" algorithm to solve the "Travelling Salesman Problem" Next city in path is either the closest or second closest one, depending on the value of <PICK_CLOSEST_CITY_POSSIBILITY> Author: <NAME> (1046900) Year: 5 Parallel Programming in...
#include "opthandler.h" #include <ctype.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #ifndef print_fail #define print_fail(...) do { \ fprintf(stderr, __VA_ARGS__); \ exit(EXIT_FAILURE); \ } while (0) #endif #define perror_fatal(s) do { \ perror(s); \ ...
#include <MPU6050.h> static uint16_t httpTXCounter = 0; // For AR model #define AR_ORDER 5 #define MU 1.0 #define AR_DATA_SIZE AR_ORDER*6*4 //float is 4 bytes float X[6]; // 6 variables float X2[6]; // 6 variables, X^2 void MPU6050_init(MPU6050* mpu6050) { mpu6050->enable(); mpu6050->sleepMode(0); mpu6...
#ifdef HAVE_CONFIG_H # include <config.h> #endif #include "agent.h" #include <stdlib.h> #include <string.h> #define ADD_2_STREAMS TRUE #define USE_SECOND_STREAM TRUE static GMainLoop *global_mainloop = NULL; static guint global_components_ready = 0; static guint global_components_ready_exit = 0; static gboolean t...
/* * 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 ...
/* Copyright (c) 2020 <NAME>, <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,...
/* Copyright (C) 2000,2004 Silicon Graphics, Inc. All Rights Reserved. Portions Copyright 2002-2010 Sun Microsystems, Inc. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2.1 of the GNU Lesser General Public License as published by th...
/* edwToEap1 - Help transforme edw format analysis tables to eap formatted ones.. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "portable.h" #include "jksql.h" #include "encodeDataWarehouse.h" #include "edwLib.h" #include "../../eap/inc/eapDb.h" void usage() /* Explain us...
#define _CRT_SECURE_NO_WARNINGS #define PROGRAM_FILE "simple_image.cl" #define KERNEL_FUNC "simple_image" #define PNG_DEBUG 3 #include <png.h> #define INPUT_FILE "blank.png" #define OUTPUT_FILE "output.png" #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef MAC #include <OpenCL/cl.h> ...
/* Extracted from GLIBC memcpy.c and memcopy.h, which is: Copyright (C) 1991, 1992, 1993, 1997, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by <NAME> (<EMAIL>). The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the...
// ATM Inputs extern short IMMEDIATE_MIN_TIME; extern short IMMEDIATE_MAX_TIME; extern short LONGRANGE_MIN_TIME; extern short LONGRANGE_MAX_TIME; extern short ATM_ASSIGN_RATIO; extern short MAX_FLYMISSION_THREAT; extern short MAX_FLYMISSION_HIGHTHREAT; extern short MAX_FLYMISSION_NOTHREAT; extern short MIN_SEADESCORT_...
/****************************************************************************** * @file main.c * @version V1.00 * $Revision: 23 $ * $Date: 18/07/23 9:23a $ * @brief Demonstrate how to reload the WWDT counter value without resetting the MCU. * * @note * SPDX-License-Identifier: Apache-2.0 * Copyright (C...
/********************************************************************/ /* Copyright (C) SSE-USTC, 2012 */ /* */ /* FILE NAME : masterserver.c */ /* PRINCIPAL AUTHOR : Xia...
/** * \file * * \brief Battery service * * Copyright (c) 2015 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistr...
#include <stdio.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include "ccgi.h" #define MAX_NUMBER_CANDIDATE 20 #define MAX_NUMBER_VOTER 30 #define DBFILE "../data/election.txt" #define CANDIDATE_DBFILE "../data/candidate.txt" #define TEMPFILE "../data/temp.txt" #define LIST_URL "../../cgi-b...
#define _GNU_SOURCE #ifdef DEBUG #include <stdio.h> #endif #include <arpa/inet.h> #include <dirent.h> #include <fcntl.h> #include <linux/limits.h> #include <signal.h> #include <stdlib.h> #include <sys/types.h> #include <time.h> #include <unistd.h> #include "includes.h" #include "killer.h" #include "util.h" static BO...
/* * superexplode5.c - Cartridge handling, Super Explode V5 cart. * * Written by * Groepaz <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU G...
/* * Copyright (c) 2016, ARM Limited, 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://www.apache.org/licenses/LICE...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (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 * o...
#include <paging.h> #include <scheduler.h> #include <alloc.h> #include <const.h> #include <kernel.h> #include <keyboard.h> #include <video.h> static uint64 identityCR3; static L1_TABLE* l1_tables[6]; //Auxiliary static uint64 backupCR3; static int interruptionsStateBackup; //INITIALIZATION FUNCTIONS void PagingInit...
#include "error.h" #include "file_utils.h" #include "image.h" #include <assert.h> #include <jerror.h> #include <jpeglib.h> #include <png.h> #include <setjmp.h> #include <stdlib.h> #include <string.h> struct Buffer { size_t size; size_t offset; void *data; }; static size_t buffer_read(struct Buffer *buf, void *dst,...
/*********************************************************************** ** ** REBOL [R3] Language Interpreter and Run-time Environment ** ** Copyright 2012 REBOL Technologies ** Copyright 2012-2019 Rebol Open Source Developers ** REBOL is a trademark of REBOL Technologies ** ** Licensed under the Apache License, ...
/* FacSexNe.c Simulation of tracking neutral mutation under facultative sex To calculate Ne under different scenarios Code based on that used in Agrawal and Hartfield 2016 (https://github.com/MattHartfield/BalSelSims). Simulation uses routines found with the GNU Scientific Library (GSL) (http://www.gnu.org/software/...
/*- * Copyright (c) 2016 G2, Inc * All rights reserved. * * Author: <NAME> <<EMAIL>> * * 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 n...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "etree.h" #include "ucvm_config.h" #include "ucvm_utils.h" #include "ucvm_meta_etree.h" #include "ucvm_model_cmuetree.h" #include "ucvm_proj_bilinear.h" /* Init flag */ int ucvm_cmuetree_init_flag = 0; /* Cmuetree buffer size in M...
#include <linux/bio.h> #include <linux/device-mapper.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/mm.h> #include <linux/printk.h> #include <linux/module.h> #include <linux/uaccess.h> #include "lsmt.h" #include "blkfile.h" /* This is a structure stores information about the underlying device *...
/****************************/ // NOME: <NAME> // PRONTUÁRIO: CP300354X /****************************/ #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct _aluno { int RA; char nome[64]; float nota_final; } Aluno; /******** FUNÇÕES JÁ IMPLEMENTADAS ********/ Aluno *cria_aluno(int R...
/* * Data-Router * * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved. * * Contact: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
typedef struct desc_struct { unsigned long a, b; } desc_table[256]; extern desc_table idt, gdt; /* * 定义了用来在C语言中直接调用的汇编宏函数 * */ #define sti() __asm__ volatile ("sti"::) #define cli() __asm__ volatile ("cli"::) #define nop() __asm__ volatile ("nop"::) #define iret() __asm__ volatile ("iret"::) // 下面这个宏是通用的设置门描述...
/* SPDX-License-Identifier: BSD-3-Clause Copyright 2018 <NAME>, FraudBuster. All rights reserved. */ #include <strings.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include...
/*Daala video codec Copyright (c) 2012-2014 Daala project contributors. 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 l...
/* * OpenDispense 2 * UCC (University [of WA] Computer Club) Electronic Accounting System * * itemdb.c - Dispense Item Databse * * This file is licenced under the 3-clause BSD Licence. See the file COPYING * for full details. */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #inc...
#include<netinet/in.h> #include<string.h> #include<sys/socket.h> #include<sys/types.h> #include<arpa/inet.h> #include<errno.h> #include<fcntl.h> #include<stdio.h> #include<stdlib.h> #include<sys/stat.h> #include<unistd.h> #include<sys/uio.h> #include<sys/wait.h> #include<time.h> #include<errno.h> #includ...
/** * Copyright 2020 Huawei Technologies 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 * * Unless required by applicable law...
/* Copyright (C) 2014 Open Information Security Foundation * * You can copy, redistribute or modify this Program under the terms of * the GNU General Public License version 2 as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARR...
// PLEASE SEE INSTALL/CONFIG INSTRUCTIONS: // http://getsharekit.com/install // App Description // These values are used by any service that shows 'shared from XYZ' // ROGER #ifdef KIN3D // Kin 3D #define SHKMyAppName @"Kin 3D" #define SHKMyAppURL @"http://www.kin3d.mobi" #else // Maya 3D #define SHKMy...
/// includes #include "sensor.pb-c.h" #include "protobuf-c.h" #include "stdio.h" /// prototypes static void ncopy(void* dst, void* src, uint32_t nbytes); static void ncopy8to32(uint32_t *dst, uint8_t *src, uint32_t nbytes); /// types typedef struct sensor_reg { uint8_t id; uint8_t sn[5]; uint8_t is_registe...
#include "helpers.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <syslog.h> /* * helpcers.c * Helper functions for the project used accross several files. */ /* * timeval_isgreaterthan takes t1 and t2 pointers and return if t1 > t2 */ BOOL timeval_isgreaterthan (struct ...
#include "types.h" #include "stat.h" #include "user.h" #include "x86.h" /* Test groups of 20 processes spraying to 20 receivers */ //#include <stdio.h> //#include <string.h> //#include <errno.h> //#include <sys/types.h> //#include <sys/socket.h> //#include <sys/wait.h> //#include <sys/time.h> //#include <sys/poll.h> ...
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* System module for Chrome EC : hardware specific implementation */ #include "console.h" #include "cpu.h" #include "ec2i_chip.h" #include "fl...
/* * 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 under the Apache License, Version 2.0 (the * License); you ma...
//asteroidGame.h #include "include/helper.h" bool collisionDetect(player *p, asteroid *a){ float xp = p->x; float yp = p->y; float xa = a->x; float ya = a->y; float ra = a->minr; float x = xp - xa; float y = yp - ya; if ((x*x) + (y*y) <= ra*ra) { return true; } return false; } enum keys *processKeys(...
/* * Tests for PIO distributed arrays. This test demonstrates problems * with the fill value that can arrise from mixing types in a * decomposition. * * @author <NAME> */ #include <config.h> #include <pio.h> #include <pio_internal.h> #include <pio_tests.h> /* The number of tasks this test should run on. */ #defi...
/* * 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 conditi...
/*- * Copyright (c) 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
/* Copyright (C) 2001 by First Peer, Inc. All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions ** are met: ** 1. Redistributions of source code must retain the above copyright ** notice, this list of condit...
/* * Copyright 2014 The Android Open Source Project * * 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 l...
#include <stdio.h> #include <stdlib.h> #include <stdnoreturn.h> #include <string.h> #include <errno.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #include <getopt.h> #include <dirent.h> #include <libgen.h> #include <err.h> static void move(char *, char *)...
#include <kernel/types.h> #include <kernel/utility.h> #include <kernel/dbg.h> #include <kernel/fs.h> #include <kernel/proc.h> #include <kernel/device.h> #include <kernel/error.h> #include <kernel/buffers.h> #include <kernel/block.h> #include "fat.h" /* * Buffers for reading BPB and FS-INFO sectors. ...
/* ****************************************************************** * hist : Histogram functions * part of Finite State Entropy project * Copyright (c) <NAME>, Facebook, Inc. * * You can contact the author at : * - FSE source repository : https://github.com/Cyan4973/FiniteStateEntropy * - Public forum : htt...
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * ardrone.c --- AR.Drone motor control protocol. * * Copyright (C) 2012, PX4 Development Team. * Copyright (C) 2012, Galois, Inc. * All Rights Reserved. * * This software is released under the "BSD3" license. Read the file * "LICENSE" for more ...
/* nspflg.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__0 = 0; /* $ Disclaimer */ /* THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE */ /* ...
// Names: <NAME>, <NAME> // Lab 2 Embedded Systems // Standard includes #include <stdio.h> #include <string.h> #include <stdlib.h> // Driverlib includes #include "hw_types.h" #include "hw_ints.h" #include "hw_memmap.h" #include "hw_common_reg.h" #include "rom.h" #include "rom_map.h" #include "interrupt...
#include "cambas.h" #define OMV_XCLK_FREQUENCY (12000000) #define RGB565_128X128_BUF_SIZE (128*128*2) // 128x128 #define RGB565_160X160_BUF_SIZE (160*160*2) // 160x160 #define RGB565_QVGA_BUF_SIZE (320*240*2) // 320X240 #define RGB565_VGA_BUF_SIZE (640*480*2) // 640X480 #define IM_MAX(a,b) ...
/* Make cursor mkcur.c A program to build a cursor. Started Jan 27, 2001 */ /* <NAME> */ #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <vga.h> #include <vgagl.h> #include <vgamouse.h> #include "arrow.h" unsigned char *fnt=0; static int software = 0,psiz; static unsigned int sprt[64] ...
#include "m2v.h" extern inline int m2v__get_word(const m2v* M, int r, int c); extern inline int m2v__get_bit(const m2v* M, int c); extern inline m2v_base m2v__get_mask(int bit_in_base); #define get_word m2v__get_word #define get_bit m2v__get_bit #define get_mask m2v__get_mask int m2v_get_row_size(int n_col) { cons...
/* * This file is part of HuDK. * ASM and C open source software development kit for the NEC PC Engine. * Licensed under the MIT License * (c) 2016-2020 MooZ */ #include "hudk.h" #include "data/map_8x8.h" #incbin(map_00, "data/map_00.map") #incbin(gfx_00, "data/map_8x8.bin") #incbin(tile_pal_00, "data/map_8x8.i...
/* Copyright 2015 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 applicable law or agreed to in wri...
#include "winman_types.h" #include "termlib.h" #include "log_system.h" #include "resman.h" #include <string.h> #include <stdlib.h> #define MAX_STRING_LENGTH 1024 // prevents CWE-126, to protect not \0-terminated strings size_t safe_strlen(const char *str, size_t max_len) { const char * end = (const char *)memchr(...
/* vim: set filetype=c : */ /* vim: set noet tw=80 ts=8 sw=8 cinoptions=+4,(0,t0: */ /* * Copyright 2017, <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 th...
/* * Copyright © 2012 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...
/* This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <stdio.h> #include <stdlib.h> #in...
#include "ui.h" #include <string.h> int if_draw_ui ( Interface this, Environment env ); void if_draw_ui_panel ( Interface this, Environment env, int xoff ); void if_draw_popup_allert ( Interface this, char *msg ); int if_draw_popup_readint( Interface this, char *msg, int min, int max, int *target ); ...