text stringlengths 3.08k 10.5k |
|---|
/*
* Copyright (C) 2001, 2002 <NAME> (<EMAIL>)
* Licensed under the GPL
*/
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/wait.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/uio.h>
#include <sys/ioctl.h>
#include <net... |
/* Support for dynamic loading of extension modules */
#include <ctype.h> /* for isdigit() */
#include <errno.h> /* for global errno */
#include <string.h> /* for strerror() */
#include <stdlib.h> /* for malloc(), free() */
#include <sys/ldr.h>
#include "Python.h"
#include "importdl.h"
#ifdef AI... |
/*******************************************************************************
Main Source File
Company:
Microchip Technology Inc.
File Name:
main.c
Summary:
This file contains the "main" function for a project.
Description:
This file contains the "main" function for a project. The
... |
/*
Unit test generator for the bit64 Lua library.
Copyright 2019 ManuelBlanc
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,... |
/* BSD 3-Clause License
*
* Copyright ยฉ 2008-2020, Jice and the libtcod contributors.
* 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 ... |
/* $Xorg: DisplayQue.c,v 1.4 2001/02/09 02:03:52 xorgcvs Exp $ */
/*
Copyright 1989, 1998 The Open Group
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 bo... |
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/fb.h>
#include <sys/ioctl.h>
#define FBDEVICE "/dev/fb0"
typedef unsigned char ubyte;
struct fb_var_screeninfo vinfo;
/* ์ ์ ๊ทธ๋ฆฐ๋ค. */
static void drawpoint(int fd, int x, int y, ubyte r, ubyte g, ubyte b)
{
ubyte a = 0xFF;
/* ์์ ์ถ๋ ฅ์ ์ํ ... |
/* $OpenBSD: wsevent.c,v 1.2 2000/08/01 13:51:18 mickey Exp $ */
/* $NetBSD: wsevent.c,v 1.5 2000/03/30 12:45:44 augustss Exp $ */
/*
* Copyright (c) 1996, 1997 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... |
/*
ozdevguy | C General Libraries
Copyright 2016 <NAME> (ozdevguy)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "driver/gpio.h"
#define NUM_LEDS 4
#include "ws2812_control.h"
#define GREEN 0xFF0000
#define RED 0x00FF00
#define BLUE 0x0000FF
#defin... |
// Copyright (c) 2018-2021 Cesanta Software Limited
// All rights reserved
// https://www.st.com/resource/en/reference_manual/dm00124865-stm32f75xxx-and-stm32f74xxx-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdf
// Memory map: 2.2.2
#include "stm32f746xx.h"
#include "string.h"
#define BIT(x) ((uint32_t) 1 << (... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <assert.h>
#include <uv.h>
#define WORKER_COUNT 2
#define CHECK_UV_RESULT(expr) \
{ ... |
/*-
* Copyright (c) 2017-2018 Razor, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include "kalman_filter.h"
#include "estimator_common.h"
#include <math.h>
kalman_filter_t* kalman_filter_create()
{
kalman_filter_t* filter = calloc(1, sizeof(kalman_filter_t));
fi... |
// SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2018 Facebook
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <bpf/bpf.h>
#include <bpf/libbpf.h>
#include "bpf_rlimit.h"
#incl... |
/* --COPYRIGHT--,BSD_EX
* Copyright (c) 2013, Texas Instruments Incorporated
* 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 c... |
#include "regtable.h"
const char* registers_str[] = {
// 32bit
[EAX] = "eax",
[EBX] = "ebx",
[ECX] = "ecx",
[EDX] = "edx",
[ESP] = "esp",
[EBP] = "ebp",
[ESI] = "esi",
[EDI] = "edi",
// 16bit
[AX] = "ax",
[BX] = "bx",
[CX] = "cx",
[DX] = "dx",
[SP] = "sp",
[BP] = "bp",
[SI] = "si",
[DI] = "di",
// ... |
#include "exec.h"
#include "thread.h"
#include "stdio_kern.h"
#include "fs.h"
#include "string.h"
#include "global.h"
#include "memory.h"
extern void intr_exit(void);
typedef uint32_t Elf32_Word, Elf32_Addr, Elf32_Off;
typedef uint16_t Elf32_Half;
/* 32ไฝelfๅคด */
struct Elf32_Ehdr
{
unsigned char e_ident[16];
... |
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "panel.h"
#include "misc.h"
#include "plugin.h"
//#define DEBUGPRN
#include "dbg.h"
/* 2010-04 <NAME> < <EMAIL> >
* Calendar and transparency support
* See patch "2981313: En... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 by <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
*... |
/*
* Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use th... |
/*
u8g2_message.c
Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)
Copyright (c) 2016, <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:
* Redistributions of... |
/* $OpenBSD: init.c,v 1.7 2011/01/10 12:02:48 claudio Exp $ */
/*
* Copyright (c) 2009 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all cop... |
/* xZTL: Zone Translation Layer User-space Library
*
* Copyright 2019 Samsung Electronics
*
* Written by <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http... |
/*
* (C) Copyright 2010, ucRobotics Inc.
* Copyright (c) 2014, Sage Electronic Engineering, LLC
* .
* Author: <NAME> <<EMAIL>>
* Licensed under the GPL-2 or later.
*/
#include <console/console.h>
#include <stdlib.h>
#include <spi_flash.h>
#include <spi-generic.h>
#include <string.h>
#include "spi_flash_internal... |
/*
* spanIP.c
*
* Copyright 2008 by <NAME>. All rights reserved.
*/
/***********************************************************************
*** No configuration below this point.
***********************************************************************/
#include <com/snert/lib/version.h>
#include <ctype.h>
#inc... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2004 <NAME> <<EMAIL>>
* Copyright (C) 2005 <NAME> <<EMAIL>>
* Copyright (C) 2007 <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
* t... |
/** <!--
*
* Copyright (C) 2014 OpenVCX <EMAIL>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
... |
/*******************************************************************************
* Copyright 2004-2016 Intel Corporation All Rights Reserved.
*
* The source code, information and material ("Material") contained herein is
* owned by Intel Corporation or its suppliers or licensors, and title to such
* Material rem... |
#include <stdint.h>
#include <stdbool.h>
#include "platform.h"
#include "spi.h"
#include "sx1276-Hal.h"
/*!
* SX1276 RESET I/O definitions
*/
#define RESET_IOPORT GPIOA
#define RESET_PIN GPIO_Pin_1
/*!
* SX1276 SPI NSS I/O definitions
*/
#define... |
/* Copyright 2010 <NAME>
This file is part of Yabause.
Yabause 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.
Ya... |
/*
* Copyright (C) 2017 C-SKY Microsystems Co., Ltd. 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 ... |
#define _GNU_SOURCE 1
#define _XOPEN_SOURCE 700
#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <sys/resource.h>
#include <errno.h>
#include <time.h>
#include <sched.h>
#include <string.h>
#include <... |
#include "parse.h"
static Node *read_cells(Token **rest, Token *token, Type *type, char *values, int offset, Var *var);
static Node *read_array(Token **rest, Token *token, Type *type, char *values, int offset, Var *var);
static Node *read_struct(Token **rest, Token *token, Type *type, char *values, int offset, Var *va... |
#include "widgets.h"
#include "window_title.h"
static int
widget_update (struct widget *widget, xcb_ewmh_connection_t *ewmh, int screen_nbr, xcb_window_t *cur_win) {
xcb_window_t win;
xcb_ewmh_get_utf8_strings_reply_t ewmh_txt_prop;
xcb_icccm_get_text_property_reply_t icccm_txt_prop;
uint32_t values[] = { XCB_EVEN... |
//
// slcan: Parse incoming and generate outgoing slcan messages
#include "stm32f0xx_hal.h"
#include "can.h"
#include "slcan.h"
#include "usbd_cdc_if.h"
int8_t slcan_parse_frame(uint8_t *buf, CanRxMsgTypeDef *frame)
{
uint8_t i = 0;
uint8_t id_len, j;
uint32_t tmp;
for (j=0; j < SLCAN_MTU; j++)
{... |
#include "usb3_drv.h"
#include "usb3_pcd.h"
static void handle_usb_reset_intr(usb3_pcd_t *pcd)
{
usb3_pcd_ep_t *ep;
/* Clear stall on each EP */
ep = &pcd->in_ep;
if (ep->stopped)
usb3_ep_clear_stall(pcd, ep);
ep = &pcd->out_ep;
if (ep->stopped)
usb3_ep_clear_stall(pcd, ep);
/* Set Device Address to 0 */... |
/*
* Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2.1 of the GNU Lesser General Public License
as publish... |
/*
Copyright (c) 2009-2010 by <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, ... |
#include "bf_threadpool.h"
typedef enum {
immediate_shutdown = 1,
graceful_shutdown = 2
} bf_threadpool_sd_t;
static int threadpool_free(bf_threadpool_t *pool);
static void *threadpool_worker(void *arg);
// ๅๅงๅ็บฟ็จๆฑ
bf_threadpool_t *threadpool_init(int thread_num) {
if (thread_num < 0) {
log_err("t... |
/*
(c) Copyright 2001-2007 The DirectFB Organization (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by <NAME> <<EMAIL>>.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Publi... |
#include "log.h"
#include <errno.h>
#include <string.h>
#include <unistd.h>
// The names are long, so let's add a convenience helpers
typedef datadog_php_logger logger_t;
typedef datadog_php_log_level log_level_t;
typedef datadog_php_string_view string_view_t;
/**
* Ensures the logger looks like it should be loggin... |
/*
* assembleSingleDataTransfer.c
*
* Created on: 3 Jun 2015
* Author: nv214
*/
#include "assembleSingleDataTransfer.h"
/* This file needs comments */
uint32_t assembleSingleDataTransfer(char **tokens, linkedList *list,
asmAddresses *addresses) {
uint32_t instructionWord = 0;
/* Bits 26-27 represent t... |
/* sane - Scanner Access Now Easy.
Copyright (C) 1997 <NAME>
This file is part of the SANE package.
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, ... |
/*
* Copyright (c) 2021
* IoTech Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "secrets.h"
#include "secrets-insecure.h"
#include "secrets-vault.h"
#include "edgex2.h"
#include "edgex-rest.h"
#include "service.h"
#include "iot/iot.h"
#include <microhttpd.h>
typedef struct edgex_secret_provider_t
{
... |
/**************************************************************************
*
* Copyright (C) 2012 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction... |
/*---------------------------------------------------------------------------
dosmpjob.c doSMPJob()
Purpose:
This function processes the input data for one site, and one date & time.
Called by sunmoonposn.c i.e. main().
Returns:
0 for successful operation;
1 for problems.
History:
06Jul20 Modified to return JSO... |
#include <stdio.h>
#include <string.h>
#include "apps.h"
#include "progs.h"
#include <openssl/pem.h>
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/ssl.h>
#include <openssl/x509.h>
#include "../ssl/ssl_local.h"
typedef enum OPTION_choice {
OPT_ERR = -1, OPT_EOF = 0... |
#include "zoomjoystrong.h"
#include <math.h>
#include <SDL2/SDL.h>
#include <unistd.h>
struct color current;
void setup(){
window = SDL_CreateWindow
(
"ZoomJoyString", SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
WIDTH,
HEIGHT,
SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_SHOWN
);
... |
/*
* console.c: Routines that deal with sending and receiving IO
* to/from the current console device using the PROM.
*
* Copyright (C) 1995 <NAME> (<EMAIL>)
*/
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <asm/openprom.h>
#include <asm/oplib.h>
#include <linux/s... |
#include <stdint.h>
#include <sys/types.h>
#include <zlib.h>
#include <stdio.h>
#include <string.h>
#include "sys.h"
#include "kermit.h"
#include "color.h"
#include "cf.h"
#include "index.h"
#include "marker.h"
static void color_stats(const km_multicolor_t *colors, const size_t n_reads)
{
size_t uncolored=0, ones=0... |
/*
# clove
#
# Copyright (C) 2019 <NAME>
#
# This project is free software; you can redistribute it and/or modify it
# under the terms of the MIT license. See LICENSE.md for details.
*/
#include "graphics_geometry.h"
#include "tools.h"
#include "../3rdparty/FH/src/value.h"
#include "../include/geometry.h"
s... |
/*-------------------------------------------------------------------------
*
* sets.c
* Functions for sets, which are defined by queries.
* Example: a set is defined as being the result of the query
* retrieve (X.all)
*
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions C... |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 <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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/types.h>
#define MAX_LINE 80 /* The maximum length command*/
#define HISTORY_LENGTH 10
typedef struct
{
char* data[HISTORY_LENGTH];
int count;
} histlist;
void histlist_init(histlist*);
void histlist_pu... |
/**********************************************************************
*
* text.c
*
* Author: <NAME>
*
* Copyright 1996 The Board of Regents of the Nevada System of Higher
* Education, on behalf, of the University of Nevada, Las Vegas,
* Information Science Research Institute
*
* Licensed under the Apach... |
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... |
/***************************************************************************//**
* @file main.c
* @brief LDMA Inter-channel Synchronization Example
*******************************************************************************
* # License
* <b>Copyright 2020 Silicon Laboratories Inc. www.silabs.com</b>
*********... |
/*
* Copyright (C) 2015-2021 IoT.bzh Company
* Author "<NAME>"
*
* $RP_BEGIN_LICENSE$
* Commercial License Usage
* Licensees holding valid commercial IoT.bzh licenses may use this file in
* accordance with the commercial license agreement provided with the
* Software or, alternatively, in accordance with the... |
/* $OpenBSD: wdsreg.h,v 1.5 2011/06/29 12:17:40 tedu Exp $ */
typedef u_int8_t physaddr[3];
typedef u_int8_t physlen[3];
#define ltophys _lto3b
#define phystol _3btol
/* WD7000 registers */
#define WDS_STAT 0 /* read */
#define WDS_IRQSTAT 1 /* read */
#define WDS_CMD 0 /* write */
#define WDS_IRQACK 1 /* write... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <syslog.h>
#include <signal.h>
#include <pthread.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "emokit/emokit.h"
#include "emokitd.h"
sigset_t mask;
type... |
#include "port.h"
#define MaxSites 50
#define ZERO 0
#define ALLOC(type) ( (type *) malloc ( sizeof(type) ) )
#define LINE printf(" file : %s line # %d\n", __FILE__,__LINE__);
#define ABS(value) ( (value)>=0 ? (value) : -(value) )
#define ROUND(value) ( ( (value) - (int)(value) ) >= 0.5 ? ((int)(value) + 1) :... |
/*
* Copyright 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" file a... |
/*
* Copyright (c) 2012, Thingsquare, www.thingsquare.com.
* 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... |
#ifdef WIN32
#include <windows.h>
#endif
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "..\wadlib\wadlib.h"
void PrintPercentStatus(float percent) {
static char line[256];
static time_t next_update = 0;
uint32_t i = 0;
if(next_update < time(NULL)) {
for(i = 0; i<strlen(line); i++) printf("... |
#ifndef lint
static const char RCSid[] = "$Id: m_mirror.c,v 2.20 2018/11/13 19:58:33 greg Exp $";
#endif
/*
* Routines for mirror material supporting virtual light sources
*/
#include "copyright.h"
#include "ray.h"
#include "otypes.h"
#include "rtotypes.h"
#include "source.h"
/*
* The real arguments for MAT_M... |
/*
* win_if_list - Display network interfaces with description (for Windows)
* Copyright (c) 2004-2006, <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.
*
* A... |
/* Copyright 2018 <NAME>
* Copyright 2018 Yiancar
*
* 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 pro... |
#include "btree1.h"
extern bool debug;
DbStatus btree1LoadStopper(DbMap *map, Btree1Set *set, uint8_t lvl);
DbStatus btree1InsertSfxKey(Handle *index, uint8_t *key, uint32_t keyLen, uint64_t suffix, uint8_t lvl, Btree1SlotType type) {
uint8_t keyBuff[MAX_key];
uint32_t sfxLen;
memcpy(keyBuff, key, keyLen);
sfx... |
#include "eth.h"
#include <esp_err.h>
#include <esp_eth.h>
#include <esp_event.h>
#include <esp_log.h>
#include <driver/gpio.h>
#include <arpa/inet.h>
#include <stdbool.h>
#include <string.h>
static const char *TAG = "Ethernet";
static eth_on_connected_cb_t on_connected_cb = NULL;
static eth_on_disconnected_cb_t on_d... |
/* -*- C -*- */
/*
* Copyright (c) 2015-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... |
/**
* This version is stamped on May 10, 2016
*
* Contact:
* <NAME> <pouchet.ohio-state.edu>
* <NAME> <tomofumi.yuki.fr>
*
* Web address: http://polybench.sourceforge.net
*/
/* gemver.c: this file is part of PolyBench/C */
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <m... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/*
* Copyright (C) 2016 Red Hat, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* GnuTLS 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 3 of the License, or
* (at your opt... |
/* snpRefUCSC - sixth step in dbSNP processing.
* Read the nib file for a chrom into memory.
* Lookup sequence at coordinates.
* Rewrite to new chrN_snpTmp tables.
* Rename chrMT_snpTmp to chrM_snpTmp before running this.
* Use UCSC chromInfo. */
/* Check for coords larger than chromSize; log as errors. */
#... |
/****************************************************************************
*
* Univerzitet u Novom Sadu, Fakultet tehnickih nauka
* Katedra za Racunarsku Tehniku i Racunarske Komunikacije
*
* -----------------------------------------------------
* Ispitni projekat iz predmeta:
*
* RACUNARSKE MREZE, MAGISTRALE I PROT... |
// ESP32 pin asignment
#define SDA_PIN 16 // i2c sda for display
#define SCL_PIN 17 // i2c slc for display
#define POWER_RELAIS_PIN 12 // power relais
#define ROTARY_ENCODER_A_PIN 4 // 1st encoder pin
#define ROTARY_ENCODER_B_PIN 15 // 2nd encoder pin
#define ROTARY_EN... |
/*
* Copyright (c) 2021 HopeBayTech.
*
* This file is part of Tera.
* See https://github.com/HopeBayMobile for further info.
*
* 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
*
* ... |
/*
MIT License
Copyright (c) 2020-2021 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, ... |
/*
* Copyright (c) 2021 hpmicro
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
/*---------------------------------------------------------------------*
* Includes
*---------------------------------------------------------------------*/
#include "hpm_enet_drv.h"
#include "hpm_rtl8211_regs.h"
#include "hpm_rtl821... |
#include "labirinto.h"
//Define condiรงรตes globais para a construรงรฃo do Labrinto
int **makeLab(int size) {
int l_out, c_out;
srand(time(NULL));
int **matriz = makeMatrix(size);
makeOut(size, &l_out, &c_out);
matriz[l_out][c_out] = 2;
matriz[0][0] = 0;
makeWays(matriz, size, l_out, c_out);
... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(C) 2019 Marvell International Ltd.
*/
#include <rte_common.h>
#include <rte_ethdev_pci.h>
#include "otx2_ethdev.h"
void
otx2_nix_toggle_flag_link_cfg(struct otx2_eth_dev *dev, bool set)
{
if (set)
dev->flags |= OTX2_LINK_CFG_IN_PROGRESS_F;
else
dev->flags ... |
/*
This Software is provided under the Zope Public License (ZPL) Version 2.1.
Copyright (c) 2009, 2010 by the mingw-w64 project
See the AUTHORS file for the list of contributors to the mingw-w64 project.
This license has been certified as open source. It has also been designated
as GPL compatible by the Free So... |
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <linux/limits.h>
#include "zdtmtst.h"
const char *test_doc = "Check that binfmt_misc entries remain registered";
const char *test_author = "<NAME> <<EMAIL>";
#def... |
/*
* Copyright (c) 2008 <NAME> (<EMAIL>)
* Copyright (c) 2008 <NAME> (<EMAIL>)
* Copyright (c) 2009 <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... |
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include "esp_wifi.h"
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_event_loop.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/semphr.h"
#include "freertos/queue.h"
#include "freertos/event_gro... |
/* ll.c
* By Ron
* Created January, 2010
*
* (See LICENSE.md)
*/
#include <stdio.h>
#include "libs/memory.h"
#if 0
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define safe_malloc malloc
#define safe_free free
#define FALSE 0
#define TRUE 1
#endif
#include "ll.h"
ll_t *ll_create(cmpfunc_t *cmpfu... |
/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not... |
/**
* speck64_32.c - Speck implementation
*
* Author: <NAME> <<EMAIL>>
*
* Copyright (c) 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 l... |
/* libu8ident - Check unicode security guidelines for identifiers.
Copyright 2021 <NAME>
SPDX-License-Identifier: Apache-2.0
generate roaring bitmaps for some sets.
*/
#include <stdio.h>
#include "roaring.c"
#include "u8id_private.h"
#include "u8id_gc.h"
#include "scripts.h"
#include "confus.h"
#include "mar... |
/*----------------------------------------------------------------------------
* File: ooaofooa_TE_GENERATE_class.c
*
* Class: OAL generate (TE_GENERATE)
* Component: ooaofooa
*
* your copyright statement can go here (from te_copyright.body)
*-----------------------------------------------------... |
/* ----------------------------------------------------------------------- *
*
* Copyright 2009 <NAME> - All Rights Reserved
*
* 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, Inc.,... |
/*
* Copyright 1998 by Concurrent Computer Corporation
*
* 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 this permi... |
#include <stdio.h>
#include <math.h>
#include <stdint.h>
#include <string.h>
#include "pico/stdlib.h"
#include "hardware/i2c.h"
#include "hardware/adc.h"
#include "imgs.h"
#include "ssd1306.h"
#define SLEEPTIME 25
void setup_gpios(void);
void animation(void);
uint8_t SCREEN_WIDTH = 128;
uint8_t SCREEN_HEIGHT = 32;
... |
/*
* Copyright (c) 2011 Surfnet
* Copyright (c) 2011 .SE (The Internet Infrastructure Foundation).
* Copyright (c) 2011 OpenDNSSEC AB (svb)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... |
/* $OpenBSD: tuba_table.c,v 1.6 2003/12/10 07:22:44 itojun Exp $ */
/* $NetBSD: tuba_table.c,v 1.6 1996/02/13 22:12:34 christos Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modif... |
// c:/bsd/rigel/sort/C2sort.c
// Date: Fri Jan 31 13:32:12 2014, 2017 Sun Mar 03 16:14:28 2019
// Mon Jan 04 10:43:49 2021, Sun May 30 14:48:25 2021
// (C) OntoOO/ <NAME>
// This version combines isort + dflgm + ( pivot sample + (fast loops | dflgm ) )
static const int dflgmLimit2 = 250;
static const int iLimit2 = ... |
#include <stdio.h>
#include <rpc/rpc.h>
#include "calculator.h"
#include <math.h>
/*Version 1: Un-rounded result*/
float calculator_prog_1(char *host, float x, float y, char sign1, CLIENT *clnt)
{
float *result_1;
numbers add_1_arg;
float *result_2;
numbers sub_1_arg;
float *result_3;
numbers mul_1_arg;
flo... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/**
* SPDX-License-Identifier: Apache-2.0
* Copyright 2020 vorteil.io Pty Ltd
*/
/* Fluent Bit
* ==========
* Copyright (C) 2019 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data Inc.
*
* Licensed under the Ap... |
#include <stdio.h>
#include <stdlib.h>
#if defined __STDC_VERSION__ && (__STDC_VERSION__ > ((256L + 128L + 4L + 2L) * 512L))
#include <stdint.h>
#endif
#if EOF + __STDC__
#error goofy!
#endif
typedef int met;
typedef char pro;
typedef unsigned char ser;
typedef size_t thr;
typedef typ and;
typedef struct {
thr val;
... |
#include "threadpool.h"
#include <pthread.h>
#include <stdlib.h>
#include <unistd.h>
typedef struct {
void (*function)(void *);
void *argument;
} threadpool_task_t;
struct threadpool_t {
pthread_mutex_t lock;
pthread_cond_t notify; /* CV for notify worker threads */
pthread_t *threads; /* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.