text stringlengths 3.12k 18.7k |
|---|
/*
***********************************************************************
Copyright (c) 2015 Advanced Micro Devices, 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. Redistribution... |
#include <bresenham.h>
#include <string.h>
void bresenTrace(u8* buf, u8 x1, u8 y1, u8 x2, u8 y2, u16 c)
{
int dx, dy, inx, iny, e;
dx = x2 - x1;
dy = y2 - y1;
inx = dx > 0 ? 1 : -1;
iny = dy > 0 ? 1 : -1;
dx = abs(dx);
dy = abs(dy);
if(dx >= dy) {
dy <<= 1;
e = dy - dx;
dx <<= 1;
w... |
/*
* UNIBA/Ampere 1.3
* Gruppo n.16 - <NAME>, <NAME>, <NAME>, <NAME>
* Progetto universitario di gruppo intento alla creazione di un gestore dati per la musica, es: WinAmp
* da realizzare nell'ambito del corso di studi di Laboratorio di Informatica, a.a. 2019/20.
* Maggiori informazioni sul copyright su https://gi... |
/*
* disk/dungeon_master.c
*
* An Atari ST (i.e., IBM-compatible) MFM track with weak bits in sector 1.
* Also support Chaos Strikes Back, featuring weak bits in sector 2.
*
* The protection relies on an ambiguous flux transition at the edge of the
* FDC's inspection window, which may be interpreted as clock o... |
/*
* PostRR - src/cdata.c
* Copyright (C) 2012 Sebastian 'tokkee' Harl <<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... |
/** @file task.c
Controls task switching and manages contexts within microSEL
*/
/*
Copyright 2015, Google 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 License at
ht... |
/**
* @file passcheck.c
* @author hb20007
* @date 05/03/2017
* @brief Checks the strength of the given password
*/
#include "passcheck.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h> // For strlen()
#include <math.h> // For log2() and pow()
#include <limits.h>
int getPassType(const char* pass) {
bool c... |
/* Gstreamer
* Copyright (C) <2011> Intel Corporation
* Copyright (C) <2011> Collabora Ltd.
* Copyright (C) <2011> <NAME> <<EMAIL>>
*
* 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 Foundatio... |
/**
* @file
* Implementacja modułu zawierająca wszystkie komendy które mogą zostać wywołane w main'ie
*
* @author <NAME>
*/
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "gamma.h"
#include "supp_functions.h"
#include "dfs.h"
#incl... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2016 <NAME> <<EMAIL>>
* Copyright (C) 2020 <NAME> <<EMAIL>>
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <fdtdec.h>
#include <init.h>
#include <asm/global_data.h>
#include <linux/bitops.h>
#include <linux/libfdt.h>
#include <asm/io.h>
... |
/// square_right_of_line.c
/// Defines a system for quickly testing if a square (must be a power of 2) in a quadtree traversal is right of (or on) a line.
#include "square_right_of_line.h"
/// Sets up a system for testing if a square (as part of a quadtree traversal) will be on the
/// right side of an infinite line... |
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
/*
Copyright 2019 <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 the rights to use, copy, modify,
merge, publish, distribute, sublicens... |
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include "cell.h"
#include "encoding.h"
#include "toy.h"
#include "binbulk.h"
BinBulk*
new_binbulk() {
BinBulk *bulk;
bulk = GC_MALLOC(sizeof(BinBulk));
ALLOC_SAF... |
/**
****************************************************************************************
*
* @file user_custs1_def.c
*
* @brief Custom Server 1 (CUSTS1) profile database definitions.
*
* Copyright (c) 2012-2019 Dialog Semiconductor. All rights reserved.
*
* This software ("Software") is owned by Dialog Sem... |
/*
* usbpd_protocol.c
*
* Created on: Mar 17, 2018
* Author: <NAME>, Design Concepts, Inc.
*/
#include "usbpd_protocol.h"
// Variables
static FixedSupplyPDOFromSource_TypeDef pdoArray[7];
static uint8_t specificationRevision = UNINIT_SPEC_REV;
static uint8_t messageID = UNINIT_MSGID;
static bo... |
/*
* Copyright (c) 2001, Swedish Institute of Computer Science.
* 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
*... |
#include <Python.h>
#ifndef PyMODINIT_FUNC
#define PyMODINIT_FUNC void
#endif
struct sample {
double t, x, y;
int discontinuity;
struct sample *left;
struct sample *right;
};
struct common_block {
PyObject *parametric;
PyObject *listoftrans;
int counter;
PyObject *random_sampling;
int recursion_lim... |
/*
* cli.c
*
* Created on: 19 нояб. 2017 г.
* Author: ai
*/
#include "cli.h"
#include "FreeRTOS.h"
#include "task.h"
#include "FreeRTOS_CLI.h"
#include "cmsis_os.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "usb.h"
#include "firmware_version.h"
#define MAX_INPUT_LENGTH 50
#... |
/*
A test for all EPS functionality by simulating sending and receiving CAN messages.
RX and TX are defined from EPS's perspective.
*/
#include <can/can.h>
#include <can/data_protocol.h>
#include <can/ids.h>
#include <uart/uart.h>
#include "../../src/general.h"
// Set to true to simulate OBC's CAN messages
bool sim_... |
/**
* collectd - src/nfs.c
* Copyright (C) 2005,2006 <NAME>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; only version 2 of the License is applicable.
*
* This program is distribute... |
/******************************************************************************
*
* M4RI: Linear Algebra over GF(2)
*
* Copyright (C) 2007 <NAME> <<EMAIL>>
* Copyright (C) 2007,2008 <NAME> <<EMAIL>>
* Copyright (C) 2020 <NAME>
*
* Distributed under the terms of the GNU General Public L... |
/* zuni1.f -- translated by f2c (version 20190311).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end of ... |
/*
* $Id: Shear.c 3177 2008-04-01 14:47:24Z karstenm $
*
* This file contains routines for shearing images.
*/
/*
* Copyright 1993, 1994 University of British Columbia
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without ... |
#include <sched.h>
#include <process.h>
#include <stdint.h>
#include <kmalloc.h>
#include <interrupt.h>
#include <queue.h>
#include <uart.h>
#include <timer.h>
#include <lock.h>
#include <signal.h>
extern void context_switch_to(void *, void *, uint64_t);
Thread *all_threads;
uint64_t thread_num;
Queue *run_queue;
//L... |
// Porres 2016
#include "m_pd.h"
#include "math.h"
#include "magic.h"
static t_class *pimp_class;
typedef struct _pimp{
t_object x_obj;
double x_phase;
double x_last_phase_offset;
t_float x_freq;
t_inlet *x_inlet_phase;
t_inlet *x_inlet_sync;
t_outlet *x_outlet_ds... |
/* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
* http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
* http://opensource.org/licenses/MIT>, at your option. This file may not be
* copied, modified, or distributed except according to those terms... |
/* Copyright (c) 2019, The Linux Foundation. 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 version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope... |
/*
* FILE: screen.c
* AUTHORS: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Copyright (c) 2005-2010 CESNET z.s.p.o.
*
* Redistribution and... |
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2006,2007 Free Software Foundation, Inc.
*
* GRUB 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... |
/* Copyright 2013-2014 IBM Corp.
*
* 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 in ... |
/**
* Author: <NAME> [K00221230]
* Date: 2020/03/09
*
* This is the Source file for the Server side of the UDP version of the
* Networked Hangman game.
*
*/
#include "../hdr/hangserver_udp.h"
/**
* play_hangman() function is used to handle serving the Networked
* Hangman game.
* @param sock ... |
/*
thready - A lightweight and fast scheduling simulator
Written in 2019 by <NAME> <<EMAIL>>
To the extent possible under law, the author(s) have dedicated all copyright and
related and neighboring rights to this software to the public domain worldwide.
This software is distributed without any warranty.
You should have... |
#include <string.h>
#include "jobprotocol.h"
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/wait.h>
#include <signal.h>
// TODO: Use this file for helper functions (especially those you want available
// to both executables.
/* Example: Something like the function below... |
/*
Glidix Shell Utilities
Copyright (c) 2014-2017, <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list ... |
/*************************************************************************\
* Copyright (c) 2010 UChicago Argonne, LLC,
* as Operator of Argonne National Laboratory.
* This file is distributed subject to a Software License Agreement
* found in file LICENSE that is included with this distribution.
\******... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <dirent.h>
#include <ctype.h>
#include <time.h>
#include <signal.h>
#define DIRSIZE 512
#define nBytes 512
void clear(),
topWriter(char *tempFile),
filePrinter(int fd),
interruptionWriter(int signal), forceExit(... |
/*
* beep2light is a fork of `script`.
* Modifications done for beep2light are copyrighted (c) 2006 <NAME>
*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... |
#include "ci-service.h"
#include <string.h>
#include <stdio.h>
struct CIService {
gchar *identifier;
gchar *command;
gint userid;
gboolean active;
};
GList *ci_services = NULL;
GRegex *ci_service_regex = NULL;
void ci_service_run(const gchar *command);
gboolean ci_service_regex_eval_cb(const GMatchIn... |
/**
******************************************************************************
* File Name : freertos.c
* Description : Code for freertos applications
******************************************************************************
*
*
*********************************************... |
#include "hooche.h"
#include "io.h"
#include "game.h"
#include "board.h"
#include "cmd.h"
#include "genmoves.h"
#include "eng.h"
t_eng eng;
static void eng_handle_uci(const t_uicmd_uci* p_cmd);
static void eng_handle_debug(const t_uicmd_debug* p_cmd);
static void eng_handle_isready(const t_uicmd_isready... |
#include "diag.h"
#include <signal.h>
extern sig_atomic_t stop;
long tr_amount;
struct state *init;
struct state *fin;
void diag_error();
void do_regexp(struct automaton *aut, bool split);
bool multiple_tr(struct automaton *aut);
void phase_one(struct automaton *aut, bool split);
void phase_two(struct automaton *a... |
/* -*- c -*- ------------------------------------------------------------- *
*
* Copyright 2004 <NAME> - 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, In... |
/* A Bison parser, made by GNU Bison 2.4.2. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 Free Software
Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General P... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2014 The University of Tennessee a... |
/* tz_local_neuroseg_plane.c
*
* 20-Apr-2008 Initial write: <NAME>
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <utilities.h>
#include <math.h>
#include "tz_error.h"
#include "tz_darray.h"
#include "tz_perceptor.h"
#include "tz_geo3d_point_array.h"
#include "tz_3dgeom.h"
#include "tz_geo3d... |
/*
* Copyright 2009-2011 Freescale Semiconductor, 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.
*/
#include <common.h>
#include <i2c.h>
#include <hwconfig.h>
#include <... |
/**
******************************************************************************
* @file c2c_net.c
* @author MCD Application Team
* @version V0.0.1
* @date 11-August-2017
* @brief C2C-specific network initialization.
******************************************************************************... |
/*
# GLX
http://stackoverflow.com/questions/879035/initializing-opengl-without-glut/36038230#36038230
Example without GLUT, but rather GLX which is what GLUT uses in Linux as backend:
https://www.opengl.org/discussion_boards/showthread.php/177999-GCC-OpenGL-without-glut?p=1239444&viewfull=1#post1239444
... |
/* dwarf.h - DWARF support header file
Copyright (C) 2005-2018 Free Software Foundation, Inc.
This file is part of GNU Binutils.
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... |
/* $OpenBSD: select.c,v 1.2 2002/06/25 15:50:15 mickey Exp $ */
/*
* Copyright 2000-2002 <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 c... |
/*
* Copyright 1997, Regents of the University of Minnesota
*
* mkwayrefine.c
*
* This file contains the driving routines for multilevel k-way refinement
*
* Started 7/28/97
* George
*
* $Id: mkwayrefine.c,v 1.2 2005/09/16 15:04:11 levy Exp $
*/
#include <METIS/metis.h>
/**********************************... |
/* BFD back end for NetBSD style core files
Copyright (C) 1988-2018 Free Software Foundation, Inc.
Written by <NAME>, EUR
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Licen... |
/*
Markov chain sentence generator
Written in 2021 by <NAME> (Captain4LK) email: captain4lk [at] tutanota [dot] com
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any ... |
/** @file ash-common.c
* @brief ASH functions common to Host and Network Co-Processor
*
*
* <!-- Copyright 2008 by Ember Corporation. All rights reserved. *80*-->
*/
#include PLATFORM_HEADER
#include <stddef.h>
#include "stack/include/ember-types.h"
#include "hal/hal.h"
#include "hal/micro/generic/ash-... |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2011 Freescale Semiconductor, Inc
* <NAME>
*/
/*
* MDIO Commands
*/
#include <common.h>
#include <command.h>
#include <dm.h>
#include <miiphy.h>
#include <phy.h>
static char last_op[2];
static uint last_data;
static uint last_addr_lo;
static uint last_addr... |
// SPDX-License-Identifier: GPL-2.0
/*
* Format error messages and print them to console.
*
* Copyright (C) 2006 Intel Corp.
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
*/
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/pm.h>
#include <linux/suspend.h... |
/* $FreeBSD: soc2013/dpl/head/sys/boot/efi/include/i386/efibind.h 163941 2006-11-02 02:42:48Z marcel $ */
/*++
Copyright (c) 1999 - 2003 Intel Corporation. All rights reserved
This software and associated documentation (if any) is furnished
under a license and may only be used or copied in accordance
with the terms o... |
/* e_capi_err.c */
/* ====================================================================
* Copyright (c) 1999-2014 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
... |
/*******************************************************************
*
* M4RI: Linear Algebra over GF(2)
*
* Copyright (C) 2008 <NAME> <<EMAIL>>
*
* Distributed under the terms of the GNU General Public License (GPL)
* version 2 or higher.
*
* This code is distributed in the hope that i... |
/*****************************************************************************************
*
* File: ONEstat.c
* one format validator and header generator
*
* Author: <NAME> (<EMAIL>)
* Copyright (C) <NAME>, Cambridge University, 2019
*
* HISTORY:
* Last edited: May 12 19:36 2020 (rd109)
* * Dec 27 09... |
/**
* @file mpi3501.c
*
*/
/*********************
* INCLUDES
*********************/
#include "ili9486.h"
#include "disp_spi.h"
#include "driver/gpio.h"
#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
/*********************
* DEFINES
*********************/
#define TAG "... |
/*
* dm355evm_keys.c - support buttons and IR remote on DM355 EVM board
*
* Copyright (c) 2008 by <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the Licen... |
/*
* Copyright (c) 2002 <NAME> <<EMAIL>>
*
* 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 (at your option) any ... |
/*
* Copyright 2015 <NAME>. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify... |
/*
* Copyright (c) 2004 Sun Microsystems, 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:
*
* Redistribution of source code must retain the above copyright
* notice, this list of c... |
/* Local definitions used by the mosaicing program
* If VIPS_MAXPOINTS change please ensure that it is still a multiple of
* AREAS or else AREAS must change as well. Initial setup is for
* VIPS_MAXPOINTS = 60, AREAS = 3.
*
* Copyright: 1990, 1991 <NAME>
* Author: <NAME>
* Written on: 07/11/1989
* Modified on... |
#include "wstring.h"
#include <stdio.h>
#include <stdint.h>
#include "gc.h"
#include <stdio.h>
// ........................................................... [] wstringNew
void wstringNew_ ( wstring_t* ID , size_t N )
{
ID->data = (wchar_t*) gcRealloc ( ID->data , N * sizeof(wchar_t) ) ;
ID->size = ... |
/*
* Uhr.c
*
* Created: 26/08/2019 01:12:36
* Author : dark
*/
#ifndef F_CPU
#error Define CPU clock speed
#endif
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "tinyI2C.h"
typedef enum {
MODE_CLOCK,
MODE_PROGRAMMING
} ClockMode;
// time
volatile uint8_... |
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2016 The PHP Group |
+---------... |
#include "glutess.h"
#include "tess.h"
#include <stdio.h>
#include <stdlib.h>
/******************************************************************************/
struct Triangle_s {
int v[3];
struct Triangle_s *prev;
};
struct Vertex_s {
double pt[3];
int index;
struct Vertex_s *prev;
};
struct Tes... |
/* Copyright (c) 2015, Intel Corporation
*
* 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 fol... |
/**
* dwc3-pci.c - PCI Specific glue layer
*
* Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com
*
* Authors: <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version... |
#include "mouse.h"
#include "screen.h"
#include "deadbeef_rand.h"
#include "microsleep.h"
#include <math.h> /* For floor() */
#if defined(IS_MACOSX)
#include <ApplicationServices/ApplicationServices.h>
#elif defined(USE_X11)
#include <X11/Xlib.h>
#include <X11/extensions/XTest.h>
#include <stdlib.h>
#include "xd... |
#define SECLEV_LINE 10
#define VER_STRING "ALPHA"
#define VALIDATED "VALIDU.BBS"
#define NOT_VALIDATED "INVALIDU.BBS"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "io_lib.h"
#include "doorbits.h"
extern int ANSI;
char path_to_sfdoor [80];
int main (int argc, char **argv);... |
/* 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... |
/*
* bbt - Bad-block-table functions
*
* Copyright (C) 2015-2017 <NAME> <<EMAIL>>
* Copyright (C) 2015-2017 <NAME> <<EMAIL>>
* Copyright (C) 2015-2017 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
/*
* iquest - The irods iquest (question (query)) utility
*/
#include "rodsClient.h"
#include "parseCommandLine.h"
#include "rodsPath.h"
#include "rcMisc.h"
#include "lsUtil.h"
void usage ();
void
usage () {
char *msgs[]={
"Usage : iquest [-hz] [--no-page] [ [hint] format] selectConditionString ",
"Usage : iqu... |
#include <stdio.h>
#include <stdlib.h>
#include "graphe.h"
#include "lire_ecrire.h"
#include "def.h"
// Fonction liste -- creer une liste vide
// \return NULL
struct elem *creer_liste()
{
return NULL;
}
// Fonction liste -- creer une liste vide
// \param *l liste d'éléments
// \return 1 si elle est NULL, 0 ... |
/* asmhead.nas */
struct BOOTINFO
{ /* 0x0ff0-0x0fff */
char cyls, leds, vmode, reserve;
short scrnx, scrny;
char *vram;
};
#define ADR_BOOTINFO 0x00000ff0
#define ADR_DISKIMG 0x00100000 // 内存开始的地址
/* naskfunc.nas */
void io_hlt(void);
void io_cli(void);
void io_sti(void);
void io_stihlt(void);
int io_in8(... |
// takes grid file and outputs its power spectrum
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <sys/stat.h>
#include <fftw3.h>
//#define TEST_WINDOW
static ptrdiff_t n, n3, npad, n3pad, n1d;
static float *rho, *shot;
static double *k, *pk, R, T, pkshot;
double sinc(double x)... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* LAPB release 002
*
* This code REQUIRES 2.1.15 or higher/ NET3.038
*
* History
* LAPB 001 <NAME> Started Coding
* LAPB 002 <NAME> New timer architecture.
*/
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
#include <linux/errno.h>
#include <linux/types.h>
#include ... |
/*
* Copyright (c) 2019, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <arch_helpers.h>
#include <lib/mmio.h>
#include <crypto/sha_dma.h>
#define AML_SHA_DMA_BASE 0xc883e000
#define AML_SHA_DMA_DESC (AML_SHA_DMA_BASE + 0x08)
#define AML_SHA_DMA_STATUS (AML_SHA_DMA_BAS... |
// -*-Mode: C++;-*- // technically C99
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research an... |
/*
* $Id$
*/
/*
* Smux module authored by <NAME>.
*/
#include <net-snmp/net-snmp-config.h>
#include <stdio.h>
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#if HAVE_STRING_H
#include <string.h>
#else
#include <strings.h>
#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#if HAVE_ERR_H
#include <err.h>
#endif
#... |
/*
* BSD LICENSE
*
* Copyright(c) 2020 Intel Corporation. All rights reserved.
* 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 ab... |
// Copyright (c) 2017-2018, 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 ... |
#include "opt.h"
struct tag {
int type; /* 0 for not tag
1 for open tag
2 for close tag*/
char* name;
struct Cons* attr;
};
struct Cons* attralloc(void) {
struct opts* ret=alloc(sizeof(struct opts));
ret->name=NULL;
ret->value=NULL;
return toPointer(cons(ret,(LVal)NULL));
}... |
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1999-2013, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
#include "unicode/utypes.h"
#include "unicode/ustring.h"... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
/*
* Copyright (c) 2010-2018 TIBCO Software Inc.
* Licensed under a BSD-style license. Refer to [LICENSE]
* For more information, please contact:
* TIBCO Software Inc., Palo Alto, California, USA
*/
/*
* This is a sample C responder program which is used with the tibthrusend
* program to measure basic throughpu... |
/*
Copyright (c) 2011 <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 the rights to
use, copy, modify, merge, publish, distribute, subli... |
#ifdef TSL2561_FLOAT_ENABLE
#include <math.h>
#endif
#include <stdint.h>
#include "device/tsl2561.h"
#include "interface/i2c.h"
#include <unistd.h>
void delay(uint16_t ms) {
usleep(ms * 1000);
}
uint8_t const tsl2561_addr_low = 0x29;
uint8_t const tsl2561_addr_float = 0x39;
uint8_t const tsl2561_addr_high = 0x49... |
/* $OpenBSD: cl_main.c,v 1.36 2021/10/24 21:24:17 deraadt Exp $ */
/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
* Copyright (c) 1993, 1994, 1995, 1996
* <NAME>. All rights reserved.
* Copyright (c) 2022 <NAME> <<EMAIL>>
*
* See the LICENS... |
// Multiscale Electrophysiology Format (MEF) version 3.0
// Copyright 2021, Mayo Foundation, Rochester MN. All rights reserved.
// Written by <NAME>, <NAME>, and <NAME>.
// Usage and modification of this source code is governed by the Apache 2.0 license.
// You may not use this file except in compliance with this... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/* ----------------------------------------------------------------- */
/* The Speech Signal Processing Toolkit (SPTK) */
/* developed by SPTK Working Group */
/* http://sp-tk.sourceforge.net/ */
/* -----------------------------... |
/*
* board.c
*
* Board functions for B&R KWB Board
*
* Copyright (C) 2013 <NAME> <<EMAIL>>
* Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
*
* SPDX-License-Identifier: GPL-2.0+
*
*/
#include <common.h>
#include <errno.h>
#include <spl.h>
#include <asm/arch/cpu.h>
#include <asm/arc... |
#include <SDL.h>
#include "simple_logger.h"
#include "gf2d_graphics.h"
#include "gf2d_sprite.h"
#include "gf2d_draw.h"
#include "director.h"
#include "editor.h"
#include "font.h"
#include "hud.h"
#include "menu.h"
#include "player.h"
#include "enemy.h"
#include "object.h"
#include "input.h"
#include "camera.h"
#inclu... |
/* -*- linux-c -*- ------------------------------------------------------- *
*
* Copyright (C) 1991, 1992 <NAME>
* Copyright 2007 rPath, Inc. - All Rights Reserved
* Copyright 2009 Intel Corporation; author H. <NAME>
*
* This file is part of the Linux kernel, and is made available under
* the terms of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.