text stringlengths 5.8k 28.2k |
|---|
/*--------------------------------------------------------------------
This source distribution is placed in the public domain by its author,
<NAME>. You may use it for any purpose, free of charge,
without having to notify anyone. I disclaim any responsibility for any
errors.
Optionally, please be nice and tell me if ... |
/******************************************************************************
*
* Title: pid.c
*
* Description: Proportional - Integral - Dervivative controller functions.
*
*****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include ... |
#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... |
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2.1 of the GNU Lesser General Public License
as published by the Free Software Foundation.
This program is distributed in the hope tha... |
/*
* -*- coding: utf-8 -*-
* vim: ts=8 sw=8 tw=100 noet ai si
*
* Copyright (C) 2019-2021 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*
* Author: <NAME> <<EMAIL>>
*/
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include <unistd.h>
#include <ifad... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c)... |
/* Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
* 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
* l... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <Python.h>
#include <numpy/arrayobject.h>
#include "gibbs.h"
/* #### Globals #################################### */
/* ==== Set up the methods table ====================== */
static PyMethodDef _gibbsMet... |
#include "paconv.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
typedef struct {
time_t posix, tai, delta;
} leap_second_t ;
static leap_second_t *leap_seconds;
static int nbr_leap_seconds;
const time_t paconv_invalid = (time_t)(-1);
static time_t posix_max = (time_t)63072000;
s... |
//command.c contains the function runCommand
#include "general.h"
#include "compute.h"
#include "functions.h"
#include "parser.h"
#include "arb.h"
#include "misc.h"
//Header files for all of these functions are in general.h
int historySize = 0;
int historyCount = 0;
Value* history;
char* appendToHistory(Value num, doub... |
/*
from: https://blog.csdn.net/zzucsliang/article/details/41407387
*/
#include <sys/socket.h>
#include <sys/select.h>
#include <netinet/in.h>
//#include <netinet/ip.h>
//#include <netinet/ip_icmp.h>
#include <unistd.h>
#include <signal.h>
#include <arpa/inet.h>
#include <errno.h>
#include <sys/time.h>
#inc... |
/*
* Copyright (C) 2010-2021 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
*
* www.apache.... |
/* disp.c
** Author: <NAME>
** -------------
**
** Functions used by screenfetch-c for displaying version
** and help output to the user.
** Like the rest of screenfetch-c, this file is licensed under the MIT license.
*/
/* standard includes */
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
/* program in... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "iup.h"
#include "iupcontrols.h"
#include <cd.h>
static int leave(Ihandle *self, int lin, int col)
{
printf("leaveitem_cb(%d, %d)\n", lin, col);
//if(lin == 3 && col ==2)
// return IUP_IGNORE; /* notice that this will lock the matrix in thi... |
/* -*- buffer-read-only: t -*-
*
* opnames.h
*
* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
* 2007, 2008 by <NAME> and others
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
*
* !!!... |
/*
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
* See https://llvm.org/LICENSE.txt for license information.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*/
/** \file
* \brief Argument parser implementation
*/
#include "flang/ADT/hash.h"
#include "flang/ArgParse... |
/* lparss.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__0 = 0;
/* $Procedure LPARSS ( Parse a list of items; return a set. ) */
/* Subroutine */ int lparss_(c... |
/*
* SRTP encryption/decryption
* Copyright (c) 2012 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Lice... |
/*
Copyright (c) 2008, <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the followin... |
#include "reverser.h"
#define BZ_BLOCKSIZE100K_MIN 1
#define BZ_BLOCKSIZE100K_MAX 9
#define BZ_BLOCKSIZE100K 5
#define BZ_VERBOSITY_SILENT 0
#define BZ_WORKFACTOR_DEFAULT 30
#define BZ_READ_SLOW 1
#define BZ_READ_FAST 0
gchar *Error_mssgs[4] = {
"ERROR:Wrong Number or Types of Arguments",
"Help List for Rev... |
/*-----------------------------------------------------------------
* Programmer(s): <NAME> @ LLNL
*-----------------------------------------------------------------
* Acknowledgement: This example is based on the PETSc TS ex25.c.
*-----------------------------------------------------------------
* SUNDIALS Copyri... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Fluent Bit
* ==========
* Copyright (C) 2019-2020 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... |
/****************************************************************
Copyright (C) 1999-2001 Lucent Technologies
All Rights Reserved
Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all... |
/*
* dial - connect to a service (threaded parallel version)
*/
#include <u.h>
#include <libc.h>
#include <ctype.h>
#include <fcall.h>
#include <thread.h>
#include <9p.h>
typedef struct Conn Conn;
typedef struct Dest Dest;
typedef struct DS DS;
typedef struct Kidargs Kidargs;
typedef struct Restup Restup;
enum
{
N... |
/**
* Copyright 1993 Network Computing Devices, Inc.
*
* 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 permis... |
#include <stdlib.h>
#include <string.h>
#include "ayym.h"
// tables
char noizes[0x20000]; // here iz noize values 1/0 [generated at start]
#if 0
static int ayDACvol[32] = {0x0000,0x0000,0x001D,0x003A,0x0052,0x0065,0x007D,0x009A,
0x00C2,0x00F0,0x0122,0x0146,0x0186,0x01D6,0x0226,0x0274,
0x02E... |
/*
Copyright 2010 SourceGear, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
/**
* @file hkdf.c
* @brief Common HKDF test functions for Ockam Vault
*/
#include <setjmp.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include "cmocka.h"
#include "ockam/error.h"
#include "ockam/memory.h"
#include "ockam/vault.h"
#include "test_vault.h"
#define TEST_VAULT_HKDF_TEST_CASES ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2018 Los Alamos National Security, LLC. All rights
* reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "btl_uct_am.h"
#include "btl_uct_rdma.h"
#include "btl_uct_de... |
/*
Copyright (c) 2007, 2009 <NAME> <<EMAIL>>
Copyright (c) 2004 <NAME> <<EMAIL>>
Copyright (c) 2004, 2007 Center for Bioinformatics, University of Hamburg
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyr... |
//! cbench.c
/*
* Description: The main program file for the cbench project.
*/
#include "cbench.h"
Sphere* spheres;
//! Calculate whether a given ray intersects with any of the spheres
//! present in this scene.
/*
* @param Ray given ray to check with
* @param double top limit
* @param int... |
/******
*
* library source file for aclib - auto completion library
*
* Copyright (c) 2015, <NAME>.
* WWW: maciejkaminski.pl
* email: <EMAIL>
*
* Published under 2-clause BSD-style license
* 1. Redistributions of source code must retain the above copyright notice
* 2. Redistributions in binary form must repr... |
#include "wagner.h"
#include "easysdl.h"
#include <stdio.h>
#include <inttypes.h>
#include <time.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
// 2-3 fonctions venant de ma bibliothèque C++ mais qui ont été converties.
#define lc_maths_abs(number) (number < 0 ? -(number) : number)
#define lc_maths_min(a... |
/**
* Copyright (c) 2016 - 2020, Nordic Semiconductor ASA
*
* 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 no... |
/* Copyright (C) 2007, <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... |
#include <winsock2.h>
#include <ws2tcpip.h>
/*
* things that are not available in header files
*/
typedef int pid_t;
typedef int uid_t;
typedef int socklen_t;
#define hstrerror strerror
#define S_IFLNK 0120000 /* Symbolic link */
#define S_ISLNK(x) (((x) & S_IFMT) == S_IFLNK)
#define S_ISSOCK(x) 0
#define S_IR... |
//mkdso.h
//
// Exit status codes. Exit codes start with 100 to keep them
// distinct from the MKDSXE_ error codes in mkdsx.h
//
#define MKDSOE_SUCCESS 100 // "Success."
#define MKDSOE_BAD_ARG 101 // "Invalid Arguments."
#define MKDSOE_CANT_BIND ... |
/*
File: dummyacc.c
Copyright:
Copyright (c) 2002, 2003 SFNT Finland Oy.
All rights reserved
Example file which configures an accelerated device. The 'accelerated'
operations are performed here in software.
*/
#include "sshincludes.h"
#include "sshtimeouts.h"
#include "sshoperat... |
#include <stdio.h>
#include <stdlib.h>
#include <vicNl.h>
static char vcid[] = "$Id$";
/**********************************************************************
canopy_evap.c <NAME> September 1995
This routine computes the evaporation, traspiration and throughfall
of the vegetation types for multi-layered model.... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ppu-asm.h>
#include <lv2/spinlock.h>
#include "heap.h"
#include "heap.inl"
#ifndef MIN
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#endif // MIN
#ifndef MAX
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#endif // MAX
static bool __heap_get_first_last_bl... |
/*
* Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
* The President and Fellows of Harvard College.
*
* 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 ... |
/*
* Forge Socket Banner Grab Copyright 2013 Regents of the University of Michigan
*
* 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
*/
#incl... |
//
// Slide-show for TTE demonstration
//
//! \file
//! \author <NAME>
//! \date 20070903 - 20070903
//
/* === NOTES ===
*/
#include <limits.h>
#include <tonc.h>
#include "verdana11.h"
// --------------------------------------------------------------------
// CONSTANTS
// -------------------------... |
#include "CNFA.h"
#include "CNFA_wasapi_utils.h"
//#include <InitGuid.h>
//#include <audioclient.h>
//#include <mmdeviceapi.h>
#include "windows.h"
#include "os_generic.h"
#define WASAPIPRINT(message) (printf("[WASAPI] %s\n", message))
#define WASAPIERROR(error, message) (printf("[WASAPI][ERR] %s HRESULT: 0x%X\n", mes... |
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <float.h>
#include <unistd.h>
#include <omp.h>
#include <time.h>
#include "list.h"
#include "matrix.h"
#include "bnet.h"
#include "rand.h"
#define MPI 0
#define VERBOSE 0
#define SAVE_NETWORKS 0
#if MPI
#include ... |
/* 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 may not... |
/*
* kmap.c - Display a listing of the kernel memory mappings
*
* Copyright (c) 2014 <NAME>
* Copyright (c) 2016-2017 Siguza
*/
#include <limits.h> // UINT_MAX
#include <stdbool.h> // bool, true, false
#include <stdio.h> // printf, fprintf, stderr
#include <mach/kern_return.h>... |
/**
* |----------------------------------------------------------------------
* | 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 without restriction... |
/*
* Copyright (C) 2006 Freescale Semiconductor, Inc.
* <NAME> <<EMAIL>>
*
* Copyright (C) 2007 Logic Product Development, Inc.
* <NAME> <<EMAIL>>
*
* Copyright (C) 2007 MontaVista Software, Inc.
* <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
... |
/*
* 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 will be use... |
/*
*
* (C) COPYRIGHT 2012-2014 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you of this program is subject to the terms
* of such GNU licence.... |
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <proto/launch.h>
#include <kogata/syscall.h>
#include <kogata/printf.h>
FILE *stdin = 0;
FILE *stdout = 0;
FILE *stderr = 0;
FILE libc_tty_stdio, libc_stdin, libc_stdout, libc_stderr;
void initialize_out_buffer(FILE* f, int buf_mode) {
f->buf_mod... |
/*
Copyright (c) 2013, <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 and the follow... |
#include "arena.h"
Page *PageLIFO;
// allocate and initialize a new page frame for arenas
Page *vframe (void)
{
unsigned xtra, size = FRAME_SIZE;
Page *page;
#ifdef unix
page = (Page *)sbrk (size);
// round brk value to page boundary
if( xtra = (unsigned)page & 0xfff )
sbrk (0x1000 - xtra), s... |
#include <SDL2/SDL.h>
#include "generation.h"
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <math.h>
#include "../Librairies/interface.h"
#include "../Interface/fenetre.h"
/********************************************************************************************
*
* FUNCTION NAME: generer_map
*
... |
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <pthread.h>
#include <regex.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include "common.h"
#include "idx.h"
#include "res.h"
// acesso a indices y conjuntos
#define IDX(x) idx_##x.txt[reg.x]
// estructura datos con logs
#define DAT... |
/***************************************************************************
* CVSID: $Id$
*
* hald_runner.c - Interface to the hal runner helper daemon
*
* Copyright (C) 2006 <NAME>, <<EMAIL>>
*
* Licensed under the Academic Free License version 2.1
*
* This program is free software; you can redistribute it a... |
/*
* 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... |
#include "xvmaininc.h"
#include "defines.h"
#include "rtlintproto.h"
#include "declares.h"
#include "externs.h"
/* This routine determines which translation(s) to use. Translations */
/* may be required due to different data types, different hosts, or */
/* both. Two translation steps may be required, in which case ... |
/***********************************
************************************
Author: <NAME>
Use: Exact three well solver. Only gets energies in sig_1, sig_2, sig_3, sig_4=0 subspace.
Dependencies: Lapack, Blas
Compile: gcc -o ThreeWellSolver ./ThreeWellSolver-lm -lblas -llapack
Run: ./ThreeWellSolver wellInput... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <float.h>
/* #include "mat.h" */
#include "mex.h"
struct NAME_LIST
{
unsigned char name[256];
struct NAME_LIST *next;
};
typedef struct NAME_LIST NAME_LIST;
struct HEADER_FRAME
{
unsigned char buf[8192]... |
/*
* 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... |
/**
* mysmartctl -- controller and terminal for the mySmartUSB
*
* Copyright (C) 2011 <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, in... |
/*
Copyright (c) 2007-2011 VMware, Inc. All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted (subject to the limitations in the
disclaimer below) provided that the following conditions are met:
* Redistributions of source code must retain the above copyri... |
/* The batman package: fast computation of exoplanet transit light curves
* Copyright (C) 2015 <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
... |
/*------------------------------------------------------------------------------------------------*/
/* */
/* Copyright (C) 2018 Brite Semiconductor Co., Ltd. All rights reserved. */
/* ... |
/*
* $Id$
*
* ***** BEGIN BSD LICENSE BLOCK *****
*
* Copyright (c) 2009-2011, <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 <GL/glew.h>
#include <SDL2/SDL.h>
typedef struct __attribute__((packed)) {
float x,y,z;
} XYZ;
typedef struct __attribute__((packed)) {
float s,t;
} UV;
typedef struct __attribute__((packed)) {
XYZ pos; UV tex;
} Vector;
Vector vertices[] = {
-0.5f, -0.5f, -0.5f, 0.0f, 0.0f,
... |
/*
* This file is part of the oggbox project.
*
* Copyright (C) 2012 <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 3 of the License, or
* (at y... |
/* userland_ipc - Communication between the network driver
** and the userland stack.
**
** Initial version by <NAME>, <EMAIL>
** This file may be used under the terms of the OpenBeOS License.
*/
#include "userland_ipc.h"
#include "sys/socket.h"
#include "net_misc.h"
#include "core_module.h"
#include "net_module.h"... |
/* file: enc28j60.c
* description: Microchip ENC28J60 MAC/Ethernet network driver
* date: 12/2016
* author: <NAME> <<EMAIL>>
*/
/* MAC address */
#define ENC28J60_MAC0 '0'
#define ENC28J60_MAC1 'F'
#define ENC28J60_MAC2 'F'
#define ENC28J60_MAC3 'I'
#define ENC28J60_MAC4 'C'
#define... |
/* ========================================================================
* Copyright 2006-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:... |
/*
* 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... |
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <math.h>
#include <string.h>
#include <stdint.h>
#include "tscode.h"
#include "tscode_capabilities.h"
#ifndef TSCODE_DISABLE_STREAM_BUFFERS
static char _istream_buffer[TSCODE_ISTREAM_BUFFER_SIZE + 1] = "";
static size_t _istream_buffer_idx = 0;
stati... |
# include <c_iraf.h>
# define SZ_ATNAME 20
IRAFPointer c_mw_open(IRAFPointer bufptr, int ndim);
/* pointer bufptr #I pointer to encoded MWCS, or NULL */
/* int ndim #I dimension of system to be created */
IRAFPointer c_mw_openim(IRAFPointer im);
/* pointer im #I pointer to image descriptor */
IRAFPointer c_mw_n... |
/*
* 1394-Based Digital Camera Control Library
*
* Camera control code for Linux
*
* Written by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
#include "cla/cla.h"
#include "cla/cla_contact_tx_task.h"
#include "cla/mtcp_proto.h"
#include "cla/posix/cla_mtcp.h"
#include "cla/posix/cla_tcp_common.h"
#include "cla/posix/cla_tcp_util.h"
#include "bundle6/parser.h"
#include "bundle7/parser.h"
#include "platform/hal_config.h"
#include "platform/hal_io.h"
#include... |
#include <windows.h>
#include <stdio.h>
#include <math.h>
#include "fgl.h"
#include "fgl3.h"
#include "fglu.h"
// Defi
#define dtoi(d) ((int)(d + 0.5f))
#ifndef M_PI
#define M_PI pi
#endif
#define DEBUG
#define cosf(a) cos(a)
#define sinf(a) sin(a)
// Constructor rect.
void fgluRect(float Length, float Width, ... |
/*
* @(#)hprof_reference.c 1.33 05/09/30
*
* Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* -Redistribution of source code must retain the a... |
/*
* Copyright (C) 1989-2015, <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 cond... |
enum { __FILE_NUM__ = 0 };
/**
*********************************************************************************************************
* Copyright(c) 2017, Realtek Semiconductor Corporation. All rights reserved.
*******************************************************************************************... |
#include "client_async.h"
#include "connection.h"
#include "client.h"
int async_send(thread_t * thread) {
int i;
int wbytes;
int ready;
struct epoll_event *wr_events;
int loop=thread->cfg->loop;
int status;
int conn_done=0;
int done=0;
long int passes=0;
long int conns_ready=0;
int req_idx;
str... |
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "../satspec.h"
static void extract(char *str1, char *str2, int start, int n)
{
strncpy(str2, str1 + start, n);
str2[n] = '\0';
}
static int readdbl(double *val, char *str)
{
char *fel;
*val = strtod(str, &fel);
... |
/* keyboard.c - Functions to read input from keyboard and print to screen
*/
#include "keyboard.h"
// making a map of scan code set 1 (https://wiki.osdev.org/PS/2_Keyboard)
// scan code set 1 - not worrying about keypad or F keys
// 4x16 because we go up to 4 0x3_, and for each 0xi_ we look at most 16 characters
sta... |
/******************************************************************************
* Copyright 2020 The Firmament Authors. All Rights Reserved.
*
* 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 ... |
/*
* ======================================================================================
*
* Filename: mld.c
*
* Description: This file implements the files and routines for mld library
*
* Version: 1.0
* Created: Saturday 19 June 2021 04:24:10 IST
* Revision: 1.0
* Compiler: gcc
*
* Author: <NA... |
/*
* $Id: forward.c,v 172.16.17.32 2000/02/23 07:13:23 wessels Exp $
*
* DEBUG: section 17 Request Forwarding
* AUTHOR: <NAME>
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individu... |
/*
Copyright 2011 <NAME> (<EMAIL>).
This file is part of MetaVelvet.
This file is originally distributed as a part of the Velvet software,
and modified to solve de novo metagenome assembly problem.
MetaVelvet is free software; you can redistribute it and/or modify
it under the terms of the GNU Ge... |
#include <system.h>
#include <paging.h>
#include <string.h>
#include <math.h>
#include <serial.h>
#include <pmm.h>
#include <kheap.h>
#include <vga.h>
// Defined in kheap.c
extern void * heap_start, * heap_end, * heap_max, * heap_curr;
extern int kheap_enabled;
// Where we want to place all the paging structure data
... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h.>
#include<windows.h> //#include <unistd.h> para linux
#include<time.h>
#include<locale.h>
typedef struct {
int codigo;
char nome[50];
char email[50];
char cpf[12];
char dataNascimento[11];
char dataCadastro[11];
} Cliente;
typedef struct ... |
/* samples / wizard.c
* ==================
*/
#include "cage.h"
#include <string.h>
#include <stdio.h>
#include <stdio.h>
/* This (still incomplete) sample shows how **Cage** may be used
* to write a small 2D game.
* We begin with defining a few constants that
* we'll need to use later on.
*/
static const int BA... |
/**
* \file lpc178x_mmc.c
* \brief LPC178x mmc/sd driver.
*
* Date: 2011-11-17
* Author: <NAME>
*
* Copyright (c) 2012 Auerswald GmbH & Co.KG
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions ... |
/* *minmal* stdio.c routines for Sweet32 */
/* Written by <NAME> (c) 2015 */
#ifdef USE_VGA
#ifndef uint8_t
#define uint8_t unsigned char
#endif
#ifndef uint16_t
#define uint16_t unsigned short
#endif
#ifndef uint32_t
#define uint32_t unsigned long
#endif
uint8_t textattr = 7;
uint32_t textx = 0, texty = 0, screenwi... |
/* $NetBSD: ufs_readwrite.c,v 1.42.4.1 2002/10/21 01:54:27 lukem Exp $ */
/*-
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are... |
/*!
*************************************************************************************
* \file img_dist_ms_ssim.c
*
* \brief
* Compute structural similarity (SSIM) index using the encoded image and the reference image
*
* \author
* Main contributors (see contributors.h for copyright, address ... |
/*
* mux.c
*
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation version 2.
*
* This program is distributed "as is"... |
//
// digiplay.c
// digi
//
// Created by mustafa on 9.06.2020.
// Copyright © 2020 mustafa. All rights reserved.
//
#include "vm.h"
#include "digiplay.h"
#include <math.h>
#define M00 0
#define M01 4
#define M02 8
#define M03 12
#define M10 1
#define M11 5
#define M12 9
#define M13 13
#define M20 2
#define M21 6... |
/*
* Copyright (C) 2014-2015 WIDE Project.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this li... |
#include <stdint.h>
#include "task.h"
#include "codegen/pcode.h"
#define F_LATENT 0x8000u
#define F_ALL F_LATENT
#define F_ISSET( info, flag ) ( !! ( info & flag ) )
#define F_GETOPCODE( info ) ( info & ~F_ALL )
struct setup {
struct task* task;
struct func* func;
struct param* param;
struct param* param... |
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <ctype.h>
#include <stdarg.h>
#include <string.h>
#include <time.h>
#include "../range.h"
#include "../util/list.h"
#include "../buffer.h"
#include "visual.h"
#include "motion.h"
#include "intellisense.h"
#include "gui.h"
#include "marks.h"
#include "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.