text stringlengths 3.08k 10.5k |
|---|
/*
Some helper functions for editing images in memory.
Author: Dr <NAME>.
Licence: see LICENSE.txt in repository root.
Repository: https://github.com/capnramses/pro_programming_tools_c_cpp
*/
#include "image.h"
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
uin... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/vga16/ibm/emulStip.c,v 3.4 1996/12/23 06:52:38 dawes Exp $ */
/*
* Copyright IBM Corporation 1987,1988,1989
*
* All Rights Reserved
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby grante... |
/****************************************************************************
blimp_physics -- A blimp physics model for Webots.
Copyright (C) 2006 Laboratory of Intelligent Systems, EPFL, Lausanne
Authors: <NAME> <EMAIL>
<NAME> <EMAIL>
<NAME> <EMAIL>
<NA... |
/*
* GPAC - Multimedia Framework C SDK
*
* Authors: <NAME>
* Copyright (c) Telecom ParisTech 2004-2012
* All rights reserved
*
* This file is part of GPAC / SVG Scene Graph Generator sub-project
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesse... |
/* dgesc2.f -- translated by f2c (version 20061008).
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 e... |
#include <string.h>
#include <math.h>
#include "tetris.h"
enum piece_e {
PIECE_I,
PIECE_O,
PIECE_L,
PIECE_J,
PIECE_T,
PIECE_S,
PIECE_Z,
NUMBER_OF_PIECES,
};
enum rotation {
ROT_NORMAL,
ROT_LEFT,
ROT_RIGHT,
ROT_REVERSE,
};
typedef struct Coodinate Coodinate;
struct Coo... |
/* Copyright (c) 2017-2018, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/* enable strtok */
#define _POSIX_C_SOURCE 200112L
#include <stdlib.h>
#include <string.h>
#include <odp.h>
#include <odp/helper/odph_api.h>
#include <odp_ipsec_offload_fwd_db.h>
/**
* Pointer t... |
/**
* SSj, the Sphere JavaScript debugger
* Copyright (c) 2015-2020, <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... |
/*
* $Id: pathfun.c,v 1.1 2005-09-18 22:04:16 dhmunro Exp $
* Implement path name expansion and utility functions required by Yorick.
*/
/* Copyright (c) 2005, The Regents of the University of California.
* All rights reserved.
* This file is part of yorick (http://yorick.sourceforge.net).
* Read the accompanying... |
/*-
* BSD LICENSE
*
* Copyright (c) Intel Corporation. All rights reserved.
* Copyright (c) 2017, Western Digital Corporation or its affiliates.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
... |
/*
* Copyright 2018-2020 Redis Labs Ltd. and Contributors
*
* This file is available under the Redis Labs Source Available License Agreement
*/
#pragma once
#include "./ops/op.h"
#include "../graph/graph.h"
#include "../resultset/resultset.h"
#include "../filter_tree/filter_tree.h"
#include "../util/object_pool/objec... |
/* extract_im.c
<NAME> (<EMAIL>), 05 Jul 2021
FreeBSD-style copyright and disclaimer apply
*/
#include "common.h"
#include "game/chunk.h"
#include "game/tape.h"
#include "items/io.h"
#include "items/types.h"
// -----------------------------------------------------------------------------
// extract
// --------... |
#include <string.h>
#include <getopt.h>
#include "crun.h"
static void full_exit(int code) {
done(NULL);
#if MPI
MPI_Finalize();
#endif
exit(code);
}
static void usage(char *name) {
#if MPI
char *use_string = "-g GFILE -r RFILE [-n STEPS] [-s SEED] [-q] [-i INT] [-I]";
#else // !MPI
char *use_stri... |
static char B0;
static char B1;
static char B2;
static char B3;
static char B4;
static char B5;
static char B6;
static char B7;
static char B8;
static char B9;
static char B10;
static char B11;
static char B12;
static char B13;
static char B14;
static char B15;
static char B16;
static char B17;
static char B18;
static... |
/*
SipHash reference C implementation
Written in 2012 by
<NAME> <<EMAIL>>
<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 warr... |
#include "contiki.h"
#include <string.h>
#include "chaos.h"
#include "chaos-random-generator.h"
#include "node.h"
#include "quorum.h"
#include "chaos-config.h"
#undef ENABLE_COOJA_DEBUG
#define ENABLE_COOJA_DEBUG COOJA
#include "dev/cooja-debug.h"
#ifndef MAX_NODE_COUNT
#define MAX_NODE_COUNT 254
#en... |
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <signal.h>
#include <sys/time.h>
#ifdef DEDI
#include <dlfcn.h>
#else
#include <SDL.h>
#endif
#ifndef USE_NTSC
#define USE_NTSC 0
#endif
#include "l... |
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-04-22 hqfang first version
*
*/
#include "board.h"
#include "bsp.h"
#include "cpuport.h"
#include "nuclei_sdk_soc.h"
#include <rtthread.h>
#inc... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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... |
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <sys/mman.h>
typedef struct {
void *text;
void *data;
} jit_t;
void* rand_page() {
uint64_t res = 0;
for (int i = 0; i < 3; i++) {
res = (res << 16) ^ rand();
}
res = res & 0x00007FFFFFFFFFFF;
r... |
/**************************************************************************//**
* @file main.c
* @version V2.00
* $Revision: 6 $
* $Date: 15/01/16 11:44a $
* @brief Show how to reload the WWDT counter value.
* @note
* Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved.
*********************... |
/***************************************************************************
Copyright (c) 2012, <NAME>, <NAME>, Austria.
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, inclu... |
/*
* 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... |
/* POLYBENCH/GPU-OPENMP
*
* This file is a part of the Polybench/GPU-OpenMP suite
*
* Contact:
* <NAME> <<EMAIL>>
*
* Copyright 2013, The University of Delaware
*/
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
/* Include polybench common header. */
#include "polybench.h"
/* Inc... |
#include <stdio.h>
double calc_ryu_inside(char *formula){
#define PI_RYU (3.141592)
const double PLUS = ((double)'+')+((double)( ((double)'+') / 100.0f));
const double MINUS = ((double)'-')+((double)( ((double)'-') / 100.0f));
const double MULTI = ((double)'*')+((double)( ((double)'*') / 100.0f));
const double DIV... |
/*
* satoshi-types.c
*
* Copyright 2017 chehw <<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.
*
... |
/******************************************************************************
** COPYRIGHT NOTICE
** (c) 2011 The Johns Hopkins University Applied Physics Laboratory
** All rights reserved.
**
*****************************************************************... |
# include <stdio.h>
# include <stddef.h>
# include <string.h>
#include "hstcal.h"
# include "hstio.h"
# include "acs.h"
# include "acsinfo.h"
# include "hstcalerr.h"
# include "str_util.h"
/* This routine gets keyword values from the primary header.
<NAME>, 1998 June 8:
Original ACS version based on Phil Hodge's... |
/*
* lat_select.c - time select system call
*
* usage: lat_select [-P <parallelism>] [-W <warmup>] [-N <repetitions>] [n]
*
* Copyright (c) 1996 <NAME>. Distributed under the FSF GPL with
* additional restriction that results may published only if
* (1) the benchmark is unmodified, and
* (2) the version in the... |
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
... |
/* $NetBSD: gapspci.c,v 1.3 2002/05/16 01:01:35 thorpej Exp $ */
/*-
* Copyright (c) 2001 <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 ... |
/****************************************************************
TICKET SYSTEM
Descrição
Sistema para criação de eventos e venda de ingressos via terminal
Instruções para compilar no CMD
1) Tenha instalado na máquina o MinGW
2) Adicione Acentuação ... |
// Virtual Memory Manager
#include <string.h>
#include "virtualmemorymanager.h"
#include "physicalmemorymanager.h"
// Page table represents 4mb address space
#define PTABLE_ADDR_SPACE_SIZE 0x400000
// Directory table represents 4GB address space
#define DTABLE_ADDR_SPACE_SIZE 0x100000000
// page sizes are 4k
#defin... |
/* Copyright (C) 2018-2019 SAU Network Communication Research Room.
* This program is 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 ... |
#include "sqFFI.h"
#include "sq.h"
#include "sqVirtualMachine.h"
extern struct VirtualMachine* interpreterProxy;
/* Need separate cases for GNU C and MSVC. */
#ifdef DEBUG
#warning "DEBUG printing enabled"
#define DPRINTF(x) warnPrintf x
#elif defined(_DEBUG)
#pragma message ( "DEBUG printing enabled" )
... |
#include "z_asm.h"
#include "elf_loader.h"
#include "libc/calls/internal.h"
#define Elf_Ehdr Elf64_Ehdr
#define Elf_Phdr Elf64_Phdr
#define Elf_auxv_t Elf64_auxv_t
static const unsigned align_mask = 4095;
static uintptr_t
pgtrunc(uintptr_t x)
{
return x & ~align_mask;
}
static uintptr_t
pground(uintptr_t x)
{
ret... |
/* ------------------------ FreeRTOS includes ----------------------------- */
#include "FreeRTOS.h"
/* ------------------------ lwIP includes --------------------------------- */
#include "inc/hw_memmap.h"
#include "lwip/api.h"
#include "lwip/tcpip.h"
#include "lwip/sockets.h"
#include "lwip/tcp.h"
#include "lwip/ip.... |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2016 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software w... |
// Copyright 2020 The Pigweed Authors
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... |
#include <stdint.h>
#include <stdlib.h>
#include <limits.h>
#include "utils.h"
uint32_t rotate_right(uint32_t value, uint32_t shift) {
return ((value >> shift) | (value << (32 -shift)));
}
char* sha2(const char* payload, size_t length) {
uint32_t h0 = 0x6a09e667;
uint32_t h1 = 0xbb67ae85;
uint32_t h2 ... |
#include <assert.h>
#include <stdio.h>
#include <time.h>
#include <CUnit/CUnit.h>
#include <CUnit/CUnitCI.h>
#include "suo.h"
#include "framing/golay_framer.h"
#include "framing/golay_deframer.h"
#include "assert_metadata.h"
static struct frame* received_frame = NULL;
static int dummy_frame_sink(void *arg, const s... |
/*
* 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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <openssl/rsa.h>
#include <openssl/ec.h>
#include <openssl/bio.h>
#include <openssl/bn.h>
#include <openssl/err.h>
//TODO add x86_64 lib mode macro... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2012 Tor<NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
o... |
#include <stdio.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL_ttf.h>
#include <emscripten.h>
/**
* Inverse square root of two, for normalising velocity
*/
#define REC_SQRT2 0.7071067811865475
/**
* Set of input states
*/
enum input_state
{
NOTHING_PRESSED = 0,
UP_PRESSED = 1,
DOW... |
/*
* Copyright (c) 2003 <NAME>
* Copyright (c) 2003 Massachusetts Institute of Technology
*
* 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 ... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* md5_hashing.c :+: :+: :+: ... |
/**
* \file
*
* \brief lcd controller ili9325 example.
*
* Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip product... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#ifdef DEBUG
#include <time.h>
#endif
/******************************************************************************/
static const float X_MAX = 1.0;
static const float X_MIN = -2.5;
static const float Y_MAX = 1.0;
static const float Y_MI... |
/*------------------------------------------------------------------------------
*
* Copyright (c) 2011-2018, EURid vzw. All rights reserved.
* The YADIFA TM software product is provided under the BSD 3-clause license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitte... |
/*
* Copyright (C) <NAME>
*/
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_stream.h>
typedef struct {
ngx_chain_t *out;
} ngx_stream_echo_ctx_t;
static void ngx_stream_echo_handler(ngx_stream_session_t *s);
static void ngx_stream_echo_read_handler(ngx_event_t *ev);
static void... |
/*-
* Copyright (c) 2014 UPLEX Nils Goroll Systemoptimierung
* Copyright (c) 2014 Otto Gmbh & Co KG
* All rights reserved
* Use only with permission
*
* Author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... |
/*!
* @file config.h
* @brief Public API Interface for Configuration
*/
#pragma once
#include <launchdarkly/boolean.h>
#include <launchdarkly/export.h>
#include <launchdarkly/json.h>
/** @brief Opaque configuration object */
struct LDConfig;
/** @brief Creates a new default configuration. `mobileKey` is required... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* 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... |
// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (c) 2019 Facebook */
#define _GNU_SOURCE
#include <sched.h>
#include <sys/prctl.h>
#include <test_progs.h>
#define MAX_CNT 100000
static __u64 time_get_ns(void)
{
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return ts.tv_sec * 1000000000ull + ts.tv... |
/*
* DWARF2 debugging format - address range table
*
* Copyright (C) 2006-2007 <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
* ... |
/* Convert between RCS time format and POSIX and/or C formats.
Copyright (C) 2010, 2011 <NAME>
Copyright (C) 1992, 1993, 1994, 1995 <NAME>
This file is part of GNU RCS.
GNU RCS is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
... |
#include "win32.h"
#include "jan.h"
wchar_t *window_class_name = L"jan-test";
#ifdef WIN64
wchar_t *window_title = L"This is a Jan Test window 😊 (64-bit)";
#else
wchar_t *window_title = L"This is a Jan Test window 😊 (32-bit)";
#endif
#define WINDOW_WIDTH 1280
#define WINDOW_HEIGHT 720
#define WINDOW_STYLE ... |
#include <errno.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "network_wrappers.h"
#include "ssl_util.h"
#include "peer.h"
#include "config.h"
#include "macros.h"
/* ============================================... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2014 <NAME> <<EMAIL>>
* Copyright (C) 2014 <NAME> <<EMAIL>>
* Copyright (C) 2015 <NAME> <<EMAIL>>, Raptor Engineering
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License ... |
/*
* XERIS/APEX System I
* Autonomous Poly-Executive
*
* Release 1
*
* Copyright (C) 2016, <NAME>
* ALL RIGHTS RESERVED.
*/
/*
* XERIS CORE
*
* FLATLINE%ULO$
* Umbilical Link Operator
*
*/
#include <xeris.h>
#include <sys/types.h>
#include <core/flatline.h>
#include <flatline/flatline.h>
/* S... |
/**
* \file
*
* \brief Device Information Service - Application
*
* Copyright (c) 2016 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
*... |
/*! \file bcmltm_tree.c
*
* Logical Table Manager Binary Tree utilities.
*
* This file contains the LTM binary tree functions which assemble,
* maintain, and execute the binary trees which comprise the
* Field Adaptation and Execution Engine stages of LTM.
*/
/*
* This license is set out in https://raw.githubus... |
/*
* main.c
*
* Created on: Jul 4, 2021
* Author: igor
*
*
* THIS CODE RUNS ON STM32F103C8
*
* Current measurement results
*===================================================================================================
* Current consumption without sleep 72 Mhz - 26.5 mA
* Current ... |
/* Fig. 6.16: fig06_16.c
This program introduces the topic of survey data analysis.
It computes the mean, median and mode of the data */
#include <stdio.h>
#define SIZE 99
/* function prototypes */
void mean( const int answer[] );
void median( int answer[] );
void mode( int freq[], const int answer[] ) ;
void b... |
/*
* cifra - embedded cryptography library
* Written in 2014 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 ... |
/* 08 Nov 1998*/
/*
* cdevmod.c - a sample kld module implementing a character device driver.
*
* 08 Nov 1998 <NAME>
*
* 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
... |
/*
*
* Copyright 2015, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
/* ftglue.c: Glue code for compiling the OpenType code from
* FreeType 1 using only the public API of FreeType 2
*
* By <NAME>, The FreeType Project (www.freetype.org)
*
* This code is explicitely put in the public domain
*
* See ftglue.h for more information.
*/
#include "ftglue.h"
#if 0
#include <... |
/* $NetBSD: geoip.c,v 1.1.1.3 2014/12/10 03:34:24 christos Exp $ */
/*
* Copyright (C) 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
*
* 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 ... |
/********************************************************************
* (c) 2007 Quest Software, Inc. All rights reserved.
* Portions of this code are derived from IBM Sample Programs,
* (C) Copyright IBM Corp. 1997-2004.
* All rights reserved.
*
* Author: <NAME>
*
* Company: Quest Software, Inc.
*
* Purpose: Provid... |
/*******************************************************************************
XX Mission (c) 1986 UPL
Video hardware driver by Uki
31/Mar/2001 -
*******************************************************************************/
#include "vidhrdw/generic.h"
UINT8 *xxmissio_fgram;
size_t xxmissio_fgram_size;
sta... |
/*/////////////////////////////////////////////////////////////////////////
//
//
// mb_texture.c
//
//
// <NAME>
// 23 Nov 1998
//
// Revisions:
// 13 Sep 2004 <NAME>: Modified for inclusion in OME. Generalized to compute
// Haral... |
/*
* _______ _ _ _____ ____
* |__ __| | | | |/ ____| _ \
* | | ___ ___ _ __ _ _| | | | (___ | |_) |
* | |/ _ \/ _ \ '_ \| | | | | | |\___ \| _ <
* | | __/ __/ | | | |_| | |__| |____) | |_) |
* |_|\___|\___|... |
/*
** Copyright 2003-2010, VisualOn, 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 a... |
# include <stdio.h>
# include <stdlib.h> /* calloc */
# include "stis.h"
# include "calstis4.h"
# include "hstcalerr.h"
static int CrossCorr4 (double *, short *, double *, int, short, double *, int);
/* This routine calls a routine to do the cross correlation and then
finds and returns the location of the peak wit... |
/* This #define makes it so the 'fileno' function is declared in stdio.h
It's not part of the C standard so making it work on Windows may
require some extra work. */
#define _POSIX_C_SOURCE 1
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
... |
/* Test file for mpfr_tan.
Copyright 2001-2004, 2006-2016 Free Software Foundation, Inc.
Contributed by the AriC and Caramba projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public Lic... |
/**
* \file event_mem.c
*
* \brief Event mechanism
*
* Copyright (c) 2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip products.
* It ... |
#include <assert.h>
#include <fcntl.h>
#include <signal.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <fsw/clock.h>
#include <fsw/debug.h>
#include <fsw/fakewire/link.h>
//#define DEBUG
#define debug_printf(lvl,fmt, ...) (debugf(lvl, "[%s] " fmt, fwl-... |
/*
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
* Copyright (C) 2004-2014 Red Hat, Inc. All rights reserved.
*
* This file is part of LVM2.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* ... |
/*
* RawRead.c - Read a Rainbow floppy disk into a data file.
*
* <NAME> (<EMAIL>)
* Software Solutions, Inc.
* Idaho Falls, Idaho
*
* This program is designed to read a raw RX50 floppy disk into
* a data file containing an image of the disk. It must be used
* along with RAINDISK, which will map an IBM-PC for... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "function.h"
/**VALGRIND : valgrind ./a.out nomedoarquivo
cARACTERES ESPECIAIS: TRATAR CASOS
PRINTA EM ARQUIVO A STRING, Lê E DEPOIS ARMAZENA EM VETOR
DUAS REGRAS OU MAIS: prover funcionalidade
*/
/*gcc function.c function.a -o ae --> ar rvs func... |
/* Native-dependent code for OpenBSD/powerpc.
Copyright 2004, 2005 Free Software Foundation, Inc.
This file is part of GDB.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ver... |
#ifndef TEST
#include <postgres.h>
#else
#include <ctype.h>
#include <string.h>
#endif
#include "parsesql.h"
/*
* Small SQL tokenizer. For cases where flex/bison is overkill.
*
* To simplify futher processing, it merges words separated
* with dots together. That also means it does not support
* whitespace/com... |
/* Copyright 2019 Wirepas Ltd licensed under Apache License, Version 2.0
*
* See file LICENSE for full license details.
*
*/
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdbool.h>
#include <errno.h>
#include <time.h>
#include "data.h"
#include "wpc.h"
#define LOG_MODULE_NAME "Data"
#defin... |
/*************************************************************************
* libsaim 1.0
* ------------------------------------------------------------------------
* Copyright (c) 2016 <NAME> <<EMAIL>>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be ... |
/*
Copyright (c) 2013, The Linux Foundation. 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 of co... |
////////////////////////////////////////////////////
// Copyright (c) 2012 ICRL
// See the file LICENSE.txt for copying permission.
//
// Original Author: <NAME>
// Date: 7/24/2012
// Contact: <EMAIL>
////////////////////////////////////////////////////
#include "ItemParticle.h"
#include "Entity.h"
#incl... |
/*
* Copyright (C) 2013 <NAME>
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* that the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in s... |
/*
* BK Id: SCCS/s.ppc8xx_pic.c 1.13 12/01/01 17:19:48 trini
*/
#include <linux/config.h>
#include <linux/stddef.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/signal.h>
#include <asm/irq.h>
#include <asm/8xx_immap.h>
#include <asm/mpc8xx.h>
#include "ppc8xx_pic.h"
/* The 8xx internal interrupt ... |
// userenv.c
#include <kernel.h>
// User Environment Manager (UEM)
// Segue uma lista de operações que poderão ser realizadas para configuração
// do ambiente gráfico do usuário. Obs: Nesse módulo, apenas chamaremos
// algumas funções primitivas. Todo o trabalho maior deve ficar para os
// servidores em user mode.
... |
/*******************************************************************************
+
+ LEDA 6.3
+
+
+ autolink_static.h
+
+
+ Copyright (c) 1995-2010
+ by Algorithmic Solutions Software GmbH
+ All rights reserved.
+
*******************************************************************************/
#ifndef _LINK_G... |
/**HEADER********************************************************************
*
* Copyright (c) 2010 Freescale Semiconductor;
* All Rights Reserved
*
***************************************************************************
*
* THIS SOFTWARE IS PROVIDED BY FREESCALE "AS IS" AND ANY EXPRESSED OR
* IMPLIED WARRANTIE... |
/* advent of code day 25 https://adventofcode.com/2020/day/10
written march 5, 2021 by <NAME> using the kangaroo method */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#define M 20201227
#ifdef PET
typedef unsigned long ui32;
typedef unsigned char ui8;
#define fopen myfopen
#de... |
/*++
Copyright (c) 1989 Microsoft Corporation
Module Name:
smbclose.c
Abstract:
This module contains routines for processing the following SMBs:
Close
Author:
<NAME> (davidtr) 16-Nov-1989
Revision History:
--*/
#include "precomp.h"
#include "smbclose.tmh"
#pragma ... |
/*
* Copyright (C) 2017 Red Hat, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* GnuTLS 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 opt... |
/*-
* Copyright (c) 2007 <NAME> (<EMAIL>)
* Copyright (c) 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
... |
/*
* BSD-SMIT (BSD System Management Interface Tool)
*
* Copyright (C) 2015 by Vincent (<EMAIL>)
*
* 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 copy... |
#include <stdint.h>
#include <math.h>
/* kian hardware register */
#define IO_BASE 0x30000000
#define UART_TX (volatile uint32_t *) (IO_BASE + 0x0000)
#define UART_READY (volatile uint32_t *) (IO_BASE + 0x0000)
#define VIDEOENABLE (volatile uint32_t *) (IO_BASE + 0x0008)
#define VIDEO ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.