text stringlengths 3.08k 10.5k |
|---|
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#pragma comment(lib, "ws2_32.lib")
#define ICMP_ECHO 8 // 请求回显 ping请求 请求回显8
#define ICMP_ECHOREPLY 0 // 回显应答0
#define ICMP_MIN 12 // minimum 12 byte icmp message(just header)
#define PORT 6666
#define STAT... |
#include "bitmapfont.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct BitmapFont * LoadBitmapFontByName( const char * fontpath )
{
int line = 0;
struct BitmapFont * ret = 0;
char sfname[2048];
FILE * f = fopen( fontpath, "r" );
if( !f )
{
fprintf( stderr, "Error: could not open up path to: ... |
/**
* copyright (2017) Baidu Inc. All rights reserved.
*
* 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 b... |
/**
@file givehelp.c
\brief Módulo para fornecimento de ajudas.
*/
#include "estado.h"
#include "decide.h"
#include "givehelp.h"
#include "validate.h"
#include "solver.h"
#include <stdio.h>
#include <string.h>
// ------------------------------------------------------------------------------
/* Metódos públicos. */
i... |
#include "reduce.h"
#include "value_helper.h"
#include "apphelper.h"
#include "rbktsmgr.h"
#include "mr-sched.h"
#include "bench.h"
#include <assert.h>
#include <string.h>
#ifdef JOS_USER
// #include <inc/compiler.h>
#endif
enum { init_valloclen = 8 };
static key_cmp_t keycmp = NULL;
void
reduce_or_group_setcmp(key_... |
#include <gtk/gtk.h>
#include <sqlite3.h>
#include <string.h>
#include <stdlib.h>
#include "../common/config.h"
#include "../common/database.h"
GtkWidget * win;
GtkWidget * author_box;
GtkWidget * title_box;
GtkTextBuffer * info_buffer;
GtkWidget * info_box;
GtkWidget * start_bid_box;
GtkWidget * picture;
GtkWidget ... |
#ifndef WIN32
#define LINUX_RT_FEATURES
#endif
//have to be incleded first
#include "rt.h"
#include "api.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
//define control loop cycle time to 250Hz
const double dt = 1.0 / 250.0;
typedef struct
{
uint8_t mode;
uint8_t iwin;
int16_t des_curr;
float des_... |
int sublt (int i) { return i < 10; }
int suble (int i) { return i <= 10; }
int subgt (int i) { return i > 10; }
int subge (int i) { return i >= 10; }
int sublt_z (int i) { return i < 0; }
int suble_z (int i) { return i <= 0; }
int subgt_z (int i) { return i > 0; }
int subge_z (int i) { return i >= 0; }
int sublt_z_ed... |
#ifndef WIN32
#define LINUX_RT_FEATURES
#endif
//have to be incleded first
#include "rt.h"
#include "api.h"
#include "math_macro.h"
#include <stdlib.h>
#include <string.h>
#include <math.h>
//define control loop cycle time to 250Hz
const double dt = 1.0 / 250.0;
//PDO objects definition
typedef struct __attribute__... |
/*
* Copyright (C) 2009, 2010 Red Hat Inc, <NAME> <<EMAIL>>
*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* This program 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 Founda... |
/* ====================================================================
* Copyright (c) 2014 - 2017 The GmSSL Project. 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. Redistribution... |
#include <bits/types.h>
#include <ctype.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "billion.h"
static void print_pinned_err(char *line, int pos)
{
fprintf(stderr, "[ERROR] %s", line);
fprintf(stderr, "[ERROR] %*s", pos, "");
fprintf(stderr, "^\n");
}
stati... |
/* ----------------------------------------------------------------------- *
*
* Copyright 2008 <NAME> - All Rights Reserved
* Copyright 2009 Intel Corporation; author: <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as... |
/*
* Copyright (C) 2008 <NAME>
* Copyright (C) 2009 <NAME>
*
* This file is part of wasp, some code taken from paparazzi (GPL)
*
* wasp 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,... |
/*
* Copyright (c) 2014-2016 IBM Corporation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define DEBUG
#include "board.h"
#include "debug.h"
#include "fbook.h"
#include "random.h"
static coord_t
coord_transform(struct board *b, coord_t coord, int i)
{
#define HASH_VMIRROR 1
#define HASH_HMIRROR 2
#define HASH_XYFLIP ... |
/* -HEADER----------------------------------------------------------------------
RapidBATCH
Copyright (C) 2008, 2009 by Phorward Software Technologies, <NAME>
http://www.phorward-software.com ++ <EMAIL>
File: rb_native.h
Author: <NAME>
Usage: Header Template for the Native Function SDK
WARNING: THIS IS A HEADER FIL... |
/*
* Copyright (c) 2014 NLNet Labs
* Copyright (c) 2014 OpenDNSSEC AB (svb)
* 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 copy... |
/**
* \file
*
* \brief Current Time Service
*
* Copyright (c) 2016 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. Redistributions ... |
/*
filter for cuxd-devlogfiles
(C) '2015 by <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#define VERSION "1.0"
#define BUFSIZE 400000
#define MAXLINE 150
char verbose = 0;
int is_number(char c) {
if ((c >= '0') && (c <= '9')) return ... |
/* Taken from Ted's losetup.c - Mitch <<EMAIL>> */
/*
* losetup.c - setup and control loop devices
*/
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <linux/fs.h>
#include "loop.h"
char *crypt_name (int);
int crypt... |
/*
(c) Copyright 2012-2013 DirectFB integrated media GmbH
(c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>,
<... |
#include "zwm.h"
static const char* attempting_to_grab = 0;
typedef struct HotKey {
KeySym keysym;
unsigned long modifiers;
KeyFunc func;
const char* args;
struct HotKey *next;
int rel;
} HotKey;
static HotKey *list = NULL;
static int key_error(Display* d, XErrorEvent* e);
static unsigned int key_parse(char* na... |
#include <stdio.h>
#include <stdlib.h>
#define MAX 50
typedef struct {
int chave;
int prox;
} REGISTRO;
typedef struct {
REGISTRO A[MAX];
int inicio;
int dispo;
} LISTA;
// Inicilializa a lista ligada
void inicializarListaLigada(LISTA *l) {
// Posi��o do �ndice di... |
/*
* 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.
*
* rksF.c
*
* Code generation for function 'rksF'
*
*/
/* Include files */
#include "rksF.h"
#in... |
#include "player.h"
#include "framework64/n64/controller_button.h"
static void process_input(Player* player);
static void update_position(Player* player);
void player_init(Player* player, fw64Engine* engine, fw64Scene* scene, int mesh_index, Vec3* position) {
player->engine = engine;
player->scene = scene;
... |
// Reference:
// FSM: https://stackoverflow.com/questions/50165534/finite-state-machines-in-c
// C Enum: https://www.geeksforgeeks.org/enumeration-enum-c/
/* standard lib */
#include <stdio.h> // printf #include <stdbool.h> // bool for _Bool and true for 1
#include <conio.h> // for clrscr, and getch()
#include... |
/*
* Copyright (c) 2016 Red Hat, Inc.
* All Rights Reserved.
*
* 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.
*
* This program is distributed in the hope that it would be useful,
* but... |
/*****************************************************************************
This file is part of Virtual 2600, the Atari 2600 Emulator
==========================================================
Copyright 1996 <NAME>. For contributions see the file CREDITS.
This software is distributed under the ter... |
/*******************************************************************************
Initializing the hardware modules
=================================
<NAME>
<EMAIL>
*****************************************************************************/
#include <init/hardware_init.h>
/*-----... |
/*
* Copyright 2016 <NAME>
*
* 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 wr... |
#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... |
#include <stdint.h>
#include <string.h>
#include "contour.h"
void
initcontour(Contour *cp, uint8_t *img, int width, int height, int st)
{
int i;
cp->img = img;
cp->width = width;
cp->height = height;
cp->stride = st;
cp->off = st+1;
cp->end = st*(height-1);
cp->moore[0] = -1;
cp->moore[1] = st-1;
cp->moor... |
# include <stdio.h>
# include <hstio.h>
# include <string.h>
#include "hstcal.h"
# include "acs.h"
# include "acsrej.h"
# include "hstcalerr.h"
# include "rej.h"
# include "trlbuf.h"
static void InitRejTrl (char *, char *);
/* ACSREJ -- cosmic ray rejection with shading correction and
section-by-section checking... |
/* The MIT License
*
* Copyright (C) 2009 <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, modif... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
/*
TP3 - SGF (groupe SR 1.1)
<NAME>
<NAME>
*/
// Includes
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <stdlib.h>
#include <time.h>
// Constants
#define MAT_SIZE 64
#define NB_ROWS_PER_THREAD 8
#define NB_SON_THREADS 8
#define RAND_MIN_VALUE 0
#define RAND_MAX_VALUE 100
... |
/**
* @file main.c
* @author <NAME> (<EMAIL>)
* @brief N64 test ROM for Joypad subsystem
*/
#ifdef ROM_VERSION
static const char ROM_TITLE[] = "N64 Controller Pak Dump " ROM_VERSION " by Meeq";
#else
static const char ROM_TITLE[] = "N64 Controller Pak Dump by Meeq";
#endif
#include <assert.h>
#include <string.h>
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <windows.h>
void eixo_x_y(int x, int y);
struct struct_element
{
int number_id;
int value;
int value_def;
char value_DB[1];
struct struct_element *nodo_father;
struct struct_element... |
// set these for your server, and put this file in the same directory as
// nph-offload.c ...
// GDEBUG should be false at production time, but this lets you sanity check
// some things before going live.
#ifndef GDEBUG
#define GDEBUG 0
#endif
// Set GDEBUGTOFILE to write all debug info to files in GDEBUGDIR, if
//... |
/*
* Copyright (c) 2012-2020 MIRACL UK Ltd.
*
* This file is part of MIRACL Core
* (see https://github.com/miracl/core).
*
* 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... |
#include <stdlib.h>
#include <sqlite3.h> // SQLite3 Database
#include "libs/shared.h"
#include "skydiveorbust_sql.h"
#include "libs/sqlite3-wrapper/sqlite3-wrapper.h"
#include "libs/queue/queue.h"
#include "libs/dbg/dbg.h"
int pg_sdobSqlCb_debug(void *NotUsed, int argc, char **argv, char **azColName) {
int i;
f... |
// PlaatCraft - Perlin Noise
// Adapted from: https://mrl.cs.nyu.edu/~perlin/noise/
#include "perlin/perlin.h"
#include <math.h>
int64_t perlin_seed;
int perlin_p[512];
int perlin_permutation[256] = {
151,160,137,91,90,15,
131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,
190,... |
/*
* bdiff.c
*
* Author : <NAME> <<EMAIL>>
* Date created : 23/11/2021
*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define LIMIT 4
#define BLOCK_WIDTH 16
int
usage(char *argv)
{
fprintf(stderr, "Usage: %s [options] <file1> <file2>\n", argv);
fprin... |
#pragma ident "$Id: init.c,v 1.15 2013/12/12 19:04:33 dechavez Exp $"
/*======================================================================
*
* Initialization routine.
*
*====================================================================*/
#include "i10dmx.h"
#include "q330.h"
extern int saveTtags;
void ini... |
//
// Created by leoll2 on 10/6/20.
// Copyright (c) 2020 <NAME>. All rights reserved.
//
#include <arpa/inet.h> // for inet_addr
#include <rte_ether.h>
#include "ini.h"
#include "udpdk_args.h"
#include "udpdk_types.h"
extern configuration config;
extern int primary_argc;
extern int secondary_argc;
extern char *pr... |
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License ve... |
#include <xok/sys_ucall.h>
#include <stdlib.h>
#include <xok/mmu.h>
#include "config.h"
#include "debug.h"
#include "types.h"
#include "pagetable.h"
#include "memutil.h"
#include "handler_utils.h"
#include "descriptors.h"
#include "emu.h"
int verify_lina_range(u_int lina, Bit32u flags, u_int bytes)
{
u_int i;
... |
/* $OpenBSD: machdep.c,v 1.8 2014/07/13 09:26:08 jasper Exp $ */
/*
* Copyright (c) 2010 <NAME>.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <raylib.h>
const uint8_t map[10][10] = {
{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
{ 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
{ 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
{ 1, 0, 0, 0, 0, 0, 0, 0, 0, 1 },
{ 1, 0, 1, 0, 1, 1, 0, 0, 0, 1 },
... |
// ***************************************************************************
// **
// ** Motor controller for Dolphin Dynamic 2002 Pool Cleaner
// **
// ** by <NAME> <<EMAIL>>
// **
// ** 15-Nov-2015
// **
// ***************************************************************************
// This module p... |
/*===
*** test_1 (duk_safe_call)
top: 33
index 0, int: 0, number before: nan, number after: 0.000000
index 1, int: 0, number before: nan, number after: 0.000000
index 2, int: 1, number before: nan, number after: 1.000000
index 3, int: 0, number before: nan, number after: 0.000000
index 4, int: 0, number before: 0.00000... |
/**
******************************************************************************
* @file dcmi.c
* @brief This file provides code for the configuration
* of the DCMI instances.
******************************************************************************
* @attention
*
* <h2><center>&cop... |
/*
* bendian_test.c
*
* Copyright 2017 <NAME> <<EMAIL>>
*
* 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... |
/*
* Phoenix-RTOS
*
* Operating system loader
*
* Load kernel
*
* Copyright 2021 Phoenix Systems
* Author: <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include "cmd.h"
#include "elf.h"
#include <hal/hal.h>
#include <phfs/phfs.h>
#include <syspage.h>
static void cmd_kernelInfo(void)
{... |
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "utils.h"
#include "listTad.h"
#include "minMax.h"
char** split(char* string, int nFields, const char* delim) {
char** tokens = malloc(sizeof(char*) * nFields);
int index = 0;
char* next_token = NULL;
char* token = (char*)strtok_... |
#include "config.h"
#define MAX_TX_STREAM_LEN 26
#define MAX_TX_CHANNEL_BUF_LEN 22
#define MAX_TX_CHANNEL 16
#define DEFAULT_XMIT_DELAY (4000)
#define AILERON_MIN (0x0CC)
#define AILERON_MID (0x400)
#define AILERON_MAX (0x733)
#define ELEVATOR_MIN (0x0CC)
#define ELEVATOR_MID (0x400)
#define ELEVATOR_MAX (... |
#include <stdbool.h>
#include <stdint.h>
#include "bitops.h"
#include "image.h"
#include "data.h"
#include "encoder.h"
int imgarc_encode(int16_t *sequence, imgarc_data *data, imgarc_image *img, bool verbose)
{
int n = 0, s = 0, current_channel, current_bit_offset;
int16_t cs;
uint8_t current_byte = 0, current_bit, ... |
#include "main.h"
#include "sms.h"
#include "parse.h"
#include "sendmsg.h"
extern int num_of_regex;
int valid=TRUE;
int exitcode=0;
extern char phone[256];
/* maximum size of the output data */
extern int maxdisplay;
/* maximum number of output parts */
extern int maxparts;
#ifdef AFS
#define CONFIGDIR "/var/mail2... |
/******************************************************************************
Data structure for representing data as a sequence of 64-bit words
******************************************************************************/
/* What kind of correctness checks should be applied by package. */
/* Possible levels:
... |
/*
* dma_test.c
*
* Created on: 2018-5-21
* Author: mmh
*/
#include "system.h"
#include "sys/alt_timestamp.h" // Interval Timer
#include "alt_types.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include "sys/alt_dma.h"
#include "clk_gen.h"
#include "clk_device.h"
#include "sys/alt_... |
/*
Copyright (c) 2013-2015, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... |
#include <dirent.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <assert.h>
#include <unistd.h>
#include "service.h"
service_t init_service(service_kind kind) {
service_t service = {
.kind = kind,
.hostname = NULL,
.port = 0
};
return service;
}
void free_... |
#pragma once
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>
//PLIK ZAWIEFA DEKLARACJE WSZYSTKICH STRUKTUR WYKORZYSTYWANYCH W GRZE
//Struktura tła
struct mainBackgroundStruct{
int defaultSizeX; //Szerokość wczytanego obrazu
int defaultSizeY; //Wysokość wczytanego obrazu
int sizeX; //Szero... |
#include "communication.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
#include "mls.h"
/** returns: socket fd */
int sock_create_... |
/*
* 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... |
#include "luat_base.h"
#include "luat_malloc.h"
#define ldump_c
#define LUA_CORE
#include "lprefix.h"
#include <stddef.h>
#include "lua.h"
#include "lobject.h"
#include "lstate.h"
#include "lundump.h"
#include "lstring.h"
#define LUAT_LOG_TAG "cmp"
#include "luat_log.h"
static void cmpProto(const Proto* p1, con... |
/*
* Copyright (c) 1982, 1986, 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* %sccs.include.redist.c%
*
* @(#)dcareg.h 8.1 (Berkeley) 06/10/93
*/
#include <hp/dev/iotypes.h> /* XXX */
#ifdef hp700
struct dcadevice {
vu_char dca_reset;
vu_char dca_pad[0x800-1];
vu_char ... |
/*-
* Copyright (c) 2016-2017 <NAME>
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
* 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
* ... |
#include "rs.h"
#include "file_operations.h"
#include "mcoding.h"
/** encode and store to separate files
* @param prsi, rs information,
* @param orig_data, data to be encoded
* @param data_len, orig data len
* @param encoded_data, data after encoded, store in an array of k*chunk_size
* @param encoded_parity, pari... |
#include <string.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_system.h"
#include "esp_wifi.h"
#include "esp_event_loop.h"
#include "esp_log.h"
#include "nvs_flash.h"
#include <stdio.h>
#include "lwip/err.h"
#include "lwip/sockets.h"
#include "lwip/sys.h"
... |
/*
* Copyright (c) 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 without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, ... |
#include "ngx_http_hercules_log_network.h"
#ifdef THREAD_SENDER
static void ngx_http_hercules_thread_sender(void* data, ngx_log_t* log){
/* executed in thread */
ngx_http_hercules_thread_sender_ctx_t* ctx = data;
struct sockaddr_in server_addr;
int logic_true = 1;
struct timeval send_timeout;
... |
/*
* $QNXLicenseC:
* Copyright 2008, 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/LICENS... |
/*--------------------------------------------------------------------------
Copyright (c) 2010, The Linux Foundation. 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... |
/* Target independent definitions for LynxOS.
Copyright (C) 1993-2020 Free Software Foundation, Inc.
This file is part of GCC.
GCC 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, or (at your... |
/* NOCW */
/* demos/spkigen.c
* 18-Mar-1997 - eay - A quick hack :-)
* version 1.1, it would probably help to save or load the
* private key :-)
*/
#include <stdio.h>
#include <stdlib.h>
#include <openssl/err.h>
#include <openssl/asn1.h>
#include <openssl/objects.h>
#include <openssl/evp.h>
#include <openssl/x5... |
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 <NAME> / <NAME>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as ... |
#pragma once
#include <sys/types.h>
#include "main.h"
// Matrix buttons config
#define MATRIX_ROWS 6
#define MATRIX_COLS 15
#define MATRIX_DEBOUNCE_TICKS 5
#define MATRIX_SCAN_DELAY 1
#define MATRIX_MAX_LAYERS 2
extern const uint16_t MATRIX_ROWS_PINS[MATRIX_ROWS];
extern GPIO_TypeDef * const MATRIX_ROWS_PORTS[MA... |
// Worked out together with <NAME> aka "hamster_nz"
// Go checkout his project https://github.com/hamsternz/ProgrammingPosters
#include <stdio.h>
#include <math.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb/stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb/stb_image_write.h"
#define WIDTH 1000
... |
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/rcc.h>
#include "config.h"
#include "delay.h"
#include "i2c.h"
#include "stm32f103/backup.h"
#include "target.h"
#ifndef REG_BOOT
#define REG_BOOT BKP1
#endif
#ifndef CMD_BOOT
#define CMD_BOOT 0x4F42UL
#endif
uint8_t current_status_led = LED_PROG_KEY;
... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2013 Intel Corporation. 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 noti... |
#include <Python.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
static const char* env_entry_point = "Y_PYTHON_ENTRY_POINT";
#ifdef _MSC_VER
extern char** environ;
void unsetenv(const char* name) {
const int n = strlen(name);
const char** dst = environ;
for (const char** src = environ; *... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#define uint unsigned int
#include <adlb.h>
#include "bench_util.h"
#include "uts-src/uts_inline.h"
// Work unit type
#define WORKT 0
typedef struct {
Node node;
// Number of ancestor tasks,... |
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│
│vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│
╞══════════════════════════════════════════════════════════════════════════════╡
│ Copyright 2021 <NAME> │
│ ... |
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <liburing.h>
#define QD 32
#define BS (16 * 1024)
static int infd, outfd;
struct io_data {
int read;
off_t first_offs... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright (C) 2010 by the Massachusetts Institute of Technology.
* All rights reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibil... |
/* $NetBSD: addbytes.c,v 1.11 1997/07/22 07:36:20 mikel Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
* 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
* a... |
/* $OpenBSD: popen.c,v 1.21 2009/10/27 23:59:51 deraadt Exp $ */
/*
* Copyright (c) 1988, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software written by <NAME> and
* published in UNIX Review, Vol. 6, No. 8.
*
* Redistribution and use in source a... |
/* $Id: bitvect_test.c 1892 2007-07-13 20:56:28Z peter $
*
* Copyright (C) 2001-2007 <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
... |
// porres 2017
#include "m_pd.h"
#include <stdlib.h>
typedef struct _match{
t_object x_obj;
t_float x_lastin;
t_int x_n_outlets;
t_int x_first;
t_float *matches; // numbers to match against
t_float **ins;
t_float **outs;
}t_match;
static t_class *match_class;
void *match_list(t_match *x, t... |
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* dir-watch-kqueue.c OS specific directory change notification for message bus
*
* Copyright (C) 2003 Red Hat, Inc.
*
* Licensed under the Academic Free License version 2.1
*
* This program is free software; you can redistribute it and/o... |
// Transpose of the generalised transformation matrix between inertial and
// body-fixed frames in 3 DOF.
//
// <NAME>, University College London, <EMAIL>
//
// Adapted from code by
// <NAME>
// Michigan Technological University
// Mechanical Engineering - Engineering Mechanics Deptartment
// Houghton, MI
//... |
#include <assert.h>
#include <dpl/dpl.h>
#include <hal/hal_gpio.h>
#include <bsp/bsp.h>
/* BLE */
#include "mesh/mesh.h"
#include "nimble/ble.h"
#include "host/ble_hs.h"
#include "services/gap/ble_svc_gap.h"
#include "mesh/glue.h"
#include <message/mesh_msg.h>
#include <gateway/ble_mesh/mesh_define.h>
#include <gatew... |
/* 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... |
/*
* caddy.c -- esd VME8349 support for "missing" access modes in TSI148.
* Copyright (c) 2009 esd gmbh.
*
* <NAME> <<EMAIL>>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Gene... |
/*******************************************************************************
*
* Copyright (C) 2014 - 2016 Xilinx, 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 th... |
/*
* Copyright (C) 2003, 2004 <NAME>
*
* See the file "COPYING" for further information about
* the copyright and warranty status of this work.
*/
#include "config.h"
#include "libopenbios/bindings.h"
#include "kernel/kernel.h"
#include "drivers/drivers.h"
#include "libc/vsprintf.h"
/* **************************... |
/* mbed Microcontroller Library
* Copyright (c) 2006-2013 ARM Limited
*
* 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... |
/*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.