text stringlengths 3.12k 18.7k |
|---|
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include <stdio.h>
#include "lcd.h"
#include "ds1631.h"
void writenibble(unsigned char);
void ds1631_init ( void );
void ds1631_conv ( void );
void ds1631_temp ( unsigned char *);
//Global Variables
volatile int temp = 0;
volatile int tempT = 0;
v... |
/*
* fiwix/fs/procfs/tree.c
*
* Copyright 2018, <NAME>. All rights reserved.
* Distributed under the terms of the Fiwix License.
*/
#include <fiwix/types.h>
#include <fiwix/stat.h>
#include <fiwix/fs.h>
#include <fiwix/fs_proc.h>
#include <fiwix/errno.h>
#include <fiwix/stdio.h>
#include <fiwix/string.h>
#define... |
/*
* Copyright 2015-2018 Yubico AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
/*
* Example of multi-thread rendering.
* <NAME>
* 26 Feb 2002
*/
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef WINDOWS
#define WIN32_LEAN_AND_MEA... |
//Definitions and declarations used for spi communications and control with DS3234 RTC device.
#include <avr/io.h>
#include <spi.h>
//Definitions for use by SPI.c functions
#define RTC_SS PB2 //RTC SPI Slave Select Pin = Port B Pin 2
#define RTC_POL 1 //RTC SPI Polarity = 1 (clock idles high) (DS2334 works in mode ... |
/*
* Copyright 2008 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
/*
* NaCl Service Runtime memory allocation code
*/
#include "native_client/src/include/portability.h"
#include "native_client/src/include/w... |
/*
This is just a simple example usage of the
msdf generator. It generates a bitmap from the
character you specify.
This c file is not intended for real-world use.
this is purely an example. Embed msdf.c/h into your
code directly and use however you need to.
Usage:
./msdf_gen 'A' glyph.png
The resulting bit... |
#include "SPI_ControlPanel.h"
Uint16 dummy;
void InitControlPanel(void)
{
EALLOW;
// Set up SPI A
SpibRegs.SPICCR.bit.SPISWRESET = 0; // Enter RESET state
SpibRegs.SPICCR.bit.SPICHAR = 0x7; // 8 bits
SpibRegs.SPICCR.bit.CLKPOLARITY = 1; // data latched on ... |
#include "core/include/chain.h"
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <tgmath.h>
#include <unistd.h>
#include "core/include/error.h"
#include "core/include/fraction.h"
void init_chain(Chain* chain) {
chain->length = 0;
chain->start = NULL;
chain->end = NULL;
}
void clear_chain(Chain... |
/*
** Copyright (c) 2013-2021 <NAME> <<EMAIL>>
** Include Files
*/
#include "ring.h"
#include "ring_test.h"
/* Main Function */
int main ( int argc, char *argv[] )
{
ring_section("Hello!");
printf( "These are some old tests that I was using in the early days of development \n" ) ;
printf( "This was before we ha... |
/*! \file weak_distance.c
\brief
This program is a derrvied work of "Weak Frechet distance decision problem
1.0." Defines functions used to compute Weak Frechet metric, distance
and diagrams for two polynomial curves.
Author: <NAME>
<EMAIL>
http://www.cs.tulane.edu/~carola/research/code... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_SIZE 63 /* {$,0-9,A-Z,a-z}*/
int findRange(char c)
{
int ret =0;
if(c>='a'&& c<='z')
ret = 36 + (c-'a');
else if(c>='A' && c<='Z')
ret = 11 + (c-'A');
else
ret = 1+(c-'0');
ret++;
return ret;
}
int * SortDouble(char * string, int l, int... |
/* Copyright (c) 2017 Kaluma
*
* 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... |
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2015 Compulab, Ltd.
*/
#include <common.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/mux.h>
#include "board.h"
static struct module_pin_mux rgmii1_pin_mux[] = {
{OFFSET(mii1_txen), MODE(2)},
{OFFSET(mii1_txd3), MODE(2)},
{OFFSET(mii1_txd2), MODE... |
/*
* Copyright 2011 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, d... |
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <termios.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/un.h>
#include <strings.h>
#include <pthread.h>
#define ERRNO_NON_FATAL(en) \
((en) == ENOENT || \
(en) == EACCE... |
/*
* Copyright (c) 1980, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyr... |
#include <stdio.h>
#include <sys/socket.h> //For Sockets
#include <stdlib.h>
#include <netinet/in.h> //For the AF_INET (Address Family)
#include <arpa/inet.h>
#include <pthread.h> // multithreading where child shares memory with parent
#include <sys/time.h>
#include <string.h>
#include <stdint.h>
#include <errno.h>
#in... |
/**
* Copyright (c) 2015 - 2018, Nordic Semiconductor ASA
*
* 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 no... |
#include "passgen.h"
#include "passgen_pack.h"
#include <stdio.h>
#include <string.h>
#include <openssl/conf.h>
#include <openssl/evp.h>
#include <openssl/err.h>
#include <openssl/hmac.h>
#include <openssl/bio.h>
#include <openssl/buffer.h>
#include <arpa/inet.h>
#include <lua.h>
#include <lauxlib.h>
#define DEBUG ... |
//
// izzy: A digital clock for X windows
//
// by <NAME>
//
// Started: 05/13/1993 or was it 11/15/1991 as the old man page says?
// Updated: 05/22/2018
//
// Copyright (c) 1991-2018 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentat... |
/*-
* Copyright (c) 2012 NetApp, 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 list of condit... |
#include <string.h>
#include "md5.h"
#define GET_UINT32(n, b, i) n = b[i] + (b[i+1]<<8) + (b[i+2]<<16) + (b[i+3]<<24)
#define PUT_UINT32(n, b, i) do { b[i] = n; b[i+1] = n >> 8; b[i+2] = n >> 16; b[i+3] = n >> 24; } while(0)
void
md5_starts(md5_context *ctx) {
ctx->total[0] = 0;
ctx->total[1] = 0;
ctx... |
/* Copyright ©2007-2010 <NAME> <<EMAIL> at Gmail>
* See LICENSE file for license details.
*/
#define Window XWindow
#define Font XFont
#define Screen XScreen
#define Mask XMask
#include <stuff/geom.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensions/Xrender.h>
#ifdef _X11_VISIBLE
# include <X11/... |
/* An API for a bare-bones implementation of STS with ed25519 DSA signatures
* for authentication.
*
* Assuming a starting point where parties A and B each have public and private keys (pubA, pubB, privA, privB).
* Each party has already shared, via an out-of-band mechanism, their public keys.
*
* A ---> B A... |
#include <assert.h>
#include <ctype.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "treebuffer.h"
// TODO: get rid of these limits
#define buffer_size (1 << 10)
#define active_size (1 << 20)
#define children_size (1 << 20)
typedef char * (*read_t)(void);
FILE * input_file;... |
/******************************************************************************\
* pmi_attribs_parser.c - A interface to parse the pmi_attribs file that exists
on the compute node.
*
* Copyright 2011-2020 Hewlett Packard Enterprise Development LP.
*
* Redistribution and use in source and binary f... |
/*
* geo_names.c
*
* This encapsulates all of the value-naming mechanism of
* libgeotiff.
*
* Written By: <NAME>
*
* copyright (c) 1995 <NAME>
*
* Permission granted to use this software, so long as this copyright
* notice accompanies any products derived therefrom.
*
*/
#include "geotiffio.h"
#in... |
#include "nosdkradio.h"
#include "nosdk8266.h"
#include "esp8266_rom.h"
/*
const uint8 esp_init_data_default[128] = {
5, 0, 4, 2, 5, 5, 5, 2, 5, 0, 4, 5, 5, 4, 5, 5,
4, 0xFE, 0xFD, 0xFF, 0xF0, 0xF0, 0xF0, 0xE0, 0xE0, 0xE0, 0xE1, 0xA, 0xFF, 0xFF, 0xF8, 0,
0xF8... |
// lab2_skel.c
// <NAME>
// 9.12.08
// 7986
// am798
// HARDWARE SETUP:
// PORTA is connected to the segments of the LED display. and to the pushbuttons.
// PORTA.0 corresponds to segment a, PORTA.1 corresponds to segement b, etc.
// PORTB bits 4-6 go to a,b,c inputs of the 74HC138.
// PORTB bit 7 goes to the PWM... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2021 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... |
/*
* 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 ... |
/* <NAME>
* 20164094
*/
#include <netinet/in.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <netdb.h>
#define BACKLOG 10
#define SERVER_NAME_LEN_MAX 255
#define SERVERPORT 6000
#define... |
/**
* Copyright (c) 2014 - 2017, Nordic Semiconductor ASA
*
* 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,... |
#include "types.h"
#include "defs.h"
#define AHCI_MAX_BUS 0xFF
#define AHCI_MAX_SLOT 0x1F
#define AHCI_MAX_FUNC 0x7
#define AHCI_HBA_PORT 0xCF8 //???
#define HBA_PxCMD_ST 0x0001
#define HBA_PxCMD_FRE 0x0010
#define HBA_PxCMD_FR 0x4000
#define HBA_PxCMD_CR 0x8000
#define HBA_PxIS_ERR_MASK 0x78000000 // all... |
/*************************************************************************************
* qTESLA: an efficient post-quantum signature scheme based on the R-LWE problem
*
* Abstract: NTT, modular reduction and polynomial functions
**************************************************************************************/... |
/*
This code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include <driver/i2c.h>
#include "esp_log.... |
/*
Copyright (c) 2004-2009 <NAME> <<EMAIL>>
Copyright (c) 2004-2008 Center for Bioinformatics, University of Hamburg
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 ... |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* 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,
*... |
/*
*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* The contents of this file are provided under the Software License
* Agreement that you accepted before downloading this file.
*
* This source forms part of the Software and can be used for educational,
* training, and demonstration purpos... |
#include <stddef.h>
#include <stdint.h>
#include <nnpack/arm_neon.h>
void nnp_c4gemm_conjb_transc_only_2x2__neon(
size_t k, size_t update,
const float a[restrict static 1],
const float b[restrict static 1],
float c[restrict static 1],
size_t row_stride_c)
{
float32x4_t acc00r = vdupq_n_f32(0.0f), acc00i = vdup... |
/*
Copyright (c) 2009-2010 by <NAME>, <NAME>, <NAME> and
<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
t... |
/* Application to display the net frequency with 9 LEDs
on a ATtiny2313 running at 12MHz
(instead of an AT89C2051P as in German Elektor 01-2012,
pages 22 and following)
INT0 is used to couple the net frequency
LEDs on PORTB: PB7-0 and PORTD: PD6
red: PB7
yellow: PB6,5
green: PB4,3,2
yellow: PB1,0
red: PD6
This progr... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* loadsF1.c
*
* Code generation for function 'loadsF1'
*
*/
/* Include files */
#include "mwmathutil.h"
#inc... |
/*
* Copyright (C) 2015-2021 IoT.bzh Company
* Author "<NAME>"
*
* $RP_BEGIN_LICENSE$
* Commercial License Usage
* Licensees holding valid commercial IoT.bzh licenses may use this file in
* accordance with the commercial license agreement provided with the
* Software or, alternatively, in accordance with the... |
#ifndef lint
static const char RCSid[] = "$Id: netproc.c,v 2.17 2010/03/15 21:31:50 greg Exp $";
#endif
/*
* Parallel network process handling routines
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/wait.h>
#include "rtmisc.h"
#... |
/** \file
* \brief ThingRendevous's Task Info implementation
*
* Generated by Trtgen.py.
*/
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include "trBidt.h"
#include "trPl.h"
#include "trEvt.h"
#include "trMsg.h"
#include "trStrm.h"
#include "trT.h"
#include "trEvtP.h"
#include "trMsgP.h"
#include "t... |
//------------------------------------------------------------------------------
// Copyright (C) 2011-2016 Texas Instruments Incorporated - http://www.ti.com/
//
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met... |
#include <nm_core.h>
#include <nm_form.h>
#include <nm_menu.h>
#include <nm_utils.h>
#include <nm_string.h>
#include <nm_window.h>
#include <nm_hw_info.h>
#include <nm_database.h>
#include <nm_cfg_file.h>
#include <nm_add_drive.h>
#include <nm_vm_control.h>
static const char NM_LC_DRIVE_FORM_MSG[] = "Drive interface";... |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2021 INRIA.
*
* 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
*
*... |
/*
* C Implementation: eps_wind_rose
*
* Description:
*
* Author: <NAME> <<EMAIL>>, (C) 2006
*
* Copyright: See COPYING file that comes with this distribution
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include "grib_api.h"
void usage(char* prog) {
printf("\nUsage: %s... |
/**************************************************************************
*
* Copyright 2007 VMware, 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 wit... |
/* Copyright (c) 2021 <NAME> */
/************************************************************************
SACMAMP - SAC Multicomponent amplitude or RMS amplitude in time window
*************************************************************************
Author: <NAME>,
RISSC, University of Naples, Italy, September 2... |
#include <assert.h>
#include <stdio.h>
#include <sys/types.h>
#include <time.h>
#include "util.h"
#include "vpr_types.h"
#include "vpr_utils.h"
#include "globals.h"
#include "read_place.h"
#include "draw.h"
#include "stats.h"
#include "check_route.h"
#include "rr_graph.h"
#include "path_delay.h"
#include ... |
/* $OpenBSD: yppush.c,v 1.31 2015/01/16 06:40:23 deraadt Exp $ */
/*
* Copyright (c) 1995 <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 ... |
/*
* Copyright (C) 2008-2011 Freescale Semiconductor, Inc. All rights reserved.
*
* Author: <NAME>, <<EMAIL>>
*
* Description:
* This file is derived from arch/powerpc/kvm/44x_emulate.c,
* by <NAME> <<EMAIL>>.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the... |
/*
* $QNXLicenseC:
* Copyright 2010, QNX Software Systems.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You
* may not reproduce, modify or distribute this software except in
* compliance with the License. You may obtain a copy of the License
* at: http://www.apache.org/licenses/LICENSE-2.0... |
/*
Put this file to dovecot v1.0.x sources' root directory. Dovecot must be
compiled before this. The run:
gcc nfstest.c -o nfstest -g -Wall -W -DHAVE_CONFIG_H -I. -Isrc/lib src/lib/liblib.a
On machine 1 use:
./nfstest <port> <path to a test file>
On machine 2 use:
./nfstest <machine 1 hostnam... |
/*
* Copyright 2012, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of cond... |
/* ==== THE IMPLICIT VECTOR ====
*
* Copyright 2013 Ravenbrook Limited <http://www.ravenbrook.com/>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of... |
/*
* BlockValidationFunction.c
*
* Created on: Nov 25, 2012
* Created by: <NAME>
* Copyright (c) 2012 MIBitcoin Project Team
*/
#include "BlockValidationFunction.h"
#include "../BigInt/BigInt.h"
#include "../Object/Message/TransactionInput.h"
#include "../Object/Message/Transaction.h"
#include "../Object/ByteArr... |
/* Danfoss CFR Thermostat sensor protocol
*
* Manual: http://na.heating.danfoss.com/PCMPDF/Vi.88.R1.22%20CFR%20Thrm.pdf
*
* No protocol information found, so protocol is reverse engineered.
* Sensor uses FSK modulation and Pulse Code Modulated (direct bit sequence) data.
*
* Example received raw data package:
*... |
/* Copyright (c) 2018, DF9DQ
* 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 fol... |
/* Copyright (C) 2013 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "gbSql.h"
#include "jksql.h"
#include "hdb.h"
#include "psl.h"
#include "pslReader.h"
#include "dystring.h"
#include "genbank.h"
#include "genePred.h"
... |
/**
* Copyright (C) 2015-2016 The YunOS Project. All rights reserved.
*/
#include "tee_trm.h"
#include "tee_trm_priv.h"
#if CONFIG_ID2_RSA_KEY
extern void _convert_buf_to_bndata(const uint8_t *src, int32_t src_bytes,
uint32_t *dst, int32_t dst_words);
extern uint32_t _g_id2_rsa_n... |
#include "gadget-hid.h"
#include <errno.h>
#include <stdio.h>
#include <linux/usb/ch9.h>
#include <usbg/usbg.h>
#include <usbg/function/hid.h>
#include <usbg/function/midi.h>
static char report_desc[] = {
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x06, // USAGE (Keyboard)
0xa1, 0x01, // COLLECTI... |
/*
* Lux ACPI Implementation
* Copyright (C) 2018-2019 by <NAME>
*/
#include <lai/core.h>
#include "libc.h"
#include "opregion.h"
#include "exec_impl.h"
void lai_write_buffer(lai_nsnode_t *, lai_object_t *);
/* ACPI Control Method Execution */
/* Type2Opcode := DefAcquire | DefAdd | DefAnd | DefBuffer | DefConca... |
/* bdiff - MIT - Copyright 2010-2021 - pancake */
/* Adapted code from:
bdiff.c - efficient binary diff extension for Mercurial
Copyright 2005, 2006 <NAME> <<EMAIL>>
This software may be used and distributed according to the terms of
the GNU General Public License, incorporated herein by reference.
Based rough... |
//###########################################################################
//
// FILE: F2806x_PieVect.c
//
// TITLE: F2806x Devices PIE Vector Table Initialization Functions.
//
//###########################################################################
// $TI Release: F2806x Support Library v2.04.00.00 $
// $Rele... |
//
// $Id: test.c 2067 2009-11-13 23:23:06Z shodan $
//
//
// Copyright (c) 2008, <NAME>. All rights reserved.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License. You should
// have received a copy of the LGPL license along with th... |
/*
* Tencent is pleased to support the open source community by making IoT Hub available.
* Copyright (C) 2018-2020 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of ... |
/*
* Copyright (c) 2008-2011 the MansOS team. 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 con... |
/* Miscellaneous utilities for GIMPLE streaming. Things that are used
in both input and output are here.
Copyright (C) 2009-2020 Free Software Foundation, Inc.
Contributed by <NAME> <<EMAIL>>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU... |
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <SDL.h>
#include <SDL_ttf.h>
#include "cdouble.h"
void error_fatal(const char *msg, SDL_Window *window) {
static char full_msg[256];
snprintf(full_msg, 255, "%s\n\nSDL error message: %s", msg, SDL_GetError());
if (SDL_ShowSimpleMessageBox(SDL_MESSA... |
/*******************************************************************************
**** I N C L U D E S
*******************************************************************************/
#include "usbstk5515.h"
#include "usbstk5515_gpio.h"
#include "usbstk5515_i2c.h"
#include "stdio.h"
/********... |
/*
* string 2 hid event
*
* program will take a string and generate HID events for each character
* HID events will be written to /dev/hidg0 (can be changed via argument 2)
*
* note: \ needs to be escaped with \\
* enter key can be produced via \n
* ctrl, alt, tab, backspace, esc, delete... |
/*********************************************************************
formats/basicdsk.c
Floppy format code for basic disks
*********************************************************************/
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "basicdsk.h"
static floperr... |
/*-
* Copyright (c) 2011-2012 Semihalf.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of cond... |
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2011-2014 Intel Corporation
* Copyright (C) 2002-2010 <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... |
/**
* Copyright (C) 2013 Netronome Systems, Inc. All rights reserved.
*
* Example IPC client which uses the NFHAL/NFSAL APIs
*
* @file write_xpb.c
* @brief Example code to write to XPB registers
*
*/
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib... |
/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* callstack.c - Return stack generation for MIPS processors.
*
* Copyright (c) 1992, 1998 The Open G... |
#include <stdio.h>
#include <math.h>
#include "defs.h"
#include "types.h"
#include "basics.h"
double update_mean_force ( global_data_pt global )
{
unbump_data_pt **unbump_data;
int **dependents;
int *number_of_dependents;
double total_mean_force,
minimal_me... |
/*
Convert a tesseroid model into a prism model in spherical coordinates
*/
#include <stdio.h>
#include <time.h>
#include "version.h"
#include "parsers.h"
#include "logger.h"
#include "geometry.h"
/** Print the help message */
void print_help()
{
printf("Usage: tess2prim TESSFILE [OPTIONS]\n\n");
printf("Co... |
/****************************************************************************
* @file main.c
* @version V1.00
* @brief Show how to use auto baud rate detection function.
*
* SPDX-License-Identifier: Apache-2.0
* @copyright (C) 2019 Nuvoton Technology Corp. All rights reserved.
***************************... |
/*
* Copyright (c) 2021 Aspeed Technology Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <ztest.h>
#include <tc_util.h>
#include <usb/usb_device.h>
#include <usb/usb_common.h>
#include <drivers/uart.h>
#include "ast_test.h"
#define LOG_MODULE_NAME usb_test
#include <logging/log.h>
LOG_MODULE_REGISTER(L... |
#include <string.h>
#include "chimara-glk-private.h"
#include "event.h"
#include "glk.h"
#include "input.h"
#include "magic.h"
#include "strio.h"
#include "window.h"
extern GPrivate glk_data_key;
/* Helper function: Wait for an event in the event queue. If it is a forced
* input event, but no windows have an input ... |
/* Copyright © 2020 Arista Networks, Inc. All rights reserved.
*
* Use of this source code is governed by the MIT license that can be found
* in the LICENSE file.
*/
#include <err.h>
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mount.h>
#include <sys/stat.h>
#include... |
//
// Created by madhupriya on 11/21/18.
//
//
#include "memcached.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <err.h>
// ------------------------------------------
// private functions
// ------------------------------------------
// MurmurHash2, by <NAME>
// http://sites.google.com/site/m... |
/* Template decoder for DEVICE, tested with BRAND, BRAND.
*
* Copyright (C) 2016 <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... |
/*
* fMain.c
*/
#include "Include.h"
/* macros */
#define WXApplication 90
#define WXHotSyncID 60
/* protos */
static void DrawTable(void *, Int16, Int16, RectangleType *);
static void UpdateSelector(void);
static void AddApplication(void);
static Boolean AddApplicationEH(EventType *);
static void AddApplicationDra... |
/* vgLoadGensat - Parse gensat XML file and turn it into VisiGene load files. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "portable.h"
#include "xp.h"
#include "xap.h"
#include "../lib/gs.h"
static char const rcsid[] = "$Id: vgLoadGensat.c,v 1.11 2007/03/05 02:27:56 ken... |
#include <xok/xok_net_interface.h>
#include <xok/defs.h>
#include <xok/types.h>
#include <xok/kerrno.h>
#include <xok/bitvector.h>
#include <xok_include/assert.h>
#include <xok/queue.h>
#include <xok/env.h>
#include <xok/sys_proto.h>
#include <xok/sysinfo.h>
#include <dpf/dpf.h>
#include <dpf/dpf-internal.h>
#include ... |
#include <c-efi.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <wchar.h>
#include <stddef.h>
#include <jos.h>
#include <kernel.h>
#include <video.h>
#include <output_console.h>
#include <linear_allocator.h>
#include <memory.h>
#include <... |
/***
* Copyright (C) <NAME>. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root
* for full license information.
*
* =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
*
* For related information - https://github.com/codewit... |
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2017 - <NAME>
* Copyright (C) 2014-2017 - <NAME>
*
* RetroArch 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 Found-
* ation, either version 3 of the... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define thisprog "xe-ldas2-pathstats2"
#define TITLE_STRING thisprog" v 3: 14.August.2012 [JRH]"
#define MAXLINELEN 1000
/*
<TAGS>signal_processing behaviour</TAGS>
v 3: 14.August.2012 [JRH]
- bugfix - changed use of fscanf to read data ... |
/*
* Board functions for Gumstix Pepper and AM335x-based boards
*
* Copyright (C) 2014, Gumstix, Incorporated - http://www.gumstix.com/
* Based on board/ti/am335x/board.c from Texas Instruments, Inc.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <errno.h>
#include <spl.h>
#include <asm/a... |
/*-
* Copyright (c) 2011 NetApp, 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 list of condit... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "cJSON.h"
#include "system_interface.h"
#include "tuya_config.h"
#include "tuya_iot.h"
#include "tuya_log.h"
#define SOFTWARE_VER "1.0.0"
#define SWITCH_DP_ID_KEY "1"
typedef struct{
unsigned char dp_num;
unsigned char *dp_arr;
}DP_CACHE_... |
//
// Author: <NAME>
// Date: 9/1/17
// Description: Version of antirez's kilo text editor written in C.
// Implements basic features as well as syntax highlighting and search.
//
/*** includes ***/
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.