text stringlengths 3.08k 10.5k |
|---|
/****************************************************************************************************************************
cencode.c - c source to a base64 encoding algorithm implementation
This is part of the libb64 project, and has been placed in the public domain.
For details, see http://sourceforge.net... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef __amigaos4__
#include <proto/exec.h>
#endif
#include "amosKittens.h"
char *nextArg(struct nativeCommand *cmd, char *tokenBuffer);
char *parenthesisStart(struct nativeCommand *cmd, char *tokenBuffer);
char *parenthesisEnd(struct nativeCommand *cmd, ch... |
/*
This file is part of the RA package (http://github.com/davidssmith/ra).
The MIT License (MIT)
Copyright (c) 2015-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 withou... |
/*
* Copyright (c) 2014 - Qeo LLC
*
* The source code form of this Qeo Open Source Project component is subject
* to the terms of the Clear BSD license.
*
* You can redistribute it and/or modify it under the terms of the Clear BSD
* License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file
* fo... |
/*----------------------------------------------------------------------------
* CMSIS-RTOS - RTX
*----------------------------------------------------------------------------
* Name: HAL_CM.C
* Purpose: Hardware Abstraction Layer for Cortex-M
* Rev.: V4.79
*---------------------... |
/*
* udpclient.c - A simple UDP client
* usage: udpclient <host> <port>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#define BUFSIZE 1024
/*
* create function to send ... |
/**
* @file display.c
* @brief Programa Principal
*
* Descrição mais detalhada do ficheiro
*
* @author <NAME>, <EMAIL>
*
* @internal
* Created 27-Sep-2017
* Company University of Aveiro
* Copyright Copyright (c) 2017, <NAME>
*
************************************************... |
/**
* @internal
* tga.c
* @file tga.h
* obj
* @date May 29, 2012
* @author <NAME>
*
* @brief used internally for TGA loading
*/
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "tga.h"... |
#include "stdlib.h"
struct node {
struct node *next;
int value;
};
struct stack {
struct node *head;
};
/*@
predicate nodes(struct node *node, int count) =
node == 0 ? count == 0 : 0 < count &*& node->next |-> ?next &*& node->value |-> ?value &*& malloc_block_node(node) &*& nodes(next,... |
#include "tcpi.h"
#include <time.h>
int linktype;
static void udpfrag(u_char *user, const struct pcap_pkthdr *header, const u_char *packet);
static void arpinfo(const u_char *packet);
int main(int argc, char *argv[])
{
pcap_t *pt;
struct bpf_program bp;
if (argc != 3)
err_qui... |
/** @file
* Copyright (c) 2018-2019, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
* 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... |
#include "u.h"
#include "keyboard.h"
#include "interrupts.h"
#include "vga.h"
#define KBD_STATUS_PORT 0x64
#define KBD_DATA_PORT 0x60
typedef struct {
uint8 keystate[128];
} kbd_state_t;
typedef enum {
KBD_CTRL = 29,
KBD_LSHIFT = 42,
KBD_RSHIFT = 54,
KBD_ALT = 56,
KBD_CAPS = 58,
... |
/* ========================================================================
* Copyright 2008 University of Washington
*
* 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... |
#ifndef lint
static const char RCSid[] = "$Id: maxheap.c,v 2.2 2015/08/18 15:02:53 greg Exp $";
#endif
#include <stdio.h>
#include <stdlib.h>
#include "maxheap.h"
static int resize_heap(maxHeap* hp,int sz)
{
int i;
if (sz == hp->cap)
return 1;
hp->heap = (heapElem*) realloc(hp->heap,sz*sizeof(heapElem));
if (... |
/*COPYRIGHT 1980, INFOCOM COMPUTERS AND COMMUNICATIONS, CAMBRIDGE MA. 02142*/
/* ALL RIGHTS RESERVED, COMMERCIAL USAGE STRICTLY PROHIBITED */
/* WRITTEN BY <NAME> */
#include "funcs.h"
#include "vars.h"
/* GTTIME-- GET TOTAL TIME PLAYED */
void gttime_(t)
integer *t;
{
integer h, m, s;
itime_(&h, &m, &s);
... |
#include <rkerberos.h>
VALUE cKadm5Policy;
// Free function for the Kerberos::Krb5::CCache class.
static void rkadm5_policy_free(RUBY_KADM5_POLICY* ptr){
if(!ptr)
return;
if(ptr->ctx)
krb5_free_context(ptr->ctx);
free(ptr);
}
// Allocation function for the Kerberos::Kadm5::Policy class.
static VALUE ... |
/* Memory map:
0 - 31: slots for vregs
32 - 63: IRQ mode vregs
64 - 127: microcode handlers table
128 - 139: IRQ handler entry, one for all, must fit 12 bytes
140 - 151: Entry point
152 - MUEND: mucode
MUEND+1 - 16383: code + data
16384 - 65535: memory-mapped area
*/
#include <stdlib... |
/*
** Copyright 1994, Silicon Graphics, Inc.
** All Rights Reserved.
**
** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
** the contents of this file may not be disclosed to third parties, copied or
** duplicated in any form, in whole or in part, without the prior written
** permission of Sili... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define SERVER_ADDRESS "127.0.0.1"
#define SERVER_PORT 7005
#define TEST_MESSAGE "This is test message!"
/* optio... |
/* Copyright (c) 2014, <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 condi... |
/*
* Copyright (c) 2020, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <common/debug.h>
#include <common/fdt_wrappers.h>
#include <libfdt.h>
#include <plat/arm/common/fconf_sec_intr_config.h>
#define G0_INTR_NUM(i) g0_intr_prop[3U * (... |
// Copyright (c) 2019-2022 Qinglong<<EMAIL>>
//
// 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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "calc.h"
#define PROGRAM_NAME "calc"
typedef struct parse_params {
char curr_char;
char *m_input;
int curr_index;
int expect_parens;
} parse_params;
/* Hold list of terminal symbols as type Symbol*/
enum Symbol {
NUMBER,
POIN... |
/*
* Copyright © 2013 Intel Corporation
*
* 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, pub... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "signtool.h"
#include "pk11func.h"
#include "certdb.h"
static int num_trav_certs = 0;
static SECStatus c... |
#include "server.h"
int server_init(server_t *server, const char *const sockpath) {
server->sock_fd = -1;
server->epoll_fd = -1;
memset(server->client_fds, 0, sizeof(server->client_fds));
server->client_count = 0;
memset(server->epoll_events, 0, sizeof(server->epoll_events));
if (server_init_unix_socket(server) ... |
#include "http.h"
#include <errno.h>
#include <fcntl.h>
#include <libgen.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/sendfile.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#inclu... |
/*******************************************************************************
*
* Copyright (C) 2014-2018 Wave Computing, Inc.
*
* 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... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include "ck2json.h"
#define PROP_VALUE(node) ((node)->value.prop_value.value)
#define PROP_NAME_NODE(node) ((node)->value.prop_value.name)
#define PROP_NAME(node) (PROP_NAME_NODE(node)->value.string_value)
char * copy_string(const char ... |
#include "sort.h"
#define ENABLE_MERGE_SORT_RECURSIVE
// #define ENABLE_MERGE_SORT_ITERATIVE
// #define ENABLE_BUBBLE_SORT
#ifdef ENABLE_MERGE_SORT_RECURSIVE
static strcmpfp cmp;
static list_ele_t *merge(list_ele_t *l1, list_ele_t *l2)
{
list_ele_t buf;
list_ele_t *tmp = &buf;
while (l1 && l2) {
... |
#include "curlconn.h"
#include "article.h"
#include "data.h"
#include "rssparser.h"
#include "htmlparser.h"
#include "tokenizer.h"
#include "index.h"
#include "threads_pool.h"
#include <stdlib.h>
#include <assert.h>
/**
* HashSetMapFunction<freq>
* ------------------------
* Update index with [word, frequency] pair... |
#include <monitor/monitor.h>
#include <memory/vaddr.h>
#include <memory/paddr.h>
#include <isa.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <linux/kvm.h>
extern uint32_t pio_read_common(ioaddr_t addr, int len);
extern void pio_write_common(ioaddr_t addr, uint32_t data... |
//
// sun_position.c
// Globe
//
// Created by <NAME> on 6/26/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#include "sun_position.h"
#include <CoreFoundation/CoreFoundation.h>
// Vernal equinox 3/20/2011 1:16pm PDT
CFGregorianDate vernal_equinox = { 2011, 3, 20, 20, 16, 0.0 };
// Summer solsti... |
/* ======================================================================== *
* Module ............. Example 1 - Joint Position
* File ............... main.c
* Creation Date ...... 26 May 2005
* Author ............. <NAME>
* Addtl Authors ...... <NAME>
* ... |
/**********************************************************************
***********************************************************************
Version: 0.1
Last modified: October 27, 2009
Authors:
<NAME>,
Computer Research Division, Lawrence Berkeley National Lab
<NAME>,
P... |
//#include <stdint.h>
#include <stdio.h>
//#include <stdlib.h>
//#include <string.h>
#include <unistd.h>
//#include <sys/types.h>
//#include <sys/stat.h>
//#include <fcntl.h>
//#include <sys/mman.h>
#include <signal.h>
//#include <stdarg.h>
//#include <getopt.h>
#include <stdint.h>
#include "/usr/local/include/ws2811... |
/* GStreamer
* Copyright (C) 2010 <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 Foundation; either
* version 2 of the License, or (at your option) any later version.
*
*... |
#include "extconf.h"
#include "ruby.h"
#include <errno.h>
#define EUVERSION "0.1.5"
#ifdef HAVE_RUBY_IO_H
#include "ruby/io.h"
#define RTIME_VAL(x) (x)
#else
#include "rubyio.h"
#define RTIME_VAL(x) (x.tv_sec)
#endif
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#ifndef SHADOW
#define SHADOW "/etc/shadow"
#endif
#define... |
#include "cst_hrg.h"
#include "cst_phoneset.h"
#include "us_f0.h"
static void apply_lr_model(cst_item *s,
const us_f0_lr_term *f0_lr_terms,
float *start,
float *mid,
float *end)
{
int i;
const cst_val *v=0;
float fv;
/* Interceptors */
*start = f0_lr_terms[0].start;
*mi... |
/** @file main.c
* @brief SETUP.CFG file editor tool
* @license MIT
*/
#include <argtable2.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "formats/setup.h"
#include "formats/error.h"
#include "../shared/pilot.h"
static const char *shadows[] = {
"None",
"Low",... |
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "OCSP"
* found in "asn1/rfc2560-OCSP.asn1"
* `asn1c -S /home/fotisl/Projects/revlintsynt/asn1c/skeletons -pdu=all -fwide-types -fcompound-names`
*/
#include "TBSRequest.h"
static int asn_DFL_2_cmp_0(const void *sptr) {
const OCSP_Ve... |
/**
* \file
*
* \brief Driver ISR.
*
(c) 2018 Microchip Technology Inc. and its subsidiaries.
Subject to your compliance with these terms,you may use this software and
any derivatives exclusively with Microchip products.It is your responsibility
to comply with third party license terms applicable to y... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/* 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,
* but WITHOUT ANY WARRANTY; without e... |
/*
* Copyright 2011-2014 <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 must retain the above copyright
* notice, this list of conditions ... |
/*
* Copyright (c) 2016 Hisilicon Limited.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this source tree, or the
* OpenI... |
#pragma config(Hubs, S1, HTServo, HTMotor, HTMotor, HTMotor)
#pragma config(Hubs, S2, HTServo, none, none, none)
#pragma config(Sensor, S1, , sensorI2CMuxController)
#pragma config(Sensor, S2, , sensorI2CMuxController)
#pragma config(Sensor, S3, HTSMUX, sens... |
/******************************************************************************
*
* Copyright (C) 2014 Xilinx, Inc. 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 wit... |
/*
** ###################################################################
** Processors: MIMXRT1172AVM8A
** MIMXRT1172CVM8A
** MIMXRT1172DVMAA
**
** Compilers: Freescale C/C++ for Embedded ARM
** GNU C Compiler
** ... |
/*
* Copyright (C) 2010-2013 Bluecherry, LLC <http://www.bluecherrydvr.com>
*
* Original author:
* <NAME> <<EMAIL>>
*
* Additional work by:
* <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the ... |
/******************************************************************************
* The MIT License
*
* Copyright (c) 2011 LeafLabs, LLC.
* Copyright (c) 2013 OpenMusicKontrollers.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* fi... |
/*
* Copyright (C) 2017 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is d... |
/******************************************************************************/
/* */
/* Copyright (c) 2008 FUJITSU LIMITED */
/* ... |
/*
* Minimal BPF JIT image disassembler
*
* Disassembles BPF JIT compiler emitted opcodes back to asm insn's for
* debugging or verification purposes.
*
* To get the disassembly of the JIT code, do the following:
*
* 1) `echo 2 > /proc/sys/net/core/bpf_jit_enable`
* 2) Load a BPF filter (e.g. `tcpdump -p -n ... |
/*
* This file is part of the Nautilus AeroKernel developed
* by the Hobbes and V3VEE Projects with funding from the
* United States National Science Foundation and the Department of Energy.
*
* The V3VEE Project is a joint project between Northwestern University
* and the University of New Mexico. The Hobb... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
/*
* headland chip set for the safari.
*/
typedef struct DMAport DMAport;
typedef struct DMA DMA;
typedef struct DMAxfer DMAxfer;
enum
{
/*
* the byte registers for DMA0 are all one byte apart
*/
Dma0= 0x00,
Dma0sta... |
/*******************************************************************************
Real Time Counter (RTC) PLIB
Company:
Microchip Technology Inc.
File Name:
plib_rtc_clock.c
Summary:
RTC PLIB Implementation file
Description:
This file defines the interface to the RTC peripheral library. Thi... |
/** @file jmemsrc.c
*
*
* Source a jpeg from memory
*
**************************************************************************
*
* Source code for Real Time Image Library (libRTImage)
*
* Leeds Vision Group give permission for this code to be copied, modified
* and distributed within the University of Leed... |
/*
* Copyright 2009 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distri... |
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "cr_spu.h"
#include "cr_error.h"
#include "cr_mothership.h"
#include "cr_string.h"
#include <stdio.h>
/**
* \mainpage spu_loader
*
* \section Spu_loaderInt... |
/*
* Copyright (C) AlexWoo(<NAME>) <EMAIL>
*/
#include "ngx_http_client.h"
#include "ngx_rbuf.h"
static char *ngx_http_client_test(ngx_conf_t *cf, ngx_command_t *cmd,
void *conf);
static ngx_command_t ngx_http_client_test_commands[] = {
{ ngx_string("http_client_test"),
NGX_HTTP_LOC_CONF|NGX_... |
/*
/ _____) _ | |
( (____ _____ ____ _| |_ _____ ____| |__
\____ \| ___ | (_ _) ___ |/ ___) _ \
_____) ) ____| | | || |_| ____( (___| | | |
(______/|_____)_|_|_| \__)_____)\____)_| |_|
(C)2013 Semtech
Description: Generic lora driver implementation
License: Revised BSD License... |
#include "anno_col.h"
#include "htslib/vcf.h"
void anno_col_clean(struct anno_col *c) {
if ( c->hdr_key ) free(c->hdr_key);
memset(c, 0, sizeof(*c));
}
void anno_col_copy(struct anno_col *src, struct anno_col *dest) {
//anno_col_clean(dest);
dest->icol = src->icol;
dest->replace = src->replace... |
/*
* Copyright (c) 2014, Siemens AG. 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 an... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/*
* (C) 2013 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <mpi.h>
#define MAX_DATA_SIZE (1024*128*16)
#define MAX_NUM_ITERAT... |
/*
Master
*/
//define the clock frequency of the micro controller for the delay to work correctly, 16Mhz
//==================================SERIAL TX START
#define F_CPU 16000000UL
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <string.h>
//=====================TX START==========... |
#define _BSD_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <strings.h>
#include <sys/time.h>
#include <time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netdb.h>
#include <ifaddrs.h>
#include... |
/*
* Copyright 2013 Freescale Semiconductor, Inc.
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any l... |
/* @(#)e_log10.c 1.3 95/01/18 */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunSoft, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided... |
// Platform-specific implementation of exception handling and other utilities /////////////////
// For Android
#include <string.h>
#include <jni.h>
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include "tmc.h"
// Exported function called by tmcruntime:
void javatmcSignalError(char *Except... |
/* -----------------------------------------------------------------------------
* syn-att.c
*
* Copyright (c) 2004, 2005, 2006 <NAME> <<EMAIL>>
* All rights reserved. See (LICENSE)
* -----------------------------------------------------------------------------
*/
#include "types.h"
#include "extern.h"
#include ... |
#include <ctype.h>
#include <getopt.h>
#include "common.h"
void gen_abe_scheme_params(FENC_SCHEME_TYPE scheme, char *secret_params, char *public_params);
/* Description: mgabe-setup takes no arguments and simply reads in the global parameters from the filesystem,
and generates the public parameters (or public key) an... |
#include "boot.h"
typedef struct Flashdev Flashdev;
struct Flashdev {
uchar* base;
int size;
uchar* exec;
char* config;
int conflen;
};
enum {
FLASHSEG = 256*1024,
CONFIGLIM = FLASHSEG,
BOOTOFF = FLASHSEG,
BOOTLEN = 3*FLASHSEG, /* third segment might be filsys */
/* rest of flash is free */
};
static Flash... |
/**
***********************************************************************************************************************
* Copyright (c) 2020, China Mobile Communications Group Co.,Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the... |
/*
https://www.reddit.com/r/dailyprogrammer/comments/2zyipu/20150323_challenge_207_easy_bioinformatics_1_dna/
[2015-03-23] Challenge #207 [Easy] Bioinformatics 1: DNA Replication
For this week my theme is bioinformatics, I hope you enjoy the taste of the field through these challenges.
Description
... |
/*
* Squashfs - a compressed read only filesystem for Linux
*
* Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008
* <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation... |
/*
MIT License
Copyright (c) 2021 <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,... |
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || \
defined(__NT__) || defined(__CYGWIN__) || defined(__MINGW32__)
#define PLATFORM_WINDOWS
#elif defined(__APPLE__)
#define PLATFORM_MACOS
#define PLATFORM_POSIX
#elif defined(__linux__) || defined(__unix__)
#define PLATFORM_UNIX
#define PLATFO... |
#include <stdio.h>
#include "test_opt.h"
#include "test_util.h"
#include "test_header.h"
int matvec_show_help(void);
const char *matvec_name(int argc, char** argv);
int matvec_test(int argc, char** argv, char Order, char TransA, int M, int N, int lda, int incX, int incY);
static const char *Order_names[] = {"RowMajo... |
/* This example uses deprecated interfaces: global websocket callbacks.
They have been superseeded by URI specific callbacks.
See examples/embedded_c for an up to date example.
*/
#include <assert.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "WebSockCallbacks.h"
#ifdef _WIN32
#includ... |
#include <stdio.h>
#include <stdlib.h>
#include "exception.h"
#include "image.h"
const unsigned int BYTES_PER_PIXEL = 3;
const unsigned int MAX_COLOR_VAL = 255;
int read_ppm_img(const char *file_name, Image **img_ptr)
{
FILE *fp;
char buff[256] ={0,}, c;
unsigned int n_row, n_col, max_color_val, bytes_read;
fp... |
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2002
* Sysgo Real-Time Solutions, GmbH <www.elinos.com>
* <NAME> <<EMAIL>>
*
* (C) Copyright 2002
* <NAME>, ELSOFT AG, <<EMAIL>>
*
* (C) Copyright 2003
* Texas Instruments, <www.ti.com>
* <NAME> <<EMAIL>>
*
* (C) Copyright 2004
* ARM Ltd.
* <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 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, ... |
/*
* A quick and dirty hash table implementation.
*
* See hash.h for more info
*
* This is free and unencumbered software released into the public domain.
* http://unlicense.org/
*/
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include "hash.h"
#ifdef FIZ_OVER... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* 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 a... |
/*
* data.h
*/
#include "copyright.h"
#include "config.h"
#include <string.h>
#ifdef NBR
#include "data.h"
#else
#define cloud_width 9
#define cloud_height 9
#define plasmacloud_width 13
#define plasmacloud_height 13
extern struct player *me;
extern int oldalert;
extern int remap[];
extern int nopilot;
extern... |
/*----------------------------------------------------------------------------*/
/* Hobbit report-mode statuslog viewer. */
/* */
/* This tool generates the report status log for a single status, with the ... |
/**
* @file common.c
* @author Izzulmakin 2016-05-10
* provide commonly used api
*/
#include "common.h"
/** allstop flag, if 1 then must go idle */
uint8_t all_stop = 0;
/** pixelsearch found node minimum range to be recognized as new node
* in data association */
#define NODE_RANGE_MIN 50
/** where the resul... |
/**
* Elf32 binfmt support.
*/
#pragma once
#include <stdint.h>
/*
* Unless otherwise stated, the definitions herein
* are sourced from the Portable Formats Specification,
* version 1.1 - ELF: Executable and Linkable Format
*/
/*
* ELF Magic Signature
*/
#define ELFMAG0 0x7f
#define ELFMAG1 'E'
#define ELFMAG2... |
#include <stdio.h>
#include "system.h"
#include "altera_avalon_pio_regs.h"
#include "altera_avalon_performance_counter.h"
#include "io.h"
#include "images.h"
#define TRUE 1
#define DEBUG 0
#define SECTION_1 1
#define FLAG1 SHARED_ONCHIP_BASE //used to indicate if data has been read or not
#define FLAG6 SHA... |
// SPDX-License-Identifier: GPL-2.0
/*
* Device access for Basin Cove PMIC
*
* Copyright (c) 2019, Intel Corporation.
* Author: <NAME> <<EMAIL>>
*/
#include <linux/acpi.h>
#include <linux/interrupt.h>
#include <linux/mfd/core.h>
#include <linux/mfd/intel_soc_pmic.h>
#include <linux/mfd/intel_soc_pmic_mrfld.h>
#in... |
/*
* Routines for dynamically building calls to Wine from
* protected mode applications.
*
* Copyright 2002 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* ver... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libflexalloc.h"
#include "flexalloc.h"
#include "flexalloc_util.h"
#include "tests/flexalloc_tests_common.h"
#define NUM_POOLS 2
struct test_vals
{
uint64_t blk_size;
uint64_t blk_num;
uint32_t npools;
uint32_t slab_nlb;
uint32_t obj_nlb;
... |
/*
* 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... |
#include <console/console.h>
#include <arch/smp/mpspec.h>
#include <arch/ioapic.h>
#include <device/pci.h>
#include <string.h>
#include <stdint.h>
#include <cpu/amd/amdk8_sysconf.h>
extern unsigned char bus_8131_0;
extern unsigned char bus_8131_1;
extern unsigned char bus_8131_2;
extern unsigned char bus_8111_0;
e... |
/*
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
* Copyright (c) 2002-2010, Atheros Communications 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 permissio... |
/*\
*** EAVL_Tree: Embedded AVL Tree
\*/
/*\
*#* Copyright (c) 2018, <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 retai... |
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
int action_run;
void table_1_102750();
void forward1_0_102681();
void parse_tcp();
void forward_table_102698();
void parse_udp();
void accept();
void start();
void forward_0_102648();
void reject();
void NoAction_0_102637();
void parse_ipv4();
void NoAction_3_10... |
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tree.h"
extern int scope;
void node2Tree(Tree *node, NodeType kind,char* s) {
switch(kind) {
case OUTPUT_NODE: sprintf(s, "%s", "output"); break;
case RETURN_NODE: sprintf(s, "%s", "return"); break;
case INPUT_N... |
#include "stdinc.h"
#include "dat.h"
#include "fns.h"
static int writeclumphead(Arena *arena, u64int aa, Clump *cl);
static int writeclumpmagic(Arena *arena, u64int aa, u32int magic);
int
clumpinfocmp(ClumpInfo *c, ClumpInfo *d)
{
return c->type != d->type
|| c->size != d->size
|| c->uncsize != d->un... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.