text stringlengths 3.12k 18.7k |
|---|
/**
* Interrupt descriptor table (IDT) related.
*/
#include <stdint.h>
#include "idt.h"
#include "syscall.h"
#include "../common/string.h"
#include "../common/port.h"
#include "../memory/gdt.h"
/**
* The IDT table. Should contain 256 gate entries.
* - 0 - 31: reserved by x86 CPU for various exceptions
*... |
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
#include "asprintf.h"
#include "sock.h"
#include "sock_internal.h"
#include "sock_util.h"
#ifdef POSIXFAIL_INET_ADDRSTRLEN
#define INET_ADDRSTRLEN 16
#endif
#ifdef POSIXFAIL_INET6_ADD... |
/* pckeul.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__2 = 2;
static integer c__5 = 5;
/* $Procedure PCKEUL ( PCK, get Euler angles at time from PCK file ) *... |
/*
* Sleep queue
*
* Copyright (C) 2003 <NAME>, <NAME>,
* <NAME>, <NAME>, <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
* ... |
/* Boolector: Satisfiability Modulo Theories (SMT) solver.
*
* Copyright (C) 2007-2021 by the authors listed in the AUTHORS file.
*
* This file is part of Boolector.
* See COPYING for more information on using this software.
*/
#include "utils/boolectornodemap.h"
#include "boolector.h"
#include "btorabort.h... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2011 The ChromiumOS Authors. 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 Lic... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file Examples_LL/RTC/RTC_Alarm_Init/Src/main.c
* @author MCD Application Team
* @brief This example code shows how to use STM32WLxx RTC LL API to configure
* an alarm.
* ... |
#include<stdio.h>
#include<malloc.h>
#include<stdlib.h>
int f=0;
int i=0,count=0,cl=0;
char name[10];
char add[20],key, pass[10];
long mob,card;
int des1,des2;
struct node{
int info;
int prn;
struct node *next;
}*start=NULL;
void insert(int el,int p)
{
struct node *temp,*temp1;
temp=(struct nod... |
#include <m_pd.h>
#include <string.h>
static t_class *trigger2_class;
#define TR_BANG 0
#define TR_FLOAT 1
#define TR_SYMBOL 2
#define TR_POINTER 3
#define TR_LIST 4
#define TR_ANYTHING 5
#define TR_STATIC_FLOAT 6
#define TR_STATIC_SYMBOL 7
typedef struct trigger2out
{
int u_type; /* outlet type from abo... |
#include <math.h>
#include "core_math.h"
#include "astro_math.h"
void Moon_pos(double Moon[3], double jdate){
double gm, gm2, gm3, fm, fm2, rasc, decl, atr, djd, t;
double em, em2, em4, gs, lv, lm, ls, rm, l, plon, plat, rmm, a, b, obliq, r;
atr = M_PI / 648000;
djd = jdate - 2451545;
t = (djd ... |
#include "cons.c"
#include "clos.h"
#include "common.h"
#include "condition.h"
#include "constant.h"
#include "degrade.h"
#include "package.h"
#include "sequence.h"
#include "type.h"
#include "type_table.h"
static int test_consp_getcons(void)
{
addr left, right, cons, check1, check2;
check1 = check2 = Nil;
fixnum... |
#include "BallAnalysis.h"
#include <stdint.h>
#include <stdio.h>
#include <string.h>
// To communicate with the Python websocket server
// we use a named pipe (FIFO) stored at
// /tmp/foos-debug.in
// These includes allow writing to such an object
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#in... |
/*
* Copyright (c) 2013 Qualcomm Atheros, Inc.
*
* 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 THE AUT... |
/*
* Copyright (c) 2000-2002,2004 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, either version 2 of the License, or
* (at your option) an... |
/*
* SurgeScript
* A scripting language for games
* Copyright 2016-2021 <NAME> <alemartf(at)gmail(dot)com>
*
* 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.o... |
/* userspec.c -- Parse a user and group string.
Copyright (C) 1989-1992, 1997-1998, 2000, 2002-2011 Free Software
Foundation, 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; eithe... |
/*
* Copyright 2006-2012, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <drivers/device_manager.h>
#include <drivers/module.h>
#include <drivers/PCI.h>
#include... |
#define SPI_LCD_PORT SPI2
#define ILI9341_RESET PB15
#define ILI9341_DC PB11
#define ILI9341_LED PB5
extern uint8_t Font8x16[];
#define White 0xFFFF
#define Black 0x0000
#define Blue 0x001F
#define Blue2 0x051F
#define Red 0xF800
#define Magenta ... |
#include "check_confuse.h"
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
static cfg_t *cfg;
int parse_ip_address(cfg_t *cfg, cfg_opt_t *opt, const char *value, void *result)
{
struct in_addr *addr = (struct in_addr *)malloc(si... |
/*
** EPITECH PROJECT, 2018
** myirc
** File description:
** myirc
*/
#pragma once
#include <arpa/inet.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <ncurses.h>
#include <netdb.h>
#include <netinet/in.h>
#include <signal.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "nb/memory_bot.h"
#include "nb/pde_bot/finite_element/element.h"
#include "element_struct.h"
#define INV_3 0.33333333333333333333333333333
static nb_fem_elem_t *elem_allocate_mem(uint8_t N_nodes, uint8_t N_gp);
static void init_trg_linear(nb_fem_el... |
/**
* gestoreUtenti.c - The library used to manage users connected to server
* used in Operating Systems final project for OS class
*
* 2016 <NAME> & <NAME>
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY,... |
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <sys/types.h>
#include <unistd.h>
#include "headers/njvm.h"
#include "headers/stack.h"
#include "headers/instructions.h"
#include "headers/sda.h"
#include "headers/debugger.h"
#include "headers/heap.h"
#include ".... |
#include "sackit_internal.h"
void sackit_nna_note_cut(sackit_playback_t *sackit, sackit_achannel_t *achn)
{
if(achn == NULL)
return;
achn->flags &= ~(
SACKIT_ACHN_MIXING
|SACKIT_ACHN_PLAYING
|SACKIT_ACHN_SUSTAIN);
// TODO: fix fpu mixer
sackit->anticlick[0] -= achn->anticlick[0];
sackit->anticlick[1] ... |
/* Shared library add-on to iptables to add byte tracking support. */
#include <stdio.h>
#include <netdb.h>
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
#include <xtables.h>
#include <linux/netfilter/nf_conntrack_common.h>
#include <linux/netfilter/xt_connbytes.h>
/* Function which prints out usage mess... |
#pragma once
#include "global.h"
#define MAX_SPRITES 64
#define MAX_NPCS 16
struct SpriteSheet
{
const u8 *data; // Raw uncompressed pixel data
u16 size;
u16 tag;
};
struct CompressedSpriteSheet
{
const u8 *data; // LZ77 compressed pixel data
u16 size; // Uncompressed size of pixel dat... |
/* $NetBSD: pciidevar.h,v 1.20.4.1 2005/03/16 13:04:35 tron Exp $ */
/*
* Copyright (c) 1998 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code mus... |
/* Extract symbol list from binary.
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005, 2007, 2015 Red Hat, Inc.
This file is part of elfutils.
Written by <NAME> <<EMAIL>>, 1998.
This file is free software; you can redistribute it and/or modify
it under the terms of either
* the GNU Lesser General P... |
#include "stdStrTable.h"
#include "stdPlatform.h"
#include "General/stdString.h"
#include "jk.h"
static wchar_t stdStrTable_tmpBuf[64];
int stdStrTable_Load(stdStrTable *strtable, char *fpath)
{
int v2; // edi
int fhand; // ebp
char *i; // esi
char v6; // al
int v11; // ebx
int v12; // edi
... |
#include <ctype.h>
#include <limits.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "parse.h"
typedef enum {
QUOTE_NONE,
QUOTE_SINGLE,
QUOTE_DOUBLE,
QUOTE_BACKSLASH,
QUOTE_BACKSLASH_IN_DOUBLE
} quote_state_t;
static bool check_quote(quote_state_t *state, char c) {
bool quoted = false;
... |
/**
* SO, 2017
* Lab #3, Procese
*
* Task #2, Windows
*
* Implementing a minimal shell
*/
/* do not use UNICODE */
#undef _UNICODE
#undef UNICODE
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "utils.h"
#define MAX_LINE_SIZE 256
#define MAX_CMD_SIZE 32
#define MAX_AR... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
#include<stdio.h>
//Estrutura do nó da Árvore Binária
typedef struct node{
int dado;
struct node *esq;
struct node *dir;
struct node *pai;
} Node;
//Retorna o ponteiro que aponta para o filho à esquerda
Node* esquerda(Node *raiz){
Node *aux = raiz;
if(aux->esq != NULL) aux = aux->esq;
else... |
/*
* SIE Remote Access (SRA) ASCII tool
*
* Copyright (c) 2014-2017 by Farsight Security, 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
*
* http://www.apache.org/licen... |
/* -*- c -*- --------------------------------------------------------------- *
*
* linux/fs/autofs/inode.c
*
* Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
*
* This file is part of the Linux kernel and is made available under
* the terms of the GNU General Public License, version 2, or at yo... |
/*-------------------------------------------------------------------------*/
/**
@file SSL_Keys.c
@author <NAME>
@brief Allows you to get SDL keys code with a string.
This module implements a way to get SDL key codes with strings.
*/
/*---------------------------------------------------------------... |
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> at The University of Guelph.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... |
#include <stdio.h>
#include <math.h>
#include <memory.h>
// Our unfortunate matrix storage:
//
// 0 4 8 12
// 1 5 9 13
// 2 6 10 14
// 3 7 11 15
void mat4_multiply(float *result, float *a, float *b)
{
result[ 0] = a[ 0] * b[ 0] + a[ 4] * b[ 1] + a[ 8] * b[ 2] + a[12] * b[ 3];
... |
/*
* 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.
*/
#include <arpa/inet.h>
#include <linux/if_packet.h>
#inc... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define thisprog "xe-detectnoise1"
#define TITLE_STRING thisprog" v 1: 6.October.2017 [JRH]"
#define MAXLINELEN 1000
#define MAXLABELS 1000
/*
<TAGS>signal_processing</TAGS>
v 1: 6.October.2017 [JRH]
*/
/* external functions start */
long *... |
#include "sci/Kernel/Window.h"
#include "sci/Kernel/Animate.h"
#include "sci/Kernel/Graphics.h"
#include "sci/Kernel/Menu.h"
#include "sci/Kernel/Picture.h"
#include "sci/Kernel/Text.h"
#include "sci/Utils/ErrMsg.h"
#include "sci/Utils/Trig.h"
#define TITLEBAR BARSIZE // lines in title bar
static List s_windowL... |
#include <stm32l1xx_rcc.h>
#include <stm32l1xx_rtc.h>
#include <stm32l1xx_exti.h>
#include <misc.h>
#include <RTC.h>
RTC_TimeTypeDef RTC_Time; // Current RTC time
RTC_DateTypeDef RTC_Date; // Current RTC date
// Initialize and configure the RTC peripheral
void RTC_Config(void) {... |
/*
* OpenBIOS - free your system!
* ( firmware/flash device driver for Linux )
*
* filesystem.c - vfs character device interface
*
* This program is part of a free implementation of the IEEE 1275-1994
* Standard for Boot (Initialization Configurat... |
/*
Illinois Open Source License
University of Illinois/NCSA
Open Source License
Copyright © 2009, University of Illinois. All rights reserved.
Developed by:
Innovative Systems Lab
National Center for Supercomputing Applications
http://www.ncsa.uiuc.edu/AboutUs/Directorates/ISL.html
Permission is h... |
/* See LICENSE file for license details. */
#define _XOPEN_SOURCE 500
#if WITH_SHADOW_H
#include <shadow.h>
#endif
#include <pwd.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/xpm.h>
#ifdef WITH_IMLIB2
#include <Imlib2.h>
... |
// SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2021, Linaro Limited
#include <linux/err.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#include <sound/pcm_params.h>
#include "q... |
/* baud-gen.c
*
* This program is used to configure the AVR ATtiny84
* as a dual-channel baud rate generator.
*
* +-----------+
* | |
* | TTL OSC |
* | |
* +-----+-----+
* |
* <CLKI>
* |
* +-----+-----+
* | |
* | ATtiny84 +--< BC0A > Baud rate cl... |
/* =========================================================================
* Freetype GL - A C OpenGL Freetype engine
* Platform: Any
* WWW: http://code.google.com/p/freetype-gl/
* -------------------------------------------------------------------------
* Copyright 2011,2012 <NAME>. All rights reserv... |
#include "std.h"
#include "dat.h"
/*
* RSA authentication.
*
* Encrypt/Decrypt:
* start n=xxx ek=xxx
* write msg
* read encrypt/decrypt(msg)
*
* Sign (PKCS #1 using hash=sha1 or hash=md5)
* start n=xxx ek=xxx
* write hash(msg)
* read signature(hash(msg))
*
* Verify:
* start n=xxx ek=xxx
* write hash(m... |
#include "c_header.h"
void* get_in_addr( struct sockaddr* sa )
{
if (sa->sa_family == AF_INET) {
return &(((struct sockaddr_in*)sa)->sin_addr);
}
return &(((struct sockaddr_in6*)sa)->sin6_addr);
}
void* socket_manager(void* parameter) {
//*** Treats the parameter
thread_context* context = (threa... |
/*
* Copyright 2021 Kontain 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
// vspy generated implementation file
#include "obd2pro_wifi_cc32xx.h"
#include "obd2pro_wifi_cc32xx_ism.h"
unsigned char g_bUseExtendedIdBit = 0;
unsigned int g_startDelay = 0;
unsigned int getStartDelay(void)
{
return g_startDelay;
}
void setStartDelay(unsigned int delay)
{
if (delay > 99999)
delay ... |
/*
* 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... |
/**
* Read and parse a wave file
*
**/
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "wave.h"
#define TRUE 1
#define FALSE 0
// WAVE header structure
unsigned char buffer4[4];
unsigned char buffer2[2];
char* seconds_to_time(float seconds);
FILE *ptr;
char *filename;
... |
/* $OpenBSD: annotate.c,v 1.65 2015/11/05 09:48:21 nicm Exp $ */
/*
* Copyright (c) 2007 <NAME> <<EMAIL>>
* Copyright (c) 2006 <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 "tgraph.h"
#include <string.h>
#include <stdio.h>
/***********************************/
/** Path memory utility functions **/
/***********************************/
path* initpath(u64 vcnt) {
path* o = malloc(sizeof(path));;
o->len = 0;
o->cap = vcnt;
o->vars = malloc(sizeof(u64) * o->cap);
o->... |
/*
* eioctl - simple cmdline tool to setup and control EnhanceIO caching module
*
* Written by A$teroid, 2019
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <linux/fs.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#define VERS... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 <NAME> / <NAME>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as ... |
// REQUIRES: aarch64-registered-target
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +neon \
// RUN: -ffp-contract=fast -S -O3 -o - %s | FileCheck %s
#include <arm_neon.h>
// CHECK: test_vdups_lane_f32
float32_t test_vdups_lane_f32(float32x2_t a) {
return vdups_lane_f32(a, 1);
// CHECK: ret
/... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2009 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility... |
/* $OpenBSD: lmccontrol.c,v 1.9 2006/12/06 05:56:03 jcs Exp $ */
/*-
* Copyright (c) 1997-1999 LAN Media Corporation (LMC)
* All rights reserved. www.lanmedia.com
*
* This code is written by <NAME> (<EMAIL>) and
* <NAME> (<EMAIL>) for LMC.
* The code is derived from permitted modifications to software created
... |
/*
OpenRTOS V8.2.3 - Copyright (C) Wittenstein High Integrity Systems.
OpenRTOS is distributed exclusively by Wittenstein High Integrity Systems,
and is subject to the terms of the License granted to your organization,
including its warranties and limitations on distribution. It cannot be
copied o... |
/**
* \file demo.c
*
* \brief Code for operating the Raspberry Pi demo at NetSys 2021
**/
#include "feature/split/demo.h"
#include <errno.h>
#include <string.h>
#include <stdbool.h>
#include "app/config/config.h"
#include "lib/evloop/timers.h"
#include "lib/log/log.h"
#include "lib/log/util_bug.h"
#if defined(E... |
/*
* volume_id - reads filesystem label and uuid
*
* Copyright (C) 2004 <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 ... |
/*
Copyright 2020 LFKeyboards
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 that it wi... |
#define _GNU_SOURCE /* POLLRDHUP */
#include <arpa/inet.h>
#include <errno.h>
#include <linux/bpf.h>
#include <linux/tcp.h>
#include <poll.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/resource.h>
#include <time.h>
#include <unistd.h>
#include "common.h"
#include "tbpf.h"
extern size_t bpf_insn_prog_parser... |
/* mxmt.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static integer c__9 = 9;
/* $Procedure MXMT ( Matrix times matrix transpose, 3x3 ) */
/* Subroutine */ int mxmt_(doub... |
/*
G N O K I I
A Linux/Unix toolset and driver for the mobile phones.
This file is part of gnokii.
Copyright (C) 2000 <NAME> & <NAME>.
Copyright (C) 2000 <NAME>
Copyright (C) 2004 <NAME>
This file provides an API for accessing functions via gnbus.
See README for more details on supported mobile pho... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/*
Multidimensional array
0_multidimentional_array.c
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
/*
To pass a string, we can use either char* or char[] (1D array).
*/
void print1D_1(char* item) {
printf("item = %s\n", item);
}
void print1D(char item[]) {
printf("item = %s\n", item);
}
/* 2... |
#include <u.h>
#include <libc.h>
#include <thread.h>
#include "dat.h"
#include "fns.h"
char*
nodepath(char *s, char *e, Revnode *nd, int mangle)
{
static char *frogs[] = {
"con", "prn", "aux", "nul",
"com1", "com2", "com3", "com4", "com5", "com6", "com7", "com8", "com9",
"lpt1", "lpt2", "lpt3", "lpt4", "lpt5", ... |
/*
* Copyright (c) 2015-2017 <NAME>. All rights reserved.
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup examples
* @{
*
* @file
* @brief gcoap CLI support
... |
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include <limits.h>
#include "microcode/scanner.h"
#include "shared/memory.h"
#include "shared/platform.h"
static char peek(Scanner* scanner);
static char advance(Scanner* scanner);
static bool isAtEnd(Scanner* scanner);
static bool isDigi... |
// qp.h: tables implemented with quadbit popcount patricia tries.
//
// Written by <NAME> <<EMAIL>>
// You may do anything with this. It has no warranty.
// <http://creativecommons.org/publicdomain/zero/1.0/>
// In a trie, keys are divided into digits depending on some radix
// e.g. base 2 for binary tries, base 256 f... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <dlfcn.h>
#include <pthread.h>
#include <errno.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <termios.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/io.h>
#include "gps.h"
#include "gpsdcl... |
/*
* JMC Lisp: defined in McCarthy's 1960 paper,
* derived from http://www.paulgraham.com/lispcode.html
*
* This code is Licensed under CC0.
* https://creativecommons.org/publicdomain/zero/1.0/
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#define SSTR_MAX 4096
... |
#include <ctype.h>
#include "sub.h"
#define LOG 0
enum attribute {
ATTR_LOWERCASE = 0x01, /* 'l' */
ATTR_UPPERCASE = 0x02, /* 'u' */
ATTR_EXECUTE = 0x04, /* 'x' */
ATTR_NO_NEWLINE = 0x08, /* 'n' */
ATTR_HAS_DEFAULT = 0x10,
ATTR_CASE_MASK = 0x03,
ATTR_NONE = 0x00,
};
... |
////////////////////////////////////////////////////////////////////////////////
/// @file WT2031.C
/// @author <NAME>
/// @version v2.0.0
/// @date 2019-02-18
/// @brief THIS FILE PROVIDES ALL THE WT2031 EXAMPLE.
////////////////////////////////////////////////////////////////////////////////
/// @attent... |
#include <math.h>
#include <float.h>
#include "nr_util.h"
#include "ad_globl.h"
#include "ad_bound.h"
#include "ad_doubl.h"
#include "ad_prime.h"
#include "ad_matrx.h"
#include "ad_prime.h"
void
RT_Layers_All (int n,
double nslab,
double ntopslide,
double nbottomslide,
int nlayers,
... |
// Released under the MIT License; see LICENSE
// Copyright (c) 2021 <NAME>
#include <string.h>
#include "apl.h"
#include "error.h"
#include "token.h"
static jmp_buf jbEditMode;
char *apchEdtMsg[] =
{
"No error", /* 0 */
"Function too big", /* 1 */
"Invalid line number", /* 2 */
"Invalid ... |
/*
* Part of DNS zone file validator `validns`.
*
* Copyright 2011-2014 <NAME> <<EMAIL>>
* Modified BSD license.
* (See LICENSE file in the distribution.)
*
*/
#include <sys/types.h>
#include <stdio.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <openssl/bn.h>
#include <openssl/evp.h>
#include <opens... |
/* Feel free to use this example code in any way
you see fit (Public Domain) */
#include <sys/types.h>
#ifndef _WIN32
#include <sys/select.h>
#include <sys/socket.h>
#else
#include <winsock2.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <microhttpd.h>
#ifdef _MSC_VER
#ifndef strcase... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* Copyright (c) 2022 STMicroelectronics.
... |
#pragma once
#include <stdint.h>
#define EXT2_MAGIC 0xef53
#define EXT2_INVALID_INODE 0
/*
* Inode type and permissions
*/
#define EXT2_INODE_FIFO 0x1000
#define EXT2_INODE_CHAR_DEV 0x2000
#define EXT2_INODE_DIR 0x4000
#define EXT2_INODE_BLK_DEV 0x6000
#define EXT2_INODE_REG_FILE 0x8000
#define EXT2_INOD... |
/* MIT License
*
* Copyright (c) 2016--2017 <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 the rights
* to use, copy... |
/** @file
* Implementacja interfejsu funkcji pomocniczych dla modułu operacji przekierowywania numerów telefonów
*
* @author <NAME> <<EMAIL>>
* @date 01.06.2018
*/
#include <stdbool.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "phone_forward.h"
#include "utils.h"
char *... |
/*
* Copyright (c) 2002 - 2005 NetGroup, Politecnico di Torino (Italy)
* Copyright (c) 2005 - 2008 CACE Technologies, Davis (California)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <event.h>
#include <evhttp.h>
#include <signal.h>
#include "pubsubclient.h"
#include "stream_request.h"
#ifdef DEBUG
#define _DEBUG(...) fprintf(stdout, __VA_ARGS__)
#else
#define _DEBUG(...) do {;} while (0)
#endif
static int chunked = 0;
static str... |
/*
* Calculates the bounding box for a one-page .dvi file.
* Based on a lot of other dvips stuff. Requires a total re-scan
* of the page.
*
* If you request an EPSF file and specify -a, you may end up
* processing a single page four times!
*/
#include "dvips.h"
#include <math.h>
extern char *mymalloc(... |
/* $NetBSD: svr4_signo.c,v 1.1 2002/03/31 22:22:49 christos Exp $ */
/*-
* Copyright (c) 2002. The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* mo... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/*
Unix SMB/CIFS implementation.
RPC pipe client
Copyright (C) <NAME> 2001-2002,
Copyright (C) <NAME> 2000-2002,
Copyright (C) <NAME> 1994-2000,
Copyright (C) <NAME> 1999-2000.
Copyright (C) <NAME> 2005.
This program is fre... |
/* globals: */
/* NEWLY CHANGED DEFINES TO GLOBALS */
//values behind the '//' are the old default values
int INCLUDE_PHENOTYPE; //1
int INDIV_HAP_OUTPUT; //1
int INDIV_DIP_OUTPUT; //1
int INDIV_HAP_DBFORMAT; //0
int SASCODE; //0
int LD_TABLE; //0 /* here could have submenu choosing which LD statistics to compute */
i... |
/*
* <NAME> <<EMAIL>>
* Extract extensions from an uncompressed mach_kernel.prelink.
* $ gcc -Wall -o prelink_extract prelink_extract.c mmap_info.c \
* -framework IOKit -framework CoreFoundation
*/
#include <CoreFoundation/CoreFoundation.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#includ... |
/*
wiring.c - Partial implementation of the Wiring API for the ATmega8.
Part of Arduino - http://www.arduino.cc/
Copyright (c) 2005-2006 <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... |
/******* TODOS: *******
1. Allow for saving
2. Fix where you can actually type
3. Fix just EVERYTHING about window resizing
4. Add documentation
5. Add command functionality and different modes
**********************/
#include <math.h>
#include <ncurses.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.... |
/*
* Copyright (C) <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, merge, publish... |
#include "Menu.h"
// Print text fra 2D array.
void PrintOutTextArray(char *TextArray, uint8_t xCor, uint8_t yCor, uint8_t RowTotal, uint8_t ColTotal) {
// Move cursor to (xCor,yCor)
gotoXY(xCor,yCor);
// Run through rows
for (int RowI = 0 ; RowI < RowTotal ; RowI++) {
// Run trough columns.
for (in... |
/*
* Autores: <NAME> y <NAME>
*/
#include "tipos.h"
#include "kdtree.h"
#include "common_functions.h"
#include "direct.h"
#include "mapa_fotones.h"
#ifdef OPENGL
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#endif
volatile sig_atomic_t progreso=0;
volatile sig_atomic_t porcentaje=... |
/*
Copyright (c) 2006-2016, The Regents of the University of California,
through Lawrence Berkeley National Laboratory (subject to receipt of any
required approvals from the U.S. Dept. of Energy) and the <NAME>
Institut (Switzerland). All rights reserved.
License: see file COPYING in top level of source dis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.