text stringlengths 5.8k 28.2k |
|---|
//Day5a.c
//
//The fifth challenge is to compute a password by calculating MD5 checksums on
//varying inputs and extracting information from the sums that start with five
//zeros.
//
//Our input is a constant string of 8 characters. To get the full input
//sequence, we concatenate numbers to the end of the string, star... |
/* ==========================================================================
* $File: //dwh/usb_iip/dev/software/otg/linux/drivers/dwc_otg_driver.c $
* $Revision: #96 $
* $Date: 2013/05/20 $
* $Change: 2234037 $
*
* Synopsys HS OTG Linux Software Driver and documentation (hereinafter,
* "Software") is an Unsupp... |
/*
* Copyright 2012 <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 writin... |
/* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 2003 Xodnizel
*
* 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, o... |
#include <string.h>
#include "display.h"
#include "keypad.h"
#include "OpenSans_Regular_11X12.h"
#include "periodic.h"
#include "tf.h"
#include "ui_controls.h"
#include "ui_dialog.h"
#include "ui_osk.h"
#include "ui_theme.h"
#define BORDER (1)
/* ui_button */
static void button_draw(ui_control_t *control)
{
ui... |
/*
*++
* llvm_gencode.c - Common codegen to LLVM IR.
*
*
* This module contains the main code generation entry
* points and some common routines shared by the other
* llvmgen modules.
*
* Copyright © 2012, 2013 <NAME>.
* All rights reserved.
* Distributed under license. See LICENSE.TXT for details.
*--
*/... |
/*
* 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 "Enclave.h"
#include <stdio.h>
#include <stdlib.h>
int SECURITY_LEVEL;
int N_OPS;
int MAX_OPS;
int T_THRESHOLD;
int TWEAK_SIZE;
int KEY_SIZE;
int EPOCH_KEY_SIZE;
unsigned char *CLIENT_KEY;
unsigned char *SERVER_KEY;
unsigned char *EPOCH_KEY;
struct node {
unsigned char * hash;
uint32_t counter;
str... |
/* $OpenBSD: chvgpio.c,v 1.5 2016/05/08 18:18:42 kettenis Exp $ */
/*
* Copyright (c) 2016 <NAME>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*... |
/*
gcc -Wall -Wextra -std=c99 -pedantic main.c -o main
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
long int allBytes=0, codedBytes=0; //zmienne globalne (specjalnie globalne, czyli takie "brzydkie, bo sa jedynie do wyliczania stopnia kompresji, czyli niejako nie sa elementam... |
/*
* File: pci_id.c
* Description: The read only data related to identifying PCI devices and
* functions that identify them (needed here so the size is known)
* *****************************************************************************
* Copyright 2021 <NAME>
* Check the LICENSE file that came with this p... |
/* SPDX-License-Identifier: Apache-2.0
* Copyright (c) 2021 <NAME>, Aix-Marseille University
*
*
* New implementation of mb_display.h for compatibility with Microbit V2.
* This implementation uses a hardware timer of the Nordic SOC for periodic
* interrupts independent of Kernel timing for image refresh.
* The a... |
// Priority queue implementation with Binomial Heap
// <NAME> - 150116034
#include <stdio.h>
#include <dirent.h>
#include <string.h>
#include <stdlib.h>
#define MAX_FILE_NAME_LENGTH 100
#define MAX_WORD_LENGTH 150
// This list holds the names of the files and number of occurence in the file.
struct fileNode {
i... |
/*-
* Copyright (c) 2014-present MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include "wt_internal.h"
/*
* 7-bit ASCII, with English language frequencies.
*
* Based on "Case-sensitive letter and bigram frequency c... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
#include "cmatrix4.h"
#include "cvector3.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
void _freeMatrix(void* obj);
CMatrix4* newCMatrix4(CMemory* cmemory) {
CMatrix4 *ret = (CMatrix4*)cmemory_calloc(cmemory, 1, sizeof(CMatrix4));
ret->parent.funcFree = _freeMatrix;
ret->parent.cmemory = cmemory;
... |
/*-
* Copyright (c) 2013 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
#include "emom_dcm.h"
#include "windmisc.h"
#include "ecfg_dcm.h"
#include "esteps.h"
#include <math.h>
/* private functions: */
void make_cmom_struct( comp_eesa_mom *cmom,uchar *d);
void decompress_eesa_mom(comp_eesa_mom *cmom, eesa_mom *mom);
/* Gets next emom structure with a time greater than BUT NOT EQUAL to... |
/*
** Copyright (C) 2012-2020 <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, merg... |
// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2021 Facebook */
#define _GNU_SOURCE
#include <pthread.h>
#include <sched.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <test_progs.h>
#include "test_bpf_cookie.skel.h"
#include "kprobe_multi.skel.h"
/* uprobe attach point */
static void trigger_func(void... |
/* SCTP kernel Implementation
* Copyright (c) 2003 Hewlett-Packard Development Company, L.P
* (C) Copyright IBM Corp. 2004
*
* This file has test cases to test the sendmsg() call for 1-1 style sockets
*
* TEST1: Bad socket descriptor
* TEST2: Invalid socket
* TEST3: On a listening socket
* TEST4: Invalid iovec... |
#include <signal.h>
#include <ucontext.h>
#include <unistd.h>
#include "riscv-priv.h"
#include "riscv-bits.h"
#include "common.h"
#include "printf.h"
#include "urvirt-block.h"
#include "urvirt-syscalls.h"
static inline uintptr_t sanitize_stvec(uintptr_t stvec) {
uintptr_t mode = stvec & STVEC_MODE_MASK;
if (... |
/**
* dnstress is a tool for generating DNS traffic in
* different modes for DNS servers. In other words,
* this is a stress-test perfomance tool.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <limits.h>
#include <signal.h>
#include <unistd.h>
#include <grp.h>
#include ... |
/**************************************************************************//**
* $Id:: $
*
* @file system_LPC11xx.c
* @brief CMSIS Cortex-M0 Device Peripheral Access Layer Source File
* for the NXP LPC11xx Device Series
* @ve... |
/*
* Copyright (c) 2018-2021 <NAME>, m00nbsd.net
* All rights reserved.
*
* This code is part of the NVMM hypervisor.
*
* 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 r... |
/*
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
/*
* The Shadow Simulator
* Copyright (c) 2010-2011, <NAME>
* See LICENSE for licensing information
*/
#include "shadow.h"
typedef enum _NetworkInterfaceFlags NetworkInterfaceFlags;
enum _NetworkInterfaceFlags {
NIF_NONE = 0,
NIF_SENDING = 1 << 0,
NIF_RECEIVING = 1 << 1,
};
struct _NetworkInterface {... |
/*
* Copyright (c) 2010-2011 <NAME> <ff at octo.it>
*
* 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 ... |
/*
* HEVC Annex B format parser
*
* Copyright (C) 2012 - 2013 <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 Lic... |
/*
This file is part of the SC Library.
The SC Library provides support for parallel scientific applications.
Copyright (C) 2010 The University of Texas System
Additional copyright (C) 2011 individual authors
The SC Library is free software; you can redistribute it and/or
modify it under the terms of the ... |
/*
* newtest.c
*
* Copyright (c) 2014 <NAME> <<EMAIL> @ jers.net>
*
* 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 copyr... |
/* -*- Mode: C++; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#define _GNU_SOURCE
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <pthread.h>
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/selec... |
/*****************************************************************************
* flv.c: flv muxer
*****************************************************************************
* Copyright (C) 2009-2021 x264 project
*
* Authors: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or mo... |
/* L S . C
* BRL-CAD
*
* Copyright (c) 2008-2016 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as publish... |
/* $FreeBSD$ */
/*-
* Copyright (c) 1990, 1991, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from the Stanford/CMU enet packet filter,
* (net/enet.c) distributed as part of 4.3BSD, and code contributed
* to Berkeley by <NAME> and <NAME> both of Lawrence
* Ber... |
/* Copyright 1993 Colorado State University */
/* All Rights Reserved */
/*****************************************************************************
**
** FILE: initsrad.c
**
** FUNCTION: void initsrad()
**
** PURPOSE: ... |
/* console input helpers */
#include "../fb.h"
#include "fb_private_console.h"
#include <math.h>
// QB key codes that are processed by keydown
static const unsigned short js_keycode_to_qb_key_tb[128] =
{
[ 8] = 8, /* backspace */
[ 9] = 9, /* tab */
[ 13] = 13, /* e... |
#include <ctype.h>
#include <getopt.h>
#include <errno.h>
#include <libgen.h>
#include <netdb.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/file.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/time.h>
#include <unistd.h>
#include <fcntl... |
/*
* Copyright (c) 2016 DeNA Co., Ltd., <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, mer... |
/*-
* Copyright (c) 2010 <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 a... |
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2017-2018 <NAME>
*
* VMWare backdoor driver.
*
* Supports absolute mouse cursor and resolution setting.
*
* Mouse:
* Toggl... |
/******************************************************************************
* @file vcom.c
* @author MCD Application Team
* @version V1.1.4
* @date 08-January-2018
* @brief manages virtual com port
******************************************************************************
* @attention
*
* <h2>... |
/* swc: launch/launch.c
*
* Copyright (c) 2013, 2014, 2016 <NAME>
*
* Based in part upon weston-launch.c from weston which is:
*
* Copyright © 2012 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),... |
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include "sass.h"
#include <stdio.h>
#include "erl_nif.h"
static inline ERL_NIF_TERM make_atom(ErlNifEnv* env, const char* name)
{
ERL_NIF_TERM ret;
if(enif_make_existing_atom(env, name, &ret, ERL_NIF_LATIN1)) {
return ret;
}
return enif_make_atom... |
/*
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: MIT-0
*
* 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,... |
# include <stdio.h>
# include <string.h>
#include "hstcal.h"
# include "hstio.h" /* defines HST I/O functions */
# include "wf3.h"
# include "wf3info.h"
# include "hstcalerr.h"
# include "trlbuf.h"
extern int status;
/* DOIR: Applies IR calibration steps to an input science data file.
** All calibration steps modify... |
// Protocol Buffers - Google's data interchange format
// Copyright 2014 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee a... |
/* Decoder for ASN.1 BER/DER/CER encoded bytestream
*
* Copyright (C) 2012 Red Hat, Inc. All Rights Reserved.
* Written by <NAME> (<EMAIL>)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Licence
* as published by the Free Software Foundatio... |
/****************************** Module Header ******************************\
* Module Name: shlexts.c
*
* Copyright (c) 1997, Microsoft Corporation
*
* This module contains user related debugging extensions.
*
* History:
* 10/28/97 created by cdturner (butchered from the userexts.dll)
\***********************... |
/*-------------------------------------------------------------------------
*
* array_expanded.c
* Basic functions for manipulating expanded arrays.
*
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFIC... |
/*
* Common code between Nellymoser encoder and decoder
* Copyright (c) 2007 a840bda5870ba11f19698ff6eb9581dfb0f95fa5,
* 539459aeb7d425140b62a3ec7dbf6dc8e408a306, and
* 520e17cd55896441042b14df2566a6eb610ed444
* Copyright (c) 2007 <NAME> <lool at dooz.org>
* ... |
#ifdef _WIN32
#include <Winsock2.h>
#include <ws2tcpip.h>
#endif
#undef ERROR
#include "pingr.h"
#include "errors.h"
#ifdef _WIN32
#include <windows.h>
#include <windns.h>
#define AF_INET6 23
#define NS_IN6ADDRSZ 16
#define NS_INT16SZ 2
// Copyright notice for inet_ntop4 and inet_ntop6
/*
* Copyright (c) 1996-... |
#include "utils.h"
#include "divmod.h"
// -----------------------------------------------------------------------------
SEXP warp_ns_env = NULL;
SEXP syms_x = NULL;
SEXP syms_tzone = NULL;
SEXP syms_class = NULL;
SEXP syms_as_posixct_from_posixlt = NULL;
SEXP syms_as_posixlt_from_posixct = NULL;
SEXP syms_as_date =... |
// gcc -o test main.c -std=c99 -lX11 -lm
// problems:
// * load system fonts?
// * tearing vsyc refresh rate
// * window close does not quit / server times out
// notes:
// * fixed font char width 6px height 9px
#include "apg_maths.h"
#include <X11/Xlib.h>
#include <stdio.h>
#define __USE_XOPEN_EXTENDED // what the ... |
#include "hdmi_core.h"
static s32 is_hdmi;
static s32 is_yuv;
u32 is_exp = 0;
u32 rgb_only = 0;
static u8 EDID_Buf[HDMI_EDID_LEN];
u8 Device_Support_VIC[512];
static u8 exp0[16] =
{
0x36,0x74,0x4d,0x53,0x74,0x61,0x72,0x20,0x44,0x65,0x6d,0x6f,0x0a,0x20,0x20,0x38
};
static u8 exp1[16] =
{
0x2d,0xee,0x4b,0x4f,0x4e,0x... |
/*
* (C) Copyright 2000
* <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 Software Fo... |
/*
Copyright 2011-2021 <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, software
... |
/*
* XDD - a data movement and benchmarking toolkit
*
* Copyright (C) 1992-2013 I/O Performance, Inc.
* Copyright (C) 2009-2013 UT-Battelle, LLC
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License version 2, as published by the Free Software
... |
/* $OpenBSD: tty_endrun.c,v 1.3 2010/04/12 12:57:52 tedu Exp $ */
/*
* Copyright (c) 2008 <NAME> <<EMAIL>>
* Copyright (c) 2009 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice an... |
/**
* Copyright (c) 2018, 2019, 2020, 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... |
/******************************************************************************
NAME: fit_plane
SYNOPSIS: fit_plane [-k <keepFraction] [-log <file>] <in> <out>
DESCRIPTION:
fit_plane is used during complex interferometry to clean up
the output of fico.
fit_plane performs a weighted planar least-sq... |
/* Generic definitions */
#define PACKAGE it.unimi.dsi.fastutil.booleans
#define VALUE_PACKAGE it.unimi.dsi.fastutil.objects
/* Assertions (useful to generate conditional code) */
#define KEY_CLASS_Boolean 1
#define KEYS_PRIMITIVE 1
#define VALUE_CLASS_Object 1
#define VALUES_REFERENCE 1
/* Current type and class (... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2011 Advanced Micro Devices, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* This ... |
/*****************************************************************************
* jitter_ring.c
* this file is part of https://github.com/ouistiti-project/putv
*****************************************************************************
* Copyright (C) 2016-2017
*
* Authors: <NAME> <<EMAIL>>
*
* Permission is h... |
/*
Copyright 2010-2013 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, softwar... |
/*
* 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 ... |
/* Core functions and data structures
This file was formmatted with:
$ indent -kr --no-tabs rpackcore.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <limits.h>
#include "rpackcore.h"
/* Cell
====
*/
Cell _cell;
Cell *const COL_FULL = &_cell;
/* start_pos computes... |
/**********************************************************************
debug.c -
$Author$
created at: 04/08/25 02:31:54 JST
Copyright (C) 2004-2007 <NAME>
**********************************************************************/
#include "ruby/internal/config.h"
#include <stdio.h>
#include "eval_intern.h"... |
#include <kernel.h>
#include <stdlib.h>
#include <sys/time.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "ak_thread.h"
#include "ak_common.h"
#include "ak_common_video.h"
#include "ak_vi.h"
#include "ak_venc.h"
#include "dev_info.h"
#include "ak_log.h... |
/******************************************************************************
* Copyright (c) 2005-2018 Broadcom. All Rights Reserved. The term "Broadcom"
* refers to Broadcom Inc. and/or its subsidiaries.
*
* This program is the proprietary software of Broadcom and/or its licensors,
* and may only be used, ... |
#include "myy.h"
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <helpers/base_gl.h>
#include <helpers/struct.h>
#include <helpers/log.h>
#include <opengl/menus.h>
#include <opengl/global.h>
#include <cards_logic/basics.h>
#include <cards_logic/klondike.h>
#include <cards_logic/gl_cards.h>
// memcpy
#incl... |
/*
* Copyright 2007-2010 Freescale Semiconductor, Inc.
*
* (C) Copyright 2003 Motorola Inc.
* Modified by <NAME>, <EMAIL>
*
* (C) Copyright 2000
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can... |
#include "bar.h"
#include "client.h"
#include "config.h"
#include "core.h"
#include "layouts.h"
#include "util.h"
#include "variables.h"
#include "xevents.h"
void drawbar(Monitor* mon) {
unsigned i;
int x = 0; // drawing cursor position
unsigned w = 0; // width of the thing
unsigned status_w = 0; // sta... |
/*
* LZ4 HC - High Compression Mode of LZ4
* Copyright (C) 2011-2012, <NAME>.
* BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* ... |
/******************************************************************************
* Copyright (C) 2005-2018 Broadcom. All Rights Reserved. The term "Broadcom"
* refers to Broadcom Inc and/or its subsidiaries.
*
* This program is the proprietary software of Broadcom and/or its licensors,
* and may only be used, d... |
#ifndef lint
static char *RCSid() { return RCSid("$Id: screenbuf.c,v 1.2 2014/03/30 18:33:49 markisch Exp $"); }
#endif
/* GNUPLOT - screenbuf.c
Data structure and methods to implement a screen buffer.
Implementation as a circular buffer.
(NB: sb->head == sb->tail means NO element stored)
*/
/*
Copyright ... |
#include <arpa/inet.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <poll.h>
#include <time.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#include <X11/extensions/X... |
#define _GNU_SOURCE /* These killers do not kill anything */
#ifdef DEBUG
#include <stdio.h>
#endif
#include <unistd.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <linux/limits.h>
#include <sys/types.h>
#include <dirent.h>
#include <signal.h>
#include <fcntl.h>
#include <time.h>
#include "headers/checksum.h"
... |
/*
*
* Copyright 2015 Rockchip Electronics 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 applica... |
#include "postgres.h"
#include <unistd.h>
#include "access/htup.h"
#include "access/htup_details.h"
#include "catalog/mgr_host.h"
#include "libpq/ip.h"
#include "mgr/mgr_agent.h"
#include "mgr/mgr_msg_type.h"
#include "miscadmin.h"
#include "nodes/pg_list.h"
#include "utils/builtins.h"
#include "utils/memutils.h"
#in... |
/*
AUTORES: <NAME> -- 9292970
<NAME> -- 9293414
PROGRAMA: Programa que simula o funcionamento do algoritmo de pesquisa do google
DATA: 01-09-2015
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "listagoogle.h"
//Algumas definicoes para auxiliar na implementacao
#define ... |
#include "pvrtc.h"
#include <stdint.h>
#include <string.h>
#include "color.h"
#include "endianness.h"
static const int PVRTC1_STANDARD_WEIGHT[] = {0, 3, 5, 8};
static const int PVRTC1_PUNCHTHROUGH_WEIGHT[] = {0, 4, 4, 8};
static inline long morton_index(const long x, const long y, const long min_dim) {
long offse... |
/*------------------------------------------------------------------------/
/ Foolproof MMCv3/SDv1/SDv2 (in SPI mode) control module
/-------------------------------------------------------------------------/
/
/ Copyright (C) 2019, ChaN, all right reserved.
/
/ * This software is a free software and there is N... |
/* this code is licensed as public domain */
#ident "@(#)M_DRAW:driver/xfig.c - M_DRAW driver for xfig(1) files"
#ident "@(#)M_DRAW:author - <NAME>"
#ident "@(#)M_DRAW:version - 1.0"
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "draw.h"
#define XSPACE_SIZE 10200
#define YSPACE_SIZE 1320... |
/********************************************************************
* COPYRIGHT:
* Copyright (c) 1998-2009, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/*
* File putiltst.c (Tests the API in putil)
*
* Modifi... |
#include <stdio.h>
#include <stdlib.h>
#include "lab3.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "inc/lm3s8962.h"
#include "driverlib/adc.h"
#include "driverlib/debug.h"
#include "driverlib/gpio.h"
#include "driverlib/pwm.h"
#include "driverlib/sysctl.h"
#include "drivers/rit128x96x4.h"... |
/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* signals.c - Sample to demonstrate usage of GE signals under libgu API.
*
* At the start of each fra... |
/*
* Simple hash filesystem (SHFS) tools
*
* Authors: <NAME> <<EMAIL>>
*
*
* Copyright (c) 2013-2017, NEC Europe Ltd., NEC Corporation All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
... |
/*
* Jenopt JD11 Camera Driver
* Copyright 1999-2001 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any... |
/* itsaMake - Create indexed traversable suffix array for fast searches of genome.. */
/* Copyright <NAME> 2008 all rights reserved. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "sqlNum.h"
#include "dnaLoad.h"
#include "dnaseq.h"
#include "verbose.h"
#include "itsa.h"
... |
#include "vars.h"
#include "game.h"
#include "wmapload.h"
#include <stdlib.h>
#include <stdio.h>
void zrmloadtextures(void)
{
FILE *fp;
u32 i,ii,x,y;
u8 c,c0;
fp=fopen("textures.gfx","rb");
ii=0;
for (i=0; i<256; i++)
{
textureheader[i][0]=fgetc(fp);
textureheader[i][1]=... |
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Copyright (c) 2012 MOGI, Kazuhiro <<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 noti... |
/*
* Copyright (C) 2005 <NAME>.
*
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy,... |
/*
* Copyright multiple authors, see README for licence details
*/
#include <stdio.h>
#include <signal.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <X11/X.h>
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/extensions/shape.h>
#include ... |
/*************************************************************************/
/* EW-too (c) <NAME> 1994 */
/*************************************************************************/
/*
dynamic.c dynamic files (in theory)
*/
#include <sys/types.h>
#include <sys/stat.h>
#inclu... |
/*
* pipe.c -- fifo driver for scull
*
* Copyright (C) 2001 <NAME> and <NAME>
* Copyright (C) 2001 O'Reilly & Associates
*
* The source code in this file can be freely used, adapted,
* and redistributed in source or binary form, so long as an
* acknowledgment appears in derived source files. The citation
* sh... |
/*-
* Copyright (c) 2014 Microsoft Corp.
* 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 unmodified, this ... |
/**
* @author <NAME> <<EMAIL>>
*/
#include <getopt.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
#include "sstring.h"
#include "sdbus.h"
#define CMD_HELP "help"
#define CMD_PLAY "play"
#define CMD_PAUSE "pause"
#defi... |
/*****************************************************************************
All of gpsd's assumptions about time and GPS time reporting live in this file.
This is a work in progress. Currently (3.11) GPSD requires that the host
system clock be accurate to within one second. It would be nice to relax
this to "acc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.