text stringlengths 3.08k 10.5k |
|---|
/**
* Copyright (c) 2013-2015 <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, publis... |
/*
*
***** BEGIN LICENSE BLOCK *****
Copyright (C) 2009-2016 <NAME> and <NAME>
Copyright (C) 2017-2019 <NAME>
Copyright (C) 2020-2021 <NAME> and Rubicon Communications, LLC(Netgate)
This file is part of CLIXON.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file ... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... |
/*
* addi_apci_16xx.c
* Copyright (C) 2004,2005 ADDI-DATA GmbH for the source code of this module.
* Project manager: <NAME>
*
* ADDI-DATA GmbH
* Dieselstrasse 3
* D-77833 Ottersweier
* Tel: +19(0)7223/9493-0
* Fax: +49(0)7223/9493-92
* http://www.addi-data.com
* <EMAIL>
*
* This program is free software;... |
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/flash_ctrl.h"
#include "flash_ctrl_regs.h" // Generated.
#include "hw/top_earlgrey/sw/autogen/top_earlgrey.h"
#include "sw/device/lib/common.h"
... |
/*
* Copyright 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
* ... |
/*-
* 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"
/*
* __rec_dictionary_skip_search --
* Search a dictionary skiplist.
*/
static WT_REC_DICTIONARY *
__rec_di... |
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/times.h>
/*
I sistemi unix-like hanno sempre mantenuto due diverse modalita' di gestione del
tempo, Calendar Time[1] e Process Time; della prima, ci siamo gia' occupati, e
riguarda ad esempio le date di modi... |
/* $OpenBSD: joy.c,v 1.15 2015/02/10 21:58:16 miod Exp $ */
/* $NetBSD: joy.c,v 1.3 1996/05/05 19:46:15 christos Exp $ */
/*-
* Copyright (c) 1995 <NAME>
* All rights reserved.
*
* Ported to NetBSD by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are per... |
/*
SDL - Simple DirectMedia Layer
Copyright (C) 1997-2010 <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 option) ... |
/* LPC1347 IAP entry address */
#define IAP_LOCATION 0x1fff1ff1
#define last_sector_flash 0x00038000 //0x0000F000
#define IAP_LAST_SECTOR 28 /* Page number 896 - 1023, 0x00038000 - 0x0003FFFF */
#define IAP_NUM_BYTES_TO_WRITE 256
#define WRITECOUNT (IAP_NUM_BYTES_TO_WRITE / 4) /* when data array is in uint32_t */
... |
/* Copyright (c) <NAME>, 1994. */
/**
* (c) Copyright 1993, 1994, Silicon Graphics, Inc.
* ALL RIGHTS RESERVED
* Permission to use, copy, modify, and distribute this software for
* any purpose and without fee is hereby granted, provided that the above
* copyright notice appear in all copies and that bo... |
/*
weather_pw.c - Weather data retrieval from MeteoStation
at Faculty of Physics, Warsaw University of Technology
This file is part of the ESP32 Everest Run project
https://github.com/krzychb/esp32-everest-run
Copyright (c) 2016 <NAME> <<EMAIL>>
This work is licensed under the Apache License, Ver... |
#include "tool.h"
//[Error] [13:01:22] [tid 6711] [main.c:23 Set_nonblocking()] Set_nonblocking
void print_log(enum log_level level,const char * func,char * file,int line,char * format,...)
{
va_list ap;
va_start(ap,format);
char msg[1024];
vsnprintf(msg,1024,format,ap);
time_t t;
time(&t); ... |
/* checkSgdSync - Make sure that genes and sequence are in sync for
* SGD yeast database. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "dnaseq.h"
#include "fa.h"
#include "portable.h"
static char const rcsid[] = "$Id: checkSgdSync.c,v 1.3 2009/02/02 19:41:44 hiram Exp ... |
#include <stdint.h>
#include "i2s_lowlevel.h"
#include "stm32f4xx.h"
#define CS4270_CODEC_ADDR ((uint8_t)0x90)
static uint16_t all_codec_reg[8];
void i2s_gpio_disable(void)
{
RCC->AHB1ENR &= ~(RCC_AHB1ENR_GPIOBEN);
while ((RCC->AHB1ENR & (RCC_AHB1ENR_GPIOBEN)));
}
void i2s_port_setup(uint32_t sr)
{
/*... |
/*
* Copyright 2014 Advanced Micro Devices, Inc.
*
* 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, m... |
/* readconfig.c -- base routine to read nmh configuration files
* -- such as nmh profile, context file, or mhn.defaults.
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#inclu... |
#include "wyznacznik_n.h"
int (*my_printf) (const char *, ...);
void *my_malloc(size_t sz) {
void *tmp = malloc(sz);
if (tmp != NULL)
return tmp;
fprintf(stderr, "Malloc failed (%ld bytes): %s. Aborting.\n", sz,
strerror(errno));
exit(EXIT_FAILURE);
}
void *my_calloc(size_t n, size_t sz) {
void *tmp = callo... |
#include "comms.h"
#include <string.h> /* for memset() */
#include <unistd.h> /* for close() */
#include <arpa/inet.h> /* for sockaddr_in and inet_addr() */
#include <sys/socket.h> /* for socket(), connect(), send(), and- recv() */
#include <ifaddrs.h>
#include <stdlib.h>
#include "utils.h"
#include "genmsg... |
/*
* rtc-dm355evm.c - access battery-backed counter in MSP430 firmware
*
* Copyright (c) 2008 by <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 Licens... |
/**
* Copyright (c) 2018 - 2019, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright no... |
/* idzr_rid.f -- translated by f2c (version 20100827).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- in that order, at the end ... |
/* $NetBSD: hat.c,v 1.1 2002/02/10 01:58:03 thorpej Exp $ */
/*
* Copyright 1997
* Digital Equipment Corporation. All rights reserved.
*
* This software is furnished under license and may be used and
* copied only in accordance with the following terms and conditions.
* Subject to these conditions, you may downl... |
/* 31 march 2014 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* only care about versions of GLib/GTK+ I'm targeting */
#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_32
#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_32
#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_4
#define GDK_VERSION_MAX_ALLOWE... |
/* shrink with a box filter
*
* 30/10/15
* - from shrink.c (now renamed as shrink2.c)
* - split to h and v shrinks for a large memory saving
* - now handles complex
*/
/*
This file is part of VIPS.
VIPS is free software; you can redistribute it and/or modify
it under the terms of the GNU Les... |
/*
* Open Surge Engine
* credits.c - credits scene
* Copyright (C) 2009-2012 <NAME> <alemartf(at)gmail(dot)com>
* http://opensnc.sourceforge.net
*
* 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... |
/* cert.c - DNS CERT code
* Copyright (C) 2005, 2006 Free Software Foundation, Inc.
*
* This file is part of GNUPG.
*
* GNUPG 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 Lice... |
#include "FreeRTOS.h"
#include "task.h"
#include "tick.h"
#include "pin.h"
#include "macro.h"
#include <libprintf/printf.h>
#include <libopencm3/cm3/cortex.h>
#include <libopencm3/cm3/nvic.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/flash.h>
#include <libopencm3/stm32/pwr.h>
#include <libopencm3/s... |
/*
* linux/drivers/media/video/s5p-mfc/s5p_mfc_cmd.c
*
* Copyright (C) 2011 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; eit... |
/*############################################################################
# Copyright 2017-2019 Intel Corporation
#
# 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
#
# ht... |
/*
* Copyright 2014-2021 Real Logic Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
/*
* Functions for general purpose USB device access in Microsoft Windows, by
* dynamically loading & Linking WinUSB or libusbK. For libusbK, the native
* API is used, but note that libusbK also provides an implementation of the
* WinUSB API.
*
* Copyright 2020 CompuPhase
*
* Licensed under the Apache L... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include "3.h"
int main(int argc, char **argv) {
char *solution_one, *solution_two;
double time_elapsed_one, time_elapsed_two;
int input;
input = read_input();
start_timer();
solution_one = part_one(input);
time_elapsed_one = sto... |
/* $NetBSD: vga_subr.c,v 1.8 2001/12/13 08:34:55 junyoung Exp $ */
/*
* Copyright (c) 1998
* <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code mu... |
/*
* MIT License
*
* Copyright (c) 2022 <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, m... |
#include <time.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <zookeeper.h>
#include <stdio.h>
/* ZooKeeper Znode Data Length (1MB, the max supported) */
#define ZDATALEN 1024 * 1024
static char *host_port;
static char... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "avltree.h"
/***********************************************************************
*** Create and manage AVL trees, given pointers to the data and a comparator
**********************************************************************/
/************... |
/*
* dac8532_set.c:
* Very simple program to write the DAC8532 serial port. Expects
* the port to be looped back to itself
* <NAME> 04/2018
/*
define from bcm2835.h define from Board
DVK511
3.3V | | 5V -> 3.3V | | 5V
RPI_V2_GPIO_... |
/**************************************************************************//**
* @file main.c
* @version V1.00
* @brief This sample shows how to make an application booting from APROM
* with a sub-routine resided on SPIM flash.
*
* @copyright (C) 2021 Nuvoton Technology Corp. All rights reserve... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "unhuff.h"
#define QUEUE 0
#define STACK 1
#define SORTED 2
#define ENCODER 0
#define DECODER 1
//Function reads header from compressed file to recreate the tree used for compression/decompression
TreeNode * readHeader(FILE * infptr)
{
int done = 0;... |
/*
* Copyright 2012 The Luvit Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
/* $Id: vline.c,v 1.4 2007/05/18 20:46:37 pekberg Exp $
******************************************************************************
Graphics library for GGI.
Copyright (C) 1995 <NAME> [<EMAIL>]
Copyright (C) 1997 <NAME> [<EMAIL>]
Copyright (C) 1999 <NAME> [<EMAIL>]
Copyright (C) 2007 <NAME> [<EMAIL>... |
/* A N I M _ K E Y R E A D . C
* BRL-CAD
*
* Copyright (c) 1993-2016 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2... |
#include "process.h"
struct Process {
HANDLE pipe_read, pipe_write;
HANDLE job;
PROCESS_INFORMATION process_info;
char error[200];
};
static void get_last_error_str(char *out, size_t out_sz) {
size_t size = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
NULL, GetLastError(), ... |
/* Copyright 2000-2001 ActiveState
*/
/* #define NO_PERL_LOCK /**/
/* #define LOCK_DEBUG /**/
#if !defined(NO_PERL_LOCK) && defined(WITH_THREAD)
#define DO_THREAD /* a simpler macro to test for in files that include this */
#endif
#ifdef LOCK_DEBUG
#ifdef DO_THREAD
/* XXX these test are not valid in a multi-thr... |
/*
* ObjectivelyMVC: Object oriented MVC framework for OpenGL, SDL2 and GNU C.
* Copyright (C) 2014 <NAME> <<EMAIL>>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permissi... |
/*
* Copyright (c) 2012,2013 Intel Corporation
* Author: <NAME>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this paragraph in its entirety, (2)
* distributions including b... |
/* regCompanionEnhProCellSpecificPairs - Select enh/pro pairs that are seen in a given cell
* lines. */
/* Copyright (C) 2011 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "opti... |
#include<stdio.h>
#include<string.h>
#include<SDL.h>
#include<SDL_image.h>
#include "export.h"
#define WIDTH 32
#define HEIGHT 43
struct Color {
unsigned char y;
unsigned char x;
unsigned char patt;
unsigned char color;
} color[64];
int nextColor;
extern SDL_Surface *spriteSurface;
int spriteFrame;
int binaryM... |
/*
* 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... |
/****************************************************************************
* Copyright 2017 <NAME> (Email:<EMAIL>) *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not use this file except i... |
/*
* Modifications Copyright (c) Microsoft. All rights reserved.
*
* Original code Copyright (c), NXP Semiconductors
*/
#pragma once
#include <phFriNfc.h>
#include <phNfcStatus.h>
#include <phNfcTypes.h>
#include <phNfcHalTypes2.h>
#include <phFriNfc_SmtCrdFmt.h>
#include <phFriNfc_NdefMap.h>
#... |
#include <pthread.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#define MAX_NTHREADS 20000
#define MIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )
#define MAX( x, y ) ( ( ( x ) > ( y ) ) ? ( x ) : ( y ) )
#define SIGN( x ) ( ( ( x ) > 0.0 ) ? 1.0 : ( ( ( x ) < 0.0 ) ? -1.0 : 0.0 ... |
/*
* Copyright (c) 2020 Pantacor 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, publi... |
#include "Application.h"
#include "nRF24L01.h"
#include "WAIT1.h"
#include "CE.h"
#define IS_SENDER 0 /* 1 if we are the sender, 0 if we are the receiver */
#define PAYLOAD_SIZE 16 /* number of payload bytes, 0 to 32 bytes */
#define CHANNEL_NO 0x02 /* communication channel */
/* macros to configure device ei... |
/*
* Purpose: Test NULL behavior in order to fix problems with PHP and NULLs
* PHP use dbdata to get data
*/
#include "common.h"
#include <unistd.h>
static char software_version[] = "$Id: null.c,v 1.6 2007/12/14 10:23:38 freddy77 Exp $";
static void *no_unused_var_warn[] = { software_version, no_unused_var_warn ... |
/*
* Copyright (C) Texas Instruments - http://www.ti.com/
*
* 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 option) any later versi... |
/**
* @file main.c
*
* @brief Contains the main "operating system" for the sensor node.
* At a recurring interval, this program:
* - "wakes" the board from sleep mode,
* - takes measurements using the attached sensors,
* - connects to the cellular network,
* - sends sensor data to a web server,
* - updates dev... |
//
// mproc.c
// miditrick
//
// Created by <NAME> on 23.05.21.
//
#include "mproc.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
static void _ding(MIDIO *out, int note)
{
MIDIO_MSG msg = {
.port = -1,
.size = 3,
... |
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <cmockery.h>
#include <fam.h>
#include <fam.c>
#include <fam_parse.c>
#include "mock.h"
/**
* Tests that iids are correctly parsed.
*/
void
test_parse_iid(void **state)
{
const char *... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <openssl/evp.h>
#include <openssl/err.h>
#include <openssl/aes.h>
#include <openssl/rand.h>
#define ERR_EVP_CIPHER_INIT -1
#define ERR_EVP_CIPHER_UPDATE -2
#define ERR_EVP_CIPHER_FINAL -3
#define ERR_EVP_CTX_NEW -4
#define AES_256_... |
/*-
* Copyright (c) 2015-2016 <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 ... |
/*
* Arm SCP/MCP Software
* Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* Description:
* TC1 System Support.
*/
#include "clock_soc.h"
#include "scp_pik.h"
#include "tc1_core.h"
#include "tc1_scmi.h"
#include "tc1_sds.h"
#include <mod_... |
/*-
* Copyright (c) 2008 <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... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/**
* @file font.c
* @brief CGROM and font loader
*
* @author $Author: yui $
* @date $Date: 2011/02/23 10:11:44 $
*/
#include "compiler.h"
#include "strres.h"
#include "dosio.h"
#include "cpucore.h"
#include "font.h"
#include "fontdata.h"
#include "fontmake.h"
#ifndef FONTMEMORYBIND
UINT8 __font[0x84000];
#end... |
#include <X11/Xlib.h>
#include <X11/Xatom.h>
SV* getfocusedwindowname() {
Display *display;
Window focus;
int revert;
display = XOpenDisplay(NULL);
XGetInputFocus(display, &focus, &revert);
// XGetInputFocus is weird. see https://tronche.com/gui/x/xlib/input/XGetInputFocus.html
if ( focus ... |
#include "dogstatsd_client/client.h"
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
/* These functions are inline, but need to go in a translation unit somewhere
* to avoid certain linker errors. The extern inline handles this.
*/
extern inline dogstatsd_client dogstatsd_client_d... |
///////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT NOTICE
//
// The following open source license statement does not apply to any
// entity in the Exception List published by FMSoft.
//
// For more information, please visit:
//
// https://www.fmsoft.... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "meuAlocador.h"
/*================================== HEADERS =================================*/
// extern void _iniciaAlocador();
// extern void _finalizaAlocador();
// extern int _liberaMem(void *bloco);
// extern void *_alocaM... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/*
A simple program to provide intro help to the icommands
*/
#include "rodsClient.h"
#include "parseCommandLine.h"
char *icmds[]={
"iadmin", "ibun", "icd",... |
/*
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <limits.h>
#include <math.h>
#include "block.h"
#define showc(ch) printf("%s : `%c`\n", #ch, ch)
#define shows(text) printf("%s : `%s`\n", #text, text)
#define showl(value) printf("%s : %zu\n", #value, (size_t)value)
#define showd(value) printf... |
/** @file
* Copyright (c) 2016-2018, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... |
/* $OpenBSD: umap_subr.c,v 1.16 2003/06/02 23:28:11 millert Exp $ */
/* $NetBSD: umap_subr.c,v 1.19 2001/11/15 09:48:23 lukem Exp $ */
/*
* Copyright (c) 1999 National Aeronautics & Space Administration
* All rights reserved.
*
* This software was written by <NAME> of the
* Numerical Aerospace Simulation Facility... |
/*
* Copyright 1996-2021 Cyberbotics 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 applicable law or ... |
/* Copyright 2013-2015 IBM Corp.
*
* 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 ... |
//
// BEAssetsManager.c
// Sapindus
//
// Created by <NAME> on 16/4/30.
// Copyright © 2016年 oreisoft. All rights reserved.
//
#ifdef __APPLE__
#include <CoreFoundation/CoreFoundation.h>
#include <pthread.h>
#endif
#include "BEAssetsManager.h"
#include "MCString.h"
#ifdef __ANDROID__
static AAssetManager* assetMan... |
#include <u.h>
#include <libc.h>
#include <draw.h>
/*
* int getcmap(int id, char *file, unsigned char *buf)
* Read a colormap from the given file into the buffer.
* Returns 1 on success, 0 otherwise.
* Goes to unglaublich length to figure out what the file name means:
* If the name is "screen" or "display" or "vg... |
/* $NetBSD: hack.o_init.c,v 1.5 1997/10/19 16:58:37 christos Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
*/
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: hack.o_init.c,v 1.5 1997/10/19 16:58:37 christos Exp $");
#endif /* not lint */
#include <string.h>
#include "hack.h"... |
#include "sa.h"
static float T0; /* initial temperature */
static float ALPHA; /* T[n+1] = ALPHA * T[n] ; ALPHA < 1 */
static int MAXTIME; /* annealing stops after at most MAXTIME */
static float BETA; /* M[n]= time spent at temperature T[n] ... |
/* Copyright 2016 IBM Corp.
*
* 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 writi... |
/*
* Copyright (C) 2018 bzt (<EMAIL>)
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, pu... |
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
#include <stdbool.h>
#include <stdint.h>
#include <sys/types.h>
#include "copy.h"
#include "sd-id128.h"
#include "time-util.h"
typedef struct BtrfsSubvolInfo
{
uint64_t subvol_id;
usec_t otime;
sd_id128_t uuid;
sd_id128_t parent_uuid;
bool r... |
/**
@file main.c
@brief Procesador de Audio Digital
@author <NAME>
@date 05/05/2018
*/
/*==================[inclusiones]============================================*/
#include "sapi.h" // sAPI lib
#include "sapi_peripheral_map.h"
#include "ADC_hardwareProxy.h"
#include "ADC_proxyClient.h"
#include "DAC... |
//----------------------------------------------------------------------------//
//|
//| MachOKit - A Lightweight Mach-O Parsing Library
//| _mach_lcstr.c
//|
//| D.V.
//| Copyright (c) 2014-2015 D.V. All rights reserved.
//|
//| Permission is hereby granted, free of char... |
#include <esp_log.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <esp_system.h>
#include <esp_spi_flash.h>
#include <driver/i2c.h>
#include <esp_err.h>
#include <sdkconfig.h>
#include <TRB_INA219.h>
const i2c_port_t port = I2C_NUM_1;
void
halt()
{
ESP_LOGE(__func__, "Terminating. Please reset... |
/*
* Copyright © 2021 <NAME>
* Distributed under the terms of the MIT license.
*/
#include <cxml/cxml.h>
/*
* foo.xml
*
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bar SYSTEM "example.dtd">
<bar>
<ball>It's a foo-bar!</ball>
<ball a="abcd">It's foo-bar!</ball>
<duck a="xyz" b="123">This is a duc... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Atheros PHY drivers
*
* Copyright 2011, 2013 Freescale Semiconductor, Inc.
* author <NAME>
*/
#include <common.h>
#include <phy.h>
#define AR803x_PHY_DEBUG_ADDR_REG 0x1d
#define AR803x_PHY_DEBUG_DATA_REG 0x1e
#define AR803x_DEBUG_REG_5 0x5
#define AR803x_RGMII_TX_CLK_DL... |
#include <stdio.h>
#include <CL/opencl.h>
#include "./cl_utils.h"
// _
// |_) _ | _ ._ ._ | _. _|_ _
// |_) (_) | (/_ | |_) | (_| |_ (/_
// |
/* - - - -
IO
- - - - */
int read_from_binary(unsigned char **output, size_t *size, const char *name) {
FILE *fp = fopen(name, "rb");
if (!fp) {
... |
/*
* Copyright (C) 2015 <NAME> <<EMAIL>>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @{
*
* @file
* @brief GNRC implementation of @ref net_sock_ip
*
* @author <NAME>... |
#include <stdlib.h>
#include <stdarg.h>
#include <strings.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#ifdef ANDROID
#include <android/log.h>
#endif
#include "logger.h"
#include "monodroid.h"
#include "monodroid-glue.h"
#include "debug.h"
#include "util.h"
#define DO_LOG(_level_,_category_,_format... |
/**************************************************************************/
/*!
@file AdaCallback.cpp
@author hathach (tinyusb.org)
@section LICENSE
Software License Agreement (BSD License)
Copyright (c) 2018, Adafruit Industries (adafruit.com)
All rights reserved.
Redistribution ... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gmp.h>
#include <wchar.h>
#include "vcypher.h"
char *vcypher(const wchar_t *input) {
if (input == NULL || wcslen(input) == 0) {
return "";
}
const size_t size = wcslen(input);
char *binaries[size];
size... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <poll.h>
#include <fcntl.h>
#include <string.h>
#include <linux/limits.h>
#include <sys/wait.h>
#define GPIO_DIR "/sys/class/gpio"
#define STR_MAX 16
#define DEFAULT_NO "2"
#define DEFAULT_EDGE "falling"
#define DEFAULT_CMD "/usr/local/bin/shutdown_s... |
/*
* File: lcd.c
* Author: <NAME>
*
* LCD Library for 16x2 LCDs.
*
*/
#include "config.h"
// ---
void LCDInitialize() {
// Set TRIS as output and clear PORT
*LCD_TRIS = 0;
*LCD_PORT = 0;
/*******************************************
If needed clear analog pins which LCD uses
****... |
// SPDX-License-Identifier: GPL-2.0
/*
* user-mode-linux networking multicast transport
* Copyright (C) 2001 by <NAME> <<EMAIL>>
* Copyright (C) 2001 - 2007 <NAME> (<EMAIL>)
*
* based on the existing uml-networking code, which is
* Copyright (C) 2001 <NAME> (<EMAIL>) and
* <NAME> (<EMAIL>).
* Copyright (C) 2001... |
#include "game.h"
#include <dlfcn.h>
#include <string.h>
#include <time.h>
struct game *game__init(int argc, char **argv, unsigned int nb_players)
{
struct game *this = safe_malloc(sizeof(struct game));
//=== Player registration
this->nb_players = nb_players;
this->players_queue = queue__empty(player... |
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <linux/vt.h>
#include "device.h"
#include "fb.h"
/*
* VT switch handling code for Linux
*/
/* signal to use when VT swithing*/
#ifndef SIGUNUSED
#define SIGUNUSED SIGUSR1 /* some systems lack SIGUNUSED*/... |
/* 152042 松下 旦 */
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#define INPUT_NUM 100
#define STATIC_LIST_LENGTH 1000
typedef struct{
int row;
int col;
double **element;
double *base_element;
} matrix;
int test(void);
void mat_free(matrix *mat);
int mat_alloc(matrix *mat, int ro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.