text stringlengths 3.12k 18.7k |
|---|
/* packet-t2am.c
* Routines for TinyOs2 Serial Active Message
* Copyright 2007, <NAME> <<EMAIL>>
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Pub... |
/**
* Ruuvi Firmware 3.x code. Reads the sensors onboard RuuviTag and broadcasts the sensor data in a manufacturer specific format.
*
* License: BSD-3
* Author: <NAME> <<EMAIL>>
**/
#include "application_config.h"
#include "ruuvi_interface_log.h"
#include "ruuvi_interface_rtc.h"
#include "ruuvi_interface_schedule... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/*
* Copyright (C) 2008-2020 Advanced Micro Devices, Inc. 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 ... |
/* INTERFACE VISUAL DO PROGRAMA
AUTORES: <NAME>, <NAME>
DATA: NOVEMBRO/2016 PROGRAMAÇÃO DE COMPUTADORES 2 */
#include <gtk/gtk.h>
#include <time.h>
#include <stdlib.h>
#include "urna.h"
#define N 0 //espaçamento
#define X 5 //número de algarismos dos números dos candidatos
#define C 129 // qtd de caracteres pad... |
/*-------------------------------------------------------------------------
*
* pg_largeobject.c
* routines to support manipulation of the pg_largeobject relation
*
* Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
... |
/*
Copyright (c) 2007, 2008 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,... |
/******************************************************************************
*
* Copyright (C) 2014 - 2017 Xilinx, Inc. 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 Softwa... |
/**
* Copyright (c) 2010 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR... |
#pragma once
#include <cassert>
#include <cstdarg>
#include <string>
#ifdef USE_STORE_LOG_STR_IN_FLASH
#include "WString.h"
#endif
// avoid esp-idf redefining our macros
#include "esphome/core/esphal.h"
#ifdef ARDUINO_ARCH_ESP32
#include "esp_err.h"
#endif
namespace esphome {
#define ESPHOME_LOG_LEVEL_NONE 0
#defi... |
/*
* Copyright (c) 2007-2011, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
*/
#include <stdio.h>
#i... |
/*
** Copyright (c) 1999, 2000 <NAME>
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public
** License as published by the Free Software Foundation; either
** version 2 of the License, or (at your option) any later version.
**
** This program is distr... |
///////////////////////////////////////////////////////////////////////////////
//
// 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.... |
/*
* main.c
* Sieve of Eratosthenes
*
* Created by Nick on 7/22/14.
* Copyright (c) 2014 nick. All rights reserved.
*/
typedef unsigned long ulong;
#include "main.h"
#define INT_BIT 8*sizeof(int)
/* These defines are taken from the C-FAQ. http://c-faq.com/misc/bitsets.html */
/*
* Adjusted for int to operate on... |
/*
* matrix.c
*
* Copyright (c) 2014 <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, m... |
/*
* Copyright (c) 2017, <NAME> - http://www.spd.gr
* 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, th... |
/*
Copyright (c) 2019 <NAME>
This software is licensed under the MIT License. See the license file for details.
Source: github.com/spacehuhn/SimpleCLI
*/
#include "parser.h"
#include <stdlib.h> // malloc
#include <string.h> // strlen
#include <stdbool.h> // bool
// My own implementation, because the defa... |
void alarmkproc(void*);
Block* allocb(ulong);
int anyready(void);
Image* attachimage(int, Chan*, ulong, ulong);
void bitdebug(void);
void bitdepth(void);
void bitreverse(uchar*, int);
int blen(Block *);
int bround(Block *, int);
void buzz(int, int);
void cachedel(Image*, ulong);
void cachepage(Page*, Image*... |
/*
* Copyright 2017 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 applica... |
/* MIT License
*
* Copyright (c) 2022 ma-lwa-re
*
* 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, p... |
/*
* Copyright (C) 2013- <NAME> <<EMAIL>>
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include "config.h"
#include "cint_bas.h"
#include "misc.h"
#include "g2e.h"
void CINTg0_2e_lj2d4d_regular(double *g, struct _BC *bc, const CINTEnvVars *envs);
FINT CINTg0_2e_gtg(double *g, ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/**
******************************************************************************
* File Name : FSMC.c
* Date : 07/03/2015 11:48:11
* Description : This file provides code for the configuration
* of the FSMC peripheral.
************************************... |
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include "libavutil/common.h"
#include "mpbswap.h"
#include "stream/stream.h"
#include "demuxer.h"
#include "stheader.h"
#include "libmpcodecs/vqf.h"
static int demux_probe_vqf(demuxer_t* demuxer)
{
char buf[KEYWORD_BYTES];
stream_t *s;
s = demuxer->s... |
/*
* Parallel port device probing code
*
* Authors: <NAME>, <EMAIL>
* <NAME> <<EMAIL>>
*/
#include <linux/module.h>
#include <linux/parport.h>
#include <linux/ctype.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
static const struct {
const char *token;
const char... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include "ebtree.h"
#include "eb32tree.h"
#define rdtscll(val) \
__asm__ __volatile__("rdtsc" : "=A" (val))
static inline struct timeval *tv_now(struct timeval *tv) {
gettimeofday(tv, NULL);
return tv;
}
static inline unsigned l... |
typedef unsigned char b8;
typedef unsigned b32;
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
int rpr (b32 * h) {
printf ("%08x%08x%08x%08x%08x\n", *h, *(h + 1), *(h + 2), *(h + 3),
*(h + 4));
return 0;
}
int die (char *msg) {
fputs (msg, stderr);
exit (0);
} ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <assert.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/enclavelibc.h>
#include <openenclave/inte... |
/* $Id: old_odbtpcli.c,v 1.1 2004/04/14 16:41:59 rtwitty Exp $ */
/*
odbtpcli - Example ODBTP client program
Copyright (C) 2002 <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Softw... |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... |
#include "v.h"
#include "vec3.h"
#define boxnumber(BOX,NB) (BOX[0]*NB[1]*NB[2] + BOX[1]*NB[2] + BOX[2])
static int cmpint(const void * p1, const void * p2){
int d = *(int *)p1 - *(int *)p2;
if (d > 0)
return 1;
else if (d < 0)
return -1;
else
return 0;
}
static void makelist(int bsize_max, int ... |
/**
******************************************************************************
* @file Examples_LL/PWR/PWR_EnterStandbyMode/Src/main.c
* @author MCD Application Team
* @version V1.0.0
* @date 14-April-2017
* @brief This example describes how to enter and exit the standby mode with
* ... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <omp.h>
int hamming(int l, u_int8_t *a, u_int8_t *b);
int timedif(struct timespec *start, struct timespec *stop);
int main(int argc, char **argv) {
int m, n, l, t, i, j, k, distSumR = 0, distSumC = 0, distSumH = 0; // m = A strings, n... |
/*
* parmap.c - Parallelized execution of a shell command
*
* Copyright (c) 2020 <NAME>
* License: MIT
*/
#define _DEFAULT_SOURCE
#include <ctype.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <libgen.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include... |
/*-
* Copyright (c) 2012-2017 <NAME>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following... |
/*! \file udaemon.c
libμdaemon implementation
*/
#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <syslog.h>
#include <udaemon.h>
#include <unistd.h>
... |
/*
PMG - Ultima revision: 01/06/2001
*/
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
/*Defino la funcion sigmoidea*/
#define sigmoid(h) 1.0/(1.0+exp(-h))
/*parametros de la red y el entrenamiento*/
int N1; /* N1: NEURONAS EN CAPA DE ENTRADA */
int N2; /* N2: NEU... |
/*
* The new sysinstall program.
*
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
* $FreeBSD: src/usr.sbin/sysinstall/ftp.c,v 1.46 2005/12/08 12:43:20 nyan Exp $
*
* Copyright (c) 1995
* <NAME>. All rights reserved.
*
* R... |
#pragma once
#include <stddef.h>
#define DSZ_CLIB_MODULE_VISIBILITY __attribute__ ((visibility ("default")))
#if defined(_MSC_VER)
#undef DSZ_CLIB_MODULE_VISIBILITY
#define DSZ_CLIB_MODULE_VISIBILITY __declspec(dllexport)
#endif /* defined(_MSC_VER) */
#define DSZ_CLIB_CALLING_CONVENTION
#if defined(_MSC_VER... |
//
// $Id: uip_arch.c 241 2008-10-29 10:59:45Z jcw $
// $Revision: 241 $
// $Author: jcw $
// $Date: 2008-10-29 06:59:45 -0400 (Wed, 29 Oct 2008) $
// $HeadURL: http://tinymicros.com/svn_public/arm/lpc2148_demo/trunk/uip/uip/uip_arch.c $
//
/*
* Copyright (c) 2001, <NAME>.
* All rights reserved.
*
* Redistri... |
#include "stdint.h"
#include "stdio.h"
#include "stdlib.h"
#include <arpa/inet.h>
#include <assert.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#define MIN_MRT_LENGTH 12
#define BGP4MP 16
#define BGP4MP_STATE_CHANGE 0
#define BGP4MP_MESSAGE 1
#define BGP4... |
#include <stdio.h>
#include "system.h"
#include "altera_avalon_performance_counter.h"
#include "io.h"
#include "images.h"
//#include "math.h"
/*ine SECTION_3 3221
#define SECTION_4 4831
#define PERF_PRINT 0*/
#define DEBUG 0
#define TRUE 1
#if DEBUG == 1
#define SIZE 11
#else
#define SIZE 3
#endif
/*#define FLAG_1... |
#include <stdio.h>
#include <string.h>
#include "xil_io.h"
#include "sleep.h"
#include "pcie.h"
int pcie_setup()
{
u32 val;
// Assert reset (MIO31)
Xil_Out32LE(GPIO + MASK_DATA_1_LSW, 0xFFDF0000);
// Note: set-up for Root Port mode performed by the FSBL
// Details in Ch.30 of Zynq US+ TRM
// Map bridge regist... |
#include <re.h>
#include <baresip.h>
#include <string.h>
#include "webapp.h"
static struct tmr tmr;
static struct odict *accs = NULL;
static char filename[256] = "";
static struct http_req *req = NULL;
static struct http_cli *cli = NULL;
const struct odict* webapp_accounts_get(void) {
return (const struct odict *)a... |
/*
* Copyright © 2015 Intel Corporation
*
* 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, pub... |
/**
*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 n... |
#ifndef lint
static const char RCSid[] = "$Id: tabfunc.c,v 1.8 2019/12/28 18:05:13 greg Exp $";
#endif
/*
* Put tabular data into functions suitable for cal programs.
*
* 2/2/95 <NAME>
*/
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include "rtprocess.h" /* getpid() */
#include "rtmath.h"
#include "r... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Fluent Bit
* ==========
* Copyright (C) 2019 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... |
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <assert.h>
#include "json.h"
#include "json_tokener.h"
static void test_basic_parse(void);
static void test_verbose_parse(void);
static void test_incremental_parse(void);
int main(int argc, char **argv)
{
MC_SET_DEBUG(1);
test... |
/*
*********************************************************************************************************
* EXAMPLE CODE
*
* (c) Copyright 2009-2014; Micrium, Inc.; Weston, FL
*
* All rights reserved. Protected by international copyri... |
/************************************************************************
** VOSSAP.C -- Worker procedure to make a query to an SSAP service.
**
** <NAME>, NOAO, Februaary 2009
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include "VOClient.h"
#include "voAppsP.h"
extern int ... |
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <time.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#define MAXLINE 4096
#define MAXDATASIZE 100
//Funcao para tratar p... |
//############################################################################
//
// FILE: SD.h
//
// TITLE: Command, Data Token, Global Prototypes, and Global Variables
//
//############################################################################
// Author: <NAME>
// Release Date: Dec 2021
//###################... |
/*
MIT License
Copyright (c) 2020 <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, distri... |
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include <ctype.h>
#include "git2/errors.h"
#include "common.h"
#include "netops.h"
#include "posix.h"
... |
// Amazon FPGA Hardware Development Kit
//
// Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Amazon Software License (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.co... |
#include <signal.h>
#include "open62541.h"
static void addkoordinate(UA_Server *server) {
UA_NodeId pumpId; /* get the nodeid assigned by the server */
UA_ObjectAttributes oAttr = UA_ObjectAttributes_default;
oAttr.displayName = UA_LOCALIZEDTEXT("en-US", "Pump (Manual)");
UA_Server_addObjectNode(server, UA_... |
/* =================================================== */
/* Intelligent FRAC. (C) 2000 <NAME> */
/* --------------------------------------------------- */
/* See LICENSE regarding distribution policy and */
/* conditions of use. */
/* ===============================... |
/** @example ex/simpleBrowserFlow.c
*/
/*
* This sample shows how to create and use browser flows.
* It demonstrates:
* - creating a browser flow,
* - browsing messages spooled on Endpoints without removing them.
* - selectively removing messages from the persistent store of an Endpoint.
*
* This sample req... |
/* Copyright 2016 <NAME>
* Copyright 2019 <NAME> (@drashna, aka <NAME>)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later v... |
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "config.h"
#include "values.h"
#include "gc.h"
/* A "space" describes one generation of the generational collector. */
struct space {
value *start, *next, *limit;
};
/* Either start==NULL (meaning that this generation has not yet been created),
o... |
#include <platform/partition.h>
#include <platform/partition_wp.h>
#include <printf.h>
#include <platform/boot_mode.h>
#include <platform/mtk_wdt.h>
#include <platform/env.h>
#ifdef MTK_SIM_LOCK_POWER_ON_WRITE_PROTECT
extern int is_protect2_ready_for_wp(void);
extern int sync_sml_data(void);
#endif
/* check if prote... |
#ifndef _TREE_H
#include <tree.h>
#endif
#ifndef _STRING_H
#include <string.h>
#endif
#ifndef _STDLIB_H
#include <stdlib.h>
#endif
#define MAX(a, b) ((a) > (b) ? (a) : (b))
///A getter
int getHeight(treeNode* treenode)
{
if (treenode == NULL) {
return 0;
} else {
return treenode->height;
... |
/*
* This file contains the table with socket driver mappings. One socket driver
* may implement multiple domains (e.g., PF_INET and PF_INET6). For this
* reason, we assign a unique number to each socket driver, and use a "socket
* device map" table (smap) that maps from those numbers to information about
* sock... |
/*
* The MIT License (MIT)
* Copyright (c) 2018 <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, mo... |
/*
* UAE - The Un*x Amiga Emulator
*
* Read 68000 CPU specs from file "table68k" and build table68k.c
*
* Copyright 1995,1996 <NAME>
*/
#include "sysconfig.h"
#include "sysdeps.h"
#include <assert.h>
#include <ctype.h>
#include "options.h"
#include "readcpu.h"
#include <string.h>
static FILE *tablef;
static ... |
/* redblue_stereo.c - demo of stereo for red/blue filter stereo glasses */
/* by <NAME> (<EMAIL>, <EMAIL>) */
/* In stereo mode, the object is drawn in red for the left eye
and blue for the right eye. Viewing the scene with red/blue
filter stereo glasses should give a sense of stereo 3D.
glColorMask is use... |
#include "music.c"
int exit_music;
void setNote(Note *n){
switch((*n).i){
case MELODY:
NR10_REG = 0x00U; //pitch sweep
NR11_REG = 0x84U; //wave duty
NR12_REG = (*n).env; //envelope
NR13_REG = (UBYTE)frequencies[(... |
/*
* Mesa 3-D graphics library
*
* Copyright (C) 1999-2007 <NAME> All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limit... |
/* linux/drivers/media/video/exynos/fimg2d_v5/fimg2d5x_blt.c
*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* Samsung Graphics 2D driver
*
* 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
... |
/*
Arquivo que contém as funções de criação para cada tipo de nó
*/
#include "figuras.h"
//Definindo tipos de modificações
#define FIGURA 0
#define DIMENSAO 1
/* Cria as figuras de acordo com o tipo informado na entrada */
// Cria um nó definindo a partir do tipo
TFIGURA* criar_no(char* tipo, int dim, int base_meno... |
/*
* kmod-static-nodes - manage modules.devname
*
* Copyright (C) 2004-2012 <NAME> <<EMAIL>>
* Copyright (C) 2011-2013 ProFUSION embedded systems
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License... |
/*
* Copyright (c) 2006-2007 The Regents of the University of California.
* Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved.
* Copyright (c) 2002-2010 Mellanox Technologies LTD. All rights reserved.
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
* Copyright (c) 2009 HNR Consulting. Al... |
/* Triangulate
Efficient Triangulation Algorithm Suitable for Terrain Modelling
or
An Algorithm for Interpolating Irregularly-Spaced Data
with Applications in Terrain Modelling
Written by <NAME>
Presented at Pan Pacific Computer Conference, Beijing, China.
January 1989
Abstract
A discussion... |
/*
* SPDX-FileCopyrightText: 2020 Efabless 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
/**
* UNPUBLISHED PROPRIETARY SOURCE CODE
* Copyright (c) 2016 MXCHIP Inc.
*
* The contents of this file may not be disclosed to third parties, copied or
* duplicated in any form, in whole or in part, without the prior written
* permission of MXCHIP Corporation.
*
*/
/***************************... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/*
Copyright (C) 1996-1997 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in th... |
//Copyright (c) 1998 - 1999 Microsoft Corporation
/******************************************************************************
*
* QAPPSRV.C
*
* query appserver information
*
*
*******************************************************************************/
/*
* Includes
*/
#include <windows.h>
#... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
** This notice applies to any and all portions of this... |
/*
* util/storage/slabhash.c - hashtable consisting of several smaller tables.
*
* Copyright (c) 2007, NLnet Labs. All rights reserved.
*
* This software is open source.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
// ----------------------------------------------------------------------------------------------
// File main.c
//
// Copyright (c) 2016, 2017 DexLogic, <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"),... |
/*
********************************************************************************
*
* GSM AMR-NB speech codec R98 Version 7.6.0 December 12, 2001
* R99 Version 3.3.0
* REL-4 Version 4.1.0
*
*********************... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Transmit and receive data in UART RS485 mode.
* This sample code needs to work with UART_RS485_Master.
*
* SPDX-License-Identifier: Apache-2.0
* @copyright (C) 2016 Nuvoton T... |
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
typedef enum {
positive, negative
} Symbol;
typedef struct Digit *PtrToDigit;
struct Digit {
int num;
PtrToDigit before;
PtrToDigit next;
};
/**
* 以数字创建节点,前后节点置空
* @param num 数字
* @return 包装好的节点
*/
PtrToDigit CreateDigi... |
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
#include <native/task.h>
#include <native/timer.h>
#include <native/sem.h>
#include <native/mutex.h>
#include <native/cond.h>
#include <native/alarm.h>
#include "applicfg.h"
#include "can_driver.h"
#include "timer.h"
#define TIMERLOOP_TASK_CREATED ... |
/*
* GStreamer
* Copyright (C) 2006 <NAME> <zaheerabbas at merali dot org>
* Copyright (C) 2008 Pioneers of the Inevitable <<EMAIL>>
* 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 "... |
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Resea... |
/**
* Copyright (C) 2020 Bosch Sensortec GmbH
*
* SPDX-License-Identifier: BSD-3-Clause
*
* @file bmi08x_read_from_fifo.c
* @brief Sample code to read BMI08x sensor data from FIFO
*
*/
/*********************************************************************/
/* system header files */
/**********... |
// This file is part of Deark.
// Copyright (C) 2016 <NAME>
// See the file COPYING for terms of use.
// GRASP GL animation format
// GRASP font format
#include <deark-config.h>
#include <deark-private.h>
DE_DECLARE_MODULE(de_module_graspgl);
DE_DECLARE_MODULE(de_module_graspfont);
typedef struct localctx_struct {
... |
/*****************************************************************************
* HW2_131044084_Mehmed_Mustafa *
* System Programming - GrepFromDir *
* Date: 19.03.2016 *
*****************************************************************************/
#include <stdio.h>
#include ... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 <NAME> / <NAME>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as ... |
// Copyright 2015-2016 Espressif Systems (Shanghai) PTE 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 app... |
//!
//! @file ble.c
//! @brief
//! @version 0.1
//!
//! @date 2020-09-27
//! @author <NAME> (<EMAIL>)
//!
//! @institution University of Colorado Boulder (UCB)
//! @course ECEN 5823-001: IoT Embedded Firmware (Fall 2020)
//! @instructor <NAME>
//!
//! @assignment ecen5823-assignment6-baquerrj
//!
//! @resources Ut... |
#pragma once
#include <stdbool.h>
#include <malloc.h>
#include <hashtbl.h>
#include <mutex.h>
#include <proto/fs.h>
#include <pager.h>
// How to use :
// - When using a filesystem : never call the operations in fs_*_ops_t directly, use
// the functions defined bellow in section "public functions";
// Users of t... |
/* $OpenBSD: kern_task.c,v 1.17 2015/12/08 11:48:54 dlg Exp $ */
/*
* Copyright (c) 2013 <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 c... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "error.h"
#include <unistd.h>
#include <event2/listener.h>
#include <event2/util.h>
#include <event2/event.h>
#include <json-c/json.h>
#include "modules.h"
struct session_s {
char *tdi;
char *tdo;
char *tck;
char *tms;
char *sys_clk;
struct eve... |
/*
* Copyright (C) Red Hat 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, merge, publish, di... |
#include "worker_threads.h"
#include "server_connect.h"
#include "files_list.h"
void * work(void * ptr){
while (1) {
if(pool.count > 0) {
int num_of_data = check_data(&pool);
printf("Num of data : %d\n", num_of_data);
if (num_of_data == 2) { //ip, p... |
/*
* Acceleration for the Creator and Creator3D framebuffer - Circle rops.
*
* Copyright (C) 1999 <NAME> (<EMAIL>)
* Copyright (C) 1999 <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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.