text
stringlengths
3.12k
18.7k
#include "rpi.h" #include "libc/bit-support.h" #define SCREEN_WIDTH 250 #define SCREEN_HEIGHT 180 #define BALL_WIDTH 10 #define BALL_HEIGHT 10 #define PADDLE_OFFSET 10 #define PADDLE_WIDTH 10 #define PADDLE_HEIGHT 30 #define PADDLE_Y 90 #define WIN_SCORE 8 #define CONTROLLER_UP 21 #define CONTROLLER_DOWN 20 #defi...
/* * Driver for Goodix Touchscreens * * Copyright (c) 2014 Red Hat Inc. * * This code is based on gt9xx.c authored by <EMAIL>: * * 2010 - 2012 Goodix Technology. */ /* * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as publishe...
/*------------------------------------------ * Copyright (c) 2017, Synopsys, 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 copyri...
/* * Copyright (c) 2007-2011, <NAME> <<EMAIL>> * * 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 AUT...
/* Shared library add-on to iptables to add LOG support. */ #include <stdio.h> #include <netdb.h> #include <string.h> #include <stdlib.h> #include <syslog.h> #include <getopt.h> #include <ip6tables.h> #include <linux/netfilter_ipv6/ip6_tables.h> #include <linux/netfilter_ipv6/ip6t_LOG.h> #ifndef IP6T_LOG_UID /* Old ke...
/*- * Copyright (c) 1999 <NAME> * Copyright (c) 1999, 2000 <NAME> * Copyright (c) 2000 BSDi * 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 reta...
/** * @file func.c * @date 2016/10/30 * @author <NAME> (<EMAIL>) * @brief Truth table creator. * @details * Artificial Intelligence, 7th Exercise\n * Copyright (C) 2016 System Intelligence Laboratory All Rights Reserved */ #include "prog_07.h" #include <stdint.h> #include <stdio.h> #include <stdlib.h> #inclu...
/* * * (C) COPYRIGHT 2010-2016 ARM Limited. All rights reserved. * * This program is free software and is provided to you under the terms of the * GNU General Public License version 2 as published by the Free Software * Foundation, and any use by you of this program is subject to the terms * of such GNU licence....
#include "./manila.h" #define DICE_NUM_MAX 6 #define DICE_NUM_MIN 1 #define PROJ_MIN(a,b) (((a)<(b))?(a):(b)) #define PROJ_MAX(a,b) (((a)>(b))?(a):(b)) __ProjManila_t* Manila = NULL; static int8_t __dice_cnt( int8_t target, int8_t try_num ){ if( ...
#include <assert.h> #include <errno.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <time.h> // Problem statement: // given array of positive distinct integers (in random order) // count number of tripples (not necesseraly sequential) that adds // to specified sum: // int sum3_count_O3(int a...
/** File: main.c Project: DCPU-16 Tools Component: Emulator Authors: <NAME> <NAME> <NAME> <NAME> Description: Main entry point. **/ #ifdef _WIN32 #include <io.h> #include <fcntl.h> #else #include <libgen.h> #endif #include <GL/gl...
#include <sys/types.h> #include <unistd.h> #include <stdio.h> #include <sys/mman.h> #include <sys/sem.h> #include <sys/wait.h> #include <sys/ipc.h> #include <sys/shm.h> #include <stdlib.h> #include <string.h> #include <openssl/md5.h> #define BUFFSIZE 200 void die(char *s) { perror(s); exit(1); }...
/* ../netlib/v3.9.0/spotrf2.f -- translated by f2c (version 20160102). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, a...
#include "hid_service.h" #include "esp_log.h" #include "gatt_handler.h" #include "host/ble_att.h" #include "host/ble_hs.h" #include <stdint.h> #define HID_TAG "hidservice" #define MOUSE_REPORT_ID 0x01 // HID service and some HOGP requested services' impl // static struct mouse_report_t { // uint8_t button; // ...
#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) 2014-2016 <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,...
/** * @file audio/wav_reader.c * @author <NAME> <<EMAIL>> */ /* * Copyright (c) 2013-2019 CESNET, z. s. p. o. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, is permitted provided that the following conditions * are met: * * 1. Redistributio...
/** * Copyright (c) 2012 - 2018, 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 notice, th...
/**************************************************************************** * * 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...
/* * Copyright (c) 2018, The Linux Foundation. All rights reserved. * Not a contribution * Copyright (C) 2016 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 Licen...
/** * Copyright (C) 2013-2015 Netronome Systems, Inc. All rights reserved. * * @file sim_nbi_pre_setup.c * @brief Set up NBI Preclassifier */ #include <errno.h> #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/stat.h...
/* * (C) Copyright 2005- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an int...
#include "tools.h" #include "uart.h" #include "mbox.h" #include "get_information.h" #include "gpio.h" #include "load_kernel.h" #include "utils.h" #include "lfb.h" // linker variable extern unsigned char __kernel_begin; extern unsigned char __bss_start; extern unsigned char __bss_end; extern unsigned char __bss_size; /...
/* * Copyright (c) 2018-2019 Snowflake Computing, Inc. All rights reserved. */ #include <string.h> #include <assert.h> #include "utils/test_setup.h" typedef struct test_case_to_string { const int64 c1in; const float64 c2in; const int64 c3in; const float64 c4in; const char *c2out; const char...
/**************************************************************************** * arch/arm/src/phy62xx/pplus_mtd_flash.c * * 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 copy...
/* lab3.c * <NAME> * Yulinx * ECE 222, Fall 2018 * MP3 * Subject: ECE222-1,#3 * * Purpose: We will use the psude charactor operation to do kind of * encrype the character string including Addition, multipition, division, * and power. * * Assumptions: * #1 The user is prompted to enter a pseudo arithmetic command....
/* Copyright 1995 by Abacus Research and * Development, Inc. All rights reserved. */ #if !defined (OMIT_RCSID_STRINGS) char ROMlib_rcsid_system_error[] = "$Id: system_error.c 88 2005-05-25 03:59:37Z ctm $"; #endif #include "rsys/common.h" #include "WindowMgr.h" #include "ControlMgr.h" #include "QuickDraw.h" #inc...
/*------------------------------------------------------------------------- * * format_type_remote.c * Map to remote DBMS types. * * * Copyright (c) 2019-2021 ZettaDB inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * combined with Common Clause Condition 1.0, as detailed ...
/******************************************************************************* The MIT License (MIT) Copyright (c) 2017 Gikoskos <<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 ...
/* $NetBSD: ip_mroute.h,v 1.12 1996/09/09 17:14:05 mycroft Exp $ */ /* * Definitions for IP multicast forwarding. * * Written by <NAME>, BBN Labs, August 1988. * Modified by <NAME>, Stanford, February 1989. * Modified by <NAME>, PARC, August 1993. * Modified by <NAME>, PARC, August 1994. * * MROUTING Revision:...
/* * Copyright (C) 2014 <NAME> * * 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 cpu_sam0_common * @ingroup drivers_periph_rtc * @{ * * @file * @brief Low-...
/* * librdkafka - Apache Kafka C library * * Copyright (c) 2018, <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 copy...
#include <fcntl.h> #include <getopt.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include <sys/stat.h> #include <unistd.h> #include "vcam.h" static const char *short_options = "hcm:r:ls:p:d:x"; const struct option long_options[] = { {"help", 0, NULL, '...
/* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * * -*- mode: c, c-basic-offset: 4 -*- */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
#ifndef lint static const char RCSid[] = "$Id: normtiff.c,v 3.16 2021/04/07 21:13:52 greg Exp $"; #endif /* * Tone map SGILOG TIFF or Radiance picture and output 24-bit RGB TIFF */ #include <math.h> #include "rtio.h" #include "platform.h" #include "tiffio.h" #include "color.h" #include "tonemap.h" #include "tmaptif...
#include <Python.h> #include <structmember.h> #include <stdio.h> #include <math.h> #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION #include "numpy/arrayobject.h" typedef struct { PyObject_HEAD long natm, ni; long *qm, *mm; double *sc; double *epsi, *rmin; } oQMLJ; static int QMLJ__init( oQMLJ ...
/* ################################################################### ** Filename : main.c ** Project : PapaCaliente ** Processor : MC9S08QE128CLK ** Version : Driver 01.12 ** Compiler : CodeWarrior HCS08 C Compiler ** Date/Time : 2019-11-04, 13:36, # CodeGen: 0 ** Abstrac...
/* $Id: w3mimgdisplay.c,v 1.19 2010/12/21 10:13:55 htrb Exp $ */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include "img-display.h" #define MAX_IMAGE 1000 static w3mimg_op *w_op; static char *background = NULL; static int offset_x = 0, of...
// // SENAC BCC PI 2 // Projeto Betelgeuse #include <stdlib.h> #include <stdio.h> #include <string.h> #include <time.h> #include <math.h> #include "utils.h" #include "engine.h" void swap(int *a, int *b) { int temp = *a; *a = *b; *b = temp; } int roundFloatToInt(float x){ int y; y = (int)(x + 0....
#include <stdio.h> #include <string.h> // strstr #include <stdlib.h> // malloc & free #include <ctype.h> // isspace & tolower #include "tree.h" node* insert(char* u, char* p, node* pos, int d) { node* temp; if (pos == NULL) { pos = (node*)malloc(sizeof(node)); pos->user = u; pos->password = p; pos-...
#include <X11/Xlib.h> #include <X11/Xutil.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <assert.h> #include "types.h" #include "draw.h" #include "klicknmenu.h" /* Create window */ void OpenWindow(DpyContent* display, Window parent) { XSetWindowAttributes theWindowAt...
/****************************************************************************** * * Copyright(c) 2007 - 2016 Realtek Corporation. * * 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 Free Software Founda...
//Copyright (c) 2003 by <NAME>. /****************************************************************/ /****************************************************************/ /* File Name : tree_util_prob.c */ /* Contains modules : read_tree */ /* read_subtree */ /* read_hp */ /* read_header */ /* is...
#include <signal.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #define PREFERRED SIGINT inline char fcn1(int val) { return (val == SIGTSTP); } inline unsigned char fcn2(unsigned char toRot, unsigned char numToRot) { unsigned char toRet; if(numToRot > 8) { toRet = toRot; } else toRot = toRot...
#include "../headers/topology.h" /* * Copyright <2012> <<NAME>,<NAME>, <NAME>> * Copyright <2013-2018> <<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, inclu...
/** * @file rn2483.c * @desc Driver for RN2483 LoRa radio * @author <NAME> * @date 2019-06-07 * Last Author: * Last Edited On: */ #include "rn2483.h" #include "rn2483-states.h" #include <string.h> #define RN2483_ANALOG_PINS_MASK ((1<<RN2483_GPIO0) | (1<<RN2483_GPIO1) | \ (1...
/* Copyright (c) 2008 - <NAME>. Permission is granted for use and modification of this file for research, non-commercial purposes. */ #include "common.h" #include "sysfunc.h" #include "functions.h" #include "trec_eval.h" /* Actual measures. Definition of TREC_MEAS below is from "trec_eval.h". Functio...
#pragma once #include "cBackend.h" #include <math.h> #include <gmp.h> double unpackDouble(Value *d); Value *believe_me(Value *, Value *, Value *); /* add */ Value *add_Bits8(Value *x, Value *y); Value *add_Bits16(Value *x, Value *y); Value *add_Bits32(Value *x, Value *y); Value *add_Bits64(Value *x, Value *y); Value...
/* american fuzzy lop++ - wrapper for llvm 11+ lld ----------------------------------------------- Written by <NAME> <<EMAIL>> for afl++ Maintained by <NAME> <<EMAIL>>, <NAME> <<EMAIL>> <NAME> <<EMAIL>> <NAME> <<EMAIL>> Copyright 2019-2020 AFLplusplus Project...
/* * phaselock.c - Phase locking for NTP client * * Copyright 2000 <NAME> <<EMAIL>> * Last hack: 28 November, 2000 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License (Version 2, * June 1991) as published by the Free Software Found...
/**************************************************************************** * @file main.c * @version V3.00 * $Revision: 5 $ * $Date: 18/07/16 10:28a $ * @brief * Transmit and receive data in UART IrDA mode. * This sample code needs to work with UART_IrDA_Slave. * @note * SPDX-Licens...
/* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, 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://www.apache.org/lice...
/* * %CopyrightBegin% * * Copyright Ericsson AB 2000-2016. 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 * ...
/* ** require("upb.table") -- a Lua extension for accessing upb_table ** ** This is an internal-only interface and exists for the sole purpose of ** writing a C code generator in Lua that can dump a upb_table as static C ** initializers. This lets us use Lua for convenient string manipulation while ** saving us from r...
/* * FIG : Facility for Interactive Generation of figures * Copyright (c) 2000-2007 by <NAME> * * Any party obtaining a copy of these files is granted, free of charge, a * full and unrestricted irrevocable, world-wide, paid up, royalty-free, * nonexclusive right and license to deal in this software and documentat...
#include <time.h> #include <stdio.h> #include <stdlib.h> //#include <math.h> //#include <direct.h> #include <string.h> #include <sys/stat.h> #include <ctype.h> #define LINE_LEN 4096 #define DEBUG 1 int getfileinfo(char *file_name, int *file_Len) { char src[LINE_LEN]; FILE *f_src; int num_row...
/* * Copyright 2008-2014 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 ap...
/* $OpenBSD: n_atan2.c,v 1.18 2013/07/15 04:08:26 espie Exp $ */ /* $NetBSD: n_atan2.c,v 1.1 1995/10/10 23:36:37 ragge Exp $ */ /* * Copyright (c) 1985, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, a...
// // main.c // Array_Creation // // Created by <NAME> on 23/04/20. // Copyright © 2020 <NAME>. All rights reserved. // #include <stdio.h> #include<stdlib.h> struct array { int A[14]; int size; int length; }; void add_append(struct array *arr,int x){ if(arr->length<arr->size) arr->A[arr->le...
/* Authors: <NAME> <<EMAIL>> * and <NAME> <<EMAIL>> * * Copyright (C) 2003,2010 Tresys Technology, LLC * * 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. * * Adapted fro...
// // potion-test.c // tests of the Potion C api // // (c) 2008 why the lucky stiff, the freelance professor // #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include "potion.h" #include "internal.h" #include "CuTest.h" PN num = PN_NUM(490); Potion *P; void potion_test_nil(CuTest *T...
/* pdp8_pt.c: PDP-8 paper tape reader/punch simulator Copyright (c) 1993-2017, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation...
// The Snipe editor is free and open source, see licence.txt. #include "indent.h" #include "style.h" #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <limits.h> #include <assert.h> // Fix tabs at four spaces for now. enum { TAB = 4 }; // Reuse the POINT/SELECT flags temporarily...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License (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 * or http://www.opensolar...
/* Copyright 2015, 2016 IoT.bzh author: <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 obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
const char num_1name[] = {"001$"}; const char num_2name[] = {"002$"}; const char num_3name[] = {"003$"}; const char num_4name[] = {"004$"}; const char num_5name[] = {"005$"}; const char num_6name[] = {"006$"}; const char num_7name[] = {"007$"}; const char num_8name[] = {"008$"}; const char num_9name[] = {"009$"}; const...
/* I2S Digital Microphone Recording Example 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. */ ...
/* * Copyright 2000-2001 VA Linux Systems, Inc. * 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, including without limitation * on the righ...
/* CalculiX - A 3-dimensional finite element program */ /* Copyright (C) 1998-2020 <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...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
/* * SPDX-License-Identifier: MIT * * Exercise the STAX serialization mechanism. A pool of threads * contends for holding a stax, half of them run in out-of-band mode, * half of them on the in-band stage. At any point in time, only * threads which run on the same stage should be allowed to share the * stax concu...
#include <stddef.h> #include <stdint.h> #include <kernel/kernel.h> #include <kernel/memory/memory_defs.h> #include <kernel/memory/memory_phys.h> #include <kernel/mboot/multiboot.h> #include <kernel/util/kstdio.h> extern uint32_t _end; extern uint32_t _start; uint32_t total_usable_lower = 0; uint32_t to...
#include <assert.h> #include <grp.h> #include <membership.h> #include <pwd.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include <uuid/uuid.h> #include "access_conf.h" static void get_test_user_and_group( char** username, char** groupname) { long bufsize; char* buffer;...
#include <stdio.h> #include <string.h> #include "configuration.h" #include "socket.h" #include <arpa/inet.h> #include <sys/socket.h> #include <signal.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> #include "tools.h" #include "http.h" #include "client.h" #include "fileReader.h...
#include <generated/autoconf.h> #include <linux/module.h> #include <linux/mm.h> #include <linux/init.h> #include <linux/fb.h> #include <linux/delay.h> #include <linux/device.h> #include <linux/platform_device.h> #include <linux/dma-mapping.h> #include <linux/earlysuspend.h> #include <linux/kthread.h> #include <linux/rt...
/***************************************************************************** * Boyer/Moore String Maching Algorithm *****************************************************************************/ #include <hthread.h> #include <string/boyermoore.h> #include <string/time.h> #include <string.h> #include <stdlib.h> #inc...
/* 01may14abu * (c) Software Lab. <NAME> */ #include "pico.h" /* Mark data */ static void mark(any x) { cell *p; if (isShort(x)) // short number return; while (num((p = cellPtr(x))->cdr) & 1) { *(word*)&cdr(p) &= ~1; if (!isNum(x)) mark(p->car); if (isNsp(x)) { // namespac...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <mach/mach.h> #include "kcall.h" #include "kmem.h" #include "find_port.h" #include "kutils.h" #include "symbols.h" #include "early_kalloc.h" extern uint64_t iokit_user_client_trap( mach_port_t connect, unsigned int index, ...
/*************************************************************************** Namco 52XX This instance of the Fujitsu MB8852 MCU is programmed to act as a sample player. It is used by just two games: Bosconian and Pole Position. A0-A15 = address to read from sample ROMs D0-D7 = data freom sample ROMs CMD = command fr...
/* Sarien - A Sierra AGI resource interpreter engine * Copyright (C) 1999-2003 <NAME> and <NAME> * * $Id$ * * 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; see docs/COPYING for fu...
#include <acknex.h> #include <d3d9.h> /************************************************************************************************/ /* DX9 API Includes */ /**********************************************************************************...
#include "model.h" #include "resultSort.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include "tool.h" void scoreSort() //查看全校排名 { ugnode *uSortCur = NULL, *uSortPre = NULL, *uOri = NULL, *uTmp = NULL; pgnode *pSortCur = NULL, *pSortPre = NULL, *pOri = NULL, *pTmp = NULL; int uflag, pflag,...
// Copyright 2017 The Australian National University // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by appli...
/************************************************************************** * * Copyright 2010 VMware, Inc. * 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 w...
/* $OpenBSD: mcpcia.c,v 1.5 2010/02/18 20:48:15 sobrado Exp $ */ /* $NetBSD: mcpcia.c,v 1.20 2007/03/04 05:59:11 christos Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME> of the Numerical Ae...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <time.h> #include <curl/curl.h> #define MAX_EMAIL_LENGTH 256 struct time_format { /* Wed Sep 9 08:21:57 2020 */ char * ctime_str; char day[4]; char month[32]; int second; int minute; int ho...
/* * ===================================================================================== * * Filename: linear.c * * Description: Generic Linear Algebra Solver for nxn matrix * * Version: 1.0 * Created: 02/24/2020 03:05:46 PM * Revision: none * Compiler: gcc * * ...
#include <cpu/cpu.h> #include <cpu/idt.h> #include <cpu/pic.h> #include <cpu/io.h> #include <debug.h> #include <kernel.h> #include <stdint.h> #include <cpu/ic.h> /** * The i386 architechture has 256 interrupts */ isr_callback_t interrupt_handlers[256]; int g_latest_irq; /* ISRs reserved for CPU exceptions */ exte...
#include <glib.h> #include <glib-object.h> #include <gtk/gtk.h> #include <gee/arraylist.h> #include <stdlib.h> #include <string.h> #define GTK_MATE_TYPE_BUNDLE (gtk_mate_bundle_get_type ()) #define GTK_MATE_BUNDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_MATE_TYPE_BUNDLE, GtkMateBundle)) #define GTK_MATE_BUNDLE_...
#include <stdint.h> #include <stdio.h> // We need this in order to use sizeof (just for that) #include <naiveConsole.h> #include <processController.h> #include <memoryManager.h> #include <scheduler.h> #include "interrupts.h" #define MAX_PROCESSES_QTY 60 #define STDIN 0 #define STDOUT 1 extern uint64_t printValuesFr...
/* * Copyright 2005 <NAME> * 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, including without limitation * the rights to use, copy, modify,...
#include <assert.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "symtable.h" #define HASHSIZ 509 #define ARR oSymTable->arr typedef struct token token; struct token { char *key; void *value; token *next; }; struct SymTable_T { token **arr; unsigned int siz; unsigned int now; }; SymTabl...
#include "schedule.h" // #define DEBUG /*=============================== extern and inlines ===============================*/ #ifdef DEBUG extern void show(argInfo*); #endif extern void usage(void); extern void execute(argInfo*); extern void save_info(argInfo*, pid_t); extern void delete_info(argInfo*, pid_t); void...
#include <app.h> #include <system_settings.h> #include <dlog.h> #include <json-glib.h> #include "otp.h" #include "database.h" #include "sap.h" void add_entry(char *data) { JsonParser *parser = json_parser_new(); GError *error = NULL; json_parser_load_from_data(parser, data, strlen(data), &error); if (error !=...
/* The MIT License (MIT) Copyright (c) 2015-? suhetao 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...
/* SDL - Simple DirectMedia Layer Copyright (C) 1997-2009 <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 2.1 of the License, or (at your o...
/* +--------------------------------------------------------------------------+ | CHStone : a suite of benchmark programs for C-based High-Level Synthesis | | ======================================================================== | | | | * Colle...
// Copyright (c) 2019 <NAME> // Licensed under an MIT style license, see LICENSE.md for details. // You are free to copy and modify this code. Happy hacking! #include "grid_engine/event.h" #include <SDL2/SDL.h> #include "grid_engine/log.h" static void abort_on_null(const void* ptr); static ge_keycode_t sdl_scancod...
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef unsigned char byte; char **basm_sym_name; void **basm_sym_addr; int basm_sym_nsym; int basm_sym_msym; void add_sym(char *name, void *addr) { int i; i=basm_sym_nsym++; basm_sym_name[i]=strdup(name); basm_sym_addr[i]=addr; } void *fetch_sym(char ...
/* * Licensed Materials - Property of IBM * * trousers - An open source TCG Software Stack * * (C) Copyright International Business Machines Corp. 2004-2007 * */ #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include "trousers/tss.h" #include "trousers/trousers.h" #include "tr...