text stringlengths 4 6.14k |
|---|
/**
* common.h
* CHRONICLES PHYSICS ENGINE
* by Greg Tourville
* Copyright (c) 2007
* Tuesday Jan 23 -
* All Rights Reserved.
**/
#ifndef _PHYSICS_COMMON_H
#define _PHYSICS_COMMON_H
#ifndef RADS
# define RADS (0.017453f)
#endif
#define DEGS (57.29578f)
#ifndef PI
# define PI (3.141593... |
/* $Id: edgelist.c,v 1.4 2011/01/25 16:30:48 ellson Exp $ $Revision: 1.4 $ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made ava... |
////////////////////////////////////////////////////////////
// //
// This file is part of the VRPH software package for //
// generating solutions to vehicle routing problems. //
// VRPH was developed by Chris Groer (cgroer@gmail.com). //
// ... |
/* Copyright 2009-2011 Jay Conrod
*
* This file is part of Tungsten.
*
* Tungsten 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 of
* the License, or (at your option) any late... |
/*
* Copyright (C) 2005 - 2011 MaNGOS <http://www.getmangos.org/>
*
* Copyright (C) 2008 - 2011 TrinityCore <http://www.trinitycore.org/>
*
* Copyright (C) 2011 - 2012 TrilliumEMU <http://trilliumx.code-engine.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of... |
/*
* Copyright (C) 2010. Adam Barth. 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 condi... |
/*
* File : application.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date ... |
/*
Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
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 i... |
/*
* Copyright (c) 2001-2003,2005 Silicon Graphics, Inc.
* All Rights Reserved.
*
* 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.
*
* This program is distributed in the hope that it woul... |
/*
* Copyright (c) 2009 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software... |
/*
* Asterisk -- An open source telephony toolkit.
*
* Copyright (C) <Year>, <Your Name Here>
*
* <Your Name Here> <<Your Email Here>>
*
* See http://www.iaxproxy.org for more information about
* the Asterisk project. Please do not directly contact
* any of the maintainers of this project for assistance;
* th... |
/* $Id: disco_provider_id.c,v 1.0 2005/10/14 15:17:55 fpeters Exp $
*
* Lasso - A free implementation of the Liberty Alliance specifications.
*
* Copyright (C) 2004-2007 Entr'ouvert
* http://lasso.entrouvert.org
*
* Authors: See AUTHORS file in top-level directory.
*
* This program is free software; you can re... |
#if !defined(AFX_RMBAND_H__0CE5722A_FBCB_442D_A665_D4687B2868D3__INCLUDED_)
#define AFX_RMBAND_H__0CE5722A_FBCB_442D_A665_D4687B2868D3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the conte... |
/*
* Adium is the legal property of its developers, whose names are listed in the copyright file included
* with this source distribution.
*
* 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; ... |
int SUBST_chown = 1;
int chown(const char *path,int uid,int gid)
{
return -1;
}
|
/*
* File : application.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2006, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date ... |
/**
* Name: wx/features.h
* Purpose: test macros for the features which might be available in some
* wxWidgets ports but not others
* Author: Vadim Zeitlin
* Modified by: Ryan Norton (Converted to C)
* Created: 18.03.02
* RCS-ID: $Id: features.h 69961 2011-12-08 15:58:45Z VZ... |
#ifndef MC_LOGGING_H
#define MC_LOGGING_H
/*
This file provides an easy-to-use function for writing all kinds of
events into a central log file that can be used for debugging.
*/
extern void mc_log(const char *, ...)
__attribute__((__format__(__printf__,1,2)));
#endif
|
#ifndef K3DSDK_ISTREAMING_BITMAP_SOURCE_H
#define K3DSDK_ISTREAMING_BITMAP_SOURCE_H
// K-3D
// Copyright (c) 1995-2010, Timothy M. Shead
//
// Contact: tshead@k-3d.com
//
// 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 t... |
/*
bbs100 3.3 WJ107
Copyright (C) 1997-2015 Walter de Jong <walter@heiho.net>
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 opt... |
#pragma once
#include <iostream>
#include <vector>
#include <enet/enet.h>
#include "md5.h"
#include "config.h"
#include "MessageManager.h"
#include "Player.h"
#include "exploot-protobuf/build/Message.pb.h"
using namespace std;
class NetworkManager{
public:
NetworkManager(MessageManager*);
~NetworkManager();
... |
/** DBLog class header.
@file DBLog.h
This file belongs to the SYNTHESE project (public transportation specialized software)
Copyright (C) 2002 Hugues Romain - RCSmobility <contact@rcsmobility.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public ... |
#ifndef FUNC_H
#define FUNC_H
void show(void);
#endif
|
/**
* @file
* @brief XML tag constants for savegame.
*/
/*
Copyright (C) 2002-2011 UFO: Alien Invasion.
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 you... |
/*
<<<<<<< HEAD
* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
=======
* Copyright (c) 2012, The Linux Foundation. All rights reserved.
>>>>>>> 8f21ba79e30f047f727d3b9dd531267c1db2a838
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
*
* Permission to use, copy, mo... |
/*
* DO NOT EDIT THIS FILE - it is generated by Glade.
*/
GtkWidget* create_window_options (void);
|
/*
* This source code is part of
*
* G R O M A C S
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2009, The GROMACS Development Team
*
* Gromacs is a library for molecular simulation and trajectory analysis,
* written by Er... |
/**
* (C) 2007-2010 Taobao Inc.
*
* 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.
*
* Version: $Id$
*
* Authors:
* ruohai <ruohai@taobao.com>
*/
#ifndef OCEANBASE_ROOTSER... |
/*
* BorderDetector
*
* Attempt to infer content boundaries of an image by looking for rows and
* columns of pixels whose values fall within some narrow range.
*
* Handle letterboxing, pillarboxing, and combinations of the two. Handle cases
* where letterboxing embedded inside of pillarboxing (or vice versa) use... |
#ifndef __LIBS_DEFS_H__
#define __LIBS_DEFS_H__
// #TEST TEST
#ifndef NULL
#define NULL ((void *)0)
#endif
#define __always_inline inline __attribute__((always_inline))
#define __noinline __attribute__((noinline))
#define __noreturn __attribute__((noreturn))
/* Represents true-or-false values */
typedef int bool;
/... |
/*
* Copyright (C) 2017 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/*
* otg-wakelock.c
*
* Copyright (C) 2011 Google, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that i... |
/*
¹¦ÄÜ : ÁгöÕ¾ÄÚʹÓÃÕß×ÊÁÏ
×¢ÒâÊÂÏî : ÐëҪĿǰµÄ bbs.h
Compile : gcc -o showuser showuser.c
ʹÓ÷½Ê½ : showuser i10 l5 e25
(ÁгöʹÓÃÕßµÄ ID, login ´ÎÊý, email µØÖ·)
²é¿´½á¹û £º ÔÚ ~bbs/tmp/showuser.result ÖÐ
*/
/* Modify by deardraogn 2000.10.28 */
#define FIRSTLOGIN... |
/* Copyright (C) 2000-2002, 2004-2005 MySQL 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 that it will be useful,
... |
/*
* Copyright (C) 2003-2011 The Music Player Daemon Project
* http://www.musicpd.org
*
* 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 opti... |
#include <pebble.h>
#include "config.h"
BitmapLayer * bluetooth_layer;
GBitmap *bluetooth_images[4];
bool bt_connected = false;
int _bt_loaded = 0;
void bt_load(Layer * window_layer, GRect rect) {
if (!_bt_loaded) {
APP_LOG(APP_LOG_LEVEL_DEBUG, "bt_load");
for (int i = 0; i < 2; i++)
b... |
/* $Id: sp_respond.h,v 1.26 2015/04/23 18:28:09 jocornet Exp $ */
/*
** Copyright (C) 2014-2015 Cisco and/or its affiliates. All rights reserved.
** Copyright (C) 2002-2013 Sourcefire, Inc.
** Copyright (C) 1998-2002 Martin Roesch <roesch@sourcefire.com>
** Copyright (C) 1999,2000,2001 Christian Lademann <cal@zls.de>
*... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include "elf.h"
#include <string.h>
FILE * source;
void clean_up(){
fclose(source);
}
const char * types[] = {
"NULL", "LOAD", "DYNAMIC", "INTERP","NOTE",
"SHLIB","PHDR","TLS","LOOS","HIOS","LOPROC","HIPROC"
};
char * permissions(uint flags) {
char * r... |
/*
(c) Copyright 2001-2008 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by Denis Oliver Kropp <dok@directfb.org>,
Andreas Hundt <andi@fischlustig.de>,
Sven Neumann <neo@di... |
#include <QtCore/QtCore>
class HueTransitionToOnState : public QState
{
Q_OBJECT
public:
HueTransitionToOnState(QState *parent = Q_NULLPTR);
protected:
void onEntry(QEvent*);
void onExit(QEvent*);
};
|
/*
* This code is part of MaNGOS. Contributor & Copyright details are in AUTHORS/THANKS.
*
* 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 op... |
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//============================================================
//
// slider.h - BGFX shader parameter slider
//
//============================================================
#pragma once
#ifndef __DRAWBGFX_SLIDER__
#define __DRAWBGFX_SLIDER__
#include <bgfx/b... |
#ifndef _SETTINGS_H__
#define _SETTINGS_H__
enum ComputerStrengthType {
CST_Easy,
CST_Hard
};
struct GuiSettings {
};
struct AppSettings {
Preference::GameSettings gameSettings;
GuiSettings guiSettings;
ComputerStrengthType computer1;
ComputerStrengthType computer2;
void Load() {}
void Save() {}
};
#endif ... |
#include "qemu-common.h"
#include "qemu-option.h"
#include "qemu-config.h"
#include "sysemu.h"
QemuOptsList qemu_drive_opts = {
.name = "drive",
.head = QTAILQ_HEAD_INITIALIZER(qemu_drive_opts.head),
.desc = {
{
.name = "bus",
.type = QEMU_OPT_NUMBER,
.help = "bu... |
/*
* linux/arch/arm/mach-clps711x/clep7312.c
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program... |
#ifndef _YLIST_H_
#define _YLIST_H_
#define COMMON_LIST \
struct _list_node_t *pre; \
struct _list_node_t *suc;
typedef struct _list_node_t
{
COMMON_LIST
} list_node_t;
typedef struct
{
list_node_t *start;
uint32_t length;
} list_t;
void freeList(list_t *list);
void deleteLis... |
/*
* Created on 9. September 2008, 01:08
*
* Copyright 2008 Oliver Eichner <o.eichner@gmail.com>
*
* 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) 2013 Red Hat, Inc.
*
* 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 librar... |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <pthread.h>
#define NUM_THREADS 10
static pthread_once_t welcome_once_block = PTHREAD_ONCE_INIT;
void welcome(void)
{
printf("welcome: Welcome\n");
}
void *identify_yourself(void *arg)
{
int rtn;
if ((rtn = pthread_o... |
/*
* Bricks-OS, Operating System for Game Consoles
* Copyright (C) 2008 Maximus32 <Maximus32@bricks-os.org>
*
* 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 Lic... |
/*****************************************************************************
*
* 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 ... |
/* Copyright 2000 Kjetil S. Matheussen
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope... |
#include <stdio.h>
int main( void )
{
int age;
char c;
double income;
printf("input age:\n");
scanf("%d", &age);
scanf("%*[^\n]");
scanf("%*c");
printf("input c:\n");
scanf("%c", &c);
scanf("%*[^\n]");
scanf("%*c");
printf("input income:\n");
scanf("%lf", &income);
printf("你的年龄是%d, %s, %g\n", age,... |
/*
Copyright 2008 by Robert Knight <robertknight@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.... |
/*
* T50 - Experimental Mixed Packet Injector
*
* Copyright (C) 2010 - 2014 - T50 developers
*
* 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
* ... |
/* header file of mygmres.c --
* generalized minimum residual method
* Copyright (C) 1998-2007 Kengo Ichiki <kichiki@users.sourceforge.net>
* $Id: gmres.h,v 2.9 2007/11/25 18:41:57 kichiki Exp $
*
* Reference :
* GMRES(m) : Y.Saad & M.H.Schultz, SIAM J.Sci.Stat.Comput.
* vol7 (1986) pp.856-869
*
* This pro... |
/* This file is part of the KDE project
Copyright (C) 2009, 2011 Dag Andersen <danders@get2net.dk>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, o... |
/*
* Given an integer k and a string s,
* find the length of the longest substring that contains at most k distinct characters.
*
* For example, given s = "abcba" and k = 2,
* the longest substring with k distinct characters is "bcb".
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <str... |
/* $Id: //WIFI_SOC/release/SDK_4_1_0_0/source/linux-2.6.36.x/drivers/sbus/char/max1617.h#1 $ */
#ifndef _MAX1617_H
#define _MAX1617_H
#define MAX1617_AMB_TEMP 0x00 /* Ambient temp in C */
#define MAX1617_CPU_TEMP 0x01 /* Processor die temp in C */
#define MAX1617_STATUS 0x02 /* Chip status bits */
/* Read-only versi... |
#ifndef _I386_PGTABLE_3LEVEL_H
#define _I386_PGTABLE_3LEVEL_H
/*
* Intel Physical Address Extension (PAE) Mode - three-level page
* tables on PPro+ CPUs.
*
* Copyright (C) 1999 Ingo Molnar <mingo@redhat.com>
*/
#define pte_ERROR(e) \
printk("%s:%d: bad pte %p(%08lx%08lx).\n", __FILE__, __LINE__, &(e), (e).pte_h... |
/*****************************************************************************
* PreviewWidget: Main preview widget
*****************************************************************************
* Copyright (C) 2008-2014 VideoLAN
*
* Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
*
* This program is free softwar... |
/* Copyright 2001 Jeff Dike and others
* Licensed under the GPL
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <net/if.h>
#include <sys/un.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/uio.h>
#include <linux/if_tun.h>
#... |
/* LibTomCrypt, modular cryptographic library -- Tom St Denis
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*/
#include "tomcrypt_private.h"
/**
@file oma... |
/*
Spassus2 is a free game (and powerfull engine) for Casio calculators
Copyright (C) 2016 Hugo KUENY
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 yo... |
/* Copyright (c) Mark J. Kilgard, 1994. */
/* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */
/* Exercise all the GLUT shapes. */
#include <stdio.h>
#include <stdlib.h>
#ifdef _WIN... |
#ifndef EXITPANEL_H
#define EXITPANEL_H
#include "../../gui/panel.h"
using namespace std;
class Exitpanel : public Panel
{
public:
Exitpanel();
~Exitpanel();
private:
};
#endif
|
#include "queue.h"
struct qmessage genrandmessage(){
int i;
struct qmessage ret;
i=rand()%10;
strcpy(ret.text,getmesstext(i)); //Установка текста сообщения
ret.delay=rand()%200000+400000;
strcpy(ret.iface,"IFACE");
return ret;
}
|
#include <stddef.h>
struct ether_addr;
int macstr_from_ea(struct ether_addr *ea, char *s, size_t len);
void macstr_from_uint8t(const uint8_t *mac, char *s, size_t len);
|
/***************************************************************
*
* (C) 2011-16 Nicola Bonelli <nicola@pfq.io>
*
* 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 Li... |
/******************************************************************************
errorhandler.c for Allmogetracker
Allmogetracker receives data from a GPS receiver and transmits it
over amature radio using the APRS protocol version 1.0.
Copyright (C)2011, Andreas Kingbäck (andki234@gmail.com)
This pro... |
//
// OpitionTableViewCell.h
// healthfood
//
// Created by lanou on 15/6/24.
// Copyright (c) 2015年 hastar. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface OpitionTableViewCell : UITableViewCell
@property (nonatomic, retain) UIImageView *photoImage;
@property (nonatomic, retain) UILabel *titleLabel... |
#include <linux/platform_data/usb-omap.h>
/* AM35x */
/* USB 2.0 PHY Control */
#define CONF2_PHY_GPIOMODE (1 << 23)
#define CONF2_OTGMODE (3 << 14)
#define CONF2_NO_OVERRIDE (0 << 14)
#define CONF2_FORCE_HOST (1 << 14)
#define CONF2_FORCE_DEVICE (2 << 14)
#define CONF2_FORCE_HOST_VBUS_LOW (3 << 14)
#define CONF2_SES... |
/*
* Inter-OS core software
*
* Copyright (C) 2007 NXP Semiconductors
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later v... |
/*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates.
*
* 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,... |
#include <stdio.h>
#include <stdlib.h>
static const int MULTIPLE_MAX = 1000;
int main() {
int i, sum;
for (i = 0, sum = 0; i < MULTIPLE_MAX; ++i) {
if (i % 3 == 0 || i % 5 == 0) {
sum += i;
}
}
fprintf(stdout, "The sum of multiples of 3 or 5 is: %d\n", sum);
return EXIT_SUCCESS;... |
/* Target-specific definition for a Hitachi Super-H.
Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
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... |
#include <stdio.h>
#include <unistd.h>
int main()
{
printf("First line...");
sleep(3);
printf("\nSecond Line...");
sleep(3);
printf("Third line\n");
sleep(2);
return 0;
}
|
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license contained ... |
#if 0
class T {
#endif
protected:
// virtual methods
virtual QModelIndex mapFromSource ( const QModelIndex & sourceIndex ) const {
if (!m_mapFromSource)
return QOREQTYPE::mapFromSource(sourceIndex);
ExceptionSink xsink;
ReferenceHolder<QoreListNode> args(new QoreListNode, &xs... |
/**
* Mupen64 - exception.h
* Copyright (C) 2002 Hacktarux
*
* Mupen64 homepage: http://mupen64.emulation64.com
* email address: hacktarux@yahoo.fr
*
* If you want to contribute to the project please contact
* me first (maybe someone is already making what you are
* planning to do).
*
*
* This program is f... |
#include "temp.h"
void load_TEMP () {
fprintf(stdout, "Loading TEMP\n");
int theta_id;
//perturbation potential temperature (theta-t0)
nc_error(nc_inq_varid (wrfout_id, "T", &theta_id));
wTHETA = malloc (wN3D * sizeof(float));
if (wTHETA==NULL) {fprintf(stderr, "temp.c : Cannot allocate wTHET... |
# include <stdio.h>
void mycpy(const char * source, char * dest) {
int i = 0;
while (source[i] != '\0')
dest[i++] = source[i];
dest[i] = 0;
}
void main(void)
{
char str[100];
mycpy("desserts I",str); printf("%s\n", str);
mirror(str); printf("%s\n", str);
mirror(str); printf("%s\... |
// -*-c++-*-
/* $Id$ */
#ifndef _LIBTAME_TAME_EVENT_H_
#define _LIBTAME_TAME_EVENT_H_
#include "refcnt.h"
#include "vec.h"
#include "init.h"
#include "async.h"
#include "list.h"
#include "tame_slotset.h"
#include "tame_run.h"
// Specify 1 extra argument, that way we can do template specialization
// elsewhere. We ... |
/*
* 16.1.3 Wait for Thread Termination, P1003.1c/Draft 10, p. 147
*
* COPYRIGHT (c) 1989-2007.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
... |
/* Copyright (c) Mark J. Kilgard, 1996, 1997. */
/* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */
/* Test glutExtensionSupported. */
#include <stdlib.h>
#include <stdio.h>
#inclu... |
#ifndef _UAPIBLKTRACE_H
#define _UAPIBLKTRACE_H
#include <linux/types.h>
/*
* Trace categories
*/
enum blktrace_cat {
BLK_TC_READ = 1 << 0, /* reads */
BLK_TC_WRITE = 1 << 1, /* writes */
BLK_TC_FLUSH = 1 << 2, /* flush */
BLK_TC_SYNC = 1 << 3, /* sync IO */
BLK_TC_SYNCIO = BLK_TC_SYNC,
BLK_TC_QUEUE = 1 << 4,... |
/**
helder_hash.h
Purpose: C++ helper functions for hash custom types, here vector<int>
Details: C++ header.
@author Mikkel Meyer Andersen
*/
#ifndef HELPER_HASH_H
#define HELPER_HASH_H
#include <functional>
#include <vector>
namespace std {
// a little helper
template<typename T>
std::size_t make_hash... |
/*
* Copyright (C) 2010, 2012-2013 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation, and any use by you of this program is subject to the terms of such GNU licence.
... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_concat_params.c :+: :+: :+: ... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Software distr... |
//
// kenwood.h
//
// Copyright 2012, 2013 by John Pietrzak (jpietrzak8@gmail.com)
//
// This file is part of Pierogi.
//
// Pierogi 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... |
/*******************************************************************************
Intel 10 Gigabit PCI Express Linux driver
Copyright(c) 1999 - 2011 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,
ver... |
/*!**************************************************************************
*!
*! FILE NAME : eshlibld.h
*!
*! DESCRIPTION: Prototypes for exported shared library functions
*!
*! FUNCTIONS : perform_cris_aout_relocations, shlibmod_fork, shlibmod_exit
*! (EXPORTED)
*!
*!----------------------------------------------... |
/*
* The PCI Library -- User Access
*
* Copyright (c) 1997--2014 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "internal.h"
void
pci_scan_bus(struct pci_access *a)
{
a-... |
/********************************************************************\
* 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... |
/*************************************************************************
* util.h
*
* Matt Shelton <matt@mattshelton.com>
*
* This header file contains information relating to the util.c module.
*
* Copyright (C) 2004 Matt Shelton <matt@mattshelton.com>
*
* This program is free software; you can redistribute... |
/* Test for ldbl-128ibm fmodl handling of equal values (bug 19602).
Copyright (C) 2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published... |
#pragma once
#include <string>
struct IVTShell
{
virtual void OnApplicationProtocolCommand(const char *str) = 0;
virtual void InjectInput(const char *str) = 0;
virtual void OnKeypadChange(unsigned char keypad) = 0;
virtual void OnTerminalResized() = 0;
};
class VTAnsi
{
struct {
std::string tail, tmp;
} _inco... |
/*
* equalizer.h
*
* Copyright (C) 2003-2004 Jürgen Kofler <kaffeine@gmx.net>
*
* 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... |
class Singleton{
private:
static Singleton *mInstance;//此处仅是申明
Singleton();
~Singleton();
public:
static Singleton* getInstance();
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.