text
stringlengths
3.08k
10.5k
/** * fpcc-idx - Create a fingerprint index. * * * Author: <NAME> <<EMAIL>> */ #include <assert.h> #include <errno.h> #include <limits.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <unistd.h> #include "common.h" const char *program_name = "fpcc-idx"; static FILE *outfile = NULL; struct...
/** * @file background.c * @author <NAME> * @date June 18 2020 * @version 1.0 * * @section LICENSE * * 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,...
// This example shows the memory map used on an LPC1114 // and the working of the bmptk implementation of malloc() #include <stdlib.h> #include "bmptk.h" #include "timer.h" #include "sw-uart.h" #ifndef BMPTK_TARGET_db103 #error "this application is for a...
/** @file * Copyright (c) 2018-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 * * ht...
#include "operator.h" struct operator ops[] = { { "(", ")", 15, ASS_LEFT, OPTYPE_FN_CALL , OP_LBRACK }, { "::", "", 15, ASS_LEFT, OPTYPE_BINARY , OP_CC }, { ".", "", 15, ASS_LEFT, OPTYPE_BINARY , OP_PERIOD }, { "[", "]", 15, ASS_LEFT, OPTYPE_SUBSCRIPT, OP_LBRACK }, { "++...
/* * Copyright (c) 2018 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCL...
#include "discord_rpc.h" #define WIN32_LEAN_AND_MEAN #define NOMCX #define NOSERVICE #define NOIME #include <windows.h> #include <psapi.h> #include <wchar.h> #include <stdio.h> int get_process_id(void) { return (int)GetCurrentProcessId(); } /** * Updated fixes for MinGW and WinXP * This block is written the wa...
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <fcntl.h> #include <getopt.h> #include <poll.h> #include <signal.h> #include <string.h> #include <sys/stat.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include <libinput.h> #include <libudev.h> #define SOCK_PATH "/tmp/WacKeys.soc...
#include <assert.h> #include <errno.h> #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "edfistatsparse.h" static const char *header_suffix = ""; static void usage(const char *progname) { printf("usage:\n"); printf(" %s [ -s header-suff...
#define _GNU_SOURCE #include <stdint.h> #include <sched.h> #include <sys/syscall.h> #include <sys/wait.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <asm/unistd_64.h> /*** Vulnerable code ***/ /* * unsafe_put_user(signo, &infop->si_signo, Efault); // Write...
#include "config.h" #include <stdio.h> #include <atl.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #include <stdlib.h> #include <string.h> #include "cm.h" #include "libltdl/ltdl.h" #ifdef HAVE_WINDOWS_H #include <windows.h> #define drand48() (((double)rand())/((double)RAND_MAX)) #define lrand48() rand() #define s...
/* * lux OS kernel * copyright (c) 2018 by <NAME> */ #include <gdt.h> #include <kprintf.h> #include <mm.h> gdt_t *gdt; gdtr_t *gdtr; // gdt_init(): Creates a GDT // Param: Nothing // Return: Nothing void gdt_init() { gdt = kcalloc(sizeof(gdt_t), GDT_ENTRIES); gdtr = kcalloc(sizeof(gdtr_t), 1); gdtr->limit =...
#include <conio.h> #include <stdio.h> #include <windows.h> //同时define出Item数据类型及这种类型的指针 typedef struct item { int id; char name[35]; int amount; struct item *next; } Item, *ItemP; ItemP getTempWarehouse(); int mainMenu(); void drawWH(ItemP address); void drawOptions(int menuOption); void getInput(int...
/* Copyright 2011-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 agreed to in writing, software ...
/* * Copyright (C) 2021 GreenWaves Technologies * * 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...
// Modified by <NAME> 2022 // MIT License // Based on: /************************************************* ** Command Line Interface ** This is from https://github.com/eleciawhite/reusable ** (MIT license) ** ** To use it in the simulator, press run ** It should print `Welcome to the Consolinator, your gateway to t...
#include <xc.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <math.h> #include <string.h> #include "main.h" #include "dsPIC33F_IO.h" #include "dsPIC33F_UART.h" volatile char RcvBuff[RBUFF]; // UART TTY Serial Command Buffer volatile char commands[MAX_COMMAND_ENTRIES]; ...
#include "fasttransforms.h" #include "ftutilities.h" #define FLT float #define X(name) FT_CONCAT(ft_, name, f) #define Y(name) FT_CONCAT(, name, f) #include "test_transforms_source.c" #undef FLT #undef X #undef Y #define FLT double #define X(name) FT_CONCAT(ft_, name, ) #define Y(name) FT_CONCAT(, name, ) #include "t...
/******************************************************************************* * NAME : <NAME> * CLASS : CSc 318 * DUE DATE : 04/21/2014 * INSTRUCTUOR : GAMRADT ******************************************************************************** * DESCRIPTION: * This program ca...
/* Copyright (c) 1999 <NAME> <<EMAIL>>. All rights reserved. See the file COPYING for license details. */ /* This code attempts to detect attack against imapd (AUTHENTICATE hole) and wuftpd (creation of deep directory). This code is to ilustrate use of libnids; in order to improve readability, some simplifications we...
//#include <sys/socket.h> //#include <netinet/in.h> //#include <arpa/inet.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> //#include <sys/types.h> #include <stdint.h> #include <time.h> #include <assert.h> #include "prand32.h" int sockfd = 0; //#define SATL_VERBOSE...
/* * timetrace.h - the timetrace service */ #pragma once #include <stdlib.h> #include <stdio.h> #include <base/limits.h> #include <base/time.h> // Change 1 -> 0 in the following line to disable time tracing globally. // Used only in debugging. #define ENABLE_TIME_TRACE 1 /** * Timetrace implements a circular bu...
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2014 MediaTek Inc. * Author: <NAME> <<EMAIL>> */ #include <linux/clk-provider.h> #include <linux/platform_device.h> #include "clk-mtk.h" #include "clk-gate.h" #include <dt-bindings/clock/mt2701-clk.h> static const struct mtk_gate_regs disp0_cg_regs = { ...
#include <stddef.h> #include <gtk/gtk.h> #include <string.h> #include <malloc.h> #include "library.h" char* strcat_realloc(char* str1, const char* str2) { char* new_str; size_t length; size_t str1length; if (str2 == NULL) return str1; str1length = 0; if (str1 != NULL) str1lengt...
/******************************************************************************* * Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG All * rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
#include "global.h" #include "sspi.h" // Core system clock speed. uint32_t SystemCoreClock = 64000000; // (Semihosting) extern void initialise_monitor_handles(); // Reset handler: set the stack pointer and branch to main(). __attribute__( ( naked ) ) void reset_handler( void ) { // Set the stack pointer to the 'en...
/* $XFree86: xc/lib/GL/glx/compsize.c,v 1.6 2004/01/28 18:11:38 alanh Exp $ */ /* ** License Applicability. Except to the extent portions of this file are ** made subject to an alternative license as permitted in the SGI Free ** Software License B, Version 1.1 (the "License"), the contents of this ** file are subject o...
/* * CryBabyCry - Code implementation * Copyright (c) 2021 <NAME> * * This code is released under the MIT License. * For conditions of distribution and use, see the license in LICENSE */ #include <validation.h> #include <stdio.h> #include <ai.h> #include "arm_math.h" #include "config.h" #include "stm32l4xx_hal....
/* * File: int_handlers.c * Purpose: Interrupt handlers * */ #include "../include/common.h" #include "../include/io.h" /********************************************************************/ /* Called by asm_exception_handler */ void exception_handler (void *framep) { /* * This is the exception handler for...
/* // Meru // BASIC UDP GAME SERVER LIBRARY // <EMAIL> */ // Contains basic informations // about a single client connected typedef struct clientInfo { struct sockaddr_in * address; socklen_t len; unsigned int id; time_t connectionTimeout; time_t spamTimeout; int spamCount; int spamLocked; ...
/*-*- 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│ ╚──────────────────────────────────────────────────────────────────────────────╝ │ ...
#include "rtc.h" #include "i8259.h" #include "lib.h" #include "terminal.h" volatile int interruptFlag; /* * RTC_INIT * DESCRIPTION: Initializes the rtc * INPUTS: none * OUTPUTS: none * RETURN VALUE: none */ void RTC_INIT() { // SRC: https://wiki.osdev.org/RTC // RTC Virtualization currTerm...
/* * Copyright (C) 1999-2001 The Regents of the University of California * (through E.O. Lawrence Berkeley National Laboratory), subject to * approval by the U.S. Department of Energy. * * Use of this software is under license. The license agreement is included * in the file MVICH_LICENSE.TXT. * * Developed at ...
/* * Copyright (C) 2017 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...
/* See LICENSE file for copyright and license details. */ #include "libparser.h" #include <stdlib.h> #include <string.h> struct context { const struct libparser_rule *const *rules; struct libparser_unit *cache; const char *data; size_t length; size_t position; char done; char exception; char error; }; stati...
/* Copyright (c) 2010 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. * * Timing benchmark for verifying a firmware image. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include "cryptolib.h" #incl...
/* ******************************************************************************* * Copyright (c) 2020-2021, STMicroelectronics * All rights reserved. * * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You...
/* * hyptop - Show hypervisor performance data on System z * * Hyptop z/VM data gatherer for diag 0c that operates on debugfs * * Copyright IBM Corp. 2010, 2017 * * s390-tools is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ #include ...
/* * * <NAME> * LAB 3, ZAD 1 * */ #include <sys/wait.h> #include <sys/stat.h> #define __USE_XOPEN_EXTENDED #include <ftw.h> #define __USE_XOPEN #include <unistd.h> #include <time.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <dirent.h> time_t usertime = 0; typedef struct d...
#include "core_allvars.h" int32_t sage(void); size_t myfread(void *ptr, size_t size, size_t nmemb, FILE *stream); size_t myfwrite(void *ptr, size_t size, size_t nmemb, FILE *stream); int myfseek(FILE *stream, long offset, int whence); void construct_galaxies(int halonr, int tree, int filenr); void evolve...
/* This file is part of GNUnet. Copyright (C) 2012 GNUnet e.V. GNUnet 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, or (at your option) any later version. G...
/* ---------------------------------------------------------------------------- * ATMEL Microcontroller Software Support * ---------------------------------------------------------------------------- * Copyright (c) 2011, Atmel Corporation * * All rights reserved. * * Redistribution and use in sou...
/*- * 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...
#include <sys/syscall.h> #include <pthread.h> #include <stdatomic.h> #include "agent.h" app_conn_cb_fn app_conn_event; app_disc_cb_fn app_disc_event; app_recv_cb_fn app_recv_event; int rdma_initialized = 0; char port[10]; //initialize memory region information void init_rdma_agent(char *listen_port, struct mr_contex...
/* * lp_cache.c * * Created on: July 13, 2016 * Updated on: Jan 22, 2017 * Author: <NAME>, Qige * Maintainer: Qige */ #include <stdio.h> #include <string.h> #include "lp_cache.h" void lpc_init(LPCache *lpc) { memset(lpc, 0, sizeof(LPCache)); lpc->start = lpc->data; lpc->length = sizeof(lpc->data) -...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <ftw.h> #include <zlib.h> #include "darshan-logutils.h" #define BUCKET1 0.20 #define BUCKET2 0.40 #define BUCKET3 0.60 #define BUCKET4 0.80 char * base = NULL; int total_single = 0; int total_multi = 0; int total_mpio = 0; int total_pnet = 0; ...
#include "holberton.h" #include <stdlib.h> int print_helper(printh_t *help_s, va_list args); printh_t *init_help_s(const char *, va_list args); /** * _printf - Prints variatic arguments based on format string. * @format: String passed, may contain zero, or more directives. * * Return: Number of characters print...
#include <stdio.h> #include <unistd.h> #include <string.h> #include <stdlib.h> long int worldpopulation = 7802435853; long int availablepopulation = 7802435853; long int humanpoweroutput = 99; int activematrixes = 0; typedef struct matrix { long int population; long int poweroutput; int namelen; char...
#pragma once #include "defines.h" extern u8 TheOpposingString[]; extern u8 TheShadowString[]; extern u8 TheWildString[]; #define ILLUSION_HIDE_NAME(bank) \ { \ if (gStatuses3[bank] & STATUS3_ILLUSION) { \ memcpy(&(IllusionNickNameBackup[bank]), &...
/*++ /* NAME /* smtp_key 3 /* SUMMARY /* cache/table lookup key management /* SYNOPSIS /* #include "smtp.h" /* /* char *smtp_key_prefix(buffer, delim_na, iterator, context_flags) /* VSTRING *buffer; /* const char *delim_na; /* SMTP_ITERATOR *iterator; /* int context_flags; /* DESCRIPTION /* The Postfix SMTP server acce...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2012 The FreeBSD Foundation * Copyright (c) 2015 <NAME> <<EMAIL>> * Copyright (c) 2017 <NAME> * * This software was developed by <NAME> under sponsorship from * the FreeBSD Foundation. * * All rights reserved. * This software was developed...
// PiMobile Engine Control Library #include <wiringPi.h> #include <math.h> #include <unistd.h> #include "pimobile-api-client.h" #ifdef DEBUG #include <stdio.h> #endif static const int PWM_MAX = 1024; static const char GPIO_LEFT_PWM = 19; static const char GPIO_LEFT_A = 6; static const char GPIO_LEFT_B = 13; static...
#include "np2glue.h" //#include "compiler.h" //#include "cpucore.h" //#include "pccore.h" //#include "iocore.h" #include "sound.h" #include "fmboard.h" /* DOSBox-X replacement for nevents here */ static unsigned char nevent_is_set[2] = {0,0}; enum { NEVENT_FMTIMERA=0, NEVENT_FMTIMERB }; /* meaningless no...
/* * Copyright (C) 2010, <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 program is distribu...
#include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef int ElemType; //结点定义 typedef struct{ struct node* next; ElemType data; }Node; //初始化单链表结点 void InitNode(Node* N, ElemType item, Node *ptr){ N->data = item; N->next = ptr; } //插入一个单链表结点, 把p插在N后 void InsertAfter(Node* N, Node* p){ ...
/* * Copyright (C) <NAME> * Copyright (C) librdmaemu */ #include <stdint.h> #include <getopt.h> #include <signal.h> #include <string.h> #include "rdma.h" #include "util.h" #include "epoll.h" #include "threadpool.h" #define CONF "rdma.conf" #define PROGRAM_VERSION "0.1" extern struct epoll_event *events; static ...
/* hw_cluster_labs_err.c */ /* ==================================================================== * Copyright (c) 1999-2002 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are ...
/* Author: <NAME> <<EMAIL>> Copyright (c) 2015 Cromulence 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 rights to use, copy, modify, m...
// // Copyright (c) 2020 Stylus Labs - see LICENSE.txt // based on nanovg: // Copyright (c) 2013 <NAME> <EMAIL> // #include <stdio.h> #include "platform.h" #include <GLFW/glfw3.h> #include "nanovg.h" #define NANOVG_GL3_IMPLEMENTATION #include "nanovg_gl.h" #include "nanovg_gl_utils.h" #define NANOVG_SW_IMPLEMENTATION...
/* ERROR: The struct Resource doesn't exist in the includes, in the autodocs is only an APTR */ /* APTR */ #ifndef EXEC_TYPES_H #include <exec/types.h> #endif /* struct Library */ #ifndef EXEC_LIBRARIES_H #include <exec/libraries.h> #endif /* struct Resident */ #ifndef EXEC_RESIDENT_H #include <exec/reside...
// Copyright 2011 Google Inc. All Rights Reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the COPYING file in the root of the source // tree. An additional intellectual property rights grant can be found // in the file PATENTS. All contributing project authors may // be...
/*- * Copyright 2003-2005 <NAME> * Copyright 2012 <NAME> * All rights reserved * * Redistribution and use in source and binary forms, with or without * modification, are permitted providing that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice...
/* pinmux.c - Arduino SAM4S Xplained */ /* * Copyright (c) 2016 Intel Corporation * * 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 *...
/* * Copyright (c) 2018 - 2021, Nordic Semiconductor ASA * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code mu...
/* $NetBSD: wdc_amiga.c,v 1.8 2002/01/28 09:57:04 aymeric Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modifi...
/* Copyright (c) 2020 Intel Corp. All rights reserved * Contributed by <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitati...
#include <arpa/inet.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/epoll.h> #include <time.h> #include <unistd.h> #define SERVER_PORT 12345 #define EPOLL_SIZE 256 #define BUF_SIZE 512 #define EPOLL_RUN_TIMEOUT -1 typedef struct client_list_s { int...
/****************************************************************************//** \file flashLoader.c \brief Implementation of internal flash loader. \author Atmel Corporation: http://www.atmel.com \n Support email: <EMAIL> Copyright (c) 2008-2012, Atmel Corporation. All rights reserved. ...
#include <stdio.h> #include <stdlib.h> #include "mx_osdef.h" #include "mx_util.h" #include "mx_key.h" #include "mx_virtual_timer.h" static void oneshot_callback_1( MX_VIRTUAL_TIMER *vtimer, void *args ) { int *value_ptr; value_ptr = (int *) args; MX_DEBUG(-2,("ONE-SHOT CALLBACK 1: value = %d", *value_ptr)); } s...
/* e_cswift_err.c */ /* ==================================================================== * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are m...
/* +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://w...
// SPDX-License-Identifier: GPL-2.0 /* * arm_spe_decoder.c: ARM SPE support */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <errno.h> #include <inttypes.h> #include <stdbool.h> #include <string.h> #include <stdint.h> #include <stdlib.h> #include <linux/compiler.h> #include <linux/zalloc.h> #include "../a...
// // Projet Innovation - Perceptron multicouche // Copyright © 2021 <NAME>. // #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include "functions.h" #include "shuffle.h" #include "mnist.h" double init_rand() { return ((double)rand()) / ((double)RAND_MAX); } int maximum(int n, double ...
#include "taskimpl.h" #include <sys/poll.h> #include <fcntl.h> enum { MAXFD = 1024 }; static struct pollfd pollfd[MAXFD]; static Task *polltask[MAXFD]; static int npollfd; static int startedfdtask; static Tasklist sleeping; // 正在等待任务列表 static int sleepingcounted; static uvlong nsec(void); // fdtask是独有的 void fdtask...
#include "xglk.h" #include "xg_internal.h" #define BUTTONSIZE (10) void xweg_init_scrollbar(wegscroll_t *weg, void *rock, cmdfunc_ptr scrollfunc, cmdfunc_ptr scrolltofunc) { weg->rock = rock; weg->scrollfunc = scrollfunc; weg->scrolltofunc = scrolltofunc; } void xweg_draw_scrollbar(wegscroll_t *weg) { XRe...
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include <stdalign.h> #include <stdbool.h> #include "sw/device/examples/demos.h" #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/log.h" #include "sw...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <unistd.h> #include <fcntl.h> #include <time.h> #include <stdint.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/ipc.h> #include <sys/shm.h> #include <sys/mman.h> #include <sys/timerfd.h> #include <sched.h> #include <s...
/** * Copyright (c) 2017 - 2017, Nordic Semiconductor ASA * * 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...
/* * Copyright (c) 1999 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights * Reserved. This file contains Original Code and/or Modifications of * Original Code as defined in and that are subject to the Apple Public * Sour...
/**************************************************************************** * * Copyright 2016 Samsung Electronics 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...
#include <stdio.h> #include <time.h> #include <strings.h> #include <stdlib.h> #include "stdfn.h" int intro(char name[30], char author[40], int year, char license[10]) { printf("------------------------------------------------------------------------------------------------------------------\n"); printf("| ...
/* devBiAbDcm.c */ /* * Author: <NAME> * Date: June 9, 1995 * * Major revision July 22, 1996 */ /************************************************************************* * Copyright (c) 2003 The University of Chicago, as Operator of Argonne * National Laboratory, the Regents of the University of Cali...
/* * Copyright 2015-2018 Yubico AB * * 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 i...
/* * Driver for simulating a mouse on GPIO lines. * * Copyright (C) 2007 Atmel Corporation * 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 version 2 as * published by the Free Software Foundatio...
/* * Copyright (c) 2014, University of Washington. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group. */ #include <stdlib....
#include <assert.h> #include <drm_fourcc.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <wlr/render/drm_format_set.h> #include <wlr/util/log.h> #include "render/drm_format_set.h" void wlr_drm_format_set_finish(struct wlr_drm_format_set *set) { for (size_t i = 0; i < set->...
// Copyright (c) <NAME> <<EMAIL>> // // This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT License was not distributed with this file, // You can obtain one at https://spdx.org/licenses/MIT.html. #include "matoya.h" #include <string.h> enum { QUEUE_EMPTY = 0, QUEUE_FULL = 1,...
/* * 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 ...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: ...
#include "imu.h" extern void mdelay(uint32_t ms); #define Gyro_Parameter 0.0174532925 // 1sec/s = Gyro_Parameter * rad/s /*************获取原始数据*************/ float Angle,Gyro_Speed,Gyro_Speed_X=0; void Get_Attitude() { MPU6050_GetData(); } /*************根据原始数据解算角度和角速度*************/ void Angle_Calculate...
/* Copyright (c) 2016, prpl Foundation Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRA...
#include "main.h" #include<stdio.h> #include "nmouse.h" #include "move.h" #include"svgahead.h" #include"basicgf.h" #include"compo.h" #include<conio.h> #include"advance.h" #include"frame.h" #include"hzxs.h" #include"module_b.h" #include<string.h> #include<bios.h> #include"input.h" #include"color1.h" #inc...
// // arduino-serial-lib -- simple library for reading/writing serial ports // // 2006-2013, <NAME>, http://todbot.com/blog/ // #include "arduino-serial-lib.h" #include <errno.h> // Error number definitions #include <fcntl.h> // File control definitions #include <stdio.h> // Standard input/output definitions #i...
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <unistd.h> #include "hdf5.h" #include "h5_async_lib.h" /* #define DIMLEN 10 */ #define DIMLEN 1024 int print_dbg_msg = 1; int main(int argc, char *argv[]) { hid_t file_id, grp_id, dset1_id, dset0_id, dspace_id, async_dxpl, attr_space, attr0, a...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define uint unsigned int int display_help(int ac, char **av) { if (ac == 2 && !strcmp(av[1], "-h")) { printf("%s: a C program made for ruining clean code\n\nUSAGE:\n\t%s file_name [new_file_name]\n\tthe default name of the new file is boosted_code.c\n\nDES...
#define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <sys/auxv.h> #include "debugmenot.h" #include "test_env.h" #include "test_ptrace.h" #include "test_vdso.h" #include "test_noaslr.h" #include "test_parent.h" #include "test_ldhook.h" #include "test_nearheap.h" ...
/*=========================================================================== Copyright (c) 2012 Qualcomm Technologies, Inc. All Rights Reserved. Qualcomm Technologies Proprietary and Confidential. ===========================================================================*/ #include <sys/types.h> #include <sys...
#include <stdlib.h> #include <signal.h> #include <stdio.h> #include <SFML/Audio.h> #include "game.h" #include "scene.h" #include "entity.h" #include "libdragon.h" #include "rigid_body.h" #include "menu_struct.h" typedef struct data { dg_scene_t *scene_game; dg_scene_t *scene_past; menu_t *menu; sfVecto...
/******************************************************************************* * Copyright 2008-2020 by Aerospike. * * 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...
/* * Copyright © 2018 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the [0m~@~\License[0m~@~]); 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 ...