text stringlengths 3.08k 10.5k |
|---|
/*
* 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... |
/* MIT License
*
* Copyright (c) 2019 <NAME>, <NAME>, <NAME>, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation th... |
/* S C A L E . C
* BRL-CAD
*
* Copyright (c) 2004-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as p... |
/*
* Copyright 2015 The SageTV Authors. 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... |
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2012-2014 Intel Corporation. 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; ei... |
/*_
* Copyright (c) 2019 <NAME> <<EMAIL>>
* 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... |
/* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... |
/* ハッシュ法によるデータ管理(チェイン法版) */
#include <stdio.h>
#define ERROR -1
#define HASH_SIZE 9
typedef struct character {
int no; /* キー */
char name[16]; /* 名前 */
struct character *next_addr; /* 次のデータのアドレス */
} CHARACTER;
CHARACTER *HashTable[HASH_SIZE];
/* 数値の入力用関数 *... |
/*
* This file and its contents are licensed under the Timescale License.
* Please see the included NOTICE for copyright information and
* LICENSE-TIMESCALE for a copy of the license.
*/
#include <postgres.h>
#include <catalog/pg_type.h>
#include <utils/builtins.h>
#include <utils/lsyscache.h>
#include <utils/sysc... |
/*-
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2019 <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
* not... |
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... |
/*
ISC License
Copyright (c) 2016-2017, <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 T... |
/*
* Copyright (c) 2021 Elastos Foundation
*
* 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, ... |
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <unistd.h>
#include <limits.h>
extern char *__progname;
static char pwd[PATH_MAX];
typedef struct {
const char *const c_name;
int c_val;
} CODE;
CODE prioritynames[] = {
{ "alert", LOG_ALERT },
{ "crit",... |
/*
* Copyright (C) 1999-2002 Free Software Foundation, Inc.
* This file is part of the GNU LIBICONV Library.
*
* The GNU LIBICONV 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 ve... |
/* Mersenne Twister pseudo-random number generator functions.
Copyright 2002, 2003, 2013, 2014 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP Library is free software; you can redistribute it and/or modify
it under the terms of either:
* the GNU Lesser General Public License as... |
/*
* Copyright (c) 2008 <NAME> (<EMAIL>)
* Copyright (c) 2008 <NAME> (<EMAIL>)
* Copyright (c) 2009 <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... |
/*
* This file tests the implementation in caltrain.c. You shouldn't need to
* modify it, but you're welcome to do so. Please report any bugs to us via
* Piazza or email (<EMAIL>).
*
* Note that passing these tests doesn't guarantee that your code is correct
* or meets the specifications given, but hopefull... |
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <string.h>
#include "common.h"
#include "read123.h"
signed char defaultAccidentals[8];
char *headerTitle = NULL, *headerComposer = NULL;
void set_default_accidental(char note_number, signed char semitone_shift) ... |
// Copyright (c) 2015 Electric Power Research Institute, Inc.
// author: <NAME> <<EMAIL>>
static int tchar (int c) {
return in_range (c, 'A', 'Z') || in_range (c, '^', 'z')
|| in_range (c, '0', '9') || c == '!' || in_range (c, '#', '\'')
|| in_range (c, '*', '+') || in_range (c, '-', '.')
|| c == '|' ||... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* _coder_findNearestLocation_api.c
*
* Code generation for function '_coder_findNearestLocation_api'
*
*/
/*... |
/*
* getnameinfo test suite.
*
* The canonical version of this file is maintained in the rra-c-util package,
* which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>.
*
* Written by <NAME> <<EMAIL>>
* Copyright 2005-2006, 2014, 2018 <NAME> <<EMAIL>>
* Copyright 2007-2011
* The Board of T... |
/*****************************************************************************
* *
* DOWNHILL.C *
* *
* F... |
/* Copyright (C) 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>, 1998.
The GNU C 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 Fou... |
/* Copyright (C) 2007-2013 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
* Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY... |
/* ==========================================================================
* setproctitle.h - Linux/Darwin setproctitle.
* --------------------------------------------------------------------------
* Copyright (C) 2010 <NAME>
* Copyright (C) 2013 <NAME>
* Copyright (C) 2013 <NAME>
* Copyright (C) 2013 <NAM... |
/*
* Test.c
* Created: 5/12/2019 12:19:41 PM
* Author : Phantom
*/
#include "sam.h"
#define LED_PIN 0x08000000u // external Ram 0000 1010 0000 0000 0000 0000 0000
#define NLED_PIN 0x07000000u // Vendor-Specific-Device 1111 0111 1111 1111 1111 1111 1111
volatile long i = 0 ;
void Setup_Periphera... |
/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/logging/log.h>
#include <zephyr/zephyr.h>
#include <ztest.h>
#include <zephyr/net/net_if.h>
#include <zephyr/net/ieee802154_radio.h>
#define TEST_FLAG_SET (NET_L2_MULTICAST | NET_L2_PROMISC_MODE)
#define ... |
// ASPL license: https://opensource.apple.com/license/apsl/
//------------------------------------------------------------
// build like:
// clang hw.c -framework Foundation -framework IOKit
// ./a.out then gives with an M1 Apple Silicon CPU:
//
// cpu0@0(E): apple,icestorm
// cpu1@0(E): apple,icestorm
// cpu2@0(E): ... |
#define _POSIX_C_SOURCE 200809L
#ifdef __FreeBSD__
#define __BSD_VISIBLE 1
#include <linux/input.h>
#endif
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#incl... |
/*
* mm-naive.c - The fastest, least memory-efficient malloc package.
*
* In this naive approach, a block is allocated by simply incrementing
* the brk pointer. A block is pure payload. There are no headers or
* footers. Blocks are never coalesced or reused. Realloc is
* implemented directly using mm_malloc an... |
/*
* Tencent is pleased to support the open source community by making
* WCDB available.
*
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use
* this file except in compliance with the License. You may obtai... |
//
// NIST-developed software is provided by NIST as a public service.
// You may use, copy and distribute copies of the software in any medium,
// provided that you keep intact this entire notice. You may improve,
// modify and create derivative works of the software or any portion of
// the software, and you may copy... |
/* $OpenBSD: z8530sc.h,v 1.11 2013/04/21 14:44:16 sebastia Exp $ */
/* $NetBSD: z8530sc.h,v 1.15 2001/05/11 01:40:48 thorpej Exp $ */
/*
* Copyright (c) 1994 <NAME>
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This software was developed by the Computer Syste... |
/* This implementation is based on the simplest algorithm */
/* for matrices multiplication with out any improvements. */
/* It's used only as benchmarck and result testing */
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include "inc/mmio.h"
#include "inc/utils.h"
#include "inc... |
#include <stdio.h>
#include <unistd.h>
#include <stdbool.h>
#include <getopt.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <sys/time.h>
#include <errno.h>
#define STENCILBENCH
#define SB_START_INSTRUMENTS do { start_time = sb_time(); } while (0)
#define SB_STOP_INSTRUMENTS d... |
/*
* Configuration Utility for DMR radios.
*
* Copyright (C) 2018 <NAME>, KK6ABQ
*
* 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,
*... |
/* turning on track lp will generate a lot of output messages */
#include <ross.h>
#include <inttypes.h>
#include "codes/codes-workload.h"
#include "codes/codes.h"
#ifdef ENABLE_CORTEX
#include <cortex/topology.h>
#endif
#include "codes/model-net.h"
/* TODO: Replace NUM_NODES and num_routers once we have functions t... |
/*
* code from
* https://github.com/alexandermtang/tokenizer/blob/master/tokenizer.c
*
* Changes:
* - add #ifdef __TEST__ for main()
* - add tokenizer.h
* - fix a logic bug in TKCreate()
*
* Known Issues:
* - no buffer boundary with length limit
* with random string or unicode string passed in, it wil... |
/*
* libfdt - Flat Device Tree manipulation
* Testcase for phandle references in dtc
* Copyright (C) 2006 <NAME>, IBM Corporation.
*
* 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;... |
/*
* Copyright (c) 2006 <NAME>
* 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
* noti... |
/*-
* Copyright (c) 2009-2010 The FreeBSD Foundation
* All rights reserved.
*
* This software was developed by Semihalf under sponsorship from
* the FreeBSD Foundation.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... |
/******************************************************************************
* Copyright 2017 - 2018, Opulinks Technology Ltd.
* ----------------------------------------------------------------------------
* Statement:
* ----------
* This software is protected by Copyright and the information contained
* herei... |
/*
# clove
#
# Copyright (C) 2016-2020 <NAME>
#
# This project is free software; you can redistribute it and/or modify it
# under the terms of the MIT license. See LICENSE.md for details.
*/
#include <stdlib.h>
#include <stdbool.h>
#include "include/utils.h"
#include "include/joystick.h"
#ifdef USE_LUA
#inc... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <stdbool.h>
#include <assert.h>
#include "file_io.h"
#define HOME_DIR "/home/jripley/one-dim-amr/examples/massless_scalar_collapse/"
/*==========================================================================*/
static void get_in... |
/* R A W B O T . C
* BRL-CAD
*
* Copyright (c) 1999-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as ... |
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <mpi.h>
#include <string.h>
#ifdef OMP //if defined during compile, try to use OpenMP
#ifdef _OPENMP
#include <omp.h>
#endif
#endif //OMP
#include "processing_img.h"
#include "send_wrappers.h"
#include "recv_wrappers.h"
#define fil... |
/* Native-dependent code for FreeBSD.
Copyright 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of GDB.
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... |
/**
* @file
* @section AUTHORS
*
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* Authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* @section LICENSE
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publ... |
#include "wallet_list.h"
//////////////////////////////////////////////////////////////////////////////// START OF WALLET ///////////////////////////////////////////////////////////////
Wallet* initWallet(char* walletId, unsigned int balance, BitcoinList* bitcoinList) {
Wallet* wallet = (Wallet*)malloc(sizeof(Wal... |
/* ----------------------------------------------------------------------- *
*
* Copyright (C) 2016, <NAME>, <NAME>, <NAME>
* All rights reserved.
*
* This file is part of the indoor air quality measurement daemon,
* and is made available under the terms of the BSD 3-Clause Licence.
* A full copy of th... |
#include <N76E003.h>
#include <pwm.h>
#include <tick.h>
#include <event.h>
#include <uart.h>
#include <terminal.h>
#include "main.h"
/*
* N76E0003 dev board pinout:
* G R C D V + 3 T R G
* N S L A D 5 V X X N
* D T K T D V 3 0 0 D
* ... |
#include "signals.h"
#include "configuration.h"
#include "spawns.h"
#include "log.h"
#include <stdlib.h>
#include <stdbool.h>
#include <sys/wait.h>
#include <errno.h>
static sigset_t initsigset;
static void
sigterm_handler(int sig) {
extern bool running;
running = false;
}
static void
sighup_handler(int sig) {
... |
#include "SDL.h"
#include "SDL_gpu.h"
#include "common.h"
#include <math.h>
// Column-major indexing
#define INDEX(row,col) ((col)*4 + (row))
int main(int argc, char* argv[])
{
GPU_Target* screen;
printRenderers();
screen = GPU_Init(800, 600, GPU_DEFAULT_INIT_FLAGS);
if(screen == NULL)
return -1;
printCu... |
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/*
* Copyright 2013-2016 Freescale Semiconductor Inc.
* Copyright 2019 NXP
*/
#include <linux/vfio.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/eventfd.h>
#include <linux/msi.h>
#include "linux/fsl/mc.h"
#include "vfio_fsl_mc_private.h"
... |
/*
* This file is part of librosprite.
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
* Copyright 2008 <NAME> <<EMAIL>>
*/
/**
* \file
* A test harness using SDL to display all sprites in a sprite file.
*
* Usage: example \<spritefile\>
*/
#include <std... |
/*
* Copyright (c) 2012 Red Hat Inc.
*
* 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 the
* ... |
#include <stdio.h>
#include <stdlib.h>
#include "IL/OMX_Core.h"
#include "ilclient.h"
#include "omx_typedef.h"
#include "omx_image.h"
#include "omx_resize.h"
#include "omx_render.h"
#include "bcm_host.h"
#define ALIGN16(x) (((x+0xf)>>4)<<4)
int sign_height = 1024;
int sign_width = 600;
// int main(int argc, char **... |
#include "c_lib.h"
#include <string.h>
#include <assert.h>
#include <stdio.h>
static int
compare_e ( void* left, void* right ) {
return strcmp ( (const char *)left, (const char *) right );
}
char *char_value[] = { "A","B","C","D","E","F","G","H","I","J","K","L","M",
"N","O","P","Q","R","S"... |
#include <gtk/gtk.h>
void
on_window_destroy (GtkWidget *widget, gpointer data)
{
gtk_main_quit ();
}
/* Callback for buttons in the toolbar. */
void
on_format_button_clicked (GtkWidget *button, GtkTextBuffer *buffer)
{
GtkTextIter start, end;
gchar *tag_name;
/* Get iters at the beginning and end of current ... |
#include "nrf.h"
#include "nrf_log.h"
#include "nrf_log_default_backends.h"
#include "nrf_drv_spi.h"
#include "nrf_gpio.h"
#include "nrf_delay.h"
#include "display_defines.h"
#include "display.h"
#define SPI_INSTANCE 0 /**< SPI instance index. */
static const nrf_drv_spi_t spi = NRF_DRV_SPI_INSTANCE(0); /**< SPI in... |
/* arch/arm/plat-samsung/include/plat/devs.h
*
* Copyright (c) 2004 Simtec Electronics
* <NAME> <<EMAIL>>
*
* Header file for s3c2410 standard platform devices
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* publishe... |
/* Based on ...
* example of MMC3 for cc65
* <NAME> 2019
*/
#include "lib/nesdoug.h"
#include "lib/neslib.h"
#include "lib/unrle.h"
#include "mmc3/mmc3_code.h"
#include "music/soundtrack.h"
#include "music/soundfx.h"
#include "charmap.h"
#include "cutscene.h"
#include "main.h"
#include "irq_buffer.h"
#include "name... |
/*
This code is written by <NAME> <<EMAIL>>.
(C) mlpy Developers.
This program is free software: you can redistribute it and/or modify
it underthe terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any lat... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
/* This file contains snippets of code from libgcc2.c which is
included with the source to gcc */
/* INFO FROM libgcc2.c: */
/* More subroutines needed by GCC output code on some machines. */
/* Compile this one with gcc. */
/* Copyright (C) 1989, 1992, 1... |
/*
* Windows regedit.exe registry editor implementation.
*
* Copyright 2002 <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 yo... |
/**********************************************************************
*
* This file is part of the AWeb-II distribution
*
* Copyright (C) 2002 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the AWeb Public License as included in this
* distribution.
*... |
/* Copyright (C) 2022 National Center for Atmospheric Research,
* National Technology & Engineering Solutions of Sandia, LLC (NTESS),
* and the U.S. Environmental Protection Agency (USEPA)
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <model_factory.h>
#include <aero/grid/grid.h>
#include <aero/interpolator... |
/*
* Copyright 2007, <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following dis... |
// Flappy -- http://tinyc.games -- (c) 2020 <NAME>
//
// Flappy is an extremely small implementation of the Flappy Bird game.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define SDL_DISABLE_IMMINTRIN_H
#include <SDL.h>
#include <SDL_ttf.h>
#define W 480
#define H 600
#define GROUND 80
#define PIPE_W 86
#... |
/**********************************************************
*
* File : login_Serv.c
* Author : <NAME> & <NAME>
*
* Description :
* Ce fichier contient les fonctions relatives au
* login des clients de TOMM
*
* Projet : PSE ISMIN 2A
*
* Date : 18/ 11/ 2014
*
********************************************************... |
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
// Calls into BinderFilter kernel driver on behalf of binderfilter.py (which cannot make these kernel calls)
// based on the Android JNI/NDK version https://github.com/dxwu/Picky/blob/master/app/src/mai... |
/* SYSIFCOPT(*IFSIO) TERASPACE(*YES *TSIFC) STGMDL(*INHERIT) */
//#define TESTMAIN
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <qwcrsval.h>
#include <qlgrtvdc.h>
#include <iconv.h>
#include <QTQICONV.h>
#include <ctype.h>
#include "ostypes.h"
#include "apierr.h"
#include "rtvs... |
/**
* @brief openspblas trsv csr test
* @author <NAME> <<EMAIL>>
*/
#include <alphasparse.h>
#include <stdio.h>
#include <mkl.h>
static sparse_status_t alpha_convert_mkl_csc_d(alphasparse_matrix_t src, sparse_matrix_t *dst)
{
spmat_csc_d_t * mat = (spmat_csc_d_t *)src->mat;
sparse_status_t st = mkl_sparse... |
// for RTLD_NEXT
#define _GNU_SOURCE
#include <assert.h>
#include <dlfcn.h>
#include <errno.h>
#include <malloc.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include "oomalloc.h"
#ifdef OOMALLOC_TEST
# include "oomalloc_test.h"
#else
# ... |
/***********************************************************************
*
* Analog-to-digital conversion with displaying result on LCD and
* transmitting via UART.
* ATmega328P (Arduino Uno), 16 MHz, AVR 8-bit Toolchain 3.6.2
*
* Copyright (c) 2018-2020 <NAME>
* Dept. of Radio Electronics, Brno University of ... |
#include <malloc.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#define err(msg, ...) fprintf(stderr, msg, __VA_ARGS__)
#define fail(msg, ...) err("%s" msg ".\n", failedTo, __VA_ARGS__)
typedef float vertex[5];
void showUsage(const char *arg0);
int main(int argc, const char *argv[]) {
// Fail if no... |
#include <stdio.h>
#include <stdlib.h>
#define MAX(a, b) (a) >= (b) ? (a) : (b)
typedef struct{
int low;
int high;
int sum;
}ThreeTuple;
ThreeTuple max_continue_sub_arr_sum_exhaustion(int *A, int len);
ThreeTuple max_continue_sub_arr_sum_exhaustion_optimization(int *A, int len);
ThreeTuple find_max_cross... |
/**
* Strategy for 2010 edition of robot cup.
*/
#include "strategy2010.h"
#include "../../common/delay/delay30F.h"
#include "../../device/drivers/lcd.h"
#include "../../main/motorClient/motorClient.h"
#include "../../motion/simple/motion.h"
#include "../match/strategy.h"
#include "../robot.h"
#include ... |
/*
* precond.h
* Header file for preconditioners
*
*------------------------------------------------------
*
* Created by <NAME> on 03/29/2009.
* Copyright 2009 PSU. All rights reserved.
*
*------------------------------------------------------
*/
/**
* \file precond.h
* \brief Header file for pre... |
/*************************************************************************/
/* */
/* Language Technologies Institute */
/* Carnegie Mellon University */
/* ... |
/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, <NAME> <<EMAIL>>.
* Copyright (c) 2012-2019, <NAME> <<EMAIL>>.
*/
#include "taisei.h"
#include "rwops_segment.h"
#include "util.h"
typedef struct Segment {
SDL_RWops *wrap... |
/* $NetBSD: procfs_map.c,v 1.4 1999/03/24 05:51:27 mrg Exp $ */
/*
* Copyright (c) 1993 <NAME>
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source and binary fo... |
/* $OpenBSD: rtsx_pci.c,v 1.13 2016/04/26 00:21:27 jsg Exp $ */
/*
* Copyright (c) 2006 <NAME> <<EMAIL>>
* Copyright (c) 2012 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and ... |
#include "audio.h"
#include "dma.h"
#include "timer.h"
// Mixer adapted from: http://deku.gbadev.org
// The mixing buffer being DMA'd to the audio chip
s8 mixBuffers[2][AUDIO_SAMPLES_PER_FRAME];
// Current mixing state
SOUND_VARS audio_vars;
// Channels to mix
SOUND_CHANNEL audio_channels[AUDIO_MAX_CHANNELS];
voi... |
/*
* R-Car Display Unit HDMI Encoder
*
* Copyright (C) 2014 Renesas Electronics Corporation
*
* Contact: <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; either versio... |
/*
* Copyright (C) 2011 Red Hat, 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 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it would be useful,
* but WITHOUT AN... |
/* Copyright 2005-2018, University Corporation for Atmospheric
* Research. See COPYRIGHT file for copying and redistribution
* conditions. */
/**
* @file @internal This file is part of netcdf-4, a netCDF-like
* interface for NCZ, or a ZARR backend for netCDF, depending on your
* point of view.
*
* This file han... |
/*
* Copyright (C) 2021 <NAME>. All rights reserved.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
#include "gdbserver.h"
#include <arpa/inet.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#inclu... |
/*******************************************************************************
* Ledger Nano S - Secure firmware
* (c) 2021 Ledger
*
* 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
*
... |
////////////////////////////////////////////////////
// Parrot proprietary DCT registers
////////////////////////////////////////////////////
// Parrot DCT address: 0xD00B0000
#define P6_BASE_ADDRESS 0xD00B0000
// H264 general registers
#define H264_STATUS 0x000 // Status Register
#define H2... |
#include "saturn_engine/_lib.h"
// Buffer names of text resource files
static char *text_buffer; // Holds name of text file
mrb_value saten_mrb_load(mrb_state *mrb, mrb_value self) /* PRIVATE */
{
// Setup
saten_sprite *sprite = NULL;
saten_sound *sound = NULL;
saten_music *music = NULL;
mrb_v... |
/*
* Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#include <linux/module.h>
#include <linux/mo... |
/*
gc.h - g-cache-ooo definitions
Copyright (C) 2003-2004 Virtutech AB, All Rights Reserved
This program is a component ("Component") of Virtutech Simics and is
being distributed under Section 1(a)(iv) of the Virtutech Simics
Software License Agreement (the "Agreement"). You should have
received a copy o... |
#include <stdio.h>
#include <stdlib.h>
void sumhtpoAux(int n[], int * size, int x){
if(*size < 100) n[(*size)++] = x;
else{
int b = n[0], i = 0, j;
for(j = 1; j < *size; ++j){
if(b < n[j]){
b = n[j];
i = j;
}
}
if(n[i] > x)... |
#include "packetizer.h"
#include <stdlib.h>
#include <uart.h>
typedef struct {
char* label;
uint8_t len;
DataType type;
} json_field_t;
struct Packetizer {
// pointer to array of fields (which are char * themselves)
json_field_t* fields;
uint8_t num;
};
static SerializationMode mode = SER_MODE_UNIN... |
#include <u.h>
#include <libc.h>
#include <stdio.h>
#include <fcall.h>
#include <thread.h>
#include <9p.h>
// for crc32
#include <flate.h>
#include "uuid.h"
#include "hammer2_disk.h"
#include "hammer2.h"
#include "9phammer.h"
hammer2_volume_data_t volumehdr;
// Loads an inode from dataoff in fd into the inode argum... |
/*
* fbcon_dmi_quirks.c -- DMI based quirk detection for fbcon
*
* Copyright (C) 2017 <NAME> <<EMAIL>>
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive for
* more details.
*/
#include <linux/dmi.h>
#include... |
#include "osapi.h"
#include "mem.h"
#include "lwipopts.h"
#include "lwip/sockets.h"
#include "lwip/ip_addr.h"
#include "lwip/pbuf.h"
#include "lwip/tcp.h"
#include "lwip/err.h"
#include "lwip_websocket.h"
#include "connection_list.h"
#include "html_server.h"
#include "html_dataparser.h"
static websocket_gotdata data_c... |
/*******************************************************************
*
* Description: Test application for SCTP
*
* Date: 06/15/99
*
*/
/******************************************************************
* Test application for SCTP
******************************************************************/
/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.