text stringlengths 5.8k 28.2k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <SDL2/SDL.h>
#include "avalon_addr.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <errno.h>
#include <unistd.h>
/* COMMENT THIS LINE TO DISABLE MORE VERBOSE PRINTOUTS */
#define VERBOSE
... |
#include <stdio.h>
#include <stdlib.h>
#include <zlib.h>
#include <string.h>
#include <unistd.h>
#include "khash.h"
#include "kseq.h"
#include "main_count.h"
#include "common.h"
/*
Usage message in case user specifies -h flag or ran with wrong options.
For example: -l 10 -u 4. Upper bound must be greater than lower ... |
/*
* Copyright 2021 The UAPKI Project Authors.
*
* 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 t... |
/*
* gpuinfo.c -- Simple program for querying GPU properties
*
* Copyright (C) 2008, Computing Systems Laboratory (CSLab)
* Copyright (C) 2008, <NAME>
*/
#include <cuda_runtime_api.h>
#include <getopt.h>
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#define EXIT_SUCCESS 0
#... |
typedef struct {
int32_t width, height;
} Size;
typedef struct {
int32_t x, y;
} Point;
typedef struct {
uint32_t left, right, bottom, top;
} Rect;
typedef struct {
float x, y;
} PointF;
typedef struct {
char name[4];
uint32_t size;
} Chunk;
typedef struct {
uint32_t padding;
uint32... |
/********************************************/
/* libAX: -lX11 -lXext -lpng -lz -ljpeg -lm */
/* -lScalar -lIO -lTimer */
/* */
/* Accelerated low-level graphics library */
/* with X Window Shared Memory Extension. */
/* ... |
///---------------------------------------------------------------editor size---------------------------------------------------------------\\\
#include <stdio.h>
/*
commands to dir: cd .. && cd .. && cd media/psf/Home/Desktop/My\ Cloud\ Offline\ Files/IST/1Ano/IAED
base directory: /media/psf/Home/Desktop/My Clo... |
/*++
/* NAME
/* cleanup 8
/* SUMMARY
/* canonicalize and enqueue Postfix message
/* SYNOPSIS
/* \fBcleanup\fR [generic Postfix daemon options]
/* DESCRIPTION
/* The \fBcleanup\fR daemon processes inbound mail, inserts it
/* into the \fBincoming\fR mail queue, and informs the queue
/* manager of its arrival.
/*
/* The \... |
/* Copyright (c) 2010 - 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 notice, this
* l... |
#include <nginx.h>
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <jwt.h>
#define NGX_HTTP_AUTH_JWT_DISABLED -1
#define NGX_HTTP_AUTH_JWT_ENABLED 1
#define NGX_HTTP_AUTH_JWT_TOKEN 2
static ngx_int_t
ngx_http_auth_jwt_init(ngx_conf_t *cf);
static void *
ngx_http_auth_jwt_create_l... |
#include "tokens.h"
#include "asmcommands.h"
#include "error.h"
#include "functioncall.h"
#include "mathconvert.h"
#include "srccompile.h"
#include "strmanip.h"
#include <string.h>
#include <stdlib.h>
void processByte(FILE* execfile, char* subline, int tokenid) {
int nbytes = 1; //The size of the list, in b... |
/*
* Home: https://github.com/insanum/ecies
* Author: <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <string.h>
#include <openssl/bn.h>
#include <openssl/ec.h>
#include <openssl/ecdh.h>
#include <openssl/pem.h>
#include <openssl/rand.h>
#include <openssl/evp.h>
#define err(fmt, ...) ... |
/* buddy-box.c
*
* AVR code for ATtiny84 PPM generator.
* Device replaces salvaged transmitter-electronics
* to generate a PPM signal as a buddy-box controller.
*
* Port A bit assignment
*
* b7 b6 b5 b4 b3 b2 b1 b0
* | | | | | | | |
* | | | | | | | +--- 'i' ADC0 Channel 1 (Rudder/Ailerons)
*... |
/*
Unix SMB/Netbios implementation.
Version 1.9.
Samba utility functions
Copyright (C) <NAME> 1992-1998
Copyright (C) <NAME> 1998-1999
Copyright (C) <NAME> 1999
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publ... |
/* MKNEXROM - Make a Nextor kernel ROM
By Konamiman, 3/2019
Usage:
mknexrom <basefile> [<newfile>] [/d:<driverfile>] [/m:<mapperfile>] [/e:<extrafile>] [/8:<8K bank select address>] [/k:<boot keys inverter>]
This program creates a Nextor kernel ROM from a base file and a driver file,
as per the recipe ... |
/*
This implemenations is basically the same avaiable at https://github.com/kokke/tiny-AES-c.
The changes in the code are to use the transformations instead of subtitutions tables for example during the S-box stage.
This is to implement variations of the AES with Varied Galois Field.
*/
/*
The implementation is verif... |
#ifdef _WINDOWS
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#endif
#include "leptjson.h"
#include <assert.h> /* assert() */
#include <errno.h> /* errno, ERANGE */
#include <math.h> /* HUGE_VAL */
#include <stdlib.h> /* NULL, malloc(), realloc(), free(), strtod() */
#include <string.h> /* memcpy() */
#ifndef ... |
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <inttypes.h>
#include <limits.h>
#include "version.h"
#include "mp_msg.h"
#include "help_mp.h"
#include "aviheader.h"
#include "ms_hdr.h"
#include "stream/stream.h"
#include "muxer.h"
#include "demuxer.h"
#i... |
/*
* "git add" builtin command
*
* Copyright (C) 2006 <NAME>
*/
#include "cache.h"
#include "builtin.h"
#include "dir.h"
#include "exec_cmd.h"
#include "cache-tree.h"
#include "run-command.h"
#include "parse-options.h"
#include "diff.h"
#include "diffcore.h"
#include "revision.h"
static const char * const builtin_... |
/**
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdio.h>
// Pico
#include "pico/stdlib.h"
// For memcpy
#include <string.h>
// Include descriptor struct definitions
#include "usb_common.h"
// USB register definitions from pico-sdk
#include "hardware/re... |
/** @file */
/*------------------------------------------------------------------
* est_ossl_util.c - Interface between EST server and OpenSSL for
* EST server operations. Some of this code was taken
* from the OpenSSL /apps directory and modified to work
* wit... |
/*
* ostream_printer.c
*
* Copyright (C) 2015, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*
* encoding: UTF-8
* tab size: 4
*
* author: <NAME> (<EMAIL>)
* created: 7/... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (C) International Business Machines Corp., 2000-2004
*/
/*
* Module: jfs_mount.c
*
* note: file system in transition to aggregate/fileset:
*
* file system mount is interpreted as the mount of aggregate,
* if not already mounted, and mount of the sin... |
/*This program should have the same svg output as worms.js. The purpose of this file is to quickly generate the paths.
The focus of this is not visual, like the js file, so the path will not be "drawn", as it is calculated.
Instead, the eaten paths will be recorded, and at the end, an svg will be created from this.
... |
#define _POSIX_C_SOURCE 200112L
#define _XOPEN_SOURCE 500
#include <GLES2/gl2.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <wayland-server-protocol.h>
#include <wayland-server.h>
#include <wlr/backend.h>
#include <wlr/backend/session.h>
#... |
/*
* APNG demuxer
* Copyright (c) 2014 <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 License, or (at your option... |
/****************************** Module Header ******************************\
* Module Name: ddemlcli.h
*
* Copyright (c) 1985 - 1999, Microsoft Corporation
*
* This header file contains stuff used by client side ddeml code.
*
* History:
* 10-28-91 Sanfords Created
\****************************************... |
/*
* 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... |
/*
*
* z88dk Application Generator (appmake)
*
* This file contains the driver and routines used by multiple
* modules
*
* $Id: appmake.c,v 1.28 2015/10/20 16:48:10 stefano Exp $
*/
#define MAIN_C
#include "appmake.h"
#if (__GNUC__ || _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 500)
... |
/*
* Copyright 2016 <NAME> (<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 <dirent.h>
#include <unistd.h>
#include <netdb.h>
#include <string.h>
#include <errno.h>
#include <signal.h>
#include <pthread.h>
#include <semaphore.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <arpa/inet.h>
#include "server.h"
#include "http.h"
#include "ut... |
/* $NetBSD: ixp425_pci.c,v 1.5 2006/04/10 03:36:03 simonb Exp $ */
/*
* Copyright (c) 2003
* <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 so... |
/* GStreamer
* Copyright (C) <1999> <NAME> <<EMAIL>>
* Copyright (C) 2004 <NAME> <<EMAIL>>
* Copyright (C) 2006 <NAME> <tim centricular net>
* Copyright (C) <2015> British Broadcasting Corporation <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU L... |
/*
* kmp_abt_utility.c -- Utility routines for the OpenMP support library.
*/
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licen... |
/*
* Copyright (c) 2019 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_LEVEL LOG_LEVEL_INF
#include <logging/log.h>
LOG_MODULE_REGISTER(audio_io);
#include <zephyr.h>
#include <soc.h>
#include <device.h>
#include <drivers/i2s.h>
#include <audio/codec.h>
#include <audio/dmic.h>
#include... |
/*******************************************************************************
* Startup file for STM32F4xx Cortex-M4F MCU
*******************************************************************************/
extern unsigned long _sidata;
extern unsigned long _sdata;
extern unsigned long _edata;
extern unsigned long _sbs... |
/* MIT License
*
* Copyright (c) <NAME> 2017
*
* 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, merg... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include "mpi.h"
#include "data_structures.h"
#define U(i,j,k) ( u[((k)*(p->ldomain_shape[1])+(j))*(p->ldomain_shape[0])+(i)])
extern void sub_array_copy(const real_t * restrict src_buf, real_t * restrict dst_buf, int *src_size, ... |
/*******************************************************************************
* Copyright (c) 2018-2021 Cadence Design Systems, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to use this Software with Cad... |
/*
* Copyright (c) 2005-2019 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#in... |
static char help[] =
"Solves the p-Helmholtz equation in 2D using Q_1 FEM. Option prefix -ph_.\n"
"Problem is posed as minimizing this objective functional over W^{1,p}\n"
"for p>1:\n"
" I[u] = int_Omega (1/p) |grad u|^p + (1/2) u^2 - f u.\n"
"The strong form equation, namely setting the gradient to zero, is a PDE\... |
/*-
* Copyright (c) 1994 <NAME>
* Copyright (c) 1994 <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
* noti... |
/* Copyright (c) 2014-2015 <NAME>. All rights reserved.
* License: This code is licensed under a 3-clause BSD license. See
* the file named "LICENSE" for a full copy of the license.
*/
/** @file Demonstrates drawing a shaded 3D triangle.
*
* @author <NAME>
*/
#include "libkuhl.h"
#include <stdlib.h>
#include <... |
#include <3ds.h>
#include <string.h>
#include <sys/iosupport.h>
#include "patcher.h"
#include "exheader.h"
#include "ifile.h"
#include "fsldr.h"
#include "fsreg.h"
#include "pxipm.h"
#include "srvsys.h"
#define MAX_SESSIONS 1
const char CODE_PATH[] = {0x01, 0x00, 0x00, 0x00, 0x2E, 0x63, 0x6F, 0x64, 0x65, 0x00, 0x00, ... |
#include <dirent.h>
#include <stdio.h>
#include <unistd.h>
#include <limits.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <errno.h>
#include <stdbool.h>
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif
#define SIGIL(m) (opt_sigil ? ... |
/* hashFusion.c
HashFusion Library
Author: <EMAIL>
(c) Copyright 2017 Hewlett Packard Enterprise Development LP
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 co... |
/*
* Copyright (c) 2018, UNISOC Incorporated
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <string.h>
#include "mbed_retarget.h"
#include "sipc.h"
#include "sipc_priv.h"
#include "uwp_sys_wrapper.h"
#include "hal_ipi.h"
//#define WIFI_LOG_DBG
#include "uwp_log.h"
#define SMSG_STACK_SIZE (2048)
//struct k... |
// #define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <strings.h>
#include <math.h>
#include <linux/i2c-dev.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "quaternion.c"
// Common defs {{{
void print_hex (uint8... |
/*
* Program: 10
* Author: <NAME>
* Description: Applying Vertex Cover Algorithm
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
#define MAX_EDGES 100001
#define MAX_VERTICES 50001
#define LEFT(i) ((i << 1) + 1)
#define RIGHT(i) ((i << 1) + 2)
#define DIV_BY_2... |
/* Copyright (c) 2017, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the... |
/*
* (C) Copyright 2005- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... |
/*
* Copyright (c) 2002 <NAME> <jack at mobil dot cz>
* Copyright (c) 1998,2003 <NAME> <sasha at aftercode.net>
* spawned from configure.c and module.c using code from various ppl :
* Copyright (c) 1998 <NAME> <<EMAIL>>
* Copyright (c) 1998 <NAME> <<EMAIL>>
* Copyright (c) 1998 <NAME> <<EMAIL>>
* Copyright (c) 1... |
/* GStreamer
* Copyright (2019) Collabora Ltd.
* Contact: <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 optio... |
/**
* \file
*
* \brief Calculator demo widget application
*
* Copyright (c) 2014-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 prod... |
#include "spmv.h"
double gk_clockseconds()
{
#ifdef __GNUC__
struct timeval ctime;
gettimeofday(&ctime, NULL);
return (double)ctime.tv_sec + (double).000001*ctime.tv_usec;
#else
return (double)time(NULL);
#endif
}
double ji_memusage(int sz)
{
struct rusage r;
getrusage(RUSAGE_SELF, &r);
return (r.ru_m... |
/**
* FreeRDP: A Remote Desktop Protocol client.
* Video Redirection Virtual Channel
*
* Copyright 2010-2011 <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://ww... |
/*
* (C) Copyright 2006-2007
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* 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 Softwa... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <gsl/gsl_linalg.h>
#include <gsl/gsl_cblas.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_eigen.h>
#include "chisq_dist.h"
int chisq_dist(int mode, int do_chisq, int nophotoerr, int ncalc, int ncol,
double *covmat, double ... |
/**
* Copyright 2020-2021 Huawei Technologies Co., Ltd
*
* 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 applicabl... |
/*
* Copyright (C) 2015-2020 Alibaba Group Holding Limited
*/
#include <stdarg.h>
#include "amp_fs.h"
#include "amp_system.h"
#include "amp_config.h"
#include "amp_defines.h"
#include "amp_task.h"
#include "board_mgr.h"
#include "be_inl.h"
#include "cJSON.h"
#include "addons/libjs.h"
#include "startup/app_entry.h"
... |
/* gtkrecentchooserutils.h - Private utility functions for implementing a
* GtkRecentChooser interface
*
* Copyright (C) 2006 <NAME>
*
* All rights reserved
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
... |
/*
Copyright (c) 2015 <NAME> <<EMAIL>>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRAN... |
/*
*****************************************************************************
* Copyright by ams AG *
* All rights are reserved. *
* ... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
* This is GNU Go, a Go program. Contact <EMAIL>, or see *
* http://www.gnu.org/software/gnugo/ for more information. *
* *
* Copyright 1999, 2000, 2001, 2002, 2003... |
typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef short __int16_t;
typedef unsigned short __uint16_t;
typedef int __int32_t;
typedef unsigned int __uint32_t;
typedef long long __int64_t;
typedef unsigned long long __uint64_t;
typedef long __darwin_intptr_t;
typedef unsigned int __darwin_natural... |
#include <ncurses.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <time.h>
#define left_right_border_ch '|'
#define top_bottom_border_ch '-'
#define corners_ch '+'
typedef struct{
double startx, starty;
unsigned short height, width;
unsigned short colorp;
}RECTANGLE;
typedef struct{
float ... |
/*
* 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... |
/*
* Copyright (c) 2020 Baidu.com, Inc. 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/* 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... |
#include "file_system.h"
#include "system_call.h"
#include "lib.h"
#define EIGHT_MB 0x800000
#define EIGHT_KB 0x2000
bootblock_t* bootblock;
//local helper functions
int filename_compare(char* fname_1, const uint8_t* fname_2);
void filename_copy(char* fname_1, char* fname_2);
/* int32_t read_dentry_by_name(const uin... |
/* config.h. Generated by configure. */
/* config.h.in. Generated from configure.in by autoheader. */
/* Define to specific EGD socket path */
/* #undef EGD_PATH */
/* Define if EGD should be supported */
/* #undef ENABLE_EGD */
/* Define if GSS_C_NT_HOSTBASED_SERVICE is not defined otherwise */
/* #undef GSS_C_... |
/*
Based on
https://github.com/cloud-security-research/sgx-ra-tls/blob/ce24b655bb1c1351a25d3bb41a85902b29deb278/ias-ra.c.
See copyright below.
Copyright 2017, Intel(R) Corporation (http://www.intel.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with... |
/* 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... |
/*
* Copyright (c) 2005, Swedish Institute of Computer Science
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* no... |
#include "mpr.h"
#include "mprPrivate.h"
/* You may (if you want) define new functions or #define macros here;
but our intent is only that they would be used in this file. Thus,
prefix any function declarations here with "static" */
// v.v.v.v.v.v.v.v.v.v.v.v.v.v.v.v.v.v.v begin student code
static real lerp(r... |
/*-
* Copyright 2003-2005 <NAME>
* Copyright 2018 <NAME>
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* n... |
/*
* writerX.c Copyright 2014-21 <NAME>/KSS Technologies (Pty) Ltd.
*
* References:
* http://www.json.org/
* http://json-schema.org/
*
* Add a complete item :
* to an object
* to an array
*
* Start a new OPEN:
* object Always start and leave open, cannot allow writing a complete object in 1 step...
*... |
/*
* Created on August 28, 2017
* August 30, 2017: ADC/PWM test
* September 10, 2017: Open-loop
* September 12, 2017: Closed-loop
* September 13, 2017: Seamless transition Open to Closed, lock detection(CL)
* January 1, 2018: lock detection(OL)
* August 1, 2018: Stop using unnecessary functions and use arrays
*... |
/* linux.c - Linux-specific CD-ROM API glue
*
* 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, including without limitati... |
#include "alloc.h"
#include "build.h"
#include "degrade.h"
/*
* testbreak_alloc
*/
static int test_CopyJmpBuf(void)
{
byte buffer[2 * sizeof(jmp_buf)];
jmp_buf jmp;
memset(buffer, 0, 2 * sizeof(jmp_buf));
memset(&jmp, 0xAA, sizeof(jmp_buf));
CopyJmpBuf(buffer, &jmp);
test(buffer[0] == 0xAA, "CopyJmpBuf.1");
... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <event.h>
#include <netdb.h>
#define DATA_BUFFER_SIZE 2048
#define UDP_READ_BUFFER_SIZE 65... |
/*
* st2play - very accurate C port of Scream Tracker 2.xx's replayer,
*
* Copyright 2017 Sergei "x0r" Kolzun
*
* 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.apach... |
#define _GNU_SOURCE
#include "display.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <nhl/nhl.h>
#include "colors.h"
/* Print specified number of whitespace characters. */
static void print_blank(int spaces) {
while (spaces-- > 0)
putc('... |
#include <ctype.h>
#include <dispatch/dispatch.h>
#include <errno.h>
#include <libproc.h>
#include <mach/mach.h>
#include <mach/task_info.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/sysctl.h>
#include <time.h>
// from System.framework/Versions/B/PrivateHeaders/sys/codesign.h
#define CS_... |
// ------------------------ oscbank~ 0.2 -----------------------------
// oscillator bank using 3 seperate float inlets with interpolation
// - Please see the included README and LICENSE for more info
// - <EMAIL>
// -------------------------------------------------------------------
#include "m_pd.h"
#include <stdlib... |
/*******************************************************************************
Name: SPACE OBLIQUE MERCATOR (SOM)
Purpose: Provides the transformations between Easting/Northing and longitude/
latitude for the SOM projection. The Easting and Northing are in meters.
The longitude and latitude values are in ra... |
/*
*Copyright (C) 2014 <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, dis... |
/**
* This test attempts to expose the consistency guarantees txnlib attempts
* to provide. The 2 relevant "states" in which crashing needs to be tested
* is before a recovery (in a txn) and during a recovery. Anything else is
* out of the scope of txnlib.
*/
#include <dirent.h>
#include <errno.h>
#include <fcntl... |
/* georec.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 doublereal c_b11 = 1.;
/* $Procedure GEOREC ( Geodetic to rectangular coordinates ) */
/* Subroutine */ int ... |
/*
sshunixptystream.h
Author: <NAME> <<EMAIL>>
Copyright (c) 1997 SSH Communications Security, Finland
All rights reserved
*/
/*
* $Id: sshunixptystream.c,v 1.3 1999/02/16 12:50:34 sjl Exp $
* $Log: sshunixptystream.c,v $
* $EndLog$
*/
#include "sshsessionincludes.h"
#include "sshunixptystr... |
/*
* libslp-setting
*
* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
*
* Contact: <NAME> <<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
*
... |
/* mxlookup.c */
/* Synchronet DNS MX-record lookup routines */
/* $Id: mxlookup.c,v 1.27 2013/09/03 23:39:10 deuce Exp $ */
/****************************************************************************
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.n... |
/*******************************************************************************
License:
This software and/or related materials was developed at the National Institute
of Standards and Technology (NIST) by employees of the Federal Government
in the course of their official duties. Pursuant to title 17 Section 105
of... |
/*
* Driver for USB Scanners (linux-2.4.18)
*
* Copyright (C) 1999, 2000, 2001, 2002 <NAME>
*
* <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 th... |
/*
* xcec-bridge - HiperSockets Network Concentrator
*
* Parameters:
* also_unicast - uni-, multi-, broadcast is bridged
* <no parameters> - multi-, broadcast is bridged
* only broadcast - only broadcast is bridged
*
* Copyright IBM Corp. 2003, 2017
*
* s390-tools is free software; you can redist... |
//=========================================================
// src/InitDevice.c: generated by Hardware Configurator
//
// This file will be regenerated when saving a document.
// leave the sections inside the "$[...]" comment tags alone
// or they will be overwritten!
//=================================================... |
/*
Wiihttpd -- an HTTP server for the Wii
Version: 0.0.2
Created: 19/06/2008
Last Modified: 24/06/2008
Modified to Wiihttpd by tekencal
Original Source from ftpii v0.0.5
ftpii Source Code Copyright (C) 2008 <NAME> <<EMAIL>>
This software is provided 'as-is', without any express or implied warranty.
I... |
/*
* ________________________________________________________________________________________________________
* Copyright (c) 2015-2015 InvenSense Inc. All rights reserved.
*
* This software, related documentation and any modifications thereto (collectively “Software”) is subject
* to InvenSense and its licensors'... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of thi... |
// SPDX-License-Identifier: GPL-2.0
//
// xfer-libffado.c - receive/transmit frames by libffado.
//
// Copyright (c) 2018 <NAME> <<EMAIL>>
//
// Licensed under the terms of the GNU General Public License, version 2.
#include "xfer.h"
#include "misc.h"
#include "frame-cache.h"
#include <stdio.h>
#include <sched.h>
#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.