text stringlengths 3.12k 18.7k |
|---|
/********************************************************************************
*
* Copyright 2016-2017 Afero, Inc.
*
* 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 the License
* at
*
* https://opensource.org/licen... |
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include "log.h"
#include "hints.h"
#include "x11.h"
void
GetWMName(Window w, char **name)
{
if (*name)
free(*name);
*name = NULL;
XTextProperty p;
if (!XGetTextProperty(stDisplay, w, &... |
/************************************************************************************
***
*** Copyright 2010-2020 <NAME>(<EMAIL>), All Rights Reserved.
***
*** File Author: Dell, Sat Jul 31 14:19:59 HKT 2010
***
************************************************************************************/
#include "common.h"
... |
/*
* Shared library add-on to iptables to add TOS target support
*
* Copyright © CC Computer Consultants GmbH, 2007
* Contact: <NAME> <<EMAIL>>
*/
#include <getopt.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <netinet/in.h>
#include <xtables.h>
#include <linux/netfil... |
/* Test mpf_sub.
Copyright 1996, 2001, 2004, 2014 Free Software Foundation, Inc.
This file is part of the GNU MP Library test suite.
The GNU MP Library test suite 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;... |
#define MH_MAGIC 0xFEEDFACE // Mach-O BE
#define MH_MAGIC_64 0xFEEDFACF // Mach-O BE x64
#define MH_CIGAM 0xCEFAEDFE // Mach-O LE
#define MH_CIGAM_64 0xCFFAEDFE // Mach-O LE x64
#define FAT_MAGIC 0xCAFEBABE // Mach-O FAT BE
#define FAT_CIGAM 0xBEBAFECA // Mach-O FAT LE
struct mach_header {
// 64-bit version... |
/*
* Copyright (C) 2017 Red Hat, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* GnuTLS is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your opt... |
/*
Unofficial driver for Vive Trackers and up to two lighthouses, with an
emphasis on pulling tracker and lighthouse calibration data from devices.
Adapted from: https://github.com/cnlohr/libsurvive
Which was based off: https://github.com/collabora/OSVR-Vive-Libre
Originally Copyright 2016 <NAME>
... |
//
// Created by root on 11/10/17.
//
#include "TCPVPN.h"
#include "tun.h"
#include "simple-event/src/simpleEvent.h"
#include "simple-event/src/simpleEventEpollAdapter.h"
#include "simple-event/src/simpleEventHashTableAdapter.h"
#include "simple-event/src/simpleTCPServer.h"
#include <errno.h>
#include <stdlib.h>
#incl... |
/*
* This file is part of the bladeRF project:
* http://www.github.com/nuand/bladeRF
*
* Copyright (C) 2015 Nuand LLC
*
* 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 restr... |
/*
Copyright (C) 2021 <NAME>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2... |
/* -MODULE----------------------------------------------------------------------
Phorward Foundation Toolkit
Copyright (C) 2006-2018 by Phorward Software Technologies, <NAME>
http://www.phorward-software.com ++ contact<at>phorward<dash>software<dot>com
All rights reserved. See LICENSE for more information.
File: ppgra... |
#include <pcap.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
char *
escape_data(const uint8_t * packet, uint32_t start, uint32_t end)
{
uint32_t i;
int o;
uint8_t c;
unsigned int length=1;
char * outstr;
for (i = start; i < end; i++)
{
c = packet... |
/* noise2D.c */
/*---------------------------------------------------------------------------*/
/* */
/* noise2D.c: 2D routines for noise matrix measurements */
/* ... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define TRUE !0
#define FALSE 0
#define PRINT 1
#define PREDEFTRANS 2
#define TRANSLATE 3
#define SHUTDOWN 4
typedef int boolean;
typedef char* string;
typedef struct
{
char decoded;
char coded;
} Cesar;
typedef struct kn
{
Cesar content;
//struct kn *up;... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2019 STMicroel... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <pthread.h>
#include <unistd.h>
#include "requestsInterface.h"
#include "readersInterface.h"
char rootdir[200];
char * hostname;
char * readRequest(char * req)
{
int msgPointer = 4;
char path[MAX... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <gio/gio.h>
#include <gio/gnetworking.h>
#include <agent.h>
static NiceComponentState global_lagent_state[2] = { NICE_COMPONENT_STATE_LAST, NICE_COMPONENT_STATE_LAST };
static NiceComponentState global_ragent_state[2] = { NICE_COMPONENT_STATE_LAST, N... |
/* framegrabber.c
*/
#include <except.h>
#include <xos.h>
#include <xfile.h>
#include <msg.h>
#include <fitsy.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include <sched.h>
#include <pthread.h>
#include <math.h>
#include <errno.h>
#include <time.h>
#include... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
#include <stdio.h>
typedef enum _TypeId {
T_VOID,
T_S1,
T_S2,
T_S4,
T_S8,
T_U1,
T_U2,
T_U4,
T_U8,
T_F4,
T_F8,
T_F10,
T_BUILT_IN_TYPES,
T_STRUCT,
T_UNION,
T_ENUM,
T_ERROR
} TypeId;
typedef struct _TypeDesc {
TypeId typeId;
int size;
const char *name;
void *structInf... |
/**************************************************************************
*
* Copyright 2006 <NAME>, Inc., <NAME>, Texas.
* 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 i... |
/*
* Copyright (c) 2018 zhtlab
*
* 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,
* ... |
/*
INF01142 - Sistemas Operacionais I
T2FS - 2017/1
<NAME>
<NAME>
*/
#include "libs.h"
int validPath(char* path) {
int lastWasSlash = FALSE;
int length = strlen(path);
// Min Size || Path não começa no root
if(length == 0 || path[0] != '/') {
return FALSE;
}
// Dupla Barra
int i;
for(i... |
/*================================================================
* Copyright: 2020 <NAME>
* immediate_draw
The purpose of this example is to demonstrate how to use the optional
immediate drawing utility, mainly to be used for quick debug rendering.
Press `esc` to exit the application.
=========... |
/*
* Copyright (c) 2008, <NAME>
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condition... |
/*
* OpenTyrian: A modern cross-platform port of Tyrian
* Copyright (C) 2007-2009 The OpenTyrian Development Team
*
* 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... |
/* concurrent.c
*
* Copyright © 2013 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2, as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* ... |
#include "config.h"
#define QUBIT 3
unsigned short create_qft_matrix (COMPLEX_MATRIX *Fw)
{
unsigned short i,j,temp, N;
float index_exp, index_temp;
N = pow(2, QUBIT);
index_exp = (2*PI) / (float) N;
//Pre-computation for fourier matrix construction
COMPLEX_MATRIX wi;
wi.rows = N; wi.cols = 1;
wi.t =(COMPLEX_... |
/* -*- c -*- */
/*
* zoom.c
*
* metapixel
*
* Copyright (C) 2004 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any la... |
#include "programmer.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
struct mpsse_context *context = NULL;
//#define DEBUG
#define RESET_PIN GPIOL1
#ifdef DEBUG
#define DPRINT_BUFFER(...) print_buffer(__VA_ARGS__)
#else
#define DPRINT_BUFFER(...)
#endif
uint8_t default_fuses[32] = {
... |
// Library for controling Adafruit 9-DOF IMU
// LSM303DLHC magnetometer/accelerometer combo
// L3G4200D gyroscope
#include "main.h"
#include "imu.h"
#include "i2c.h"
#include "math.h"
void IMU_begin() {
// // BDU block data update enabled
// uint8_t write_data_gyro[2] = {L3G4200D_REG_CTRL_REG4, 0x80};
// I2... |
#include "main.h"
#include "globals.h"
HANDLE payload_transfer_handle;
HANDLE payload_transfer_mapping_handle;
DWORD *payload_transfer_mapping;
DWORD payload_transfer_size = 0;
SOCKET local_tftp;
BOOL tftpd_intro(VOID)
{
struct sockaddr_in local_address, remote_address;
WSADATA ... |
/* LEDSequencer
Play sequences to a bank of 16 LEDs using an MCP23018 PIO controller
*/
#include <stdio.h>
#include "esp_log.h"
#include "esp_system.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/semphr.h"
#include "driver/gpio.h"
#include "sdkconfig.h"
#include "driver/i2c.h"
#inc... |
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <wincrypt.h>
#define ARR_LEN(x) \
(sizeof(x)/sizeof(x[0]))
typedef enum {
ArgProg,
ArgBool,
ArgValue
} ArgType;
typedef struct {
ArgType type;
char *key;
union {
struct {
char *value;
int len;
};
int isset;
};
} Arg;
typedef struct {
HAN... |
/*
* Copyright (c) 2016 Dell 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
*
* THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARR... |
/*
GRUPO 1:
<NAME> 150993
<NAME> - 190375
<NAME> Junior - 180998
<NAME> - 163130
*/
#include<stdio.h>
#include<stdlib.h>
typedef struct endereco {
char logradouro[80];
char bairro[15];
char CEP[10];
char cidade[15];
char estado[3];
char fone[12];
char email[40];
}endereco;
typedef struct infocarro {
char sigl... |
/* Copyright 2013 <NAME>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope tha... |
/*
* Copyright (C) 2018 Red Hat, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* The GnuTLS is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or... |
/* gdb-if.c -- sim interface to GDB.
Copyright (C) 2011-2014 Free Software Foundation, Inc.
Contributed by Red Hat, Inc.
This file is part of the GNU simulators.
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... |
/* Bryan got this from mm.ftp-cs.berkeley.edu from the package
mpeg-encode-1.5b-src under the name ppmtoeyuv.c on March 30, 2000.
The file was dated January 19, 1995.
Bryan changed the program to take an argument as the input filename
and fixed a crash when the input image has an odd number of rows or ... |
//#ifndef INC_generatecandidates_H
//#define INC_generatecandidates_H
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<time.h>
#include<string.h>
#include<ctype.h>
// store array of indels and their counts for each sample separately: for realignment, merge and sort arrays...
// only stores indels from a ... |
/*
* 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... |
/**
* @file
* @autohr <NAME> (<EMAIL>)
*
* @section LICENSE
Copyright (c) 2022, The University of California at Berkeley.
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... |
/*
*
* Copyright (c) 2005-2021 Imperas Software Ltd., All Rights Reserved.
*
* THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND TRADE SECRETS
* OF IMPERAS SOFTWARE LTD. USE, DISCLOSURE, OR REPRODUCTION IS PROHIBITED
* EXCEPT AS MAY BE PROVIDED FOR IN A WRITTEN AGREEMENT WITH
* IMPERAS SOFTWARE LTD.
*
*/
//... |
/*
** Copyright (C) 2005 The Android Open Source Project
** Copyright 2012, Google, Inc.
** Copyright 2012, Mozilla Foundation
**
** 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
**
** ht... |
/*
* Copyright (c) 2020 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
* 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
*
* www.apache.org/licenses/LICENSE-2.... |
/*
Modified ESPRESSIF MIT License
Copyright (c) <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
<NAME> (bkeevil), https://github.com/bkeevil/esp32-cam
<NAME>, Turcotronics, https://turcotronics.it/
Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case,
it is free of charge, to an... |
/*s: lib_gui/libpanel/entry.c */
/*s: [[libpanel]] includes */
#include <u.h>
#include <libc.h>
#include <draw.h>
#include <event.h>
#include <panel.h>
#include "pldefs.h"
/*e: [[libpanel]] includes */
#include <keyboard.h>
typedef struct Entry Entry;
/*s: struct [[Entry]] */
struct Entry{
// ref_own<string>
... |
#include "myPid.h"
#include "math.h"
#include <stdint.h>
#include <stdlib.h>
#include "tim.h"
/*
PID PERIOD TIME IN MAIN FILE (CONST VALUE IN HEADER, BASING ON TIMER INTERRUPT)!
PID KOEFFICENT IN THIS FILE IN PID REGULATOR FUNCTION
*/
const float termistor[43][3] = {
{-55.0, 96.3, 7.4},
{-50.0, 67.01, 7.2},
... |
// Copyright 2021 The Wuffs 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... |
/******************************************************************************
*
* Tilengine sample
* 2015 <NAME>
* http://www.tilengine.org
*
* This full example show a proof-of-concept shoot-em up game. It uses two
* multiplexing layers to simulate more scrolling planes, linescroll for the
* water, transparency for ... |
/* ====================================================================
*
*
* BSD LICENSE
*
* Copyright(c) 2020 Intel Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ar... |
/* Module: mDiffFitExec.c
Version Developer Date Change
------- --------------- ------- -----------------------
1.2 <NAME> 29Mar08 Add 'level only' capability
1.1 <NAME> 01Aug07 Leave more space in the output table columns
1.0 <NAME> 29Aug06 Baseline code
*/
#inc... |
/*
* The olsr.org Optimized Link-State Routing daemon(olsrd)
* 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:
*
* * Redistributions of source code ... |
/*
* Keystone2: DDR3 configuration
*
* (C) Copyright 2012-2014
* Texas Instruments Incorporated, <www.ti.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <i2c.h>
#include <asm/arch/ddr3.h>
#include <asm/arch/hardware.h>
DECLARE_GLOBAL_DATA_PTR;
/* DDR3 PHY configuration data... |
/* This routine returns the atomic number of the introduced atom */
int atomnumber(char atomname[]);
int atomnumber(char atomname[])
{
int atnum;
if (!strncmp(atomname, "C",4)) atnum = 6;
else if(!strncmp(atomname, "CA",4)) atnum = 6;
else if(!strncmp(atomname, "CB",4)) atnum = 6;
else if(!strncmp(atomname, ... |
/**
* wrappers/include/ts.c
*
* Terminal server functions for wrappers.
*
* @author <NAME> <<EMAIL>>
* @copyright 2014-2016 <NAME>
* @license BSD-3-Clause https://github.com/dainok/unetlab/blob/master/LICENSE
* @link http://www.unetlab.com/
* @version 20160719
*/
#include <errno.h>
#include <netinet/in.h>
#i... |
/*
* Licensed Materials - Property of IBM
*
* trousers - An open source TCG Software Stack
*
* (C) Copyright International Business Machines Corp. 2006
*
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "trousers/tss.h"
#include "trousers/trousers.h"
#include "trousers_types.h"
#include... |
/*
* Copyright (c) 2019-2020, <NAME>
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include "bluetooth/host.h"
#include "wii.h"
struct bt_wii_ext_type {
uint8_t ext_type[6];
uint32_t subtype;
};
static const struct bt_hidp_wii_rep_mode wii_rep_conf = {
BT_HIDP_WII_CONTINUOUS,
BT_HIDP... |
//============================================================================
// THE CODE BELOW WAS HEAVILY RECYCLED FROM THIS SOURCE:
// Name : posixExample.c
// Author : <NAME>
// CaseID : dxs221
// Description : POSIX Examples, POSIX Threads and POSIX Semaphores
// Simple Threaded Reader... |
/*
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* Copyright (C) 2005-2014, <NAME> <<EMAIL>>
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
#include <stdint.h>
#include <string.h>
#include "unity.h"
#include "pi_reciter.h"
//! Our test dummy
// Fixture for our table
#define N_PI_DIGITS 128 //!< Number of digits of pi TamoDevBoard has memorized
/** The actual digits of pi, recited in DTMF when it's bored. */
static uint8_t PI_DIGITS[N_PI_DIGITS] = \... |
// <NAME>
// Programming project 2 solution
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
#include <errno.h>
#define COMMAND_LENGTH 1024
#define NUM_TOKENS (COMMAND_LENGTH / 2 + 1)
#define TOKEN_LENGTH (COMMAND_LENGTH)
/**
* Write Routines... |
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include <malloc.h>
#include "coap.h"
#include "wren.h"
static char light = '0';
static char wrenAbout[] = WREN_VERSION_STRING; //"Wren v0.3.0";
static char rsp[1500] = "";
static char vmScratch[1000] = ""; bool vmScratchFull = false;
... |
/*
Copyright (c) 2019 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublice... |
//
// appFirewall-Helper
// - raw socket handler for appFirewall, needs root privilege
//
// Copyright © 2019 <NAME>. All rights reserved.
//
// SMJobBless() installs appFirewall-Helper to /Library/PrivilegedHelperTools/
// The steps to get SMJobBless() to work:
// 1. Helper's launch.plist must include label entry wi... |
// this program takes udp packets from infineon radar kit
// and perform 2d fft with fftw3
// then display the range-doppler plot using sdl2
// when passing a folder name to the program, it will record
// all packets to the folder as well as the pictures
// that are synced with them
#include <stdio.h>
#include <stdlib... |
#include "largefiles.h" /* must be first! */
#include "vmdplugin.h"
extern int molfile_dcdplugin_init(void);
extern int molfile_dcdplugin_register(void *, vmdplugin_register_cb);
extern int molfile_dcdplugin_fini(void);
/*
extern int molfile_jsplugin_init(void);
extern int molfile_jsplugin_register(void *, vmdplugi... |
/*
* Copyright (C) 2003 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or modify it under
* the terms of the GNU Library General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is dist... |
/*
* Copyright 2010 <NAME> <<EMAIL>>
* Copyright 2015-2021 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, in... |
/*
* Copyright (c) 2012 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.
*/
#include <errno.h>
#include <limits.h>
#include <pthread.h>
#include <sched.h>
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
... |
/*
* Copyright (c) 2013 - 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2019 NXP
* All rights reserved.
*
* THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AR... |
#include <assets/model/modelload.h>
#include <stdlib.h>
#include <string.h>
#include <linalgb.h>
#include <hashmap.h>
#include <orb/mdl.h>
#include <orb/anm.h>
struct frameset* frameset_from_anm(const unsigned char* data, size_t sz)
{
struct anm_file anm;
anm_parse_from_buf(&anm, (byte*)data, sz);
struct ... |
#define MAXCLIENTS 256 // in a multiplayer game, can be arbitrarily changed
#define DEFAULTCLIENTS 6
#define MAXTRANS 5000 // max amount of data to swallow in 1 go
#define CUBE_DEFAULT_SERVER_PORT 28763
#define CUBE_SERVINFO_PORT_LAN 28762
#define CUBE_SERVINFO_PORT(serverport) (serve... |
#include <linux/module.h> // Needed by all modules
#include <linux/kernel.h> // Needed for KERN_INFO
#include <linux/fs.h> // Needed by filp
#include <asm/uaccess.h> // Needed by segment descriptors
//Set to the file you are targeting
void escribir(char* dump_filename, char* datos)
{
struct file *file;
... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2012 Advanced Micro Devices, Inc.
* Copyright (C) 2015 <NAME> <<EMAIL>>
* Copyright (C) 2018 <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 publi... |
/*
* server.c
*
* Created on: May 24, 2016
* Author: kristofkalocsai
*/
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
//#include <sys/time.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <... |
/* Name: validatejigsaw.c
*
* Description: This program creates a jigsaw puzzle. The input is a set
* of portable bitmap files (.pbm) and a solution.txt file.
* Each .pbm file describes one jigsaw puzzle piece.
*
* Copyright: Copyright (C) 2019 by <NAME> (<EMAIL>)
* ... |
/*
* UD3
*
* Copyright (c) 2018 <NAME>
* 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
*... |
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "gps.h"
#include "bits.h"
#include "utils.h"
int checksum() {
char buf[] = "$IIMTW,00,C";
char csum[3] = { '0', '0', '0' };
unsigned int n = 1, crc;
for (n = 1; buf[n] != '\0'; n++)
crc ^= buf[n];
(void)snprintf(csu... |
#include "business.h"
#define MAX_FILE_PATH_LENGTH 100
#define MAX_DIRECTORY 15
#define MAX_FILES_PER_DIR 24
#define MAX_SIZE_NUM_IN_FILE 69
#define LONG_MAX 20000
//todo changer max size num in file
/**fonction qui génère la distance euclidienne entre des valeurs et un pattern
*@params valeurs contient un tableau... |
/*
* This file is part of QBDI.
*
* Copyright 2017 - 2022 Quarkslab
*
* 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 re... |
/**
******************************************************************************
* @file httputil.c
* @author WIZnet Software Team
* @version V1.0
* @date 2015-02-14
* @brief http中需要的实用函数
******************************************************************************
*/
#include "httputil.h"
#... |
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include "block.h"
#include "alloc.h"
#include "diagnostics.h"
#include "deathqueue.h"
#include "checksum.h"
static Block *free_blocks = NULL;
/* Returns a new, empty Block. All fields of the block are initialized to
* zero. If DEBUG ... |
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include "mpi.h"
#include "kvtree.h"
#include "kvtree_util.h"
#include "kvtree_mpi.h"
#include "scr.h"
#include "veloc.h"
static char SCR2VELOC_NAME[] = "scr.dataset";
static int SCR2VELOC_MAX_VERSION = INT_MAX;
static char SCR2VELOC_VERSION[] = "sc... |
/*
* Copyright (C) 2018 Jolla Ltd.
* Contact: <NAME> <<EMAIL>>
*
* You may use this file under the terms of BSD license as follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of... |
#include "types.h"
#include "vid.h"
volatile u32 *fb;
DisplayContext gDisplayContext = {0};
dchar_ptr dcharX;
dchar_ptr undcharX;
u32 fbuf_init()
{
fb = (u32 *)(0x200000); //frame buffer starts at 2M, decided by the board spec
InitializeFontContext12x16();
/* for 640x480 VGA */
// *(volatile u32 ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "mpr.h"
#include "utils/rbtree.h"
#include "utils/llist.h"
#include "utils/matrice.h"
#define DEBUG printf("%s:%d\n",__FILE__,__LINE__)
#include <time.h>
void _print_node(node *n)
{
printf("<Node %zu, neigh={", n->id);
for (si... |
/*******************************************************************************
Dahsee - a D-Bus monitoring tool
Copyright © 2012-2014 <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 with... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
//
// sm3.c
// SM9_FREE
//
// Created by 宋赓 on 2017/3/25.
// Copyright © 2017年 宋赓. All rights reserved.
//
#include "sm3.h"
//11sm3.c
#define SM3_DIGEST_LENGTH 32
#define SM3_BLOCK_LENGTH 64
#define SM3_PAD_MAXLEN 56
typedef long long int64;
typedef unsigned long long uint64;
typedef int... |
#include "bin_huffman.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "tools.h"
//#define DEBUG_OUTPUT
int node_cmp(const void *node_1, const void *node_2) {
bin_huffman_node_t *const *node_1_ptr = node_1;
bin_huffman_node_t *const *node_2_ptr = node_2;
if ((*node_1_ptr)->p > (*node_2... |
/* dejavu savestate plugin
*
* Copyright (C) 2020 TheFloW
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include <psp2kern/kernel/cpu.h>
#include <psp2kern/kernel/modulemgr.h>
#include <psp2kern/kernel/suspend.h>
#include <psp2kern/k... |
/*
* Copyright (c) 2016 Motorola Mobility, LLC.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of co... |
/**
*
* /brief RR iterator over wireformat DNS packet
*/
/*
* Copyright (c) 2013, NLnet Labs, Verisign, 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 ... |
// created by: WestleyR
// email: <EMAIL>
// https://github.com/WestleyR/txtlinter
// date: Nov 16, 2019
// version-1.0.0
//
// The Clear BSD License
//
// Copyright (c) 2019 WestleyR
// All rights reserved.
//
// This software is licensed under a Clear BSD License.
//
#include <stdio.h>
#include <dirent.h>
#include <... |
/***************************************************************************//**
* @file app.c
* @brief Silicon Labs Empty Example Project
* This example demonstrates the implementation of IR signal generate and
* 4x4 matrix key scan with BLE on our EFR32 device(lynx).
* Need to ensure IR signal generate work we... |
/* Copyright 2013-present Barefoot Networks, 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 l... |
/*
* Copyright (c) 2018 by Farsight Security, 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.