text stringlengths 3.08k 10.5k |
|---|
/**
* @file pin.c
* @brief Control pin voltage
* @author <NAME> <<EMAIL>>
* @version 0.1
* @date 2016-02-10
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <drivers/gpio.h>
static void print_usage(void) {
printf("USAGE:\npin [pin name] [pin index]... |
/*
* 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 ... |
#include "ContentServerFunctions.h"
#include "Communicate.h"
void commandList(int newsock, char* command, char* directory)
{
int files = 0;
char* wbuf = (char*) malloc(4096*sizeof(char));
char* t_directory = (char*) malloc(256*sizeof(char));
char buf[10];
strcpy(wbuf, directory);
strcat(wbuf, "/"... |
#include "cmsis_os.h"
#include "diag.h"
#include "wifi_conf.h"
#include "wifi_ind.h"
#include "google/google_nest.h"
#include <googlenest/example_google.h>
#include "cJSON.h"
osThreadId google_thread_id;
#define malloc pvPortMalloc
#define free vPortFree
void google_data_retrieve(char *response_buf);
v... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <ArgsLib/ArgsParse.h>
#include <ArgsLib/Reflection.h>
#include <ArgsLib/ArgsDecl.h>
#include "ArgsLib/ArgsDecl.h"
Tokens tokens_new(int argc, char **argv) {
Tokens ts = {argc, argv, 0, argv[0]};
return ts;
}
Tokens* toke... |
#include <pcap.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <netinet/tcp.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <netinet/ether.h>
#include <net/ethernet.h>
#include <... |
#include "EAS240_PP1_functions.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
void SolveCircuit(const Branch *circuit, double *voltages, int numBranches, int numNodes){
//Using dynamic memory allocation for a new arry for matrix
double **matrix = (double **)malloc(sizeof(double *) * numNodes);
... |
// Copyright 2017 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... |
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <pthread.h>
#include <math.h>
// if we're using linux's crazy version of the pthread header,
// it probably forgot to include PTHREAD_STACK_MIN
#ifndef PTHREAD_STACK_MIN
#include <limits.h>
#endif
#include <stdarg.h>
#include <stdlib.h>
#incl... |
/*
* crg2pts.c
* ---------------------------------------------------
* converts OpenCRG road into PTS format
* ---------------------------------------------------
* first edit: 27.10.2019 by <NAME>
*
* ===================================================
* Copyright 2019 DriS Dev Team
*
Licensed unde... |
/* $OpenBSD: cert.c,v 1.32 2007/08/05 09:43:09 tom Exp $ */
/* $EOM: cert.c,v 1.18 2000/09/28 12:53:27 niklas Exp $ */
/*
* Copyright (c) 1998, 1999 <NAME>. All rights reserved.
* Copyright (c) 1999, 2000 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* mod... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2020-2021 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... |
/*
* deglitch
*
* Adjust errored values (glitches) in image.
*/
#include <stdio.h>
#include <math.h>
#include <netpbm/pam.h>
int TopDown = 1;
int debug = 1;
void Usage(char *app_name) {
fprintf(stderr,"Usage: %s [options] infile [outfile]\n", app_name);
fprintf(stderr," infile1 : Inp... |
/*
* Copyright (c) 2019 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS AL... |
/* This entire file is licensed under MIT
*
* Copyright 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... |
/**
* \file meta_mgmt.c
* \author <NAME> (thePowersGang)
*/
#define DEBUG 0
#include <udi.h>
#include <acess.h>
#include <udi_internal.h>
#include <udi_internal_ma.h>
// === EXPORTS ===
EXPORT(udi_usage_ind);
EXPORT(udi_static_usage);
EXPORT(udi_usage_res);
EXPORT(udi_enumerate_req);
EXPORT(udi_enumerate_no_childre... |
/********************************************************************************
Written by: <NAME>, <NAME>, <NAME>
AVR Studio Version 4.17, Build 666
Starting Date: 20 September 2010
End Date: 8 November 2010
*********************************************************************************/
/*******************... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <getopt.h>
#include <math.h>
char *file_good = NULL;
char *file_bad = NULL;
long size_good = -1;
long size_bad = -1;
double confidence = 0;
int main(int argc, char **argv)
{
int c;
int digit_optind = 0;
while (1) {
... |
/* Dec 22nd: Modified by <NAME> from Bohmes original (tutorial 1).
******** -replaced deprecated features,
******** -removed some of the comments
*/
// Code based on a tutorial by <NAME> (<EMAIL>)
// Tested on Gentoo, CVS version 5/01/07 compiled with GCC 4.1.1
#include <libavcodec/avcodec.h>
#include <libavfo... |
/*
* Copyright (c) 2018 Qualcomm Technologies, Inc.
* All Rights Reserved.
*/
// Copyright (c) 2018 Qualcomm Technologies, Inc.
// All rights reserved.
// Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below)
// provided t... |
/**
* Implements sticky shift with timeout. Use instead of XAaccess (xkbset) to just affect
* left shift, and to automatically time out after keyboard inactivity. Also affects the
* console as a bonus.
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <unistd.h>
#include <lin... |
/***********************************************************************
*
* Copyright 1996, University Corporation for Atmospheric Research.
*
* imageobj.c
*
* Routines for creating groups of image metObjects (nowrad, nids,
* satellite, and background objects that are images) and doing
* other generic image-re... |
#include "include/bridge.h"
#include <nng/mqtt/mqtt_client.h>
#include <nng/nng.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "include/nanomq.h"
#if defined(NNG_PLATFORM_POSIX)
#define nano_strtok strtok_r
#elif defined(NNG_PLATFORM_WINDOWS)
#define nano_strtok strtok_s
#else
#define nano_str... |
#include "board.h"
int odd[6][2] = {{0, -1},
{1, -1},
{1, 0},
{1, 1},
{0, 1},
{-1, 0}};
int even[6][2] = {{-1, -1},
{0, -1},
{1, 0},
{0, 1},
{-1, 1},
... |
#include <stdio.h>
#include <time.h>
#include <signal.h>
#include <string.h>
#include <sys/syscall.h>
char *msg;
char *route_exists(char *dest_addr);
// get dst_addr associated with tid on timers hash table
// using dst_addr, get list of interested hosts from pnrs
// notify each host in the list that a timeout has oc... |
// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause)
/*
* Simple streaming JSON writer
*
* This takes care of the annoying bits of JSON syntax like the commas
* after elements
*
* Authors: <NAME> <<EMAIL>>
*
* Borrowed from Linux kernel [5.17.0]: tools/bpf/bpftool/json_writer.[hc]
*/
#include <stdio... |
/*
Serval DNA Golay coding
Copyright (C) 2013 Serval Project Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This progra... |
/*
Copyright 2015 <NAME>.P.
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 in writi... |
/*****************************************************************************
*
* gnomevfs.c: The GnomeVFS module.
*
* Copyright (C) 2004,2005 Ruby-GNOME2 Project Team
* Copyright (C) 2003 Nikolai :: lone-star :: Weibull <<EMAIL>>.
*
* This library is free software; you can redistribute it and/or
* modify it u... |
/*
*
* Copyright (c) International Business Machines Corp., 2002
*
* 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 l... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <moss.h>
#include <objects/string.h>
#include <modules/bs.h>
double mf_float(mt_object* x, int* error);
int get_placement(uint32_t* buffer, long* pk, long size, const uint32_t* a){
long k = *pk+1;
long i = 0;
while(1){
if(k>=size ... |
/*
* Generated by asn1c-0.9.21 (http://lionet.info/asn1c)
* From ASN.1 module "DSRC"
* found in "../downloads/DSRC_R36_Source.ASN"
* `asn1c -fcompound-names`
*/
#include <asn_internal.h>
#include "SPAT.h"
static int
memb_intersections_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constr... |
/**
* @file avformat/video.c libavformat media-source -- video
*
* Copyright (C) 2010 - 2020 <NAME>
* Copyright (C) 2021 by:
* Media Magic Technologies <<EMAIL>>
* and Divus GmbH <<EMAIL>>
*/
#include <re.h>
#include <rem.h>
#include <baresip.h>
#include <pthread.h>
#include <libavformat/avformat.h>
#i... |
#include "mmt_core.h"
#include "plugin_defs.h"
#include "extraction_lib.h"
#include "../mmt_common_internal_include.h"
/////////////// PROTOCOL INTERNAL CODE GOES HERE ///////////////////
static MMT_PROTOCOL_BITMASK detection_bitmask;
static MMT_PROTOCOL_BITMASK excluded_protocol_bitmask;
static MMT_SELECTION_BITMASK... |
// Pack 2, 4 or 8 values into a byte.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
uint8_t *encode(uint8_t *data, int64_t len, int64_t *out_len) {
int p[256] = {0}, n;
int64_t i, j;
uint8_t *out = malloc(len+1);
if (!out)
return NULL;
// count syms
for (i =... |
/* Copyright (c) 2007, Stanford 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
* notice, this list of condi... |
/*-
* Copyright (c) 2000, 2001 <NAME>
* Copyright (c) 1996 <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
* ... |
/*
* tee.c
*
* Copyright 2010 by <NAME>. All rights reserved.
*
* tee(1) like test tool using a thread for standard input and a
* thread for standard output and each output file. Input passed
* using shared buffer and message queues.
*
* This cumbersome design for tee(1) is intended to test message
* queue A... |
/* $Id$ */
/* DO NOT EDIT - file generated by ObitTables.pl */
/*--------------------------------------------------------------------*/
/*; Copyright (C) 2014 */
/*; Associated Universities, Inc. Washington DC, USA. */
/*; ... |
/* ========================================================================== */
/* === UMFPACK_get_determinant ============================================== */
/* ========================================================================== */
/* ---------------------------------------------------------------------... |
/* $OpenBSD: cmd-bind-key.c,v 1.25 2016/01/19 15:59:12 nicm Exp $ */
/*
* Copyright (c) 2007 <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 a... |
// Copyright 2016 The go-vgo Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// https://github.com/go-vgo/robotgo/blob/master/LICENSE
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT lic... |
/*
* Copyright (c) 2020-2021, <NAME>
* <EMAIL>
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-03-27 <NAME> the first version
*/
#include <rtthread.h>
#include <board.h>
#include <rtdevice.h>
#include "drv_soft_i2c.h"
#include "drv_as3935.h"
... |
/*****************************************************************************\
** **
** FILE: msgd.c **
** AUTHORS: Alexios **
**... |
/*
* MONA
* Copyright (C) 1997-2013 Aarhus University.
*
* 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.
*
* Th... |
/*
* Copyright (c) 2014 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... |
/*
* auth.c
*
* some bookkeeping functions for authentication functions
*
* <NAME>
* Cisco Systems, Inc.
*/
/*
*
* Copyright (c) 2001-2006, Cisco Systems, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
/* pmdgpu.h */
/****************************************************************************/
/* */
/* */
/* ... |
#include "cryptIpc.h"
#include "ipc.h"
#include "utils/crypt/cryptUtils.h"
#include "utils/json.h"
#include "utils/logger.h"
#include "utils/memory.h"
#include "utils/oidc_error.h"
#include <sodium.h>
#include <stdio.h>
typedef int (*crypto_kx_session_keys)(
unsigned char rx[crypto_kx_SESSIONKEYBYTES],
... |
/* go-caller.c -- runtime.Caller and runtime.FuncForPC for Go.
Copyright 2009 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file. */
/* Implement runtime.Caller. */
#include <stdint.h>
#include <sys/types.h>
#include <sys/s... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/*
* @Author: <NAME>
* @Date: 2018-11-08 20:34:00
* @Last Modified by: <NAME>
* @Last Modified time: 2018-11-17 23:37:43
*/
/* c std lib header file */
#include "main.h"
#include "color.h"
#include "hexstring.h"
#include "nbiot.h"
#include "uart.h"
void usage_error(const char *s) {
printf(YELLOW "Usage :" NONE... |
/* Print comprehensive information to stdout in JSON format
* This file is part of jdupes; see jdupes.c for license information */
#include <assert.h>
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include "jdupes.h"
#include "version.h"
#include "jody_win_unicode.h"
#include "act_p... |
/*
* Copyright (c) 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, publish, dis... |
/*-
* Copyright (c) 2004 <NAME> (SDG)
* 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 <kernel/devices/earlyterm.h>
#include <kernel/drivers/screen.h>
#include <kernel/util/atomic.h>
#include <stdarg.h>
/* earlyterm_vertical_update() - Check / update device vertical cursor */
static void earlyterm_vertical_update(struct earlyterm *earlyterm)
{
// Check if we can move the cursor
if (earlyterm-... |
#include <SDL/SDL.h>
#include "libretro.h"
#include "libpicofe/plat.h"
#include "libpicofe/input.h"
#include "libpicofe/in_sdl.h"
#include "main.h"
#include "util.h"
#define MAX_SAMPLE_RATE 48000
static const struct in_default_bind in_sdl_defbinds[] = {
{ SDLK_UP, IN_BINDTYPE_PLAYER12, RETRO_DEVICE_ID_JOYPAD_... |
/* S C R E E N G R A B . C
* BRL-CAD
*
* Copyright (c) 2008-2021 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* versio... |
#include "signal-helper.h"
void
generate_signal(
signal_array *signals_array,
unsigned int index
)
{
unsigned int offset = count_signal_offset(signals_array, index);
unsigned int size = signals_array->signals[index].size;
float frequency = signals_array->signals[index].frequency;
float amplitud... |
#include <pocketsphinx.h>
#include <stdio.h>
#include <string.h>
#include "pocketsphinx_internal.h"
#include "ps_lattice_internal.h"
#include "test_macros.h"
#include "ps_test.c"
int
test_nodes_and_stuff(ps_lattice_t *dag)
{
ps_latnode_iter_t *itor;
ps_latlink_iter_t *litor;
ps_latnode_t *forward = NULL;
TEST_AS... |
/*
* vim: ts=8:sw=8:tw=79:noet
*
* Copyright 2012 the Redfish authors
*
* 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... |
#include <errno.h>
#include <stdlib.h>
#include "cmd.h"
#include "packet.h"
#include "time.h"
#include "usb.h"
#include "log.h"
bool u2f_emu_vdev_usb_has_response(void *state)
{
/* USB state */
struct usb_state *usb_state = state;
return usb_state->response != NULL;
}
size_t u2f_emu_vdev_usb_get_respon... |
/*
* premap.c
*
* This file contains code that computes the assignment of processors to
* partition numbers so that it will minimize the redistribution cost
*
* Started 4/16/98
* George
*
* $Id: remap.c,v 1.2 2003/07/21 17:18:53 karypis Exp $
*
*/
#include <parmetislib.h>
/*********************************... |
/****************************************************************************
* px4/sensors/test_hrt.c
*
* Copyright (C) 2012 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* a... |
/* idcache.c -- map user and group IDs, cached for speed
Copyright (C) 1985, 1988-1990, 2004, 2007, 2010, 2014-2015 Free
Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software F... |
/*
* mlx90614.c - Support for Melexis MLX90614 contactless IR temperature sensor
*
* Copyright (c) 2014 <NAME> <<EMAIL>>
*
* This file is subject to the terms and conditions of version 2 of
* the GNU General Public License. See the file COPYING in the main
* directory of this archive for more details.
*
* Dri... |
/***************************************************************************/
/* */
/* gxvmorx5.c */
/* */
/* Tr... |
/*
* Copyright (c) 2017, <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:
* * Redistributions of source code must retain the above copyright
* notice, this list o... |
// Author: <NAME> <<EMAIL>>
#include <fcntl.h>
#include <math.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include "errors.h"
#include "Merkle.h"
inline MerkleNode *allocMerkleNode(void) {
return (MerkleNode *)malloc(sizeof(MerkleNo... |
/*
* Simple Programming Examples And References
* Copyright (C) 2011 <NAME> <<EMAIL>>.
*
* @SYZDEK_BSD_LICENSE_START@
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source... |
/**
* \file
*
* \brief MEGA FLASH DRIVER
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redis... |
/*
Copyright (C) 2019 <NAME>
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.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and... |
#include "paxos.h"
#include "proposer.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <event2/event.h>
#include <sys/socket.h>
#include <signal.h>
#include "netutils.h"
#include "netpaxos.h"
#include "message_pack.h"
void coordinator_preexecute(struct paxos_ctx* ctx);
void try_accept(struct paxo... |
/*
CAT702 ZN security chip
A serial magic latch.
It's a DIP20 chip with a sticker of the form XXnn, where XX is the
company and nn a number:
AC = Acclaim
AT = Atlus
CP = Capcom
ET = Raizing
KN = Konami
MG = Tecmo
TT = Taito
TW = Atari
There usually are 2 of them, one on the... |
//
// Copyright (c) 2017, 2020 ADLINK Technology Inc.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License 2.0 which is available at
// http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
// which is available at https://www.apache.or... |
#include <stdio.h>
#include <stdlib.h>
struct proc {
int id;
int arrival;
int burst;
int rem;
int wait;
int finish;
int turnaround;
float ratio;
} process[10]; //structure to hold the process information
struct proc temp;
int no;
int chkprocess(int);
int nextprocess();
void roundrobin... |
/*Markov Update in Graph: Input: A graph (first line is [r,c] followed by adjacency matrix*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#define TRUE 1
#define FALSE 0
#define CONST_E 2.71828
int max(int a, int b){
return (a >= b)?a:b;
}
void priorProbOfGraph(int **graph, int N, doub... |
#include "dfa_parse.h"
static cJSON *initDfaParse(NfaPair *nfaPair, char *name);
static cJSON *convertNfaToDfa();
static void creatDfaStateTransformTable(int count, Stack *dfa_transfrom_table);
static void destoryNull(void *x){};
cJSON *dfaToArrayJson();
static NfaPair *nfaMachine = NULL;
SetRoot dfaList = NULL;
int *... |
/*
* $Id: ReadPlain.c 3177 2008-04-01 14:47:24Z karstenm $
*
* This file contains routines for reading Vista plain format files.
*/
/*
* Copyright 1993, 1994 University of British Columbia
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is he... |
/*
* vm_linux/chiling/uboot/board/mt5880/mt5880_panel.c
*
* Copyright (c) 2010-2012 MediaTek Inc.
* This file is based ARM Realview platform
* Copyright (C) 2002 ARM Ltd.
* All Rights Reserved
* $Author: dtvbm11 $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms... |
/* $Id: sizeprobe.c,v 1.4 2005/05/15 20:15:28 harbourn Exp $
* dcfldd - The Enhanced Forensic DD
* By <NAME>
*/
/* Copyright (C) 85, 90, 91, 1995-2001, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public Lice... |
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "../../../../mm/gup_test.h"
#define MB (1UL << 20)
#define PAGE_SIZE sysconf(_SC_PAGESIZE)
/* Just the flags we need, copied from mm.h: */
#d... |
#include <stdlib.h>
#define assert(c) {if(!(c)) __VERIFIER_error();}
#define PRODS 2
#define CONS 2
#define TOTAL (PRODS * CONS)
#define PRODS_ITEMS (TOTAL / PRODS)
#define CONS_ITEMS (TOTAL / CONS)
static const int false = 0;
static const int true = 1;
static int total = 0;
int __VERIFIER_nondet_int();
static in... |
/**
* \file
*
* \brief Sleep manager example for SAM series
*
* Copyright (c) 2013-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 pr... |
/* $OpenBSD: hash.c,v 1.24 2015/10/15 06:35:54 mmcc Exp $ */
/* $EOM: hash.c,v 1.10 1999/04/17 23:20:34 niklas Exp $ */
/*
* Copyright (c) 1998 <NAME>. All rights reserved.
* Copyright (c) 1999 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ... |
#include "c8_app.h"
#include <SDL2/SDL.h>
#include <assert.h>
#include <errno.h>
#include "common.h"
#include "logging.h"
#include "c8.h"
#include "c8_read.h"
#define APP_WIDTH (C8_DISPLAY_WIDTH * 10)
#define APP_HEIGHT (C8_DISPLAY_HEIGHT * 10)
#define EXIT_BAD 1
#define TIMER_FREQ (1.0f/60.0f)
struct C8_App
{
... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#ifdef __toaru__
#include <syscall.h>
int usleep(useconds_t time) { syscall_nanosleep(0, time / 10000); }
#else
#include <sys/ioctl.h>
#endif
#define MAX_SPEED 2
#define INITIAL_SNOW 40
#define INCREMENTAL_SNOW 10
#define BUFFER... |
/*
* Copyright (c) 2016, NVIDIA CORPORATION. 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
* the rights to use... |
// SPDX-License-Identifier: GPL-2.0
/*
* Hidraw Userspace Example
*
* Copyright (c) 2010 <NAME> <<EMAIL>>
* Copyright (c) 2010 Signal 11 Software
*
* The code may be used by anyone for any purpose,
* and can serve as a starting point for developing
* applications using hidraw.
*/
/* Linux */
#include <linux/t... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
int symbolCounter(char *str, int start){
int counter = 0;
int i = start;
while (ispunct(str[i]) != 0 && counter < 3){
i++;
counter++;
}
return counter;
}
int wordCounter(char *str, int start){
int cou... |
/*******************************************************************************
*
* Copyright (c) 2017, 2019, 2020 snickerbockers <<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:
... |
// SPDX-License-Identifier: BSD-2-Clause
/*
Copyright 2016 <NAME>
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of
conditions and the ... |
/****************************************************************************\
* Hinterlib error handling *
* *
* Copyright © 2019-2021 Aquefir. *
* ... |
#include <string.h>
#include <math.h>
#include <tonc_bios.h>
#include <tonc_video.h>
#include "camera.h"
#include "math.h"
#include "logutils.h"
#include "model.h"
#include "globals.h"
static FIXED tmpmat[16];
Camera cameraNew(Vec3 pos, FIXED fov, FIXED near, FIXED far, int mode)
{
Camera new;
// Read only... |
#include <stdlib.h>
#include <string.h>
#include "regex_allocators.h"
#include "regex_vm_pike.h"
typedef struct RegexVmPikeContext {
const char *string, *sp;
} RegexVmPikeContext;
typedef struct RegexVmPikeThreadList {
int nthreads;
RegexVmPikeThread *threads;
} RegexVmPikeThreadList;
// THREAD MANAGEMENT ///... |
#include <mesh.h>
#include <obj.h>
#include <stdio.h>
static int parse_obj_file(char *filename, obj_ctx_t *ctx)
{
FILE *f = NULL;
#ifdef _WIN32
if (fopen_s(&f, filename, "rb"))
return -1;
#else
f = fopen(filename, "rb");
#endif
if (!f)
return -1;
... |
/*
* Copyright (c) 2003, Intel Corporation. All rights reserved.
* Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com
* This file is licensed under the GPL license. For the full content
* of this license, see the COPYING file at the top level of this
* source tree.
*/
/*
* Test mq_timedsend() will set... |
#define SYS_VERSION 1
/* input */
struct sys;
struct sys_btn {
unsigned down : 1;
unsigned pressed : 1;
unsigned released : 1;
unsigned doubled : 1;
unsigned long long timestamp;
};
enum sys_keymod {
SYS_KEYMOD_KEY_CTRL,
SYS_KEYMOD_KEY_SHIFT,
SYS_KEYMOD_KEY_ALT,
};
enum sys_keymods {
SYS_KEYMOD_CTRL ... |
/* $OpenBSD: dmareg.h,v 1.6 1997/07/06 08:01:49 downsj Exp $ */
/* $NetBSD: dmareg.h,v 1.12 1997/05/05 21:02:40 thorpej Exp $ */
/*
* Copyright (c) 1982, 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modific... |
/*
*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 m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.