text stringlengths 3.08k 10.5k |
|---|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* inotify-glue.c
*
* Copyright (C) 2004 Novell, 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 So... |
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 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 ... |
/*
* Copyright (c) 2020-2021 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "pyosdp.h"
#define pyosdp_set_loglevel_doc \
"Set OSDP logging level\n" \
"\n" \
"@param log_level OSDP log level (0 to 7)\n" \
"\n" \
"@return None"
static PyObject *pyosdp_set_loglevel(pyosdp_t *self, PyObject... |
/*-
* Copyright (c) 2014-2018 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include "wt_internal.h"
static int __lsm_worker_general_op(
WT_SESSION_IMPL *, WT_LSM_WORKER_ARGS *, bool *);
static WT_THREAD_RET __lsm_... |
/*
* 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 and The University
* of Tennessee Rese... |
// MIT License - Copyright (c) <NAME>
// This file is subject to the terms and conditions defined in
// LICENSE, which is part of this source code package
#include "ftshim.h"
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_GLYPH_H
#include FT_SYNTHESIS_H
typedef FT_Error (*initFreetypePtr)(FT_Library*);
stat... |
#include "engine_mesh.h"
#include "engine_texture.h"
#include "engine_main.h"
#include "Doom.h"
static Vertex *vertices;
int *isin;
static int screenWidth = SCREEN_WIDTH;
static int screenHeight = SCREEN_HEIGHT;
static bool polygonOrderTestCPU = true;
static void createRotationMatrixValues(int rotX, int rotY, int ... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Fluent Bit
* ==========
* Copyright (C) 2015-2022 The Fluent Bit Authors
*
* 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... |
/*
* Copyright (c) 2017-2018, NVIDIA CORPORATION. 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 ... |
//h+//////////////////////////////////////////////////////////////////////////
/*!
// \file DataStructure.h
//
// \brief Definitions for the Broentech datatypes plugin, 32 bit systems. Note, these should work out of the box
// for STM32 microcontrollers (4 byte integers). For Atmega on Arduino Un... |
#include <string.h>
#include <traildb.h>
#include <Judy.h>
#include <stdbool.h>
#include "fns_generated.h"
#include "fns_imported.h"
#include "match_internal.h"
#include "safeio.h"
/* call once after opening the db */
void ctx_init(ctx_t *ctx, db_t *db) {
ctx->trail_id = 0;
ctx->cursor = tdb_cursor_new(db->... |
// This is free and unencumbered software released into the public domain.
// For more information, please refer to <https://unlicense.org>
// bbbbbr 2020
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
// #include <unistd.h>
#include <stdbool.h>
#include <stdint.h>
#include "obj_data.h"
#include "files.h"
... |
/*
* FITS muxer
* Copyright (c) 2017 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) ... |
/*
* WPA Supplicant / wrapper functions for libcrypto
* Copyright (c) 2004-2005, <NAME> <<EMAIL>>
*
* This program 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 Foundation.
*
* Alternatively, this soft... |
/*-
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copy... |
#include <stdint.h>
extern void
startup(void);
extern unsigned long _estack;
extern unsigned long _flashimagelen;
__attribute__((section(".vectors"), used)) const uint32_t vector_table[2] = {
0x20010000, // 64K DTCM for boot, ResetHandler configures stack after
// ITCM/DTCM setup
(... |
/***************************************************************************//**
* @file
* @brief iBeacon component
*******************************************************************************
* # License
* <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b>
*****************************************... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <xtables.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/xt_NFLOG.h>
enum {
NFLOG_GROUP = 0x1,
NFLOG_PREFIX = 0x2,
NFLOG_RANGE = 0x4,
NFLOG_THRESHOLD = 0x8,
};
static const struct option NFLOG_opts[] = {
{... |
/*
*===================================================================
* 3GPP AMR Wideband Floating-point Speech Codec
*===================================================================
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "typedef.h"
#include "enc_if.h"
#ifndef IF2
#define AM... |
#include <sys/un.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <apr_strings.h>
#include <httpd.h>
#include <http_config.h>
#include <http_log.h>
#include "fcgi_header.h"
#include "fcgi_request.h"
#include "mod_fastcgi_handler.h"
#ifndef SUN_LEN
#define SUN_LEN(sock) \
(sizeof(*(sock)) - sizeof((sock)->... |
/*
* Artificial Intelligence for Humans
* Volume 1: Fundamental Algorithms
* C/C++ Version
* http://www.aifh.org
* http://www.jeffheaton.com
*
* Code repository:
* https://github.com/jeffheaton/aifh
* Copyright 2013 by <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not... |
#include "stdio.h"
#ifndef mips
#include "stdlib.h"
#endif
#include "xlisp.h"
#include "sound.h"
#include "falloc.h"
#include "cext.h"
#include "pwl.h"
void pwl_free();
typedef struct pwl_susp_struct {
snd_susp_node susp;
LVAL bpt_ptr;
double incr;
double lvl;
} pwl_susp_node, *... |
/************************************************************************************
* Copyright (c) 2015, University of Arkansas - Hybridthreads Group
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* $Revision: 8 $
* $Date: 15/05/22 2:39p $
* @brief Show how to reload the WWDT counter value.
* @note
* Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved.
**********************... |
/*** Copyright (C) 2021 <NAME>
**** This work is licensed under: This work is presently unlicensed.
****
***/
#include <stdio.h>
#include <ZTK.h>
// USER DEFINES
//#define DRAW_GRID // uncomment to enable drawing grid and legend
#define PATH_SOURCE "C:\\Users\\Andi\\Desktop\\arulco\\sources\\a01.bmp" // files *... |
/*
* main.c
*
* Created on: Jun 10, 2013
* Author: delmadord
*/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdbool.h>
void ex_01(void);
void ex_02(void);
void ex_03(void);
// ex_04
int read_line(char str[], int n);
// ex_05
char *capitalize(char *s1);
// ex_06
void censor(char s[])... |
// Immix block allocator
#include "common.h"
#include "immix.h"
void initialize(uint32_t num_start_blocks) {
if (BLOCK_SIZE % LINE_SIZE)
panic("Block size must be a multiple of line size, got block=%u and line=%u\n", BLOCK_SIZE, LINE_SIZE);
if ((BLOCK_SIZE / LINE_SIZE) % 64)
panic("Must be a mu... |
/*
* Copyright (C) Narf Industries <<EMAIL>>
* Copyright (C) <NAME> from the Naval Postgraduate School
*
* 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 w... |
/*
* Copyright (c) CERN 2013-2017
*
* Copyright (c) Members of the EMI Collaboration. 2010-2013
* See http://www.eu-emi.eu/partners for details on the copyright
* holders.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... |
#include "SysUtils.h"
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "system.h"
#include "misc.h"
TDateTime fpcrtl_date()
{
const int num_days_between_1900_1980 = 29220;
struct tm ref_date;
struct tm cur_date;
time_t local_time;
time_t ref_time, cur_time;
... |
/*
* lib/crypto/vectors.c
*
* Copyright 2001, 2007 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization c... |
/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy o... |
/*********************************************************
* Copyright (C) 2008 VMware, Inc. All rights reserved.
*
* 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 version 2.1 and no ... |
/*
Copyright 2002-2004 <NAME>, All Rights Reserved
*/
#include "gramgram.h"
#include "d.h"
#include "mkdparse.h"
static void help(ArgumentState *arg_state, char *arg_unused);
static int set_op_priority_from_rule = 0;
static int right_recursive_BNF = 0;
static int states_for_whitespace = 1;
static int states_for_all... |
#include "co_dnsutils.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#pragma pack(push)
#pragma pack(1)
typedef struct dns_header {
uint16_t tid ;
uint16_t flags ;
uint16_t qdcount ;
uint16_t ancount ;
uint16_t ... |
/*
* Copyright (c) 2005-2020 Imperas Software Ltd., www.imperas.com
*
* 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... |
/*******************************************************************************
* HEADERS
******************************************************************************/
/* Standard Includes */
#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/param.h>
#include <assert.h>
#include <stdio.h>
#include <stdarg... |
/*
* Check decoding of utimes/osf_utimes syscall.
*
* Copyright (c) 2015-2017 <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 r... |
/*
* Copyright (c) 2006-2018, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2018-11-06 SummerGift change to new framework
*/
#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#define LOG_TAG "main"
#incl... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
/*
* rtc.c
*
* Created on: 27 Feb 2019
* Author: <NAME>
*/
#include "rtc_stm32.h"
#include <zephyr.h>
#include <device.h>
#include <stm32f4xx_ll_rtc.h>
#include <stm32f4xx_ll_pwr.h>
#include <logging/log.h>
LOG_MODULE_REGISTER(stm32rtc, 4);
// prescaler values for LSE @ 32768 Hz
#define RTC_PREDIV_ASYNC ... |
/*
* Copyright (c) The Libre Solar Project Contributors
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "board.h"
#include "interface.h"
#include "registers.h"
#include <stdio.h>
#ifndef UNIT_TEST
#include <zephyr.h>
#include <drivers/gpio.h>
#include <drivers/i2c.h>
#include <string.h>
#define I2C_DEV DT... |
/* $OpenBSD: src/usr.sbin/rdate/rdate.c,v 1.22 2004/02/18 20:10:53 jmc Exp $ */
/* $NetBSD: rdate.c,v 1.4 1996/03/16 12:37:45 pk Exp $ */
/* $DragonFly: src/usr.sbin/rdate/rdate.c,v 1.2 2005/03/28 02:39:57 dillon Exp $ */
/*
* Copyright (c) 1994 <NAME>
* All rights reserved.
*
* Redistribution and use in source an... |
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (C) Foundries Ltd. 2020 - All Rights Reserved
* Author: <NAME> <<EMAIL>>
*/
#include <config.h>
#include <crypto/crypto.h>
#include <se050.h>
#include <se050_utils.h>
#include <string.h>
static const sss_policy_u asym_key = {
.type = KPolicy_Asym_Key,
.auth... |
/* Time inconsistency check test
* by: <NAME> (<EMAIL>)
* (C) Copyright IBM 2003, 2004, 2005, 2012
* (C) Copyright Linaro Limited 2015
* Licensed under the GPLv2
*
* To build:
* $ gcc inconsistency-check.c -o inconsistency-check -lrt
*
* This program is free software: you can redistribute it and/or modi... |
/*
* Verify INTEGER values with greater than 32 bits range.
*/
#undef NDEBUG
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
#include <assert.h>
#include <ctype.h>
#include <errno.h>
#include <T.h>
static unsigned long i2ul(const INTEGER_t *i) {
unsigned long l;
int ret = a... |
/*
*
* Copyright (c) 2020 Project CHIP 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... |
/*
* disk/rnc_hidden.c
*
* Small sectors hidden alongside AmigaDOS track data.
*
* Written in 2012 by <NAME>
*
* TRKTYP_rnc_hidden data layout:
* u8 amigados_data[11*512]
* u8 rnc_signature[10] ;; disk key/signature (same across all sectors)
* u8 sector_trailer_map ;; sectors which have an MFM-illegal ... |
/********* Grupo 9 ********
* 44898 - <NAME> *
* 46670 - <NAME> *
* 51779 - <NAME> *
***************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../include/client_stub.h"
#include "../include/data.h"
#include "../include/entry.h"
#include "../include/extra/inet.h"
#include... |
#include "../../include/operations/shift-operations.h"
#include "../../include/util/bitmasks.h"
#include <assert.h>
// Display the shifted type
void DisplaySRType(SRType t, uint32_t shifted) {
switch (t)
{
case SRType_ASR: printf(", ASR, %#X", shifted); break;
case SRType_LSL: printf(", LSL, %#X", shifted); break;
... |
/*
The MIT License (MIT)
Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <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... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "generic_vector.h"
#include "mystring.h"
// Initialize functions
//GENERIC_VECTOR make_vector_of_vector(void);
GENERIC_VECTOR make_vector_of_mystring(void);
// File worker functions
void work_file(FILE* text, GENERIC_VECTOR hVector... |
/********************************************************************************/
/* */
/* Extend */
/* Written by <NAME> */
/* IBM Thomas J. Watson Research Center */
/* $Id: extend.c 1258 2018-06-28 16:46:10Z kgoldman $ */
/* */
/* (c) Copyright IBM Corporatio... |
// License: MIT. See LICENSE file in root directory.
// Copyright(c) 2016 JetsonHacks. All Rights Reserved.
// Workarounds for Intel Realsense R200 on NVIDIA Jetson TK1
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include "setupR200.h"
#define VENDOR_ID 0x8086
#define PRODUCT_ID 0x0a80
//
// Rese... |
// Playtune_poll.h
// Here is where you define the pin configuration for playing music. Because we use direct register
// manipulation for speed, it's a little complicated, so bear with me.
// First, define the number of channels (output pins), which is the maximum number of notes that
// you want to play simultaneo... |
#define LOGNAME "SISWI"
#include <hk.h>
#include <hk_fascade.h>
#include <esp_system.h>
#include <esp_log.h>
#include <freertos/FreeRTOS.h>
#include <driver/gpio.h>
#include "freertos/task.h"
#define LED 19
uint8_t air_quality = 2; // values between 0 and 5 are supported.
float ozone_density = 10.5; ... |
#include <imgui.h>
namespace Menu
{
BOOLEAN Init();
void Render();
bool IsOpen();
};
#include <Memory.h>
#include <wingdi.h>
extern int skip;
extern float p0ss;
extern float p1ss;
extern float p2ss;
extern bool customdrop1;
extern bool customdrop2;
extern bool customdrop3;
extern float testcolor[... |
struct buf;
struct context;
struct file;
struct inode;
struct pipe;
struct proc;
struct rtcdate;
struct spinlock;
struct sleeplock;
struct stat;
struct superblock;
// bio.c
void binit(void);
struct buf* bread(uint, uint);
void brelse(struct buf*);
void bwrite(struct buf*);
// console.c
void consoleinit(void)... |
#include "mySocket.h"
#include <errno.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <time.h>
#include "myafl-fuzz.h"
#include "afl-fuzz.h"
#include "myQueue.h"
#define MAXLINE 65536
int TIME_LIMIT = 10;
int MAX_ITERATION ... |
/*
https://www.hackerrank.com/challenges/equal-stacks/problem
Success Rate: 78.11%
*/
/* Scratch work
Since the problem says "An empty stack is still a stack" then we should
properly handle the possibility that the input may contain a 0 size stack,
in which case the only possible solution is that the maxi... |
/*
* Copyright (c) 2003-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:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
/*
* Create font map for AFM files.
* Copyright (c) 1995, 1996, 1997 <NAME>.
*
* Author: <NAME> <<EMAIL>>
*/
/*
* This file is part of GNU Enscript.
*
* Enscript 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 ... |
#include "rwip_config.h"
#include "oad_common.h"
#include "attm.h"
#include "oads.h"
#include "oads_task.h"
#include "ke_mem.h"
#include "prf_utils.h"
#include "prf.h"
#include "co_utils.h"
#include "flash.h"
#include "uart.h"
#include "ke.h"
#include "icu.h"
#include "wdt.h"
#include "mesh_log.h"
uint32_t crc32_table... |
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
static constexpr uint32_t P_NAND_CMD = (0x00);
static constexpr uint32_t P_NAND_CFG = (0x04);
static constexpr uint32_t P_NAND_DADR = (0x08);
static conste... |
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Host functions for signature generation.
*/
/* TODO: change all 'return 0', 'return 1' into meaningful return codes */
#include <openssl/rs... |
/*
* MIT License
*
* Copyright (c) 2018 Whuer_XiaoJie <<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... |
/*
* Copyright (c) 2020 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS AL... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <err.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include "net_functions.h"
#define MAXLEN 1400
void printHelp() {
printf("\nHelp:\n")... |
#include "Server.h"
void PrintServerState(struct ServerState* serverState){
pthread_rwlock_rdlock(&serverState->rwStateVariable);
printf("Server state:\n");
switch(serverState->runState){
case Open:
printf("Run state: Open\n");
break;
case Closing:
printf("Run state: Closing... |
/******************************************************************************
* Filename: nrf.c
*
* Created: 2013/02/02 19:33
* Author: <NAME>
* e-mail: <EMAIL>
*
******************************************************************************/
#include "spi.h"
#include "hardware.h"
#include "delay.h"
#include ... |
/*
-------------------------------------------------------------------------------
Name:
FPL-Demo | Audio
Description:
This demo shows how to play a contiguous sine or square wave.
Also it can play uncompressed PCM wave data with simple resampling support.
Requirements:
- C99 Compiler
- Final Platform Layer
Aut... |
#include "AVL.h"
info* createInfoKey(char* word) {
info* newInfo = (info*)calloc(1, sizeof(info));
newInfo->word = (char*)calloc(strlen(word) + 1, sizeof(char));
if (!newInfo) return newInfo;
strcpy(newInfo->word, word);
return newInfo;
}
key* createKey(info inf) {
key* newKey = (key*)calloc(1, sizeof(key));
i... |
//
// Options for pcb-gcode.ulp.
// Often used options are at the top of the file.
// Copied to gcode-defaults.h by the setup program.
//
// author=<NAME>
// description=Tries to be very compatible
//
int FILENAMES_8_CHARACTERS = NO;
//
// Comments.
//
string COMMENT_BEGIN = "(";
string COMMENT_END = ")";
//
/... |
/*====================================================================*
- 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... |
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <math.h>
float RA = 0; //4.370740779;
float DEC = 0; //0.636463406;
float LAT = 0.916297857;
float LONG = -0.033452145;
float LST = 0;
float HA = 0.949155775;
float ALT = 0;
float AZ = 0;
int year = 1998;
int month = 8;
int day = 10;
int hour ... |
#include <stdio.h>
#include <string.h>
#include "driver/uart.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
// UART 2 pins of ESP32
#define RXD2 16
#define TXD2 17
// Sending time interval (microseconds)
#define HB_SEND_INTERVAL 3000000 // 3000 milliseconds
// Buffer size for UART
#define HB_BUFFER_S... |
/* Copyright 2013-present Barefoot Networks, Inc.
*
* 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 la... |
/*
* Copyright 2019-2020 <NAME>
*
* clinfo-lite is a small utility tool to output OpenCL platform and device
* information.
*
* Available for use under the BSD 3-Clause Clear License.
*/
/* SPDX-License-Identifier: BSD-3-Clause-Clear */
#include <CL/cl.h>
#include <stdio.h>
#include <stdlib.h>
#define OPENCL_E... |
// Copyright 2019-2021, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief Vulkan state creators helpers.
*
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @ingroup aux_vk
*/
#include "vk/vk_helpers.h"
VkResult
vk_create_descriptor_pool(struct vk_bundle *vk,
... |
/*
* Copyright 2021 Kontain Inc
*
* 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 ... |
#define _GNU_SOURCE
#include <stdio.h>
#include <assert.h>
#include <pthread.h>
#include <unistd.h>
#include <czmq.h>
#include <errno.h>
#include "power_client.h"
#include "ctx.h"
void *server_thread(void *args);
/**
* This now keeps track of how much power was doled out over time, to track
* power redistribution t... |
/*
* Copyright (C) 2016 Glyptodon LLC
*
* 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... |
/*
* ***************************************************************************
* Copyright (C) 2016 Marvell International Ltd.
* ***************************************************************************
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
/*
Access control
Copyright (C) 2001-2021, <NAME> <<EMAIL>>
Copyright (C) 2001, <NAME> <<EMAIL>>
Copyright (C) 2007 <NAME> <<EMAIL>>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software F... |
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/workqueue.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/power_supply.h>
#include <linux/delay.h>
#include <linux/kthread.h>
#include <linux/slab.h>
#include <linux/deb... |
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <time.h>
int **Alocar_matriz(int m, int n);
void exercicio1();
void exercicio2();
void exercicio3();
void exercicio4();
int **Alocar_matriz(int m, int n);
int readInt(char string[]);
void ImprimeVetor(int **matriz, int tam1, int tam2);
int gen... |
/* mbed Microcontroller Library
* Copyright (c) 2006-2018 ARM 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... |
/*
* Copyright (c) 2017, Intel 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:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of cond... |
/*****************************************************************************
* websocket_syslogd.c: Simple syslog server
*****************************************************************************
* Copyright (C) 2016-2017
*
* Authors: <NAME> <<EMAIL>
*
* Permission is hereby granted, free of charge, to any ... |
/*--------------------------------------------------------------------------
**
** Copyright 2021 <NAME>
**
** Name: error.c
**
** Description:
** This file provides functions for obtaining information about
** error indications.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** yo... |
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <ftdi.h>
#include "serio.h"
#include "aldl-io.h"
#include "error.h"
#include "config.h"
#include "useful.h"
/************ ... |
/*
* This software was developed by the Thermal Modeling and Analysis
* Project(TMAP) of the National Oceanographic and Atmospheric
* Administration's (NOAA) Pacific Marine Environmental Lab(PMEL),
* hereafter referred to as NOAA/PMEL/TMAP.
*
* Access and use of this software shall impose the following
* obliga... |
#include "encrypt.h"
#include "network.h"
#include "tran.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char *oper;
uint16_t buf_size;
typedef struct {
uint16_t step;
uint16_t count;
uint16_t buf_size;
uint32_t file_size;
char name[64]; // file name
char has... |
/*
* hdac_i915.c - routines for sync between HD-A core and i915 display driver
*
* 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)
* ... |
#include "parser.h"
/**
* Parse command arguments given a token list.
*
* @param ts The token list
* @return A pointer to the command arguments.
*/
static char **parse_arguments(struct token_list **ts) {
struct token_list *t = *ts;
// Keep track of the number of arguments that have been parsed.
// The init... |
/*******************************************************************************
System Config Performance function implementation
Company:
Microchip Technology Inc.
File Name:
config_performance.c
Summary:
Contains a non-ISP implementation of legacy SYSTEMConfigPerformance
function
Descr... |
#include "quiet/portaudio_decoder.h"
#include <unistd.h>
static void decoder_dealloc(portaudio_decoder *dec) {
if (!dec) {
return;
}
if (dec->stream) {
Pa_CloseStream(dec->stream);
}
if (dec->dec) {
quiet_decoder_destroy(dec->dec);
}
if (dec->mono_buffer) {
f... |
#include <stdlib.h>
#include <stdio.h>
#include <arpa/inet.h>
#include "pardump.h"
partmass_t *
ntoh_particle(partmass_t *p)
{
uint32_t *word = (uint32_t *)p ;
partmass_t *swapped =0 ;
swapped = (partmass_t *)malloc(sizeof(partmass_t)) ;
uint32_t *swapped_word = (uint32_t *)swapped ;
for (int... |
/*
* Copyright (c) 2021 Cisco 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-2.0
*
* Unless required by applicabl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.