text
stringlengths
5.8k
28.2k
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <math.h> #include "stack.h" #include "queue.h" /* 本代码段设计用来实现各类排序算法 使用数据结构来减少输入参数等 */ #define maxSize 100 //the max length of seqlist typedef struct{ double data[maxSize]; int length; }sqlist; /***********线性表基本函数**************/ void initSqlist...
/** ****************************************************************************** * File Name : main.c * Description : Main program body ****************************************************************************** ** This notice applies to any and all portions of this file * that are not ...
/* * Copyright (c) 2018, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <assert.h> #include <debug.h> #include <mmio.h> #include <string.h> #include "io_vexpress_nor_internal.h" #include "norflash.h" /* Device Id information */ #define NOR_DEVICE_ID_LOCK_CONFIGURATION ...
/*- * Copyright (c) 2016 <NAME> <<EMAIL>> * Copyright (c) 2017 The FreeBSD Foundation * All rights reserved. * * Portions of this software were developed by <NAME> * under sponsorship from the FreeBSD Foundation. * * Redistribution and use in source and binary forms, with or without * modification, are permitt...
#include "assolo_rcv.h" extern void check_reorder_loss(); int int_coal_detected=0;/*flag to say interrupt coalescence detected*/ /* smooths bandwidth estimates and writes to to file */ void write_instant_bw(double inst_av_bw_excursion,double time_stamp, int nc) { /* double inst_median=0.0;*/ double inst_mean...
/* Copyright (C) 2001-2021 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
#include <stdlib.h> #include <stdio.h> #include <sys/time.h> #include <sys/mman.h> #include <assert.h> #include "myalloc.h" // =============== // /* Data Structures */ // =============== // /** * This data structure represents a block of memory that may or may not have been allocated at any time * Perhaps counteri...
/* zzftpchk.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__1 = 1; /* $Procedure ZZFTPCHK ( Private --- Check for FTP Errors ) */ /* Subroutine */ int zzftpchk_...
/* * Copyright (c) 2012-2022 Filip "widelec-BB" Maryjanski, BlaBla group. * All rights reserved. * Distributed under the terms of the MIT License. */ #include <proto/exec.h> #include <libvstring.h> #include "globaldefines.h" #include "locale.h" #include "support.h" #include "application.h" #include "kwakwa_api/def...
/* chronyd/chronyc - Programs for keeping computer clocks accurate. ********************************************************************** * Copyright (C) <NAME> 1997-2003 * Copyright (C) <NAME> 2009, 2015-2017 * * This program is free software; you can redistribute it and/or modify * it under the terms of ...
/* * This file is part of the coreboot project. * * Copyright (C) 2007-2009 coresystems GmbH * Copyright (C) 2011 <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; versi...
/* * Copyright (c) 2014-2018 Cesanta Software Limited * 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 * * ...
/* zzektrbn.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__82 = 82; static integer c__124 = 124; /* $Procedure ZZEKTRBN ( EK tree, balance nodes ) */ /* S...
// Copyright (c) 1980 The Regents of the University of California. // This file is free software, distributed under the BSD license. #include "spirhunt.h" //---------------------------------------------------------------------- static float move_ship (int ramflag, struct xy to, float speed); static void move_to_rand...
/* * minbd.c * Minimally Buffered Deflection * * RC/MC project */ #include "minbd.h" #include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdbool.h> #define DEBUG(...) //#define DEBUG printf /* #include "netrace.h" // check if flit is the last flit of packet id from netrace static bool check...
/*- * Copyright (c) 2016 <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 * notice, this list of conditions and the followi...
/* $Id$ */ /* benchmark to rate the effective performance of one-sided communication for scenarios in which the target process does *not* frequently, or even steadlily polls the incoming queue. <NAME>, 2002 */ #include <stdlib.h> #include <stdio.h> #include <string.h> #ifndef WIN32 #include <strings.h> #...
#define _LARGEFILE64_SOURCE /* required for GLIBC to enable stat64 and friends */ #include "doassert.h" #include <sys/types.h> #include <regex.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include <sys/socket.h> #include <netinet/in.h> #include "mt.h" #include "error.h" #include "mem.h" #include "...
/** ****************************************************************************** * File Name : RTC.c * Description : This file provides code for the configuration * of the RTC instances. ****************************************************************************** * @...
/* * File: main.c * Author: main * * Created on 7. September 2018, 00:49 */ // DSPIC33EP512MC202 Configuration Bit Settings // FICD #pragma config ICS = PGD1 // ICD Communication Channel Select bits (Communicate on PGEC1 and PGED1) #pragma config JTAGEN = OFF // JTAG Enable bit (JTAG ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "include/neurolabi_config.h" #include <math.h> #include <utilities.h> #include "tz_error.h" #ifdef HAVE_LIBGSL # include <gsl/gsl_vector.h> # include <gsl/gsl_statistics_double.h> #endif #include "tz_constant.h" #include "tz_voxel_linked_list.h" #inc...
#include "postgres.h" #include "access/heapam_xlog.h" #include "access/heapam.h" #include "access/ptrack.h" #include "access/xlog.h" #include "access/xlogutils.h" #include "access/skey.h" #include "access/genam.h" #include "catalog/pg_depend.h" #include "access/htup_details.h" #include "miscadmin.h" #include "storage/...
#include <stdlib.h> #include <string.h> #include <stdio.h> #include <libxml/parser.h> #include <sanitize.h> static int passed = 0, failed = 0; static void test(const char *testname, struct sanitize_mode *mode, const char *input, const char *expected) { char *r; r = sanitize(input, mode); if (!strcmp(r, expect...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyri...
/******************************************************************* Copyright (C) 2001-7 <NAME>, <NAME> and Merck & Co., Inc. 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 versi...
#include <errno.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include "nooc.h" #include "stack.h" #include "ir.h" #include "util.h" #include "array.h" #include "type.h" #include "map.h" static const struct token *tok; static struct stack blocks; static int loopcount; static void parsenametypes(str...
/*============================================================================= * * Project: a2bstack * * Copyright (c) 2015 - Analog Devices Inc. All Rights Reserved. * This software is proprietary & confidential to Analog Devices, Inc. * and its licensors. See LICENSE for complete details. * *================...
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Copyright 2022 <NAME> │ │ ...
/* * Part of esp-open-rtos * Copyright (C) 2016 <NAME> (https://github.com/bschwind) * BSD Licensed as described in the file LICENSE */ #include <stdio.h> #include "FreeRTOS.h" #include "i2c/i2c.h" #include "task.h" #include "tsl2561.h" // Registers #define TSL2561_REG_COMMAND 0x80 #define TSL2561_REG_CONTROL 0x0...
#include "fitz-internal.h" #include "mupdf-internal.h" struct info { pdf_obj *resources; pdf_obj *mediabox; pdf_obj *cropbox; pdf_obj *rotate; }; static void put_marker_bool(fz_context *ctx, pdf_obj *rdb, char *marker, int val) { pdf_obj *tmp; tmp = pdf_new_bool(ctx, val); fz_try(ctx) { pdf_dict_puts(rdb, ...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <windows.h> #include <GL/gl.h> #ifndef M_PI #define M_PI 3.1415926535897932384626433832795 #endif // #include <pdlib.h> #include <pdgl.h> #include <pdgl_stub.h> #include <lbxgl2.h> #include <libvecmath.h> #include <bgbscr1.h> typedef struct BXRE_...
/* * Copyright 2020-2021 Jetperch LLC * * 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 agre...
/* * MpegtTS Basic Parser * Copyright (c) jeoliva, All rights reserved. * 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 3.0 of the License, or (at your option) any...
/****************************************************************************** * @file main.c * @version V3.00 * @brief Demonstrate how to implement a USB virtual COM port device using * double buffer mode. * * @copyright SPDX-License-Identifier: Apache-2.0 * @copyright Copyright (C) 2021 Nuvo...
/* Copyright information is at end of file. */ #define _XOPEN_SOURCE 600 /* Make sure strdup() is in <string.h> */ #include "xmlrpc_config.h" #include <stddef.h> #include <string.h> #include "bool.h" #include "xmlrpc-c/base.h" #include "xmlrpc-c/base_int.h" #include "xmlrpc-c/string_int.h" #include "xmlrpc-c/xmlp...
#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <gmp.h> #include "pbc_utils.h" #include "pbc_field.h" #include "pbc_curve.h" #include "pbc_param.h" #include "pbc_pairing.h" #include "pbc_fp.h" #include "pbc_memory.h" //TODO: Store as integer mod ring instead and convert at last minute? struct point...
#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "sam.h" #include "errors.h" #include "time.h" #include "memalloc.h" #include "files.h" #include "sequences.h" #include "hashtable.h" static bool debug_flag = FALSE; time_t t0; typedef int32_t i32; typedef uint64_t u64; static v...
/* * Copyright (c) 2002-2012 Balabit * Copyright (c) 1998-2012 <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 option) any...
#include "Ray.h" #include <stdio.h> #pragma acc routine seq int cast_ray_triangle(vec_t * RayOri, vec_t * RayDir, triangle_t * triangle, vec_t * vec_list, intersect_t * rtn) { printf("cast_ray_triangle\n"); vec_t * A = vec_list + triangle->A; vec_t * B = vec_list + triangle->B; vec_t * C = vec_list + triangle->C...
/* * main.c * * Created: 14/09/2018 8:12:55 AM * Author : <NAME>. jkim838 846548800 * Revision 1.3.3 * * Description: * Primary program to control the operation condition of the linear compressor motor unit. * */ /*** Header Files ***/ #include <avr/io.h> #include <avr/interrupt.h> #include <...
/* * texture.c * * Created by <NAME> on 2011 Feb 19. * * Copyright (c) 2011-2013 <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...
#include <stdlib.h> #include <stdio.h> #include "gen_x86_64.h" #include "node.h" #include "error.h" #include "vector.h" FILE *output_file; uint var_offset; uint ret_label; static void gen_statements (Vector *node_list); static int8_t gen_expr (Node *node); static uint get_label() { static uint label_count ...
/*Transformation.c */ /********************************************************************************************************** Copyright (c) 2002-2013 <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 Gab...
/* mc_xcb.c */ #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <vulkan/vulkan.h> #include "platform/mc_xcb.h" // Using code modified from: <NAME> // -- And his contributers: // hodasemi (XCB validation) int get_key_input_code_char(bool shift, mc_key_code code, char...
#include <unistd.h> #include <stdlib.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/mman.h> #include <limits.h> #include "dot_matrix_font_to_bmp.h" #include "encoding_convert.h" #include "encoding_detect.h" #include "bmp_io.h" #include "debug_log.h" #define ASCII_HZ...
/** * Copyright (c) 2016-2019, ETH Zurich, Computer Engineering Group * 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 no...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "system.h" /* system dependent functions */ #include "memmgr.h" /* Bag, NewBag, T_STRING, .. */ #include "objects.h" #include "string4.h" #include "integer.h" /*...
#include "global.h" #include "tldevel.h" #include "tlmisc.h" #include "msa.h" #include <sys/time.h> #include <sys/stat.h> #include <getopt.h> #include <limits.h> #include <stdlib.h> #include <string.h> #define OPT_TESTALN 1 #define OPT_REFALN 2 #define OPT_PROGRAM 3 #define OPT_TMPDIR 4 #define OP...
/* * Copyright (c) Eicon Networks, 2002. * This source file is supplied for the use with Eicon Networks range of DIVA Server Adapters. * Eicon File Revision : 2.1 * 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 th...
/* ** Easylogo TGA->header converter ** ============================== ** (C) 2000 by <NAME> (<EMAIL>) ** AIRVENT SAM s.p.a - RIMINI(ITALY) ** (C) 2007-2008 <NAME> <<EMAIL>> ** ** This is still under construction! */ #include <errno.h> #include <getopt.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #in...
/* * Copyright 2015 <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 option) any later version. * * This library is distri...
/* ------------------------------------------------------------------------------ MODEL.C - <NAME>, 1989. Public Domain. When weaves do not fit in to one of the special cases handled in BOUND.C, it becomes necessary to actually model the weave (that is, build strings that cross over each other) and manipulate...
/* mpn_get_str -- Convert {UP,USIZE} to a base BASE string in STR. Contributed to the GNU project by <NAME>. THE FUNCTIONS IN THIS FILE, EXCEPT mpn_get_str, ARE INTERNAL WITH A MUTABLE INTERFACE. IT IS ONLY SAFE TO REACH THEM THROUGH DOCUMENTED INTERFACES. IN FACT, IT IS ALMOST GUARANTEED THAT THEY WILL...
/* Copyright 2005, Tresys Technology * * Some parts of this came from matchpathcon.c in libselinux */ /* PURPOSE OF THIS PROGRAM * The original setfiles sorting algorithm did not take into * account regular expression specificity. With the current * strict and targeted policies this is not an issue because ...
/* * @brief UART Comm port call back routines * * @note * Copyright(C) NXP Semiconductors, 2013 * All rights reserved. * * @par * Software that is described herein is for illustrative purposes only * which provides customers with programming information regarding the * LPC products. This software i...
#include <stdio.h> #include <stdlib.h> #include <termios.h> #include <unistd.h> //Declare variables int p[21][21]={0}; // Store board int opened[21][21]={0}; // Store the stage of opening int flag[21][21]={0}; // Store the flags (question, bomb flag) int bomb_flag_number = 0; //Number of bomb flag already put int cs_r...
/***************************************************************************** * Copyright (c) 2019 FrontISTR Commons * This software is released under the MIT License, see LICENSE.txt *****************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <str...
/* Copyright (C) 2013-2016, The Regents of The University of Michigan. All rights reserved. This software was developed in the APRIL Robotics Lab under the direction of <NAME>, <EMAIL>. This software may be available under alternative licensing terms; contact the address above. Redistribution and use in source and bina...
/*----------------------------------------------------------------------------*/ /* Xymon CGI for administering the critical.cfg file */ /* */ /* Copyright (C) 2006-2011 <NAME> <<EMAIL>> */ /* ...
/* * 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...
/* RJudd 22 February, 98 */ /* SPAWARSYSCEN D881 */ /********************************************************************** // For TASP VSIPL Documentation and Code neither the United States / // Government, the United States Navy, nor any of their employees, / // makes any warranty, express or implied, including...
/*- * Copyright (c) 2010-2014 <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 ...
#include <machine/cpufunc.h> #include <machine/pio.h> #include "interrupt.h" #include "isr.h" #include "contextswitch.h" #include "ksyscall.h" #include "lib.h" /* Interrupt descriptor types. */ #define DESCTYPE_INT_TASK (0x05) #define DESCTYPE_INT_INTERRUPT (0x0e) #define DESCTYPE_INT_TRAP (0x0f) /* Stack offset to ...
// fileName ************** eFile.c ***************************** // Middle-level routines to implement a solid-state disk // <NAME> 3/16/11 #include <string.h> #include <stdio.h> #include "OS.h" #include "eFile.h" #include "edisk.h" #include "UART2.h" char State = 5; char Path[15][15] = {/* Init Format Create WOp...
/* * Copyright (c) 2009-2016 <NAME>. * All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the BSD_LICENSE file. */ #include <unistd.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <ctype.h> #includ...
#include <assert.h> #include <stdlib.h> #include <string.h> #include <nusys.h> #include <nualstl_n.h> #include "canvas.h" #include "collision.h" #include "data.h" #include "debug.h" #include "defines.h" #include "entities.h" #include "gfx.h" #include "input.h" #include "mathdefs.h" #include "rumble.h" #include "shape...
/** @file * Copyright (c) 2018-2020,2021 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 * * ...
/* * Copyright 2008 <NAME> <<EMAIL>> * Copyright 2009 <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 limitation * on the righ...
#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 2014-2021 Jetperch LLC * * 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 agre...
/* * pg_logging.c * PostgreSQL logging interface. * * Copyright (c) 2018, Postgres Professional */ #include "postgres.h" #include "access/xact.h" #include "fmgr.h" #include "libpq/libpq-be.h" #include "miscadmin.h" #include "postmaster/autovacuum.h" #include "storage/dsm.h" #include "storage/ipc.h" #include "...
/* aliStats - Collect statistics on cross species alignment including * how many places a C briggsae sequence aligns and how often things * match and mismatch in coding, heavily conserved and lightly conserved * regions. */ #include "common.h" #include "hash.h" #include "portable.h" #include "dlist.h" #include "dna...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #ifdef __APPLE__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif #ifndef M_PI #define M_PI 3.1415926535897932384626433832795 #endif #define RAD(x) (M_PI * (x) / 180) #define GRAUS(x) (180 * (x) / M_PI) #define DE...
/* * Copyright 2015 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 applica...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <GLES2/gl2.h> #include <linux/input-event-codes.h> #include <wayland-egl.h> #include <wlr/render/egl.h> #include "pointer-constraints-unstable-v1-client-protocol.h" #include "relative-pointer-unstable-v1-client-protocol.h" #include "xdg-shell-client-pr...
/* * Copyright (c) 2022 <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, modif...
#include "autopilot.h" #include "snake.h" #include "xymap.h" // Most of this code is based on the code found in // https://www.geeksforgeeks.org/a-search-algorithm/ // but written c instead of c++ with some extra stuff that consider the position // of the snake body in each cell. // I'll leave most of the geeksforgeeks...
/** @file Transforms content using gzip @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to yo...
#include <sys/types.h> #include <stdio.h> #include <time.h> #include "merc.h" #include "magic.h" #include "interp.h" /* * Liquid properties. * Used in world.obj. */ const struct material_type material_table [] = { /* Name Phase Hardn. Rarity Conduc. Flamm. Density Flags */ { "none", MAT_SOLID, 0, 0, 0,...
/* procmgr -- init-like process manager * https://github.com/CylonicRaider/procmgr */ #define _GNU_SOURCE #include <dirent.h> #include <errno.h> #include <math.h> #include <signal.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include "control.h" /* Static definitions */ struct waiter { int f...
/* * Copyright (C) 2015-2021 Alibaba Group Holding Limited */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <aos/cli.h> #include "netmgr.h" #include "ulog/ulog.h" #include "ota_agent.h" #include "core_mqtt.h" #include "netmgr_wifi.h" #include "aiot_mqtt_api.h" #include "aiot_state_api.h" #inclu...
/****************************************************************************** * Copyright 2005 * Broadcom Corporation * 16215 <NAME> * PO Box 57013 * Irvine CA 92619-7013 *****************************************************************************/ /* * Broadcom Corporation 5890 Boot Image Creation * ...
/// MentOS, The Mentoring Operating system project /// @file syscall_types.h /// @brief System Call numbers. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. #pragma once #define __NR_exit 1 ///< System-call number for `exi...
/* Project 1 */ /* Sparse Matrix */ /* <NAME> */ /* 89408 */ /* Libraries */ #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <string.h> /* Constants */ #define MAX_FILENAME_SIZE 81 #define MAX_ELEMENTS 10000 #define MAX_COMMAND_SIZE 512 #define MAX_COMPRESS_SIZE 2 * MAX_ELEMENT...
// // pwnable_harness.c // PwnableHarness // // Created by C0deH4cker on 11/15/13. // Copyright (c) 2013 C0deH4cker. All rights reserved. // #include "pwnable_harness.h" #include <stdlib.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #inc...
/* * This file is part of the UCB release of Plan 9. It is subject to the license * terms in the LICENSE file found in the top-level directory of this * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No * part of the UCB release of Plan 9, including this file, may be copied, * modified, prop...
/* testactions.c * Copyright (C) 2003 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This...
/* -*- coding: utf-8 -*- * ---------------------------------------------------------------------- * Copyright © 2010-2013, RedJack, LLC. * All rights reserved. * * Please see the LICENSE.txt file in this distribution for license * details. * ---------------------------------------------------------------------- ...
/* * Simple Open EtherCAT Master Library * * File : ethercatprint.c * Version : 1.3.1 * Date : 11-03-2015 * Copyright (C) 2005-2015 <NAME> v.o.f. * Copyright (C) 2005-2015 <NAME> * Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven * Copyright (C) 2014-2015 rt-labs AB , Sweden * * SOEM is f...
#include <nds.h> #include <math.h> #include <stdio.h> #include "fifo3d.h" #include "graph.h" #include "matrix.h" #include "menu.h" #include "save.h" #include "sensor.h" #include "text.h" #include "tween.h" #include "font.h" static u16* textBase[2] = { (u16*) 0x06002000, (u16*) 0x06202000, }; char textGrid[2][24 *...
/* * Copyright (c) 2012 * Canonical Ltd. (All rights reserved) * * 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 published by the Free Software Foundation. * * This program is distributed in the hope that it...
/* packet-chdlc.c * Routines for Cisco HDLC packet disassembly * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <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 Softwa...
/* * This is the code which allocates a working key (and initializes the fields * that are independent of the key) */ #include <stdlib.h> #include <string.h> #include <limits.h> #include "hss.h" #include "hss_internal.h" #include "lm_common.h" #define MALLOC_OVERHEAD 8 /* Our simplistic model about the overhead ...
/** * Code adapted from Arduino-JTAG; * portions copyright (c) 2015 <NAME> <marcelo.jimenez (at) gmail (dot) com>. * portions copyright (c) 2019 <NAME> <<EMAIL>> * portions copyright (c) 2019 Great Scott Gadgets <<EMAIL>> */ #include <stdint.h> #include <stdbool.h> #include <string.h> #include <tusb.h> #...
void abft_dpotf2(const char uplo, int n, double * A, int lda, int * info, int nb, double * colchk, int ld_colchk, double * rowchk, int ld_rowchk, double * colchk_r, int ld_colchk_r, double * rowchk_r, int ld_rowchk_r, double * chk_v, int ld_chk...
#include <assert.h> #include <stdalign.h> #include <time.h> #include "mempool.h" void test_harbol_mempool(FILE *debug_stream); #ifdef HARBOL_USE_MEMPOOL struct HarbolMemPool *g_pool; #endif union Value { int64_t int64; }; int main(void) { FILE *debug_stream = fopen("harbol_mempool_output.txt", "w"); if( debug_st...
/* * Copyright (c) 2009, <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: * * * Redistributions of source code must retain the above copyright notice, this * list of conditions and...
/* $RCSfile$ Copyright (C) 2002 <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 2 of the License, or (at your option) any later version. This program is distributed in...
/** fMSX: portable MSX emulator ******************************/ /** **/ /** Patch.c **/ /** **/ /** This file contains implementation for the PatchZ80() **/ ...
#include <stddef.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <stdbool.h> typedef struct { int *value; /* store of the actual value */ char *flag; /* short form name "-n" */ char *long_form_flag; /* long form name "--name" */ int default_value; /...