text stringlengths 5.8k 28.2k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
struct conta
{
char nome[50];
int nc; //5 dígitos
int senha; //6 dígitos
float saldo;
int sd; //saque diario (3)
int lsd; //L imite de S aldo D iario (R$700)
}conta[3];
char s[64]; //pra colocar hora
FILE *arq; //pa... |
#include "fs.h"
#include "lib.h"
#include "multiboot.h"
#include "syscalls.h"
//#define MAX_FNAME_LENGTH 32
/* filesystem file states, parameters */
#define FS_FILE_OPEN 1
#define FS_FILE_CLOSED 0
/* filesystem directory states, parameters */
#define FS_DIR_OPEN 1
#define FS_DIR_CLOSED ... |
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include "xmt.h"
/* base */
void xm_set_bpm(xm_params *p, uint8_t bpm)
{
p->bpm = bpm;
}
void xm_set_nchan(xm_params *p, uint8_t n)
{
if(n % 2 == 0)
p->num_channels = n;
else
p->num_channels = n + 1;
}
void xm_set_sp... |
#include "math.h"
#include "stdio.h"
#define _GIVENS_SAVE_MIN 1.0e-10
#define _SQRT2 1.41421353816986083984f
#define _SVD_PRECISION 1.e-4f
#define _EPSILON 1.1920928955078125e-7f
typedef struct {
float cs;
float sn;
} givens_rotation_t;
typedef struct {
float ev1;
float ev2;
float cs;
float s... |
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... |
/*
* Copyright (C) International Business Machines Corp., 2000-2004
*
* 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... |
/* SPDX-License-Identifier: BSD 3-Clause License */
/* Copyright (c) 2022, University of Washington, Max Planck Institute for Software Systems, and The University of Texas at Austin */
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include "util/common.h"
#include "flextoe.h"
#include "internal.h"
#def... |
/*
* (COPYRIGHT) Copyright (C) 2008, 2009, The ONS Team.
* This file is part of ONS, see COPYING for details.
*/
/*
* File information:
* - Created: 22. February 2009
* - Lead-Dev: - <NAME>
* - Contributors: /
* - Last-Change: 26. June 2009
*/
/* Red-Black Tree implementation.
* The RB-Tree is... |
/* opc2c.c --- generate C simulator code from from .opc file
Copyright (C) 2005-2021 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
This file is part of the GNU simulators.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publis... |
/*
* Copyright (c) 2009-2016 <NAME> <<EMAIL>>
* Copyright (c) 2010-2012 <NAME> <<EMAIL>>
*
* Jansson is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifdef HAVE_CONFIG_H
#include <jansson_private_config.h>
#endif
#include <jansson_conf... |
/* Emacs style mode select -*- C++ -*-
*-----------------------------------------------------------------------------
*
*
* PrBoom: a Doom port merged with LxDoom and LSDLDoom
* based on BOOM, a modified and improved DOOM engine
* Copyright (C) 1999 by
* id Software, <NAME>, <NAME>, <NAME>, <NAME>, <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 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful... |
#include "convolutional_layer.h"
#include "batchnorm_layer.h"
#include "blas.h"
#include <stdio.h>
layer make_batchnorm_layer(int batch, int w, int h, int c) {
fprintf(stderr, "Batch Normalization Layer: %d x %d x %d image\n", w, h, c);
layer l = {0};
l.type = BATCHNORM;
l.batch = batch;
l.h = l.ou... |
// Copyright (c) 2014-2017 <NAME>
// All rights reserved.
//
// This software may be modified and distributed under the terms
// of the BSD license. See the License.txt file for details.
// Generated file. Do not edit.
// cef_menu_model
// CEF_EXPORT cef_menu_model_t* cef_menu_model_create(cef_menu_model_delegate_... |
/*Copyright (C) 2020 Telit Communications S.p.A. Italy - All Rights Reserved.*/
/* See LICENSE file in the project root for full license information. */
/**
@file
M2MB_main.c
@brief
The file contains the main user entry point of Appzone
@details
@description
Sample application showing how... |
/*
* Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2016, 2017, SAP SE and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the term... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2019 <NAME> (tinyusb.org)
*
* 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
... |
/*
* Copyright (c) 2012-2014, <NAME> / <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 ... |
/*-
* Copyright (c) <2010-2019>, Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/* Created 2010 by <NAME> <EMAIL> */
#include <sys/stat.h>
#include "lua_config.h"
#include "pktgen-display.h"
#include "pktgen-cmds.h"
#define MAX_COLOR_NAME_SIZE 64
#define MAX_PROMPT_STRI... |
/*
* HTTP file download
*
* Copyright (c) 2016-2017 <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, co... |
/********************************************************************
* *
* THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A BSD-STYLE SOURCE LICENS... |
/****************************************************************************
Routine: segmentation.c
Author/Copyright: <NAME>
Address: Institute of Geodesy and Photogrammetry
ETH - Hoenggerberg
CH - 8093 Zurich
Creation Date: 1988/89
Description: target recognition with ad... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Thse functions are stub functions which will get replaced with calls through
* PKCS #11.
*/
#include "pk11fun... |
/* vms-misc.c -- BFD back-end for VMS/VAX (openVMS/VAX) and
EVAX (openVMS/Alpha) files.
Copyright (C) 1996-2020 Free Software Foundation, Inc.
Miscellaneous functions.
Written by <NAME> (<EMAIL>)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Gene... |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1996, 2013 Oracle and/or its affiliates. All rights reserved.
*/
/*
* Copyright (c) 1990, 1993, 1994, 1995, 1996
* <NAME>. All rights reserved.
*/
/*
* Copyright (c) 1990, 1993, 1994, 1995
* The Regents of the University of Californ... |
// 0x07007480 - 0x07007570
static const Vtx sl_seg7_vertex_07007480[] = {
{{{ -33, 2150, 1233}, 0, { -3506, 990}, {0xff, 0xff, 0xff, 0xff}}},
{{{ 34, 2253, 1766}, 0, { 1854, 0}, {0xff, 0xff, 0xff, 0xff}}},
{{{ -33, 2253, 1233}, 0, { -3506, 0}, {0xff, 0xff, 0xff, 0xff}}},
... |
#include "util.h"
#include <stdio.h>
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <stdarg.h>
static embed_log_level_e global_log_level = EMBED_LOG_LEVEL_INFO; /**< Global log level */
void embed_log_level_set(embed_log_level_e level) { global_log_level = ... |
#include <hre/config.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#define CAESAR_GRAPH_IMPLEMENTATION 1
#include <caesar_standard.h>
#include <caesar_graph.h>
#include <hre/stringindex.h>
#include <hre/user.h>
#include <h... |
/*
* (c) Copyright 1992 by <NAME>
* (c) Sections Copyright 1998-2001 by <NAME>
* All rights reserved. The file named COPYRIGHT specifies the terms
* and conditions for redistribution.
*/
#include "config.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#include "str.h"
#include "sio.h"
#include "sconf.h"
#incl... |
/**
* @file kernel/arch/x86_64/main.c
* @brief Intel/AMD x86-64 (IA64/amd64) architecture-specific startup.
*
* Parses multiboot data, sets up GDT/IDT/TSS, initializes PML4 paging,
* and sets up PC device drivers (PS/2, port I/O, serial).
*/
#include <kernel/types.h>
#include <kernel/multiboot.h>
#include <kerne... |
/* -*- c-file-style: "linux"; -*-
Copyright (C) 1998-2001 by <NAME> <<EMAIL>>
Copyright (C) 2000-2001 by <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either versio... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is d... |
/*
* Binary encode X templates from text format.
*
* Copyright 2011 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your optio... |
/**
******************************************************************************
* @file stm32f0xx_syscfg.c
* @author MCD Application Team
* @version V1.5.0
* @date 05-December-2014
* @brief This file provides firmware functions to manage the following
* functionalities of the ... |
/*
* vicii-snapshot.c - Snapshot functionality for the MOS 6569 (VIC-II)
* emulation.
*
* Written by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or m... |
/*
* Copyright (c) 2014 DeNA Co., Ltd.
*
* 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, publ... |
/*
* Copyright 2019 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
/*
* Copyright (C) 2004-2010 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This pr... |
/* -*- C -*- */
/*
* Copyright (c) 2013-2020 Seagate Technology LLC and/or its Affiliates
*
* 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... |
/*
Copyright (C) 2019 Intel Corporation
SPDX-License-Identifier: Apache-2.0
Mavlink to Open Drone ID C Library
Maintainer:
<NAME>
<EMAIL>
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <mav2odid.h>
#define MAVLINK_SYSTEM_ID 1
#define MAVLINK_COMPONENT_ID 1
static void print_mavlin... |
#define HEIRO_MAX_LEN 1024
#define HEIRO_GLYPH_VERTS 6
static GLuint glyph_vao;
static GLuint glyph_vbo;
#define HEIRO_CODEPOINT_FIRST (u32)' '
#define HEIRO_CODEPOINT_LAST (u32)'~'
static struct rect glyph_max_extents;
// TODO: Use hash table instead
static struct ric_heiro_glyph glyphs[(HEIRO_CODEPOINT_LAST + 1) ... |
// SPDX-License-Identifier: GPL-2.0
/*
* Shared Memory Communications over RDMA (SMC-R) and RoCE
*
* Manage RMBE
* copy new RMBE data into user space
*
* Copyright IBM Corp. 2016
*
* Author(s): <NAME> <<EMAIL>>
*/
#include <linux/net.h>
#include <linux/rcupdate.h>
#include <linux/sched/signal.h>
#include <n... |
/*
Onion HTTP server library
Copyright (C) 2010-2016 <NAME> and others
This library is free software; you can redistribute it and/or
modify it under the terms of, at your choice:
a. the Apache License Version 2.0.
b. the GNU General Public License as published by the
Free Software Foundation; either version ... |
/*
HDTOOLS.C
contains Tools menu routines:
DebugMoveObj
DrawTree
DrawBranch
LoadSetupFile
SaveSetupFile
SetupMenu
SetupColors
PrintSampleText
SetupFilename
for the Debugger build of the Hugo Engine
Copyright (c) 1995-2009 by <NAME>
*/
#include "heheader.h"
#include "hdheader.h"
/* Fun... |
#include "config.h"
/*
Realaudio demuxer for MPlayer
(c) 2003, 2005 <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "config.h"
#include "mp_msg.h"
#include "help_mp.h"
#include "stream/stream.h"
#include "demuxer.h"
#include "stheader.h"
#define FOURCC_DOTRA mmioFOURCC('.','r','... |
/*
* Copyright (c) 2018, Commonwealth Scientific and Industrial Research
* Organisation (CSIRO)
* All rights reserved.
*/
/* Includes -------------------------------------------------*/
#include "memory_operations.h"
#include "rtc.h"
/* Private Defines ------------------------------------------*/
// clang-format ... |
/*
* Change history
* $Log: defs.h,v $
* Revision 3.0 93/09/24 17:54:36 Martin_Apel
* New feature: Added extra 68040 FPU opcodes
*
* Revision 2.4 93/07/18 22:57:05 Martin_Apel
* *** empty log message ***
*
* Revision 2.3 93/07/11 21:40:10 Martin_Apel
* Major mod.: Jump table support tested and chan... |
/*******************************************************************
APO semestral project by <NAME>
(C) Copyright 2017 - 2017 by <NAME>
e-mail: <EMAIL>
license: MIT
*******************************************************************/
#include <sys/mman.h>
#include <stdio.h>
#include <stdlib.h>
#... |
/*----------------------------------------------------------------------------*/
/* Xymon monitor library. */
/* */
/* This tool generates the report status log for a single status, with the ... |
/**
* \file state.c
* \brief State-related features.
*
* \author k.edeline
* \version 0.1
*/
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include "state.h"
#include "debug.h"
#include "udptun.h"
#include "de... |
#include "pthread_pool.h"
/*
*child_work:the code exec in child thread
*ptr: the ds of thread_node of current thread.
*return :nothing.void * just avoid warning.
*/
void *
child_work(void *ptr) {
THREAD_NODE *self = (THREAD_NODE *) ptr;
/*modify the tid attribute the first time exec */
pthread_mutex_lock(&... |
/* SPDX-License-Identifier: MIT */
/*
* Author: <NAME> <<EMAIL>>
* Date: 2016
*/
#include <stdint.h>
#include <string.h>
#include <spi.h>
#include <tps65381.h>
#include <math.h>
#define TPS_STAT (BIT(1) | BIT(3))
#define TPS_STAT_CHECK(x) (((((x) >> 4) & 0xF) == TPS_STAT) && (((x) & 0x1) == 0x0))
#define TPS_SW_LO... |
/*
* oregon.c
*
* Created on: 27 nov. 2018
* Author: francois
*/
#include "LPC13xx.h"
#include "lpc_types.h"
#include "timer32.h"
#include "gpio.h"
#include "usb.h"
#include "cdcuser.h"
#include "stdio.h"
#include "usb.h"
#include "usbhw.h"
#include "cdcuser.h"
#define OUTPUT_MESSAGE_LENG... |
/*
* Copyright (c) 2014-2018 <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.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdbool.h>
#include <string.h>
#inclu... |
/*
FreeRTOS V8.2.3 - Copyright (C) 2015 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the... |
#define _POSIX_C_SOURCE 199309L
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <pthread.h>
#include <czmq.h>
#include <bsd/stdlib.h>
#include <math.h>
#include <time.h>
#include <errno.h>
#include <string.h>
#include "power_client.h"
#include "ctx.h"
#include "rapl.h"
#define DEFAULT_FREQUENCY 1... |
/*
* Copyright 1997 through 2004 by <NAME> (TSI @ UQV), <EMAIL>
*
* 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 t... |
/*****************************************************************************
pamtojpeg2k
******************************************************************************
Convert a PNM image to JPEG-2000 code stream image
By <NAME>, San Jose CA 2002.10.26
***************************... |
/* Shuffling or generating random sequences.
*
* SRE, Wed Jan 16 15:30:05 2008 [UA5230 to New York]
* from squid's shuffle (1995)
*/
#include "esl_config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "easel.h"
#include "esl_composition.h"
#include "esl_getopts.h"
#include "esl_msa.h"
#in... |
#include "SPM.h"
double analog_channels[32] = {0};
double strain_channels[24] = {0};
max31855_data thermocouple_channels[4] = {0};
SPIConn *analog_connections[2] = {0};
SPIConn *strain_connections[2] = {0};
SPIConn *thermocouple_connections[4] = {0};
uint16_t digital_channels = 0;
SPIConn *digital_connection = {0};
vo... |
/*! \file bcma_cfgdb_file.c
*
* Configuration data manager for file I/O operation.
*/
/*
* Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to
* Broadcom Limited and/or its subsidiaries.
*
* Broadcom Switch Software License
*
* This license governs the use of the accompanying Broadcom so... |
#include "wfqueue.h"
#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include "primitives.h"
#define N WFQUEUE_NODE_SIZE
#define BOT ((void *)0)
#define TOP ((void *)-1)
#define MAX_GARBAGE(n) (2 * n)
#ifndef MAX_SPIN
#define MAX_SPIN 100
#endif
#ifndef MAX_PATIENCE
#define MAX_PATIENCE 10
#endif
type... |
/************************************************************************************
Copyright (C) 2014 MariaDB Corporation Ab
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
... |
//
// RKRawDataRecorder.c
// RadarKit
//
// Created by <NAME> on 3/18/15.
// Copyright (c) 2015 <NAME>. All rights reserved.
//
#include <RadarKit/RKRawDataRecorder.h>
// Internal Functions
static void RKRawDataRecorderUpdateStatusString(RKRawDataRecorder *);
static void *pulseRecorder(void *);
#pragma mark - H... |
/*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2016 Intel Corporation
*
* Portions (search) copyright:
* Copyright (C) 2004 Dallas Semiconductor Corporation, All Rights Reserved.
*
* For the crc8 algorithm:
* Copyright (c) 2002 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining
*... |
/*
* SHPCHPRM Legacy: PHP Resource Manager for Non-ACPI/Legacy platform
*
* Copyright (C) 1995,2001 Compaq Computer Corporation
* Copyright (C) 2001 <NAME> (<EMAIL>)
* Copyright (C) 2001 IBM Corp.
* Copyright (C) 2003-2004 Intel Corporation
*
* All rights reserved.
*
* This program is free software; you can r... |
/*****************************************************************************
* writegra.c
*
* DESCRIPTION
* This file contains all the routines used to write the grid out to a
* binary format that GrADS can use. Currently this means adding a .ctl
* file which allows GrADS software to use the .flt file.
*
... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
// Struct of a single Sample
struct sample {
// An array of length n
// Where n is the number of channels
int *audioData;
// Pointer to the next sample,... |
/* nailboard.c: NAILBOARD IMPLEMENTATION
*
* $Id$
* Copyright (c) 2014-2020 Ravenbrook Limited. See end of file for license.
*
* .sources: <design/nailboard>.
*/
#include "bt.h"
#include "check.h"
#include "mpm.h"
#include "nailboard.h"
SRCID(nailboard, "$Id$");
/* Log2 of scale factor between levels. <desig... |
/* Copyright 1995 by Abacus Research and
* Development, Inc. All rights reserved.
*/
#if !defined (OMIT_RCSID_STRINGS)
char ROMlib_rcsid_xdata[] =
"$Id: xdata.c 87 2005-05-25 01:57:33Z ctm $";
#endif
#include "rsys/common.h"
#include "MemoryMgr.h"
#include "rsys/xdata.h"
#include "rsys/xdblt.h"
#include "rsys/t... |
/*
* Soubor: proj1.c
* Autor: <NAME>, <EMAIL>
* Projekt: IZP c. 1 - Ciselne soustavy
* Popis: Program prevadi zadane cislo mezi zadanymi ciselnymi soustavami.
*/
//
// TODO: unchecked decompiled output
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define NDEBUG 1
#include <assert.h>
/**
*... |
#include "rc522.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <sys/time.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "freertos/queue.h"
#include "driver/gpio.h"
#include "nvs_flash.h"
#include "esp_netif.h"
#includ... |
/* Driver for the Infinite Noise Multiplier USB stick */
// Required to include clock_gettime
#define _POSIX_C_SOURCE 200809L
#define INFNOISE_VENDOR_ID 0x0403
#define INFNOISE_PRODUCT_ID 0x6015
#include "infnoise.h"
#include "KeccakF-1600-interface.h"
#include "ftdi.h"
#include <getopt.h>
#include <stdbool.h>
#incl... |
#include "awral.h"
#include <tgmath.h>
#include <stdio.h>
#include <stdlib.h>
/* Overall comment: wrapping means that some changes to the code were necessary */
const int HYPS_LEN = 20; // +++ Could be supplied as input value
const int NUM_CELLS = 1; // +++ LIS can only take one tile at a time
void copycells(const do... |
/*##################################################################
# #
# This is the source code of the python wrapper for the #
# "Differential-Algebraic System Solver in C" by <NAME> #
# ... |
/* blinkenlight_panels.c: Blinkenlight API data structs panellist- panel - control
Copyright (c) 2012-2016, <NAME>
<EMAIL>, www.retrocmp.com
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 ... |
/*
*********************************************************************************************************
* uC/OS-II
* The Real-Time Kernel (by <NAME>)
*
* LINUX PORT
*
* ... |
/*
This is the core graphics library for all our displays, providing a common
set of graphics primitives (points, lines, circles, etc.). It needs to be
paired with a hardware-specific library for each display device we carry
(to handle the lower-level functions).
Adafruit invests time and resources providing th... |
/* $NetBSD: int.c,v 1.6.2.1 2004/07/23 07:03:57 tron Exp $ */
/*
* Copyright (c) 2004 <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 reta... |
/*
* Copyright (c) 1999 <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 ... |
/*
Copyright (C) The Weather Channel, Inc. 2002. All Rights Reserved.
The Weather Channel (TM) funded Tungsten Graphics to develop the
initial release of the Radeon 8500 driver under the XFree86 license.
This notice must be preserved.
Permission is hereby granted, free of charge, to any person obtaining
a copy of t... |
/**
* @file tricolor_led_driver.c
*
* Copyright (c) 2016 Parrot S.A.
* 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
*... |
//-----------------------------------------------------------------------------
// \file rk6748.c
// \brief implementation of initialization functions for tms320c6748.
//
//-----------------------------------------------------------------------------
#include "types.h"
#include "rk6748.h"
#include <stdi... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <pthread.h>
#include "trie.h"
#include "parser.h"
#include "logger.h"
const int STR_SAVING_SIZE = 8192;
const char MSG_SEP = '\n';
const char HEAD_SEP = ':';
const char BODY_SEP = ',';
const char MTD_SEP = '|';
const char SAMPLE_RA... |
/*
* 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 <assert.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <time.h>
#include <signal.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <sys/socket.h>
#inc... |
/*****************************************************************************
*
* Original Author: <NAME>
* Creation Date:
* Description:
*
* Copyright (C) 2018 <NAME>. All Rights Reserved.
* Unauthorized reproduction, modification, distribution, transmission,
* republication, display or performance are st... |
/* t-ed25519.c - Check the Ed25519 crypto
* Copyright (C) 2013 g10 Code GmbH
*
* This file is part of Libgcrypt.
*
* Libgcrypt 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 o... |
/* Play mp3 file by audio pipeline
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
/*
F... |
/*
* Copyright (c) 2018-2020 <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 ... |
/***************************************************************************
* __________ __ ___
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> >... |
#define _GNU_SOURCE
#define __USE_GNU
#include "mod.h"
#include <dlfcn.h>
#include <assert.h>
#include <sys/socket.h>
#include <sys/epoll.h>
#include <unistd.h> //read write
#include <mtcp_api.h>
#include "debug.h"
#include <stdlib.h>
#define MAX_FLOW_NUM (10000)
#define RCVBUF_SIZE (2*1024)
#define SNDBUF_SIZE (8... |
/**
******************************************************************************
* File Name : main.c
* Date : 29/04/2015 21:52:52
* Description : Main program body
******************************************************************************
*
* COPYRIGHT(c) 2015 S... |
// 0x0700BBC8 - 0x0700BCA8
static const Vtx bitdw_seg7_vertex_0700BBC8[] = {
{{{ -716, 256, 307}, 0, { 1948, 0}, {0x65, 0xff, 0xb2, 0xff}}},
{{{ -716, 256, -306}, 0, { 32, 0}, {0x65, 0xff, 0xb2, 0xff}}},
{{{ -1023, 256, -306}, 0, { 32, 926}, {0x65, 0xff, 0xb2, 0xff}}},
... |
/****************************************************************************
* Copyright (c) 2014, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source cod... |
/**
* Scalar multiplication on twisted Hessian curves with a = 1.
*
* a*X^3 + Y^3 + Z^3 = d*X Y Z.
*
* To guarantee a correct output, the base point should be of an order prime to 3.
* In addition, the scalar must be smaller than the order of the base point.
* The function ec_fp_smul_256h() is made pu... |
/* author: netcan
* date: 2019/09/13 18:04
* @shanghai
*/
#include "lisp.h"
#include <mpc.h>
#include <stdio.h>
#include <stdlib.h>
int lispc_runing = 1;
static const char* ltype_name[] = {
[LVAL_ERR] = "Error",
[LVAL_NUM] = "Number",
[LVAL_SYM] = "Symbol",
[LVAL_FUNC] = "Function",
[LVA... |
/*
* Copyright 2016 - 2019 NXP
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list
* of conditi... |
/**
*
* TODO: description
*
* This file is a part of USB SCSI CAM for Haiku.
* May be used under terms of the MIT License
*
* Author(s):
* <NAME> <<EMAIL>>
*
*
*/
/** bulk-only protocol specific implementation */
/* References:
* USB Mass Storage Class specifications:
* http://www.usb.org/developers/data... |
#define UNPAGED 1 /* for proper kmain() prototype */
#include "kernel/kernel.h"
#include <assert.h>
#include <stdlib.h>
#include <minix/minlib.h>
#include <minix/const.h>
#include <minix/type.h>
#include <minix/board.h>
#include <minix/com.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/reboot.h>
#inclu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.