text stringlengths 3.08k 10.5k |
|---|
/*
Copyright (c) 2014 NicoHood
See the readme for credit to other people.
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,... |
/**
* device.h
* Generic representation of a storage device.
*
* @author <NAME> <<EMAIL>>
*/
#include "device.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include "utils.h"
#define SIZE_PRINTF "%.2f%c"
/**
* Pushes a storage device into a container.
*
* @param list Device container.
* @par... |
/*
* Copyright 2012 Advanced Micro Devices, 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 Software without restriction, including without limitation
* on the rig... |
/*
* Copyright (C) 2018 Microchip Technology Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
/*! This file contains two functions for reading BMP files to Cairo image surfaces.
*
* All prototypes are defined in cairo_bmp.h All functions and their parameters
* and return values are describe... |
/*****************************************************************************
* HW1_131044084_Mehmed_Mustafa *
* System Programming - GrepFromFile *
* Date: 09.03.2016 *
***... |
#include "ext.h"
#include "ext_obex.h"
#include "z_dsp.h"
#include "soundpipe.h"
typedef struct _sposc
{
t_pxobject ob;
long ob_in; // holds the inlet number used by all parties
void *ob_proxy;
// soundpipe-related
sp_data *sp; // soundpipe data
sp_osc *osc; // soundpipe osc
sp_ftbl *ft; /... |
#include "read_power.h"
int pot_len = 8640;
power_t* power_over_time = NULL;
modbus_t* mb = NULL;
power_t* init_power_over_time(char* statefile, time_t* start) {
*start = 0;
FILE* f = NULL;
if (statefile != NULL) {
f = fopen(statefile, "rb");
}
if (f != NULL) {
uint8_t len_buf[4];
fread(len_buf, 1, 4, f... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "tool.h"
typedef int val_type;
typedef int (*comparator)(val_type, val_type);
const int heap_min_cap = 11;
typedef struct heap {
int size;
int cap;
val_type *data;
comparator cmp;
} heap;
heap *heap_create(comparator cmp)
{
heap ... |
#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <linux/stat.h>
#include <linux/types.h>
#include <linux/spi/spidev.h>
#include <errno.h>
#define PCKT_SIZE 8
/* FUNCTIONS PROTOTYPES */
static voi... |
/*
* Copyright 2017, Data61
* Commonwealth Scientific and Industrial Research Organisation (CSIRO)
* ABN 41 687 119 230.
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(DATA... |
/*
* Copyright (c) 1989 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and use in source and binary forms are permitted
* provided that: (1) source distributions retain this entire copyright
* no... |
/*-
* Copyright (c) 2018 <NAME> <<EMAIL>>
* All rights reserved.
*
* This software was developed by BAE Systems, the University of Cambridge
* Computer Laboratory, and Memorial University under DARPA/AFRL contract
* FA8650-15-C-7558 ("CADETS"), as part of the DARPA Transparent Computing
* (TC) research program.
... |
/* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 2006 CaH4e3
*
* 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 Licen... |
/*
showimage: A test application for the SDL image loading library.
Copyright (C) 1997-2006 <NAME>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 o... |
/***************************************
$Header$
State machine to check for bad cmene.
***************************************/
/* Copyright (C) <NAME> 2001 */
/* LICENCE */
#if defined(TEST)
#include <stdio.h>
#endif
#include "bccheck.h"
enum tokens {/*{{{*/
TA, TE, TI, TO, TU, TY, TD, TL,
TOC, TAP, T... |
/*
* net/l3mdev/l3mdev.c - L3 master device implementation
* Copyright (c) 2015 Cumulus Networks
* Copyright (c) 2015 <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 Software Foundation; ei... |
/*
// Trabalho Pratico Programacao - LEI
// DEIS-ISEC 2019-2020
*
-> Criado por: <NAME>
-> Número de aluno: a2019137625
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "utils.h"
#include "structs.h"
#include "struct_recuar.h"
precua carrega... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* type_entry.c :+: :+: :+: ... |
/*
* Copyright (C) 2013 Google, Inc
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <spi.h>
#include <spi_flash.h>
#include <dm/device-internal.h>
#include <dm/test.h>
#include <dm/uclass-internal.h>
#include <dm/ut.h>
#include <dm/util.h>
#include <asm/sta... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* Copyright (c) 2016, Juniper Networks, Inc. All rights reserved.
*
*
* The contents of this file are subject to the terms of the BSD 3 clause
* License (the "License"). You may not use this file except in compliance
* with the License.
*
* Y... |
// imgflo - Flowhub.io Image-processing runtime
// (c) 2014 The Grid
// imgflo may be freely distributed under the MIT license
#include <libsoup/soup.h>
#include <glib.h>
typedef struct _RuntimeInfo {
gchar *id;
gchar *user_id;
gchar *label;
gchar *hostname;
gint port; // external
} Ru... |
/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy o... |
/*
* Copyright (c) 2013 ASMlover. 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 ofconditions ... |
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <3ds.h>
#include "section.h"
#include "action/action.h"
#include "task/task.h"
#include "../error.h"
#include "../info.h"
#include "../prompt.h"
#include "../ui.h"
#include "../../core/screen.h"
#include "../../quirc/quirc_internal.h"
#define IMAGE_... |
// Copyright 2008-2014 <NAME> <<EMAIL>>
// SPDX-License-Identifier: MIT
#include <stdbool.h>
#include <alsa/asoundlib.h>
#include <linux/soundcard.h>
#include "nk/log.h"
#include "defines.h"
#include "sound.h"
extern bool gflags_debug;
static char *cdevice = DEFAULT_HW_DEVICE;
static const char *cdev_id = DEFAULT_HW_... |
/*
* Copyright (C) 2016 Red Hat, Inc.
*
* Authors: <NAME>
* <NAME>
*
* This file is part of GNUTLS.
*
* The GNUTLS library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 ... |
/**
* Copyright 2009-2014 MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
/*****************************************************************************
** $Source$
**
** $Revision$
**
** $Date$
**
** More info: http://www.bluemsx.com
**
** Copyright (C) 2003-2013 <NAME>, <NAME>
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU Genera... |
#include "glasstypes/glass-class.h"
#include "glasstypes/glass-builders.h"
#include "glasstypes/glass-function.h"
#include "utils/copy-interface.h"
#include "utils/list.h"
#include "utils/map.h"
#include "utils/string.h"
#include <stdlib.h>
#include <stdio.h>
struct GlassClass {
String *name;
Map *funcs;
... |
#include <stdbool.h>
#include <stdlib.h>
#include <st7789.h>
#include <stm32f10x.h>
#include <svc.h>
#include <ugui.h>
void setupPrescaler(int pllmul) {
// enable high speed external oscillator
RCC->CR = (RCC->CR & ~RCC_CR_HSEBYP) | RCC_CR_HSEON;
while (!(RCC->CR & RCC_CR_HSERDY)) {
;
}
RCC->CFGR = (pllmul-2... |
/* File status querying (stat()) for the Lua/APR binding.
*
* Author: <NAME> <<EMAIL>>
* Last Change: December 28, 2010
* Homepage: http://peterodding.com/code/lua/apr/
* License: MIT
*/
#include "lua_apr.h"
#include <apr_lib.h>
#include <apr_strings.h>
/* Lua/APR introduces one new field to the apr_stat() inte... |
/*
* psf.h
*
* Include file for psf.c.
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
* This file part of: SExtractor
*
* Copyright: (C) 1998-2012 <NAME> -- IAP/CNRS/UPMC
*
* License: GNU General Public License
*
* SExtractor is free software: you can redistribute it and/or modi... |
/** varlib.c
*
* a simple storage system to store name=value pairs
* with facility to mark items as part of the environment
*
* interface:
* VLstore( name, value ) returns 1 for 0k, 0 for no
* VLlookup( name ) returns string or NULL if not there
* VLlist() prints out current table
*
... |
/*
* Copyright (c) 2013 ASMlover. 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 ofcon... |
#include <jni.h>
#include <android/log.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include <GLES2/gl2.h>
#include "debug.h"
#include "native_main.h"
#include "engine.h"
#include "matrix.h"
#include "shaders.h"
#include "gamearea.h"
#include "foe_spikes.h"
#include "foe_fire.h"
... |
#include "stdint.h"
#include "lvgl/lvgl.h"
#define true 1
#define false 0
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
#define MIPI_DCS_REV1 (1<<0)
#define AUTO_READINC (1... |
/*
* Memory and machine-specific definitions. Used in C and assembler.
*/
/*
* Sizes
*/
#define BI2BY 8 /* bits per byte */
#define BI2WD 32 /* bits per word */
#define BY2WD 4 /* bytes per word */
#define BY2V 8 /* bytes per double word */
#define BY2PG 4096 /* bytes per page */
#define WD2PG (B... |
/*
* Copyright 2019 University of Washington, Max Planck Institute for
* Software Systems, and The University of Texas at Austin
*
* 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 withou... |
/*
* Copyright 2015-2018, 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 ... |
/*
* Copyright (c) 2009-2015 <NAME>.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... |
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "assemble.h"
/* ************************************************************************* *
* Manipulate origins *
* *********************************************************... |
/**
* evport模块
*
* 用于Solaris 10以上系统
*/
#include <assert.h>
#include <errno.h>
#include <port.h>
#include <poll.h>
#include <sys/types.h>
#include <sys/time.h>
#include <stdio.h>
static int evport_debug = 0;
#define MAX_EVENT_BATCHSZ 512
typedef struct aeApiState {
int portfd; ... |
/**************************************************************************/
/* */
/* jfea_lib.h Version 2.02 Copyright (c) 1999-2000 <NAME> */
/* */
/* JFS rule... |
/*
* Multi2Sim
* Copyright (C) 2012 <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 Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
... |
/**
* \file
*
* \brief Current Time Service
*
* Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip products.
* It is your respons... |
/* $OpenBSD: if_acx_pci.c,v 1.7 2009/03/29 21:53:52 sthen Exp $ */
/*-
* Copyright (c) 2006 <NAME> <<EMAIL>>
* Copyright (c) 2005, 2006
* <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
* copyrig... |
#pragma once
////////////////////////////////////////////////////////////////////////////////
// global pragmas
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#endif
////////////////////////////////////////////////////////////////////////////////
// generic system includes
#include <s... |
/*
* Copyright © <NAME> 2004
* ALL RIGHTS RESERVED
* [This program is licensed under the "3-clause ('new') BSD License"]
* Please see the file COPYING in the source
* distribution of this software for license terms.
*/
/*
* ppmgrayscreen.c - select gray areas, or specific colored areas
* Loosely based on
* pp... |
#include "SENNA_Treillis.h"
#include "SENNA_utils.h"
#include <float.h>
/* treillis */
SENNA_Treillis* SENNA_Treillis_new(void)
{
SENNA_Treillis *treillis;
treillis = SENNA_malloc(sizeof(SENNA_Treillis), 1);
treillis->node = NULL;
treillis->last_node = NULL;
treillis->size = 0;
treillis->max_size = 0;
... |
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <assert.h>
#include "fog.h"
#include "map.h"
#if 0
typedef int32_t Real;
typedef int64_t DReal;
#else
typedef float Real;
typedef float DReal;
#endif
#define MAX_SECTORS 256
typedef struct {
// right edge of the scanline
// (left edge is always the... |
/* $NetBSD: if_wi_obio.c,v 1.1 2001/05/16 10:56:43 tsubai Exp $ */
/*-
* Copyright (c) 2001 <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... |
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "hal.h"
#include "timer.h"
#include "wait.h"
#include "print.h"
#include "matrix.h"
/*
* JM60
* Column pins are input with internal pull-down. Row pins are output and strobe with high.
* Key is high or 1 when it turns on.
*
* col: { PTA15,... |
/**
* This implementation of MD5 was directly sourced from the following GitHub repository: https://github.com/pod32g/MD5
* I take no credit for this program.
* Copied on November 11th, 2020.
*/
/*
* Simple MD5 implementation
*
* Compile with: gcc -o md5 md5.c
*/
#include <stdio.h>
#include <stdlib.h>
#include... |
/**
* Ceno RTOS task
*
* 2018-12-17
* neroyang
*
* Copyright (C) 2018 CenoCloud. All Rights Reserved
*
* Contract Information:
* <EMAIL>
* https://www.cenocloud.com
*/
#include "../include/os_api.h"
#define TASK_MAX_SIZE 32
os_queue_t osTaskQueue;
os_queue_t osReadyTaskQueue;
volatile os_task_t os... |
/*
* (C) 2001 Clemson University and The University of Chicago
*
* See COPYING in top-level directory.
*/
/** \defgroup statecomp statecomp source-to-source translator
*
* statecomp is a source-to-source translator. It takes state machine
* descriptions (.sm extension) as input and creates a corresponding C
... |
//===--------------------------------------------------------------------------------------------===
// run_loop.c - Threaded run-loop system
//
// Created by <NAME> <<EMAIL>>
// Copyright (c) 2021 <NAME>
// Licensed under the MIT License
// =^•.•^=
//===-----------------------------------------------------------------... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
* This file is part of libxls -- A multiplatform, C library
* for parsing Excel(TM) files.
*
* libxls is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as publish... |
#include "ext.h"
#include "ext_obex.h"
#include "ext_systhread.h"
#include "threadpooltask.h"
typedef struct _threadpool {
t_object x_ob; // standard max object
void *x_outlet; // our outlet
} t_threadpool;
void threadpool_task(t_threadpool *x, t_symbol *s, long argc, t_atom *argv);
void threadpoo... |
#include <app.h>
#include <options.h>
#include <utils.h>
#include <log.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <microhttpd.h>
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#ifdef DEBUG
# define LOG_LEVEL LOG_DEBUG
#else... |
/*
* del2dx.c
* apbs
*
* Created by <NAME> on 3/17/10.
* Copyright 2010 Washington University. All rights reserved.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "apbs.h"
char *usage = "\n\n\
-----------------------------------------------------------------------\n\... |
/* COMP 530 - Assignment 6
* <NAME>
*
* This program uses memory mapped files to implement a text processing
* pipeline to read text, perform some transformations, and output it.
*
* References:
* Basic mmap code:
* https://www.cs.unc.edu/~jeffay/courses/comp530/homework/HW6/mmap-example.c
*
* Semapho... |
#include "lx.h"
void pages_refresh() {
lxedit_layout *layout = lx->layout;
wclear(layout->tree);
int row = 1;
exe *exe = lx->executables[layout->active_exe];
object_record *r = &exe->object_records[layout->active_object];
for (int i = 0; i < r->mapsize; i++) {
int page = r->mapidx + i;
if (page < layout->scr... |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#include <stdlib.h>
#include <aos/aos.h>
#include <yoc/mic.h>
#include <yoc/mic_port.h>
#include <voice.h>
#define TAG "mic_voice";
static mic_event_t mic_evt;
#define BACLFLOW_LEN 0//(1024 * 300)
typedef struct {
int len;
char data[BACLFLOW_LE... |
/*
* Use at your own risk.
*
* Copyright (C) 2005-2008 Sourcefire, Inc.
*
* This file is autogenerated via rules2c, by <NAME> <<EMAIL>>
*/
/*
* alert tcp $EXTERNAL_NET $HTTP_PORTS -> $HOME_NET any (msg:"EXPLOIT Microsoft GDI malformed metarecord buffer overflow attempt"; flow: to_client, established; content:... |
/**
* Punch BOOT
*
* Copyright (C) 2018 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <stdio.h>
#include <pb.h>
#include <image.h>
#include <string.h>
#include <plat.h>
#include <io.h>
#include <timing_report.h>
#include <gpt.h>
#include <crypto.h>
extern char _code_start, _code_end... |
/*
* Main source code file for lsh shell program
*
* You are free to add functions to this file.
* If you want to add functions in a separate file
* you will need to modify Makefile to compile
* your additional functions.
*
* Add appropriate comments in your code to make it
* easier for us while grading your... |
/*
* Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/l... |
/* <NAME> `gentilkiwi`
https://blog.gentilkiwi.com
<EMAIL>
Licence : https://creativecommons.org/licenses/by/4.0/
*/
#include "kuhl_m_dpapi_sccm.h"
NTSTATUS kuhl_m_dpapi_sccm_networkaccessaccount(int argc, wchar_t * argv[])
{
IWbemLocator *pLoc = NULL;
IWbemServices *pSvc = NULL;
IEnumWbemClassObject* pEnumerato... |
/*
* apilist.c
*/
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include "mrdb.h"
#include "mrdberror.h"
#include "apilist.h"
#include "mruby/compile.h"
#include "mruby/irep.h"
#include "mruby/debug.h"
#define LINE_BUF_SIZE MAX_COMMAND_LINE
typedef struct source_file {
char *path;... |
/**
*
* @copyright © 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der
* angewandten Forschung e.V. All rights reserved.
*
* BSD 3-Clause License
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. R... |
/*
* Copyright (c) 1996 by Internet Software Consortium.
*
* 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 copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... |
/*
* Copyright (C) 2010 Red Hat, Inc. All rights reserved.
*
* This file is part of LVM2.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU General Public License v.2.
*
* You should have received a copy... |
/* SPDX-License-Identifier: BSD-2-Clause */
/*******************************************************************************
* Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG
* All rights reserved.
*******************************************************************************/
#ifdef HAVE... |
#include <unistd.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <string.h>
#include <dc_posix/dc_fcntl.h>
#include <dc_posix/dc_stdio.h>
#include <dc_posix/dc_unistd.h>
#include <dc_error/error.h>
#include "execute.h"
void execute(const struct dc_posix_env *env, struct dc... |
/*------------------------------------------------------------------------------
*
* Copyright (c) 2011-2021, EURid vzw. All rights reserved.
* The YADIFA TM software product is provided under the BSD 3-clause license:
*
* Redistribution and use in source and binary forms, with or without
* modification, are perm... |
// agc.c - CHAPRO/GHA plugin example for BTMHA
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <chapro.h>
#include "plugin_helper.h"
//===========================================================
static int icf = 0;
static int32_t nchan[2] = {1,1};
static CHA_DSL dsl = {0};
static CHA_WDRC agc = {... |
/*
* pulsesensor.c
*
* Author: <NAME>
*/
#include "../uart/serial.h"
#include "../adc/adc.h"
#include "../util/Interrupt/timer.h"
#include "pulsesensor.h"
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdio.h>
int valueLength = 8; /* Defines the length of the bpmValues-Array
... |
/* $OpenBSD: pony.c,v 1.27 2019/06/13 11:45:35 eric Exp $ */
/*
* Copyright (c) 2014 <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 copie... |
/* weak.c -- weak pointers and ephemerons */
/* Copyright (c) 2010-2011 <NAME>. All rights reserved. */
/* BSD-style license: http://synthcode.com/license.txt */
#include <chibi/eval.h>
static int sexp_ephemeron_id, sexp_weak_vector_id;
#define sexp_ephemeronp(x) sexp_check_tag(x, sexp_e... |
//
// Created by Алексей on 11/10/2018.
//
#include "pwm.h"
#include <stdio.h>
#include <string.h>
#include "nrfx_pwm.h"
#include "nrfx_timer.h"
#include "app_util_platform.h"
#include "app_error.h"
#include "app_timer.h"
#include "nrfx_clock.h"
#include "nrf_log.h"
#include "nrf_log_ctrl.h"
#include "nrf_log_default... |
/*
* LIBOIL - Library of Optimized Inner Loops
* Copyright (c) 2004 <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 a... |
/**************************************************************************
Copyright (c) 2016, 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 c... |
/**
* @Author: <NAME> <silentcat>
* @Date: 2020-01-01T12:25:29-06:00
* @Email: <EMAIL>
* @Last modified by: silentcat
* @Last modified time: 2020-01-02T18:14:04-06:00
*/
/**
* Task: Make a calculator that performs basic mathematical expressions
* (+, -, /, *, ^, and parentheses).
* Solution: Keep track o... |
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/sdp.h>
#include <bluetooth/sdp_lib.h> // for sdp_session_t in start_server
#include "rfcomm-server.h"
#include "rfcomm-client.h"
#include "hciscan.h"
#include "service-register.h"
#includ... |
#include "player.h"
#include "simple_logger.h"
#include "entity.h"
#include "collision.h"
#include "gf2d_gui.h"
#include "obstacles.h"
#include "gf2d_audio.h"
#include "particles.h"
#include "gf2d_particles.h"
#include "gf2d_color.h"
void player_update(Entity *self, Space *space);
Entity *newPlayer(Vecto... |
#include "stddefx.h"
/********/
/* USES */
/********/
/* libs ext. <>, our "" */
/* global header (opt.) and dassfunc's prototypes "" */
#include "calctypes.h"
#include "calc.h"
#include "dassfunc.h"
/* headers of this app. modules called */
/***************/
/* EXTERNALS */
/***************/
/***************... |
/* Copyright (c) 2008-2009 <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, merg... |
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2017, EPAM Systems
* 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 co... |
/* Copyright 2018-2020 <NAME> (<EMAIL>) */
/* Usage of the works is permitted provided that this instrument is retained */
/* with the works, so that any entity that uses the works is notified of this */
/* instrument. DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY. */
/* ------------... |
/* Copyright (C) 2014 jaseg <<EMAIL>>
*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* Version 2, December 2004
*
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*
* DO WHAT THE FUCK YOU WANT TO... |
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either v... |
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#ifdef CROSS
#include </usr/include/stdio.h>
#else
#include <stdio.h>
#endif
#include <string.h>
#include <strings.h>
#include ... |
/*
* (C) Copyright 2000
* <NAME>, AIRVENT SAM s.p.a - RIMINI(ITALY), <EMAIL>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* 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 Soft... |
#include "stdlib.h"
#include "atomics.h"
/*
A mutex based on atomic operations
Another example to explain the use of atomics
*/
struct mutex {
void* locked;
//@ predicate() p;
//@ void* perm2;
//@ real perm2frac;
};
/*@
predicate_ctor mutex_inv(struct mutex *mutex, predicate... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#ifdef WIN32
#include <unistd.h>
#endif
#include <string.h>
/* hardware.h */
#ifndef PLL_HARDWARE
#define PLL_HARDWARE
/* leaf 1 */
/* edx */
#define PLL_HAS_MMX 1 << 23
#define PLL_HAS_SSE 1 << 25
#define PLL_HAS_SSE2 1 << 26
/* ec... |
/**
* covar.c: This file is part of the PolyBench/GPU 1.0 test suite.
*
*
* Contact: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU
*/
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <sys/ti... |
/*
* Copyright (c) 2020 Intel Corporation.
* All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#include <getopt.h>
#include <string.h>
#include <dirent.h>
#include <fcntl.h>
#include <pwd.h>
#include <sys/stat.h>
#inclu... |
/*
* Copyright © 2003 <NAME>
* Copyright © 2018 Advanced Micro Devices, 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 Software without restriction, including
* ... |
/*
* Copyright © 2000 SuSE, Inc.
* Copyright © 2007 Red Hat, Inc.
*
* 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 an... |
#include <windows.h>
#include "drawscreen.h"
void DrawScreenOrigin(HWND hwnd, HDC hdc)
{
static POINT RedLine[][2] = { {1, 2, 4, 5}, {1, 4, 4, 7},
{1, 6, 4, 9}, {1, 8, 4, 5},
{1, 10, 4, 7},
{1, 12, 4, 15}, {1, 14... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.