text stringlengths 5.8k 28.2k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include<strings.h>
#include <string.h>
#include "characters.h"
#include "items.h"
#include "rooms.h"
#define NON_PLAYER_NUM 5
#define ROOM_NUM 9
#define ITEM_NUM 6
int menu(char*);
void help();
void list(struct Room*[3][3],struct Character*, struct Character*[... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#ifdef WIN32
#include <SDL2/SDL.h>
#else
#include <SDL2/SDL.h>
#endif
#include "ini.h"
#include "bmp.h"
#include "hash.h"
#include "states.h"
#include "utils.h"
#include "game.h"
#include "resources.h"
#include "log.h"
/* Globals *********... |
/*
*
* Copyright (c) 2015 <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
* version 2.1 of the License, or (at your option) any later version.
*
* This... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "structs.h"
#include "const.h"
#include "elements.h"
#include "enviro.h"
#include "gensys.h"
#define MAX_EXP_DIGS 3
#define MAX_MAN_DIGS 20
extern flags args;
typedef struct temperature_s
{
double high;
double low;
double max;
... |
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
/* geoiplookup.c
*
* Copyright (C) 2006 MaxMind LLC
*
* 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; eit... |
/*
* dump_state.c
* Copyright (C) 2000-2003 <NAME> <<EMAIL>>
* Copyright (C) 1999-2000 <NAME> <<EMAIL>>
*
* This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
* See http://libmpeg2.sourceforge.net/ for updates.
*
* mpeg2dec is free software; you can redistribute it and/or modify
* it under the ... |
/*** simpos.c - search object by its name from command line arguments
*** May 15, 2015
*** By <NAME>, sort of after IPAC byname.c for searching NED
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "libwcs/wcs.h"
#include "libwcs/fitsfile.h"
#include "libwcs/wcscat.h"
extern int ned_errno;
s... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2019 Mellanox Technologies, Ltd
*/
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
#include <rte_malloc.h>
#include <rte_errno.h>
#include <rte_io.h>
#include <mlx5_common.h>
#include "mlx5_vdpa_utils.h"
#include "mlx5_vdpa.h"
static void
mlx5_vd... |
#include <assert.h>
#include <ctype.h>
#include <err.h>
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "inputs/20.h"
#define W 10
#define H 10
enum edge {
EDGE_N,
EDGE_E,
EDGE_S,
EDGE_W,
EDGE_NONE = -1,
};
typedef enum edge edg... |
/*
* Creation Date: <2001/05/05 23:33:49 samuel>
* Time-stamp: <2004/01/12 10:25:39 samuel>
*
* /package/hfsplus-files
*
* HFS+ file system interface (and ROM lookup support)
*
* Copyright (C) 2001, 2002, 2003, 2004 <NAME> (<EMAIL>)
* Copyright (C) 2010 <NAME> (<EMAIL>)
*
* This program is free sof... |
/*
* File: webinfo.c
* Date: 17.03.2012
* Author: <NAME>, <EMAIL>
* Desc: Webinfo connects via BSD socket to server on port 80 via HTTP 1.1 and
get required information from HTTP header.
*/
#include <stdio.h> //standard input/output library functions
#include <stdlib.h> //general funciton of language C
#inc... |
#include <stdlib.h>
#include <stdio.h>
#include "libgccjit.h"
#include "harness.h"
struct quadratic
{
double a;
double b;
double c;
double discriminant;
};
/* Let's try to inject the equivalent of:
extern double sqrt (double);
static void
calc_discriminant (struct quadratic *q)
{
... |
/*-
* Copyright (c) 2014-present MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include "wt_internal.h"
/*
* __conn_compat_parse --
* Parse a compatibility release string into its parts.
*/
static int
__conn_com... |
/*-----------------------------------------------------------------*-C-*---
* File: %p%
*
* Copyright (C)1997 <NAME> <<EMAIL>>
* as part of the RScheme project, licensed for free use.
* See <http://www.rscheme.org/> for the latest information.
*
* File version: %I%
* File mod d... |
// SPDX-License-Identifier: GPL-2.0
/*
* devfreq_cooling: Thermal cooling device implementation for devices using
* devfreq
*
* Copyright (C) 2014-2015 ARM Limited
*
* TODO:
* - If OPPs are added or removed after devfreq cooling has
* registered, the devfreq cooling won't react to it.
... |
#include "loki_utils.h"
#include <string.h>
#include <stdlib.h>
//unsigned int Q[HISTORY];
//unsigned int C;
int Index = 1023;
//const char *pers = "ssl"; // Custom data to add uniqueness
static unsigned int GenerateRandIntBetween( unsigned int lower, unsigned int upper );
//static unsigned long long my_t... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* Copyright (c) 2022 STMicroelectr... |
// Copyright [2019] [FORTH-ICS]
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
/*
* Copyright (c) 2008-2009 <NAME> (<EMAIL>)
* and the University of Washington
*
* 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... |
/**
* |----------------------------------------------------------------------
* | Copyright (c) 2016 <NAME>
* |
* | Permission is hereby granted, free of charge, to any person
* | obtaining a copy of this software and associated documentation
* | files (the "Software"), to deal in the Software without re... |
//
// Created by matthew on 23/10/2020.
//
#include "../../include/util.h"
#include "../../include/lang/expr.h"
#include "../../include/compiler/parser.h"
/* func constant: -> 5;
* func inc: x -> (+ x 1);
* func add_const: x -> (+ x constant);
* type List<T> ::= nil {} | cons {T * List<T>};
* // constant has type... |
/*
* Copyright (C) 2017 BlueKitchen GmbH
*
* 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 follo... |
#include <assert.h>
#include <err.h>
#include <libunwind-ptrace.h>
#include <seccomp.h>
#include <signal.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/ptrace.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <sys/user.h>
#include <sys/wa... |
/*
* Copyright (c) 2007 Open Kernel Labs, Inc. (Copyright Holder).
* All rights reserved.
*
* 1. Redistribution and use of OKL4 (Software) in source and binary
* forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* (a) Redistributions of source code must r... |
/*
For forkserver related parts, modified codes from AFL's QEMU mode (original
license below).
---------------------------------------------------------------------
Forkserver written and design by <NAME> <<EMAIL>>
and <NAME> <<EMAIL>>
Copyright 2013, 2014, 2015, 2016 Google Inc. All rights res... |
/**************************************
* *
* <NAME>'s Basecode Example *
* nehe.gamedev.net *
* 2001 *
* *
* All Code / Tutorial Commenting *
* by <NAME> ( NeHe ) *
* ... |
#include <stdlib.h>
#include <unistd.h>
#include <dlfcn.h>
#include <math.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "VandP.h"
#include "chep_crt.h"
#include "files.h"
#include "plot.h"
#include "dynamic_cs.h"
#include "vp.h"
#include "read_mdl.h"
#include "model.h"
#in... |
/*--------------------------------------------------------------------
This source distribution is placed in the public domain by its author,
<NAME>. You may use it for any purpose, free of charge,
without having to notify anyone. I disclaim any responsibility for any
errors.
Optionally, please be nice and tell me if ... |
#include <pulseaudio/pulsehandler.h>
/*
// Unsigned 8 Bit PCM for simple byte mapping on read
static const pa_sample_spec mono_ss = {
.format = PA_SAMPLE_U8,
.rate = 44100,
.channels = 1
};*/
static bool STREAM_READ_LOCK = false;
static int buffer_nbytes = 0;
void pa_sinklist_cb(pa_context* c, const pa_sink_info*... |
// Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
// the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
// reserved. See files LICENSE and NOTICE for details.
//
// This file is part of CEED, a collection of benchmarks, miniapps, software
// libraries and APIs for effic... |
//============================================================================
//----------------------------------------------------------------------------
// Interface.c
//----------------------------------------------------------------------------
//=========================================================... |
//======================================================
// file name: MC96FM408.h
// device : MC96FM408/308 (44, 32pin)
// version : Ver1.0
// date : 2015-10-15
// compiler : Keil-C
// author : ABOV Semiconductor
//======================================================
#include <intrins.h>
#ifndef _MC96F... |
/*
* Marvell Wireless LAN device driver: management IE handling- setting and
* deleting IE.
*
* Copyright (C) 2012, Marvell International Ltd.
*
* This software file (the "File") is distributed by Marvell International
* Ltd. under the terms of the GNU General Public License Version 2, June 1991
* (the "License... |
/* copyright 2013 <NAME> and contributors (see LICENSE for licensing information) */
#include "dbus.h"
#include <gio/gio.h>
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
#include "dunst.h"
#include "log.h"
#include "notification.h"
#include "queues.h"
#include "settings.h"
#include "utils.h"
#define FDN_P... |
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include "instructions.h"
#include "instruction_defs.h"
#include "emulator_functions.h"
#include "modrm.h"
#include "io.h"
#include "util.h"
instruction_func_t *two_byte_instructions[256];
instruction_func_t *instruc... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
#ifndef windows_platform
#include <sys/time.h>
#endif
#include "rodsPath.h"
#include "rodsErrorTable.h"
#include "rodsLog.h"
#include "lsUtil.h"
#include "getUti... |
/*
* File: wbt_event.c
* Author: Fcten
*
* Created on 2014年9月1日, 上午11:54
*/
#include "wbt_event.h"
#include "../common/wbt_string.h"
#include "../common/wbt_heap.h"
#include "../common/wbt_log.h"
#include "../common/wbt_connection.h"
#include "../common/wbt_module.h"
#include "../common/wbt_time.h"
#include ".... |
/**************************************************************************
Copyright (c) <2016> <<NAME>>
https://github.com/JiapengLi/lorawan-parser
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 So... |
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "edid.h"
int cea_y420_capability_map_data_block(const unsigned char *x, struct edid_info *info);
extern int cea_y420vdb(const unsigned char *x, st... |
/*
* $Source: /mit/krb5/.cvsroot/src/appl/bsd/forward.c,v $
* $Id: forward.c,v 1.4 1993/10/15 16:41:29 tytso Exp $
*/
#ifndef lint
static char *rcsid_forward_c =
"$Id: forward.c,v 1.4 1993/10/15 16:41:29 tytso Exp $";
#endif /* lint */
#define LIBC_SCCS
/*-
* Copyright (c) 1993
* The Regents of the Unive... |
// SPDX-License-Identifier: BSD-2-Clause
/*
Copyright 2005-2006 <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... |
/*
Copyright 2008-2017, <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 of conditions... |
/* Copyright (c) 2010-2018 the corto developers
*
* 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, mer... |
/*
* Copyright 2005-2016 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... |
/* This file is part of the libopencm3 project.
*
* It was generated by the irq2nvic_h script.
*
* This part needs to get included in the compilation unit where
* blocking_handler gets defined due to the way #pragma works.
*/
/** @defgroup CM3_nvic_isrdecls_VF6XX User interrupt service routines (ISR) defaults f... |
//
// main.c
// aes
//
// Created by <NAME> on 11/14/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
#include "aes.h"
typedef u_int8_t block[BLOCK_LENGTH];
unsigned char * byteOfState(unsigned int row, unsigned int column, block state) {
return &state[(row<<BLOCK_SHIFT)+column];
}
void loadToState(c... |
/*
* Copyright (c) 2021, <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 of co... |
/* Native-dependent code for LynxOS.
Copyright 1993, 1994, 1995, 1996, 1999, 2000, 2001, 2003 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 S... |
/***************************************************************************
* ANATOLIA MUD is copyright 1996-2002 <NAME>, <NAME> *
* ANATOLIA has been brought to you by ANATOLIA consortium *
* <NAME> {Chronos} <EMAIL> *
* <NAME> {Asena} <EMAIL> *
* <NAME> {KIO} <EMAIL> ... |
#include "parsing.h"
Lexer lexer;
static bool is_invalid_code_point(uint32_t code_point)
{
return code_point <= 0x0009 ||
code_point >= 0x000B && code_point <= 0x001F ||
code_point == 0x007F ||
code_point == 0x0085 ||
code_point == 0x2028 ||
code_point == 0x2... |
/* Jitter RNG: SHA-3 Implementation
*
* Copyright (C) 2021, <NAME> <<EMAIL>>
*
* License: see LICENSE file in root directory
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PU... |
/*
* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source ... |
/** @file lightanchor_detector.c
* @brief Implementation of the lightanchor detector library
* @see lightanchor_detector.h for documentation
*
* Copyright (C) Wiselab CMU.
* @author <NAME> (<EMAIL>)
* @date July, 2020
*/
#include <math.h>
#include "common/zarray.h"
#include "common/homography.h"
#include "com... |
// HOW TO CALIBRATE:
// output acc_calibrationx,y,z preferably via wifi, set accel_offset_* in constants.c to the midpoints between highest and lowest reading.
#include "kitemath/helpers.h"
#include <string.h>
struct position_data{
float accel_norm;
float accel_x;
float accel_y;
float accel_z;
float gyro_x;
... |
/**
* Primary NGINX session management daemon entry point.
*
* Copyright (C) 2018-2020 <NAME>. All Rights Reserved.
* See the LICENSE file accompanying the distribution your rights to use
* this software.
*/
#include "stdconfig.h"
#include <stddef.h>
#include <signal.h>
#include <sys/stat.h>
#include <fcntl.h>
#... |
// The MIT License (MIT)
// Copyright (c) 2015 <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 the rights
// to use, co... |
//--------------------------------------------------------------------------------------
// File: pch.h
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
/... |
#ifndef lint
static const char RCSid[] = "$Id: x11plot.c,v 1.5 2019/11/18 22:12:32 greg Exp $";
#endif
/*
* X window plotting functions
*
* 2/26/86
*/
#include "meta.h"
#include "plot.h"
#include "string.h"
#undef TRUE
#undef FALSE
#include <X11/Xlib.h>
extern void replay(int xmin, int ymin, int... |
/*! \file bcmecmp_rh_util.c
*
* Resilient hashing re-balance utility.
*/
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
#include <shr/shr_error.h>
#include <sh... |
/*
* Copyright (C) 2015 SDN-WISE
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distribut... |
/*
* Re-coding of advent in C: file i/o and user i/o
*/
#include "hdr.h"
#include <unistd.h>
int seekhere = 1; /* initial seek for output file */
FILE *inbuf, *outbuf;
int adrptr; /* current seek adr ptr */
int outsw = 0; /* putting stuff to data file? */
const char iotap... |
/* mpn_perfect_power_p -- mpn perfect power detection.
Contributed to the GNU project by <NAME>.
Copyright 2009, 2010 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 the GNU Lesser General Pub... |
/*
svc_in_gssd_proc.c
Copyright (c) 2000 The Regents of the University of Michigan.
All rights reserved.
Copyright (c) 2002 <NAME> <<EMAIL>>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributio... |
/*
* Copyright (C) 2018-2019 <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
* the rights to use, copy, modify, merg... |
/*
* Copyright (c) 2014-2015 <NAME> <<EMAIL>>
*
* Distributed under the terms of the MIT license.
* (See LICENSE.MIT or http://opensource.org/licenses/MIT)
*/
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#inc... |
/* (c) <NAME> 2000
v0.1.0 initial version (stdin added)
v0.2.0 popen added
v0.2.7 review by <NAME>
v0.39 autoconf
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <unistd.h>
#include "pnm.h"
#ifdef HAVE_PAM_H
# include <pam.h>
# include <sys/types.h>
# inclu... |
/*
* malloc() is a general-purpose dynamic memory allocator.
*
* The design of this allocator is inspired by mimalloc.
*
* Layout in memory looks as follows.
*
* Heap
* Segment 1 Segment 2
* +--------------------------+ +------------------------... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <editline/readline.h>
#include "mpc.h"
#define LASSERT(args, cond, err) \
if (!(cond)) { lval_del(args); return lval_err(err); }
#define LASSERTARGS(args, num_args, func) \
char tmp_args_buffer [200]; \
sprintf(tmp_args_buffer, "Function '%s' ... |
#include <stdio.h>
#include "./zoomer_config.h"
#include "./zoomer_vector.h"
#include "./zoomer_navigation.h"
#define INITIAL_FL_DELTA_RADIUS 250.0f
#define FL_DELTA_RADIUS_DECELERATION 10.0f
#define PAN_SPEED 20.0f
typedef struct {
bool is_enabled;
float shadow;
float radius;
float delta_radius;
} ... |
/**
* Simple DNS client system for cOSiris
* Note: this does not support caching yet
*/
#include <string.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include "console.h"
#include "assert.h"
#include "task.h"
#include "dns.h"
#include "sock.h"
#include "udp.h"
struct dns_hdr {
uint16_t id; /* Identi... |
/*
* Copyright (c) 2009, Microsoft Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful,... |
/*
* intel_pt_pkt_decoder.c: Intel Processor Trace support
* Copyright (c) 2013-2014, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* ... |
/*
* This file is part of the coreboot project.
*
* Copyright(C) 2013 Google Inc.
* Copyright (C) 2015 Intel Corp.
*
* 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 Lice... |
/** @file
* @brief ARP related functions
*/
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#if defined(CONFIG_NET_DEBUG_ARP)
#define SYS_LOG_DOMAIN "net/arp"
#define NET_LOG_ENABLED 1
#endif
#include <errno.h>
#include <net/net_core.h>
#include <net/nbuf.h>
#include <net/n... |
/*---------------------------------------------------------------------------*\
FILE........: iir_duc.c
AUTHOR......: <NAME>
DATE CREATED: 6 Mar 2015
Interapolator/Filter for IF upconversion
Unit testing:
~/codec2-dev/stm32$ gcc -D__UNITTEST__ -Iinc src/iir_duc.c -o iir_duc -lm -Wall -I../src/
~/... |
#include "cache.h"
#include "userdiff.h"
#include "attr.h"
static struct userdiff_driver *drivers;
static int ndrivers;
static int drivers_alloc;
#define PATTERNS(name, pattern, word_regex) \
{ name, NULL, -1, { pattern, REG_EXTENDED }, \
word_regex "|[^[:space:]]|[\xc0-\xff][\x80-\xbf]+" }
#define IPATTERN(na... |
/*
** Copyright 2005-2017 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 ... |
/* ========================================================================== **
* ubi_SplayTree.c
*
* Copyright (C) 1993-1998 by <NAME>
*
* Email: <EMAIL>
* -------------------------------------------------------------------------- **
*
* This module implements "splay" trees. S... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/*
* Copyright (c) 2017-2018, SyLabs, Inc. All rights reserved.
* Copyright (c) 2017, SingularityWare, LLC. All rights reserved.
* Copyright (c) 2016, <NAME>. All rights reserved.
*
* Copyright (c) 2016-2017, The Regents of the University of California,
* through Lawrence Berkeley National Laboratory (subject to ... |
/***************************************************************************
*
* 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
*
* Copyright(c) 2007-2021 Intel Corporation. All rights reserved.
... |
/** @file sdlengine.c
@brief
This file contains SDL engine routines
TwinEngine: a Little Big Adventure engine
Copyright (C) 2013 The TwinEngine team
Copyright (C) 2008-2013 Prequengine team
Copyright (C) 2002-2007 The TwinEngine team
This program is free software; you can redistribute it and/or
modify it un... |
/*
* Intel Wireless WiMAX Connection 2400m
* USB RX handling
*
*
* Copyright (C) 2007-2008 Intel Corporation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of ... |
/* (c) 2015 <NAME>
MIT License */
#include "tai.h"
unsigned int leapsecsat_unix(time_t date)
{
#define TABLE_LEN 27
time_t leapsec_dates[TABLE_LEN] = { 0 };
uint8_t leapsec_diff[TABLE_LEN] = { 0 };
#define new_leapsec(i, date, diff) leapsec_dates[i] = date; leapsec_diff[i] = diff;
new_leapsec(... |
/*
* Copyright 2012 connectFree k.k. and the lev 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
... |
/*
* Copyright (C) 2006 <NAME> <<EMAIL>>
* Copyright (C) 2011 <NAME> <<EMAIL>>
*
* This file is part of libass.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear ... |
/*
* Copyright (C) 2016 <NAME> <<EMAIL>>
*
* This file is subject to the terms and conditions of the GNU General Public
* License v2. See the file LICENSE for more details.
*/
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <netinet/in.h>
#include <linux/if.h>
#include <lin... |
/* main.c - Application main entry point */
/*
* Copyright (c) 2015 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/types.h>
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <sections.h>
#include <ztest.h>
#include <net/net_if.h>
#include <ne... |
#include "embroidery.h"
#include <stdio.h>
#include <string.h>
#include <math.h>
#define RED_TERM_COLOR "\x1B[0;31m"
#define GREEN_TERM_COLOR "\x1B[0;32m"
#define YELLOW_TERM_COLOR "\x1B[1;33m"
#define RESET_TERM_COLOR "\033[0m"
void testTangentPoints(EmbCircle c,
double px, double py,
EmbVector *t0, EmbVect... |
/*
* 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... |
// SPDX-License-Identifier: GPL-2.0+
/*
* addi_apci_3501.c
* Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module.
* Project manager: <NAME>
*
* ADDI-DATA GmbH
* Dieselstrasse 3
* D-77833 Ottersweier
* Tel: +19(0)7223/9493-0
* Fax: +49(0)7223/9493-92
* http://www.addi-data.com
* <EMAIL>... |
/**
* Override uname syscall using ptrace
*
* Example:
* $ ./override_uname_ptrace.bin -s S -n N -r R -v V -m M uname -a
* S N R V M GNU/Linux
*/
#ifndef _GNU_SOURCE
# define _GNU_SOURCE /* for pid_t, process_vm_writev */
#endif
#include <assert.h>
#include <elf.h>
#include <errno.h>
#include <getopt.h>... |
/* Gstreamer video blending utility functions
*
* Copied/pasted from gst/videoconvert/videoconvert.c
* Copyright (C) 2010 <NAME> <<EMAIL>>
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* Copyright (C) <2011> Intel Corporation
* Copyright (C) <2011> Collabora Ltd.
* Copyright (C) <2011> <NAME> <<EMAIL>>
*
* Th... |
/* The kernel call implemented in this file:
* m_type: SYS_SAFECOPYFROM or SYS_SAFECOPYTO or SYS_VSAFECOPY
*
* The parameters for this kernel call are:
* m_lsys_kern_safecopy.from_to other endpoint
* m_lsys_kern_safecopy.gid grant id
* m_lsys_kern_safecopy.offset offset within granted space
* m_lsy... |
/* Copyright (c) 2000, 2004-2007 MySQL AB
Use is subject to license terms.
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... |
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, 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; version 2 of the License.
This program is distributed in the hope that ... |
#if !defined(lint) && !defined(DOS)
static char rcsid[] = "$Id: imap.c 1142 2008-08-13 17:22:21Z <EMAIL> $";
#endif
/* ========================================================================
* Copyright 2006-2007 University of Washington
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ma... |
#define FLT double
#define INT int
#include "mpi.h"
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <math.h>
#if macintosh
#include <console.h>
#endif
FLT **matrix(INT nrl,INT nrh,INT ncl,INT nch);
FLT *vector(INT nl, INT nh);
INT *ivector(INT nl, INT nh);
INT mint(FLT x);
FLT walltime();
void bc(F... |
/** \file squelch.c
\brief Item destruction
*
* The squelch code has a long history. Originally it started out as a simple
* sval-dependent item destroyer, but then ego-item and quality squelch was
* added too, and then squelched items on the dungeon floor were marked by
* purple dots, and by this time the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.