text stringlengths 3.12k 18.7k |
|---|
/* Copyright 2008-2017 <NAME>
This file is part of ASMotor.
ASMotor 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 option) any later vers... |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (c) 2013-2017 by Digital Mars, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, <NAME>)
* License: Distributed under the Boost Software License, Version 1.0.
* ... |
/*
* trap.c - x86 fault handling
*/
#include <errno.h>
#include <stdbool.h>
#include <sys/types.h>
#include <setjmp.h>
#include <bits/setjmp.h>
#include "dune.h"
#include "cpu-x86.h"
static dune_syscall_cb syscall_cb;
static dune_pgflt_cb pgflt_cb;
static dune_intr_cb intr_cbs[IDT_ENTRIES];
static inline unsigned... |
/*
* Copyright 2020 Makani Technologies LLC
*
* 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 ... |
//Phonebook in C by <NAME>
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
#include<windows.h>
struct person
{
char name[35];
char address[50];
char father_name[35];
char mother_name[30];
long int mble_no;
char sex[8];
char mail[100];
char citis... |
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include "list.h"
/*
* Every allocation needs an 8-byte header to store the allocation size while
* staying 8-byte aligned. The address returned by "malloc" is the address
* right after this header (i.e. the size occupies the 8 bytes ... |
/***************************************************************************/
/* */
/* t1afm.c */
/* */
/* AF... |
#define NILE_INCLUDE_PROCESS_API
#include "nile.h"
#include "gezira-image.h"
#include "stddef.h"
#include <stdio.h>
#define Real nile_Real_t
static inline uint8_t
Real_to_uint8_t (Real r)
{
return nile_Real_toi (nile_Real_add (nile_Real_mul (r, nile_Real (255)), nile_Real (0.5)));
}
typedef struct {
uint32_t... |
/* specfunc/bessel_K0.c
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 <NAME>
* Copyright (C) 2016 <NAME>, <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of t... |
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "Expr.h"
#include "Term.h"
#include "UnOpTerm.h"
#include "Op.h"
#include "ast/util/copy_ast.h"
#include "token/list/TokenList.h"
#include "token/token/token.h"
//how many operators there are
#define nops 15
struct Expr* fullTr... |
/*
* Copyright (c) 2015-2016 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <ctype.h>
#includ... |
/*
* ioarena: embedded storage benchmarking
*
* Copyright (c) ioarena authors
* BSD License
*/
#include "ioarena.h"
#include <math.h>
#ifdef __APPLE__
#include <architecture/byte_order.h>
#define htole64(x) OSSwapHostToLittleInt64(x)
#endif
/* #define DEBUG_KEYGEN 1 */
#ifndef DEBUG_KEYGEN
#define DEBUG_KEYG... |
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <pigpio.h>
#include <signal.h>
#include <time.h>
#include <string.h>
#define short_pulse 1000
#define long_pulse (2 * short_pulse)
#define PIN_INPUT_RF433 9
#define PIN_LED_GREEN 4
#define PIN_LED_AMBER 17
#define PIN_LED_RED 27
#define THERMOSTAT_A... |
#include "stddefx.h"
/********/
/* USES */
/********/
/* libs ext. <>, our "" */
#include <math.h>
#include <string.h>
#include "misc.h"
#include "app.h"
#include "table.h"
/* global header (opt.) and test's prototypes "" */
#include "table_p.h"
/* headers of this app. modules called */
/***************/
/* EX... |
/*
** 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... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2019 Arm Limited
*/
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include <unistd.h>
#include <sys/queue.h>
#include <rte_common.h>
#include <rte_memory.h>
#include <rte_per_lcore.h>
#include <rte_launch.h>
#include <rte_eal... |
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <curl/curl.h>
#include <ast.h>
#include "nclist.h"
#include "netcdf.h"
#include "nc.h"
#include "nc4internal.h"
#include "nccr.h"
#include "nccrnode.h"
#include "ncStreamx.h"
#define LINE... |
/*-
* Copyright (c) 2008 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
#include "stm32f4xx_conf.h"
#include "stm32f4_discovery.h"
#include "arm_math.h"
#include "cnc.h"
static const struct {
GPIO_TypeDef *gpio;
uint16_t manualButton, xControl, yControl, zControl, toolLength;
int8_t xOrientation, yOrientation, zOrientation;
} uiPinout = {
.gpio = GPIOA,
.manual... |
/*
* Copyright (c) 2018-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... |
#include <string.h>
#include <stdlib.h>
#ifdef _3DS
#include <3ds.h>
#endif
#include "inih/ini.h"
#include "vb_types.h"
#include "vb_set.h"
VB_OPT tVBOpt;
int vbkey[15];
void setDefaults(void) {
// Set up the Defaults
tVBOpt.MAXCYCLES = 512;
tVBOpt.FRMSKIP = 0;
tVBOpt.DSPMODE = DM_NORMAL;
... |
#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) 2014-2016, <NAME>, <NAME>, RWTH Aachen University
* 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
* ... |
/* Copyright (c) 2014 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.
*
* Misc functions which need access to vb2_context but are not public APIs
*/
#include "2sysincludes.h"
#include "2api.h"
#include "2common.h"
... |
/* $NetBSD: jensenio.c,v 1.3 2001/07/27 00:25:19 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* m... |
/*
* ObjectivelyMVC: Object oriented MVC framework for OpenGL, SDL2 and GNU C.
* Copyright (C) 2014 <NAME> <<EMAIL>>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permissi... |
/*-
* Copyright (c) 2005 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
/* curves/Fp_weierstrass.c
* by <NAME> and <NAME> (<EMAIL>),
* Cryptography Research Group, MSR Redmond, 2014
*
* This file is part of the ARITH library version 0.01
*
* DISCLAIMER:
* This is RESEARCH code.
* Parts of the code might be incomplete.
* Please use at your own risk.
* DO NOT USE IN PRO... |
/*
* This file is part of FFmpeg.
*
* Copyright (c) 2015 <NAME> <matthieu.bouron stupe<EMAIL>>
*
* 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 ... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2009,2010,2012, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* Copyright (c) 2012,2013, by the GROMACS developme... |
#include <assert.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <async/async.h>
#include <async/farewellstream.h>
#include <async/queuestream.h>
#include <async/stringstream.h>
#include ... |
/*
* skin.c
* This file is part of sgui
*
* Copyright (C) 2012 - <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 righ... |
/* 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... |
/*
* rngd_entsource.c -- Entropy source and conditioning
*
* Copyright (C) 2001 <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 op... |
/*
* utils_wipe - wipe a device
*
* Copyright (C) 2004-2007 <NAME> <<EMAIL>>
* Copyright (C) 2009-2019 Red Hat, Inc. All rights reserved.
* Copyright (C) 2009-2019 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as publish... |
#include "state.h"
//the offset index for each row
const int rowId[17] = {0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0};
State* copyState (State *state)
{
State *new_state = (State*) malloc(sizeof (State));
int i, j;
//copy all the information from the current state
new_state -> player = 3 - state... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2014 <NAME> <<EMAIL>>
*/
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/iomux.h>
#include <asm/arch/mx6-pins.h>
#include <linux/errno.h>
#include <asm/gpio.h>
#include <asm/mach-imx/iomux-v3.h>
#include <asm/mach-imx/boot_mode.h>
... |
#include <sys/stat.h>
#include <sys/mman.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "decompress.h"
#include "zap.h"
#if defined(_WIN32) || defined(__C... |
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000-2002 Internet Software Consortium.
*
* 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 ... |
/*-----------------------------------------------------------------------------
BVM Copyright (c) 2018-2021 <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:
* Redistributi... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <stdbool.h>
#include <string.h>
#include <xcb/xcb.h>
#include "tintwm.h"
#include "keys.h"
#include "layouts.h"
xcb_connection_t *dpy;
xcb_screen_t *screen;
struct client *focus, *master;
bool running = true;
uint16_t sw, sh;
vo... |
//
// Created by dillu24 on 14/04/2017.
//
/**
*The client file , each client will run this program in order to play the game ... the client acts as a terminal display
* and it is important because it sends the client input to the server whom he sends the current game map as output.The
* client is also multithreaded ,... |
/**
* \file range_measure.c
*
* \brief Range Measurement mode functionalities - Performance Analyzer
* application of AT86RF215
* This implements the range measurement mode functionality
*
* Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
... |
//SVM-SMO
// http://cs229.stanford.edu/materials/smo.pdf
// <NAME>-Dan 14.05.2019 ver 1.0
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include "../common/posit.h"
#include "../common/dataset.h"
#include "../common/perf.h"
#define PFDEBUG
#define MAX_ITERATIONS 15
element_t g_alphas[TRAINING_DATA_LEN... |
/**
* @file dmx_demo.c
* @author bdeary (<EMAIL>)
* @brief A Demonstration of a DMX512 system for the purpose of end-to-end
* testing of a microprocess based system independent of micro-p
* @date 2020-09-20
*
* Copyright 2020, WetDesigns
*
* @details This file contains the setup and main loop of the syste... |
/* range.c
* Range routines
*
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* 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 Public License
* as published by the Fre... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef int_fast8_t Int8 ;
typedef int_fast16_t Int16 ;
typedef int_fast32_t Int32 ;
typedef int_fast64_t Int64 ;
typedef int bool ;
#define true 1
#define false 0
#define MAX 100
// A Continuation is the representation of the state of o... |
#include <u.h>
#include <libc.h>
#include <stdio.h>
#include <draw.h>
#include <event.h>
#include <memdraw.h>
#define WSIZE 1024
#define HSIZE 1024
/* Colormap pixel data */
int cmap[WSIZE][HSIZE];
/* Heightmap pixel data */
int hmap[WSIZE][HSIZE];
double camerax = 800;
double cameray = 800;
double cameraAngle = 0;
i... |
/*
* @author: <NAME>: akn1736
* @date: November 30th 2016
* @filename: encoder.c
*/
#include "customLister.h"
#include "HeapDT.h"
#include "encoder.h"
#define EMPTY NULL
#define MAGIC_NUMBER 0x80F0
#define MAX_SIZE 256 // We know that for every thing the max size is 2^8
/* Function used to create Nodes that go i... |
/*
Glidix kernel
Copyright (c) 2014-2017, <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 condit... |
/************************************************************************
* gm algorithms used by Penglai Monitor
* This file is copied from https://github.com/Penglai-Enclave/gm.git
************************************************************************/
#include "sm/gm/sm3.h"
#include "sbi/sbi_string.h"
/*
* 3... |
#include "resource.h"
#if 0
/*
################### PRIVATE SECTION ###################
*/
#endif
static void* __resource_reade_entry_data_byte(la_int64_t entry_size, struct archive *a, int *status) {
const void *buff;
size_t size;
la_int64_t offset;
char * buffer = malloc(entry_size);
while (true) {
*stat... |
/* --COPYRIGHT--,BSD
* Copyright (c) 2015, 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 copy... |
/*
* $Id:$
*
* Pretty interesting which OS answers for arp request for
* 127.0.0.1, 0.0.0.0 or gives replies about MAC from other
* interfaces (linux for example).
*/
#include "default.h"
#include <sys/types.h>
#include <stdio.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdlib.h>
#include <stda... |
/*
Copyright (c) <2007-2012> <<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, copy, modify, merge, p... |
/*
Copyright (c) 2009 <NAME> and <NAME>, University of Geneva
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 ... |
#include <kernel/devices.h>
#include <kernel/utils/registers.h>
#include <kernel/interrupts/idt.h>
#include <kernel/interrupts/irq.h>
#include <kernel/memory/ports.h>
#include <kernel/memory/io.h>
#include <kernel/tty.h>
#include <stdio.h>
unsigned char kbdmap[];
void keyboard_handler(irq_registers* r)
{
unsigne... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2018 <NAME> <<EMAIL>>
* Copyright (C) 2018 <NAME> <<EMAIL>>
* Copyright (C) 2018 <NAME> <<EMAIL>>
*/
#include <common.h>
#include <init.h>
#include <serial.h>
#include <spl.h>
#include <asm/global_data.h>
#include <linux/delay.h>
#include <asm/io.h>
#include... |
/* $NetBSD: com_dio.c,v 1.1 2003/11/08 11:18:33 tsutsui Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by <NAME>.
*
* Redistribution and use in source and binary forms, with or without
* modifica... |
/*
Copyright 2021 MajorKoos <github.com/majorkoos>
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... |
#include "../test.h"
//#include <openssl/bn.h>
//#include <openssl/hmac.h>
#include <openssl/evp.h>
#include <openssl/conf.h>
#include <openssl/err.h>
#include <openssl/aes.h>
#include <string.h>
#include <openssl/hmac.h>
void split_first(char *str, char **in, char **end){
int i=0;
*in = &str[0];
for (i=0;st... |
/**
* NMF_MU - calculates the nmf using a multiplicative update method
*
* Purpose:
* This routine calculates a non negative matrix factorisation of a m by n matrix A
*
* A = W * H
*
* where A, W and H are non-negative matrices.
* W is a m by k matrix
* H is a k by n matrix
* k ... |
/*****************************************************************************
* gstvlcvideosink.c: VLC gstreamer video sink
*****************************************************************************
* Copyright (C) 2016 VLC authors and VideoLAN
* $Id:
*
* Author: <NAME> <<EMAIL>>
*
* This library is free so... |
#include <stdarg.h>
#define _DEFAULT_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <assert.h>
#include "mem_internals.h"
#include "mem.h"
#include "util.h"
void debug_block(struct block_header *b, const char *fmt, ...);
void debug(const char *fmt, ...);
extern inli... |
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include "telehash.h"
// this lib implements basic JWT support using the crypto/lob utilities in telehash-c
// one JWT is two chained packets using lob.c
// token->head is the JWT header JSON
// token->body is a raw LOB for the claims
/... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <unistd.h>
#include <errno.h>
#include <asm/types.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <net/ethernet.h>
#include <linux/netlink.h>
#include "prowlan_var.h"
#include "prowlan_ipc.h"
#define MAX_PAYLOAD 512
s... |
/*
Unix SMB/Netbios implementation.
Version 2.0.x.
Create unicode map files from unicode_def.XXX files.
Copyright (C) <NAME> 1997-1999.
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 Foun... |
/*
MS5607-02 SPI library for ARM STM32F103xx Microcontrollers - Main source file
05/01/2020 by <NAME> <<EMAIL>>
Changelog:
2012-05-23 - initial release.
*/
/* ============================================================================================
MS5607-02 device SPI library code for ARM STM32F103xx... |
#pragma once
#include <stdbool.h>
#include "riscv.h"
#define RV_NUM_REGS 32
// csrs
enum {
// floating point
CSR_FFLAGS = 0x001,
CSR_FRM = 0x002,
CSR_FCSR = 0x003,
// machine trap status
CSR_MSTATUS = 0x300,
CSR_MISA = 0x301,
CSR_MEDELEG = 0x302,
CSR_MIDELEG = 0x303,
CSR_MIE ... |
/*=============================================================================
*
* The file is part of IQoT project which release under Apache 2.0 license.
* See the License file in the root of project.
* _____________________________________________________________________________
* Source code of this file uses piec... |
/*
* Copyright 2019-present Open Networking Foundation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
#include <unistd.h>
#include "log.h"
#include "err_codes.h"
#include "s1ap.h"
#include "ipc_api.h"
#include "main.h"
#include "stage2_info.h"... |
/*
Funções de leitura e escirta de arquivos
*/
#include "config.h"
#include "comum.h"
config arquivo_configuracao;
config arquivo_idioma;
config arquivo_config_user;
int loaded_config = 0;
int loaded_idioma = 0;
int loaded_config_user = 0;
void libera_string(char *string) {
int i;
//printf("libera string %d"... |
/**
* @file sipevent/listen.c SIP Event Listen
*
* Copyright (C) 2010 Creytiv.com
*/
#include <re_types.h>
#include <re_mem.h>
#include <re_mbuf.h>
#include <re_sa.h>
#include <re_list.h>
#include <re_hash.h>
#include <re_fmt.h>
#include <re_uri.h>
#include <re_tmr.h>
#include <re_sip.h>
#include <re_sipevent.h>
#... |
/* cairo - a vector graphics library with display and print output
*
* Copyright © 2002 University of Southern California
* Copyright © 2005 Red Hat, Inc.
* Copyright © 2009 Intel Corporation
*
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser Ge... |
/*------------------------------------------------------------------------------
* rtklib unit test driver : matrix and vector functions
*-----------------------------------------------------------------------------*/
#include <stdio.h>
#include <assert.h>
#include "../../src/rtklib.h"
void dbout1(double *x, double *y... |
#include <stdio.h>
#include <stdlib.h>
#include <FreeImage.h>
#ifdef _WINDOWS
#include <direct.h>
#include "dirent-win.h"
#else
#include <unistd.h>
#include <dirent.h>
#endif
// Types
struct rect_t
{
int x, y;
int width, height;
};
struct texture_t
{
char* filename;
FIBITMAP* dib;
int pixel_size;
struct r... |
/*
Copyright 2020 <NAME>, <NAME>
<EMAIL>
<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://www.apache.org/licenses/LICENSE-2.0
Unless required by applicab... |
/***************************************************************************//**
* @file
* @brief CLI for the Sub-Ghz Server plugin.
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
************************... |
//
// Copyright 2019 Staysail Systems, Inc. <<EMAIL>>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
// file was obtained (LICENSE.txt). A copy of the license may also be
// found online at https://opensource.org/licenses/MIT.
//
... |
#include <errno.h>
#include <fcntl.h> // for opening socket
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h> // for closing socket
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#define T... |
/*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2021 <NAME> <<EMAIL>>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/... |
/*
ZEsarUX ZX Second-Emulator And Released for UniX
Copyright (C) 2013 <NAME>
This file is part of ZEsarUX.
ZEsarUX 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 th... |
/*
Copyright (c) 2013, Intel Corporation
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 conditions and the following disclaime... |
/* -*- C -*- */
/*
* Copyright (c) 2011-2020 Seagate Technology LLC and/or its Affiliates
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... |
/**
* Copyright (c) 2018 makerdiary
* 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 conditions and ... |
/*
* The MIT License
*
* Copyright © 2016 2sui.
*
* 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, ... |
/*
*
* RetroBSD - PS2 keyboard driver for the Maximite PIC32 board
*
* Copyright (C) 2011 <NAME> <<EMAIL>>
* All rights reserved. The three clause ("New" or "Modified")
* Berkeley software License Agreement specifies the terms and
* conditions for redistribution.
*
*/
/*
../kbd.c: In function 'initKBD':
../k... |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <aos/hal/gpio.h>
#include <pinmux.h>
#include <aos/hal/pwm.h>
#include <drv_light.h>
pwm_dev_t *io_config = NULL;
#define LIGHT_PERIOD 500
#define LIGHT_CTL_TEMP... |
/* -*- c-file-style:"stroustrup"; indent-tabs-mode: nil -*- */
#include "lib/sockets/pbpal_adns_sockets.h"
#include "pubnub_internal.h"
#include "core/pubnub_assert.h"
#include "core/pubnub_log.h"
#if !defined(_WIN32)
#include <arpa/inet.h>
#endif
#include <stdint.h>
#include <string.h>
/** DNS message header */
... |
#ifdef _WINDOW_CONFIG
/* default window dimensions (overwritten via -g option): */
enum {
WIN_WIDTH = 800,
WIN_HEIGHT = 600
};
/* bar font:
* (see X(7) section "FONT NAMES" for valid values)
*/
static const char * const BAR_FONT = "-*-fixed-medium-r-*-*-13-*-*-*-*-60-*-*";
/* colors:
* (see X(7) section "COLOR... |
/*
* Copyright (c) 2021 PANTHE<EMAIL> s.r.o.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
/*
* Copyright (c) 2012, 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, CAB F.78, Universitaetstr 6, CH-8092 Zurich.
*/
#include <kernel.h>
#include <dev/pl390_... |
/*
* ISC License
*
* Copyright (C) 1984-2018 by
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 c... |
//**************************************************************************
//ORFone project
//Core of transport module
//**************************************************************************
#include <limits.h>
#include <stdio.h>
#ifdef _WIN32
#include <stddef.h>
#include <stdlib.h>
#include <bas... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "avl_ntudsa.h"
/* Creates and returns a new table
with comparison function |compare| using parameter |param|
and memory allocator |allocator|.
Returns |NULL| if memory allocation failed. */
struct avl_table *
avl_create (a... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 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 ... |
/*
* Title : Game of life / display
* Desc : Display management for the Game of Life
* Author : <NAME>
* Date : December 2018
* Version : 0.2
MIT License
Copyright (c) 2018-2019 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated docu... |
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <inttypes.h>
#include "stats_repeat.h"
#include "stats_load.h"
#include "parse.h"
typedef struct stats_repeat {
stats_t base;
double samples;
double sample;
double limit;
double after;
double progress;
stats_t *stats;... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <err.h>
#include <time.h>
/*
Tp03 Lista Dupla Flex
Matricula: 690773
Author: <NAME>
Version: 2.0.0
*/
#define TOTAL_MUSIC_NUMBER 170625
#define MAX_LINE_LENGTH 1000
#define MAX_QUEUE_LENGTH 5
#define MAX_ID_LENGTH 25
type... |
/********************************************************************************/
/* */
/* IWG EK Index Parsing */
/* Written by <NAME> */
/* IBM Thomas J. Watson Research Center */
/* $Id: createek.c 1304 2018-08-20 18:31:45Z kgoldman $ */
/* */
/* (c) Copyright ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.