text
stringlengths
3.12k
18.7k
#include "tm_url_squasher.h" #include "tm_metric.h" #include <assert.h> #include <ck_hs.h> #include <ck_stack.h> #include <mtev_rand.h> #include <mtev_log.h> #include <stdio.h> #include <pcre.h> #include <pthread.h> typedef struct tm_ps_tree_node { bool children_squashed; struct tm_ps_tree_node *parent; union {...
/* * Copyright (C) 2017 National Institute of Advanced Industrial Science * and Technology (AIST) * * 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 ...
//------------------------------------------------------------------------------ // GB_emult_04: C<M>= A.*B, M sparse/hyper, A and B bitmap/full //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Reserved. // SPDX-License-Identif...
/* Copyright (c) 2017-2020, The Tor Project, Inc. */ /* See LICENSE for licensing information */ #include "core/or/or.h" #include "app/config/config.h" #include "feature/dircache/conscache.h" #include "lib/encoding/confline.h" #include "test/test.h" #ifdef HAVE_UTIME_H #include <utime.h> #endif static void test_cons...
/* SCREENDrawDots.c AUTHORS: <EMAIL> kas <NAME> <EMAIL> fjc <NAME> <EMAIL> mk <NAME> PLATFORMS: All. HISTORY: mm/dd/yy 12/13/04 kas Created 12/17/04 fjc added antialiased points 12/17/04 kas added dot_type flag 1/11/04 awi Merged into pychtoolbox.org distribu...
#include <stdio.h> #include <stdlib.h> #include <string.h> double gibFkZahlEin(char* txt) { char s[80]; char n; double wert; do { printf("%s: ", txt); fgets(s, 80, stdin); n = sscanf(s, "%lf", &wert); } while(n != 1); return wert; } void gibMatrixEin(char name,...
/* Low level hal-fuzz hooks implemented natively for performance reasons */ #include "native_hooks.h" #include "util.h" #include "nvic.h" #include <unicorn/unicorn.h> #include <unistd.h> #include <stdint.h> #include <inttypes.h> #include <string.h> #include <sys/time.h> uc_hook block_hook_handle = 0; uc_hook code_...
/* * Sysfs interface for the universal power supply monitor class * * Copyright © 2007 <NAME> <<EMAIL>> * Copyright © 2007 <NAME> <<EMAIL>> * Copyright © 2004 <NAME> * Copyright © 2003 <NAME> <<EMAIL>> * * Modified: 2004, Oct <NAME> * * You may use this code as per GPL version 2 */ #include <...
#include "all.h" #include "mem.h" #include "ureg.h" #include "io.h" #define LSYS 0x01 #define LUSER 0x02 /* * CAUSE register */ #define EXCCODE(c) ((c>>2)&0x0F) #define FPEXC 16 char *excname[] = { "external interrupt", "TLB modification", "TLB miss (load or fetch)", "TLB miss (store)", "address error (load ...
/** * \warning Do NOT use for cryptographic purposes. Read Internet RFC4086, * <http://tools.ietf.org/html/rfc4086>. */ /** * \file randmt.c * \brief Mersenne Twister MT19937 pseudorandom number generator * \author <NAME> (1997-2002) * \author <NAME> (1997-2002) * \author <NAME> (2008) <<EMAIL>> *...
#include "RecordedArg.h" #include <stdlib.h> // malloc, free #include <stdbool.h> // bool, true, false RecordedArg * RecordedArg_new(SetupRecordedArg SetupRecord) { RecordedArg *out = (RecordedArg *)malloc(sizeof(RecordedArg)); SetupRecord(out); return out; } void RecordedArg_destroy(RecordedArg *se...
#include <gtk/gtk.h> #include <stdint.h> #include "edosu-view.h" #include "edosu-render.h" #include "osux/hitobject.h" #include "osux/hit.h" #include "osux/error.h" G_DEFINE_TYPE(EdosuView, edosu_view, GTK_TYPE_BOX); static void edosu_color_get(edosu_color *cl, osux_hitobject *ho) { if (ho->combo_color == NULL) ...
#include <string.h> #include <fiber.h> #include <memory.h> #include "unit.h" #include "say.h" #include <pthread.h> #include <errinj.h> #include <coio_task.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include <fcntl.h> int parse_logger_type(const char *input) { enum say_logger_type type; int rc...
#include <stdlib.h> #include <sys/stat.h> #include "node.h" #include "compiler.h" #include "parser.h" #include "dbg.h" //============================================================================== // // Forward Declarations // //============================================================================== void ...
/*- * Device driver for Specialix range (SI/XIO) of serial line multiplexors. * * Copyright (C) 2000, <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 r...
/* * Copyright (C) 2013-2015 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of condit...
/* * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <stdbool.h> #include <arch.h> #include <arch_helpers.h> #include <common/debug.h> #include <drivers/arm/cci.h> #include <drivers/arm/gicv3.h> #include <lib/mmio.h> #include <lib/p...
/************************************************************************/ /* */ /* ローマ字→カナ変換処理 */ /* */ /************************************************************************/ #include <stdlib.h> #include <string.h> #include <ctype.h> #include "quasi88.h" #include "keyboard.h" #include "romaj...
#include <malloc.h> #include <stdio.h> #include <stdlib.h> #include <string.h> const char* translation = "5z]&gqtyfr$(we4{WP)H-Zn,[%\\3dL+Q;>U!pJS72Fh" "OA1CB6v^=I_0/8|jsb9m<.TVac`uY*MK'X~xDl}REokN:#?G\"i@"; typedef struct Word { unsigned int area; unsigned int high; unsigned int low; } Word; vo...
// SPDX-License-Identifier: BSD-3-Clause /** * @file test-network-monitor.c * * @brief mptcpd network monitor test. * * Copyright (c) 2018-2020, Intel Corporation */ #undef NDEBUG #define _DEFAULT_SOURCE // Enable IFF_... interface flags in <net/if.h>. #include <assert.h> #include <stdlib.h> #include <arpa/in...
/* * Copyright (c) 2000-2003 Silicon Graphics, Inc. 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 as * published by the Free Software Foundation. * * This program is distributed in the hope that i...
/* Copyright (c) 2014-2016 <NAME> @RLofC * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including com...
/** * \file * \brief Platform code for the Cortex-A9 processors on TI OMAP44xx SoCs. */ /* * Copyright (c) 2009-2016 ETH Zurich. * 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-I...
/* * fontconfig/fc-case/fc-case.c * * Copyright © 2004 <NAME> * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and t...
void set_notifmode(int type, KeySym ksym) { static char *lib[] = { " MOVE ", " SEL "}; static Glyph *g, *deb, *fin; static int col, bot; if (ksym == -1) { free(g); col = term.col, bot = term.bot; g = xmalloc(col * sizeof(Glyph)); memcpy(g, term.line[bot], col * sizeof(Glyph)); } else if (ksym == -2) m...
#include <stddef.h> #include <stdint.h> #include <stdbool.h> #include <limits.h> #include "console.h" #include "xics.h" #undef DEBUG //#define DEBUG 1 void print_number(unsigned int i) // only for i = 0-999 { unsigned int j, k, m; bool zeros = false; k = 1000000000; for (m = 0; m < 10 ; m++) { j = i/k; if ...
/* * Copyright (c) 2005-2017 National Technology & Engineering Solutions * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with * NTESS, the U.S. Government retains certain rights in this software. * * Redistribution and use in source and binary forms, with or without * modification, are permitt...
#line 185 "/home/zhy/work/test/splash2-master/codes/null_macros/c.m4.null.POSIX_BARRIER" #line 1 "parts.C" /*************************************************************************/ /* */ /* Copyright (c) 1994 Stanford University ...
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "argparse.h" #include <assert.h> #include <limits.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // Convenien...
/* * (C) 2003-15 - ntop * * 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, distribut...
/* ==================================================================== * Copyright (c) 1995-2004 Carnegie Mellon University. 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. Redi...
/* * Copyright(c) 2015, 2016 Intel Corporation. * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * This program is free software; you can redistribute it and/or modify * it under the terms of versi...
#include <glib.h> #include <string.h> #include <stdio.h> #include "hashfs.h" #define HASHFS_QUERY_PATTERN "([A-Za-z\\:]+)\\.(\\w+)\\((.*?)\\)" #define LENGTH(x) sizeof(x)/sizeof(x[0]) static hashfs_db_t *db; typedef struct { gint op; gchar *name; } hashfs_db_query_cond_t; static hashfs_db_query_cond_t query_cond...
/*This file has been prepared for Doxygen automatic documentation generation.*/ /*! \file ********************************************************************* * * \brief Power Manager clocks configuration helper. * * * - Compiler: IAR EWAVR32 and GNU GCC for AVR32 * - Supported devices: All AVR32 devi...
/* * Copyright (c) 2015, 2014 Computational Molecular Biology Group, Free University * Berlin, 14195 Berlin, Germany. * 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 ...
/* * Copyright (c) 2014, Texas Instruments Incorporated * 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...
/* 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 may not...
#include <stdio.h> #include <stdlib.h> // malloc, free, srand, rand, NULL, RAND_MAX #include <string.h> // strtok, strlen, strcpy #include <stdlib.h> // atoi #include <ctype.h> // isdigit #include <time.h> // time #include "ebpn.h" // // costructor // t_ebpn *ebpn_ctor(int *layerspec, int n_layers...
/* GIFT-COFB Prepared by: <NAME> Email: <EMAIL> Date: 23 Mar 2019 */ #include <string.h> #include "api.h" #include "crypto_aead.h" #define TAGBYTES CRYPTO_ABYTES #include "gift128.h" typedef unsigned char block[16]; typedef unsigned char half_block[8]; /* -------------------------------------------------...
// SPDX-License-Identifier: Zlib #include "../zlib_deflate/defutil.h" #include "dfltcc_util.h" #include "dfltcc.h" #include <asm/setup.h> #include <linux/export.h> #include <linux/zutil.h> /* * Compress. */ int dfltcc_can_deflate( z_streamp strm ) { deflate_state *state = (deflate_state *)strm->state; s...
#include "bencharraysetup.h" /*============================================================================ bencharraysetup.h Set up big random arrays for IO of benchmark functions. Copyright(c) 2018-2019 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa...
#include <string.h> #include <stdio.h> #include <stdlib.h> #include "heclib7.h" #include "zdssKeys.h" #include "zdssMessages.h" #include "hecdssInternal.h" #include "zStructTsTimeWindow.h" // Full method to retrieve regular interval time series data, // passing arguments instead of a struct // Used for Fortran co...
/* * escape.c - printing handling * Copyright 1998-2002 by <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 lat...
/**************************************************************************** * Copyright (C) 1998 WIDE Project. All rights reserved. * Copyright (C) 1999,2000,2001,2002 University of Tromso. All rights reserved. * Copyright (C) 2002 Invenia Innovation AS. All rights reserved. * * Author: <NAME>, <EMAIL>. * ...
#include <libopencm3/cm3/nvic.h> #include <libopencm3/cm3/scb.h> #include <libopencm3/cm3/systick.h> #include <libopencm3/stm32/rcc.h> #include <libopencm3/stm32/gpio.h> #include <libopencm3/stm32/usart.h> #include <libopencm3/stm32/timer.h> #include <libopencm3/stm32/exti.h> #include <libopencm3/stm32/rtc.h> #include ...
/* * Network playback synchronization * Copyright (C) 2009 Google Inc. * * This file is part of MPlayer. * * MPlayer 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 ...
/* -*- C -*- */ /* * Copyright (c) 2012-2020 Seagate Technology LLC and/or its Affiliates * * 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...
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> #include <errno.h> #include <unistd.h> #include "mbedtls/config.h" #include "mbedtls/platform.h" #include "mbedtls/net_sockets.h" #include "mbedtls/ssl.h" #include "mbedtls/entropy.h" #include...
/* * * Copyright (c) International Business Machines Corp., 2001 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any l...
/************************************************************************** *** Project: SGF Syntax Checker & Converter *** File: properties.c *** *** Copyright (C) 1996-2014 by <NAME> *** (see 'main.c' for more copyright information) *** **************************************************************************/ #in...
/* * AAC encoder intensity stereo * Copyright (C) 2015 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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...
/* Copyright (C) 2006 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope tha...
/** * \file * * \brief Initialization file used to init all I/O modules used in the example * * Copyright (c) 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
/* sqUnixFBDevKeyboard.c -- abstraction over the keyboard * * Author: <NAME> <<EMAIL>> * * Last edited: 2005-03-17 21:35:14 by piumarta on squeak.hpl.hp.com */ /* The framebuffer display driver was donated to the Squeak community by: * * Weather Dimensions, Inc. * 13271 Skislope Way, Truckee, CA 96161 * h...
#include "snapconfig.h" /* Maintain and print a list of the worst residuals */ /* Actually it maintains a separate list of the n worst residuals for each probability distribution. When they are printed it takes values from each list in order of their significance. This avoid having to calculate the significa...
// --------------------------------------------------------------------------- // Copyright <NAME> 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt)...
#include "TellerHead.h" #include "MainPrg.h" #include <stdio.h> #include "TimeManageHead.h" #include "queueManHead.h" const int cTELLERTIMEDOUT = 301; const int cTELLERNONEXTCUSTOMER = 302; const int cTELLERNOMORECUSTOMER = 303; const int cTELLERTAKEMODE = 1; const int cTELLERFINISHMODE = 2; const int cTELLERDIE = 3; ...
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <linux/if.h> #include <easy_setup.h> #include <scan.h> #define ES_TARGET_VERSION "v4.0.0" //#define QUERY_TIMEOUT_MS (30*1000) /* replaced with easy_setup_timeout_...
/*-*- mode:c;indent-tabs-mode:t;c-basic-offset:8;tab-width:8;coding:utf-8 -*-│ │vi: set et ft=c ts=8 tw=8 fenc=utf-8 :vi│ ╚──────────────────────────────────────────────────────────────────────────────╝ │ ...
#include "ruby/re.h" #ifndef GC_PROFILE_MORE_DETAIL #define GC_PROFILE_MORE_DETAIL 0 #endif typedef struct gc_profile_record { double gc_time; double gc_invoke_time; size_t heap_total_objects; size_t heap_use_size; size_t heap_total_size; int is_marked; #if GC_PROFILE_MORE_DETAIL double...
#include<stdio.h> #include<string.h> #include<stdlib.h> #include "ESS1.h" void deleteNode(node **head_ref, int key) // Basic deletion process of a node from the employee linked list { node* temp = *head_ref, *prev; //Traversing through the list to find the node to be deleted if (temp != NULL && ...
/** * * Copyright (c) 2010, <NAME> and Mongrel2 Project Contributors. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above co...
/* Copyright (c) 2010 - 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, this * l...
/* ========================================================================== * * HSPstatistic.c * * author: <NAME> * date: 30-03-2006 * * gapped and ungapped extensions for string matching * * There are many references to BLAST statistic, a good development reading * would from the NCBI BLAST pc version, fil...
/** * @file jalp_connection.c * This file defines helper functions for making a connection to a local store. * * @section LICENSE * * Source code in 3rd-party is licensed and owned by their respective * copyright holders. * * All other source code is copyright Tresys Technology and licensed as below. * * Co...
/** * @file demo-raw-usb.c * @author <NAME> <<EMAIL>> * @date 2012-10-16 * * Description: Demonstrate how to exchange raw USB commands with a spectrometer. * * Note: This was mainly tested with a USB2000+. Other spectrometer protocols may * vary; see your Data Sheet for details. * * LICENSE: * * SeaBre...
/* * This file is part of the Sofia-SIP package * * Copyright (C) 2005 Nokia Corporation. * * Contact: <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either v...
/* @source palindrome application ** ** Brute force inverted repeat finder. Allows mismatches but not gaps ** ** @author Copyright (C) <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 Foun...
/*- * Copyright (c) 2004 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
/************************************************************************** * * Copyright 2016 Novartis Institutes for BioMedical Research 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 Licen...
/**HEADER******************************************************************** * * Copyright (c) 2008 Freescale Semiconductor; * All Rights Reserved * * Copyright (c) 2004-2008 Embedded Access Inc.; * All Rights Reserved * * Copyright (c) 1989-2008 ARC International; * All Rights Reserved * ****************************...
#include "../include/core.h" #include "../include/ui.h" #define h_addr h_addr_list[0] /* for backward compatibility */ const int token = TOKEN; int player_id = 0; int num_words = 0; int progress = 0; double race_time = 0; int num_char = 0; int miss = 0, cpm = 0; int sec = 0; int reset_stopwatch = 0; // 1 for reset...
#include <errno.h> #include <time.h> #include <string.h> #include <utils/spinlock.h> #include <utils/thread.h> #include <utils/bufio.h> #include <xio/poll.h> #include <xio/socket.h> #include <xio/cmsghdr.h> #include <msgbuf/msgbuf.h> #include <msgbuf/msgbuf_head.h> #include "testutil.h" static int isempty; static void...
// clang-format off /*-----------------------------------------------------------------------*/ /* Program: STREAM */ /* Revision: $Id: stream.c,v 5.10 2013/01/17 16:01:06 mccalpin Exp mccalpin $ */ /* Original code developed by <NAME> */ ...
#include <stdio.h> #include <string.h> #include "glue.h" #include "version.h" #include "ui.h" //#define TEST_TX_STR #define TEST_PRINT //#define TEST_ITOA //#define TEST_SNPRINTF //#define TEST_UTOH //#define TEST_UTOB static const char menu_str[]="\ available commands:\r\n\r\n\ \e[33;1m?\e[0m - show menu\r\n\ \e[...
/* * Copyright 2021 Google LLC * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT nuvoton_npcx_cros_mtc #include <assert.h> #include <drivers/cros_rtc.h> #include <drivers/gpio.h> #include <kernel.h> #include <soc.h> #include <soc/nuvoton_npcx/reg_def_cros.h> #include "ec_tasks.h" #include "soc_miw...
/************************************************************ Copyright 1989, 1998 The Open Group Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that c...
/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2013 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 * Unless required by applicable law or agreed...
/* ** Copyright 2005-2019 Solarflare Communications Inc. ** 7505 Irvine Center Drive, Irvine, CA 92618, USA ** Copyright 2002-2005 Level 5 Networks Inc. ** ** 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 ...
#include <stdio.h> #include <stdlib.h> #include "NetCDFReader.h" typedef union ecldouble { double value; unsigned long lvalue; unsigned char byte[8]; } ecldouble; typedef union eclfloat { float value; unsigned int ivalue; unsigned char byte[4]; } eclfloat; void writeByteData(unsigned char *by...
/* * Copyright (c) 2019, Intel Corporation * All rights reserved. * * Authors: <NAME> <<EMAIL>> * * 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 c...
/** * request.c: Does the bulk of the work for the web server. * * Course: 1DT032 * * Student: <NAME> 820307T223 */ #include <assert.h> #include "util.h" #include "request.h" /** * requestError * * ARGUMENTS: * @fd: * @cause: * @errnum: * @shortmsg: * @longmsg: */ void requestError(int fd, char *cau...
/* Copyright 2011-2020 <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. THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <time.h> #include <math.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <signal.h> #include <errno.h> #include <arpa/inet.h> #include "dask.h" #include "conio.h" #include "cpgplo...
void f1 (void); #pragma omp declare variant (f1) match (construct={target}) void f2 (void); void f3 (void); #pragma omp declare variant (f3) match (construct={teams}) void f4 (void); void f5 (void); #pragma omp declare variant (f5) match (construct={parallel}) void f6 (void); void f7 (void); #pragma omp declare variant...
//! @file //! //! Copyright (c) 2019-Present Memfault, Inc. //! See License.txt for details //! //! @brief //! See header for more details #include "memfault/http/utils.h" #include <stdio.h> #include <string.h> #include "memfault/core/compiler.h" #include "memfault/core/platform/device_info.h" #include "memfault/htt...
/********************************************************************** * ledmon.c * * Following the LED register notes in the Intel datasheet for the * 82575eb network device, this code is meant to monitor and display * the current status for the 3 LEDs on the back of the typical NIC. * ********************...
#include <gtk/gtk.h> #include "plplot.h" #include <gdk-pixbuf/gdk-pixbuf.h> //Всякая глобальная фигня // int znach[256]; // // void closeApp(GtkWidget *window, gpointer data) //Завершаем программу { gtk_main_quit(); } static void put_pixel (GdkPixbuf *TMPpixbuf, int x, int y, guchar red, guchar green, guchar bl...
/* * Copyright (c) 2010, 2011 Nicira Networks. * Distributed under the terms of the GNU GPL version 2. * * Significant portions of this file may be copied from parts of the Linux * kernel, by <NAME> and others. */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include <linux/in.h> #include <linux/ip.h> #include <...
// SPDX-License-Identifier: BSD-3-Clause /* * Copyright (c) 2012 <NAME> * Copyright (c) 2021 <NAME> */ #include <stdlib.h> #include <stdbool.h> #include <stdio.h> #include "configuration.h" #include "configuration_adv.h" #include "helper.h" #include "llnode.h" #include "array.h" #include "cache.h" #include "vargs....
#include <string.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include "aerodb.h" #define EJERCICIO1_HABILITADO #define EJERCICIO2_HABILITADO #define EJERCICIO3_HABILITADO #define EJERCICIO4_HABILITADO #define EJERCICIO5_HABILITADO #define verificar(condicion) do { \ if (...
// include cct template: #include "cct.h" // check for the collisions of the cct (f.e. if we are trying to stand up from crawling): function cct_check_collision(ENTITY* actor, var cct_max_x, var cct_min_x, var cct_max_z, var cct_min_z) { // vectors: VECTOR vStart, vEnd; // free vectors: vec_fill(vStart.x, 0); vec...
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2016 <NAME> * Copyright (c) 2019 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"),...
// SPDX-License-Identifier: GPL-2.0+ /* * TI divider clock support * * Copyright (C) 2020 <NAME> <<EMAIL>> * * Loosely based on Linux kernel drivers/clk/ti/divider.c */ #include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> #include <dm/device_compat.h> #include <asm/io.h...
/* File: * ex3.17_mpi_type_contig.c * * Description: * Read two vectors, find their sum and print the result. * Use MPI_Type_contiguous to build datatype used in * reading and printing the vectors * * Compile: * mpicc -g -Wall -o ex3.17_mpi_type_contig ex3.17_mpi_type_contig * Usage: ...
/*=============================================================================================== Load From Memory Example Copyright (c), Firelight Technologies Pty, Ltd 2004-2011. Demonstrates loading all resources from memory allocated and filled by the user. ======================================================...
#include "../headers/registerer.h" #include "../headers/fct.h" #include <openssl/bio.h> #include <openssl/err.h> #include <sys/socket.h> #include <arpa/inet.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <stdio.h> #include <stdli...
/* * 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 ...
/* * BMP180 * Copyright (C) 2014 <NAME> <richardeoin> * * 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, mo...