text stringlengths 3.08k 10.5k |
|---|
/*
* Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
* All rights reserved
* www.brocade.com
*
* Linux driver for Brocade Fibre Channel Host Bus Adapter.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License (GPL) Version 2 a... |
/*-
* Copyright (c) 2008 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/**
******************************************************************************
* File Name : USART.c
* Description : This file provides code for the configuration
* of the USART instances.
******************************************************************************
... |
/*
* Change dev_states of devices given the input.
*
* SPDX-License-Identifier: BSD-3-Clause
* Copyright (C) 2019-2021, <NAME>
* kiss-light Hub is released under the New BSD license (see LICENSE).
* Go to the project repo here:
* https://gitlab.com/kiss-light-project/Kiss-Light_Hub
*
* Written by: <NAME>
*/
... |
/*
* File: info.c
*
* System info routines.
*
* History:
* 2015 - Created by <NAME>.
*/
#include <kernel.h>
//Usados para mostrar informa��es sobre a localiza��o
//das partes da imagem do kernel.
//#todo: deletar;
/*
extern unsigned long kernel_begin;
extern unsigned long kernel_end;
extern unsigned... |
/*
* Implementation of <NAME>way's Life program - evaluate steps and
* allow access to the two-dimensional grid.
*
* Copyright 2020 <NAME>
*
* This file is part of life.
*
* life is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* th... |
/*
Copyright <2017> <RafPe>
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, sublic... |
// Author: <NAME>
#include "mDES.h"
#include <stdlib.h>
byte encrypt_block(byte p, byte* keys) {
//split plaintext data chunks into L and R sides, provide temp storage for between rounds
byte L = ((0xf0) & p) >> 4;
byte R = (0xf & p);
byte *L_temp = (byte*)malloc(sizeof(byte));
byte *R_temp = (b... |
#include "TextRenderer.h"
#include <ft2build.h>
#include FT_FREETYPE_H
#include <cglm/cglm.h>
#include <glad/glad.h>
#include "Util.h"
#include "Globals.h"
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
static unsigned int text_shader;
static unsigned int VAO, VB, IB;
static int textcolor_loc, projection_l... |
/* whom.c -- report to whom a message would be sent
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
#include <h/utils.h>
#include <h/signals.h>
#ifndef CYRUS_SASL
# defin... |
/*
* dialog.c
* This file is part of sgui
*
* Copyright (C) 2012 - <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 ri... |
/* Copyright (c) 2012 <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, distri... |
/*
* bluetooth_controller.c
*
* Created on: 30.05.2018
* Author: Przemek
*/
#include "bluetooth_controller.h"
static void Bluetooth_GPIO_Configuration(void);
static void Bluetooth_USART_Configuration(void);
static void Bluetooth_NVIC_Configuration(void);
static void InterpretInput(void);
static void AddUse... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
#pragma once
#include "utils/util.h"
#include "bip/slip10.h"
#define XTZ_ADDRESS_STR_LEN 36
#define XTZ_ADDRESS_STR_BUF_LEN XTZ_ADDRESS_STR_LEN+1 //36 + \0
#define XTZ_PUBKEY_HASH_LEN 20
#define XTZ_ADDRESS_BINARY_LEN XTZ_PUBKEY_HASH_PREFIX_LEN + XTZ_PUBKEY_HASH_LEN + 4
#define XTZ_BLOCK_HASH_LEN 32
#define XTZ_BL... |
/* symbol table management */
# include <stdio.h>
# include <malloc.h>
# include <stdlib.h>
# include <string.h>
# include <stdint.h>
# include "cc.h"
# include "sym.h"
# define STABSIZE 119 /* hash table size for strings */
# define ITABSIZE 37 /* hash table size for identifiers */
# define MAXSTK 1000
... |
/*
* Copyright (c) 2005-2021 Imperas Software Ltd., www.imperas.com
*
* 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 requir... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/sendfile.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#define MAXLINE 511
int tcp_connect(int af, char *servip, unsigned short port) {
struct sockaddr_in servaddr;
int s;
... |
/*
* Double-precision scalar atan2(x) function.
*
* Copyright (c) 2021-2022, Arm Limited.
* SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
*/
#include "math_config.h"
#include "atan_common.h"
#define Pi (0x1.921fb54442d18p+1)
#define PiOver2 (0x1.921fb54442d18p+0)
#define PiOver4 (0x1.921fb54442d... |
#include <stdio.h>
#include <string.h>
int strlen0(char a[]);
int strlen1(char a[]);
int strlen2(char a[]);
int strlen3(char *a);
int strlen4(char *a);
int strlen5(char *a);
int strlen6(char *a);
int strlen7(char *a);
int strlen8(char a[]);
int strlen9(char *a);
int strlenRec(char a[]);
int strlenRec2(char *a);
int s... |
#define _GNU_SOURCE
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
#include <linux/input.h>
#include <linux/input-event-codes.h>
#include <sys/epoll.h>
#include <sys/eventfd.h>
#include "evdev.h"
struct evd... |
/* Copyright (C) 2016-2019 Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted for any purpose (including commercial purposes)
* provided that the following conditions are met:
*
* 1. Redistributions of source code must ret... |
const REAL invdx0 = 1.0/dxx[0];
const REAL invdx1 = 1.0/dxx[1];
const REAL invdx2 = 1.0/dxx[2];
#pragma omp parallel for
for(int i2=NGHOSTS; i2<NGHOSTS+Nxx[2]; i2++) {
for(int i1=NGHOSTS; i1<NGHOSTS+Nxx[1]; i1++) {
for(int i0=NGHOSTS; i0<NGHOSTS+Nxx[0]; i0++) {
{
/*
... |
/*
File Name: scInitialDraw.c
//
Compiler: gcc
Author: Artic42
Description: Functions that draw the initial screen game
Tested on: Windows Subsystem for Linux
*/
/************************************************
* Include *
*********************************************... |
/*
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in supp... |
/* SPDX-License-Identifier: BSD-2-Clause */
#include <tilck/common/tilck_sound.h>
#include <tilck/common/printk.h>
#include <tilck/kernel/arch/generic_x86/dma.h>
#include <tilck/kernel/timer.h>
#include <tilck/kernel/errno.h>
#include <tilck/kernel/hal.h>
#include "sb16.h"
u8 sb16_curr_pause_cmd;
u8 sb16_curr_cont_... |
/* Copyright (C) 2005 Red Hat, Inc. */
/* Object: dbase_activedb_t (Active/Kernel)
* Extends: dbase_llist_t (Linked List)
* Implements: dbase_t (Database)
*/
struct dbase_activedb;
typedef struct dbase_activedb dbase_t;
#define DBASE_DEFINED
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "de... |
/* This file has been prepared for Doxygen automatic documentation generation.*/
/*! \file ********************************************************************
*
* Atmel Corporation
*
* File : xmega_freq_cntr.c
* Compiler : WinAVR GCC
* Revision : $20100110
* Date : $Date: 1... |
/*@ begin PerfTuning (
def build
{
arg command = 'icc';
arg options = '-fast -openmp -I/usr/local/icc/include -lm';
}
def performance_counter
{
arg method = 'basic timer';
arg repetitions = 5;
}
let VR = 1500;
let OR = 10;
def performance_params
{
param ... |
/*
* This file is part of the IOTA Access distribution
* (https://github.com/iotaledger/access)
*
* Copyright (c) 2020 <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
*
* ... |
#include <stdlib.h>
#include <stdint.h>
#include <libopencm3/stm32/i2c.h>
#include "ssd1306.h"
#include "ssd1306_graphics.h"
#include "font8x8_basic.h"
/* fill framebuffer with solid color (PIXEL_OFF, PIXEL_ON, or PIXEL_TOGGLE) */
void fill_display(pixel_t color) {
for (uint32_t j = 0; j < DISP_HEIGHT / 8; j++) {... |
/*
* Copyright © 218 VMware, 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 by applicable l... |
#include "Salad-Maker.h"
#include "ParsingUtils.h"
int t1 = -1, t2 = -1;
char ingredient_name[20];
sem_t *mutex, *log_mutex;
char *salad_maker_name;
int saladmaker_index = -1;
FILE *logfile, *common_log;
static void get_index(char *ingr_name) {
if (strcmp(ingr_name, TOMATO) == 0)
saladmaker_index = tomat... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libsm64.h"
#include "utils.h"
#define SM64EXTEND_VERSION "0.3.1"
// default configuration
static const sm64_config default_config =
{
NULL, // input filename
NULL, // extended filename
64, // extended size
32, // MIO0 padding
1, ... |
/*
malloc.c
Simple implementation of a malloc library for the GB
Notes:
* Designed for the Nintendo GB - 8 bitter with little RAM, so efficency and allocation
speed are important. recursion or malloc/free pairs are rare.
* Garbage collection is lazy
* Singly linked list of 'hunks' - regions of memory
... |
/*
* Copyright 2019-present Open Networking Foundation
* Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd.
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
#include "mme_app.h"
#include "u... |
/*
* Copyright (c) 2016 Samsung Electronics Co., Ltd. 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 r... |
/*
MIT License
Copyright (c) 2021 <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, distrib... |
/**
* @file
* Hier ist die Datenhaltung und Programmlogik
*
* @author <NAME>, <NAME>
*/
/* ---- System Header einbinden ---- */
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
/* ---- Eigene Header einbinden ---- */
#include "logic.h"
#include "vector.h"
#includ... |
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
typedef struct MatrixNode_ {
int value;
struct MatrixNode_ *next_row;
struct MatrixNode_ *next_col;
}MatrixNode;
void create_linked_list_matrix(MatrixNode**,const int rows, const int cols);
MatrixNode* create_node();
void display_matrix(MatrixNode*)... |
/**
* Copyright 2021 <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 w... |
/* Runes for special purposes (0xe800-0xfdff is Private Use Area) */
enum { NONE=0xe800, /* Emit nothing */
TAGS, /* Start of tag */
TAGE, /* End of tag */
SPCS, /* Start of special character name */
PAR, /* Newline, indent */
LIGS, /* Start of ligature codes */
LACU=LIGS, /* Acute (´) ligatures */
LGRV, /... |
/**
* palist_clients.c
* <NAME>
*/
/***
This file is based on pacat.c and pavuctl.c, part of PulseAudio.
pacat.c:
Copyright 2004-2006 <NAME>
Copyright 2006 <NAME> <<EMAIL>> for Cendio AB
PulseAudio is free software; you can redistribute it and/or modify
it under the terms of the GNU Less... |
#include "kernel/param.h"
#include "kernel/types.h"
#include "kernel/stat.h"
#include "kernel/riscv.h"
#include "kernel/fcntl.h"
#include "kernel/memlayout.h"
#include "user/user.h"
#include "kernel/colors.h"
#include "user/gui.h"
#include "user/uthread.h"
#include "kernel/window_event.h"
#include "kernel/fs.h"
#includ... |
/**
* @file ts.c
* @brief Driver for the FT6206 Touch Screen on the 2.8" TFT LCD Display (Adafruit # 2090)
*/
/**
******************************************************************************
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obta... |
/*
* execl-cmdline.c
*
* Copyright (c) 2018-2021 <NAME> <<EMAIL>>
*
* All rights reserved.
*
* This file is part of Obarun. It is subject to the license terms in
* the LICENSE file found in the top-level directory of this
* distribution.
* This file may not be copied, modified, propagated, or distributed
* e... |
#include <stddef.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "c99.h"
#include "name.h"
#include "fail.h"
#include "types.h"
#include "mem.h"
#include "sort.h"
#define sparse_cholesky_factor PREFIXED_NAME(sparse_cholesky_factor)
#define sparse_cholesky_solve PREFIXED_NAME(sparse_cholesky_solv... |
/* protsgix.c: PROTECTION (SIGNAL HANDLER) FOR UNIX
*
* $Id: //info.ravenbrook.com/project/mps/version/1.113/code/protsgix.c#1 $
* Copyright (c) 2001-2007 Ravenbrook Limited. See end of file for license.
*
* Would ordinarily be part of protix.c (as the code is common to more
* than one Unix-like operating syst... |
#include "ang_type.h"
#include "ang_primitives.h"
#include <stdio.h>
void ctor_ang_type(Ang_Type *type,
int id,
const char *name,
Type_Category cat,
Value default_val) {
*type = (Ang_Type) { id, name, cat, default_val, 0, 0, 0 };
}
void dtor_ang_type(Ang_Type *type) {
type->sl... |
/*************************************************************************
> File Name: main_async.c
> Author: Kevin
> Created Time: 2019-04-22
>Description:
************************************************************************/
/* Includes **********************************************************... |
#include <Windows.h>
#include <windowsx.h>
#include <assert.h>
#include "Edit.h"
#include "SplitterWnd.h"
#include "Scintilla.h"
#include "SciCall.h"
#include "DPIHelperScintilla.h"
#include "ExtSelection.h"
#include "Helpers.h"
#include "Styles.h"
#include "Utils.h"
#include "ViewHelper.h"
#include "Notep... |
/*
Author: <NAME>
Master of Science in Computer Engineering
Course: EE 5190 Laboratory for Microprocessors Systems II
Lab 1B: The purpose of Lab 1B is to get familiar with Queues in
FreeRTOS. The lab consist of sending data from an sender task
int... |
/*
* Copyright (c) 2017 <NAME> <<EMAIL>>.
* All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
#include <asn_internal.h>
#include <ANY.h>
#include <errno.h>
#undef RETURN
#define RETURN(_code) \
do { \
... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee a... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include <signal.h>
#include <pthread.h>
#include "server.h"
#define BACKLOG 10
stat... |
/* nbdkit
* Copyright (C) 2018-2019 Red Hat Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the f... |
/*
Simple DirectMedia Layer
Copyright (C) 1997-2011 <NAME> <<EMAIL>>
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... |
/*!
* \file capture.c
* \brief capture and dump routines for channel interface library
*
* \author <NAME>
* \date 17 January 1993
*
* \ingroup capture
*
* Copyright (c) 2008 by California Institute of Technology
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*... |
/*
Copyright (c) 2011, <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 conditions and the following ... |
/*
* EOS - Experimental Operating System
* Kernel main source file
*/
#include <kernel/kernel.h>
// Then include kernel subsystem's headers
#include <kernel/vga.h>
#include <kernel/tty.h>
#include <kernel/ksh.h>
#include <kernel/gdt.h>
#include <kernel/idt.h>
#include <kernel/tss.h>
#include <kernel/interrupts.h>
... |
/* packet-ieee80211-airopeek.c
* Routines for pre-V9 Savvius (WildPackets) AiroPeek header dissection
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public Lic... |
/**
* Copyright (C) 2012 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* bu... |
/* TS = none */
/*
** ZK1COMP.C -- Zeck Compression module - first implementation
**
** This comes to us from Languages via Excel and is used many places.
** Still, I altered some of the code to fit my API. Original sources
** can be found in \\odin\slm!src\setup\compress.
*/
/* Zeck Data Com... |
//Practica tema 6 , <NAME>
//Incluimos todas la cabeceras que vamos a necesitar.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/unistd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/ip.h>
#include <errno.h>
#include <sig... |
#include "config.h"
#include <assert.h>
#include <err.h>
#include <errno.h>
#include <setjmp.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
#include <ccan/tap/tap.h>
#include <ccan/ptrint/ptrint.h>
#include <ccan/altstack/altstack.h>
#include <stdio.h>
enum {
getrlimit_ = 1<<0,
... |
#include <stdio.h>
#include <time.h>
#include <math.h>
#include "q_array.h"
#include "structures.h"
void arr_push(discriptor* d, char* qu, char c)
{
char *p_in = d->p_in;
if (d->p_in == d->p_out && *((char*)d->p_in) != '\0')
printf("The queue is full.\n");
else
{
*((char*)d->p_in) = c;... |
#include <ucw/lib.h>
#include <ucw/fastbuf.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <yaml.h>
#include <ucw/gary.h>
#include <osm.h>
#include "include/types.pb-c.h"
#include "include/premap.pb-c.h"
#include "yamlconf.h"
int enumValueForName(ProtobufCEnumDescriptor ... |
/*
ITS kernel LWIP network driver interface.
Based on src/itsnetif.c.
*/
/* INCLUDES */
#include "itsnetif.h"
#include <memory.h>
#include <internal/syscall/syscalls.h>
#include <io.h>
#include "lwip/opt.h"
#include "lwip/debug.h"
#include "lwip/def.h"
#include "lwip/mem.h"
#include "lwip/pbuf.h"
#include "lwip/stat... |
#include "unity.h"
#define TYPE_TEXT 1
#define TYPE_IMAGE 2
// HTML content types
const char ctImg[] = "Content-Type: image/jpg\r\nCache-Control: max-age=999999, public";
const char ctTxt[] = "Content-Type: text/html";
// Hint: max string length is 255, but better to keep below 192 bytes!
const char htm... |
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
typedef struct args { // type define for pass an argument to thread functions. as im operating on the original array, it's important to keep track of the positions so that the threads don't mess each other up
int *start; // start of th... |
// Copyright 2020 <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 ALL WARRA... |
/* aprsudp [ -d ]
功能:
从 14580 UDP端口接收数据
使用UDP转发给以下端口
127.0.0.1 14581
127.0.0.1 14582
127.0.0.1 14583
172.16.17.32 14580 (aprs.helloce.net)
192.168.3.11 14580 (欧讯服务器)
如果SSID中有-13,发给
192.168.127.12 14580(lewei50.com)
*/
#include <stdio.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#in... |
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <zephyr.h>
#include <device.h>
#include <devicetree.h>
#include <drivers/gpio.h>
#include <bluetooth/services/bas.h>
#include <logging/log.h>
LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
#include <zmk/usb.h>
#include <zmk... |
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#if defined(_WIN32) || defined(__CYGWIN__)
#include <winsock2.h>
#include <ws2tcpip.h>
#include <iphlpapi.h>
#else
#include <ifaddrs.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/ine... |
/*
winion.c: background ION handle holder for Windows.
Author: <NAME>, JPL
Copyright (c) 2011, California Institute of Technology.
ALL RIGHTS RESERVED. U.S. Government Sponsorship
acknowledged.
*/
#include "ion.h"
#include <signal.h>
#define MAX_ION_IPCS 200
typedef enum
{
IonSmSegment = 1,
IonSema... |
/* * OSS-7 - An opensource implementation of the DASH7 Alliance Protocol for ultra
* lowpower wireless sensor communication
*
* Copyright 2015 University of Antwerp
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... |
/*
* events_types.c
*
* Test events type functions for event count and info
*
*/
#include "events_common.h"
int event_count = 0;
// Test flags
int event_info_success = 0;
int event_info_failed = 0;
int event_info_displacements_start_at_0 = 1;
int event_count_result = 0;
int event_get_num_handle_null = 0;
... |
/*
* control.c
*
* Created on: 25 Mar 2018
* Author: koponenl
*/
#include <stdint.h>
#include "control.h"
#include "peripherals.h"
#include "fsl_flexcomm.h"
#include "FreeRTOS.h"
#include "timers.h"
#define WEAK __attribute__ ((weak))
#define RING_SIZE 2048
static volatile uint8_t fifo_rx_ring[RING_SIZE]... |
#include <oto.h>
void test_vector_i64() {
size_t cap = 3;
VectorI64 *vec = new_vector_i64(cap);
TEST_EQ_NOT_PRINT(vec->length, 0);
TEST_EQ_NOT_PRINT(vec->capacity, cap);
for (uint64_t i = 0; i < 5; i++) {
vector_i64_append(vec, i);
}
TEST_EQ_NOT_PRINT(vec->length, 5)... |
#include<stdlib.h>
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<sacio.h>
#include<ESF.h>
/******************************************************************
* This is a c script to output the big info file
*
* Input:
*
*
* Output:
*
*
* DATE: Keywords:
* Reference:
***********************... |
/* Copyright 2019 Google LLC
*
* 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 to in ... |
/* Console example — various system commands
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/... |
// ctm.c
//////////////////////////////////////
//
// VGA-compatible text mode
//
//////////////////////////////////////
#define CTM_NULL '\0'
#define CTM_VRAM_ADDRESS 0x000B8000
#define CTM_WIDTH 80
#define CTM_HEIGHT 25
#define CTM_COLOR_BLACK 0x0... |
/*
* $Id: ad_svm_fcntl.c 51 2000-04-19 17:42:21Z joachim $
*
* Copyright (C) 1997 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*
*/
#include "ad_svm_fsys.h"
#include "adio_extern.h"
#ifdef __MPISGI
#include "mpisgi2.h"
#endif
void ADIOI_SVM_Fcntl(ADIO_File fd, int flag, ADIO... |
/**************************************************************************
*
* Copyright 2008 HPCNL-KICS, UET, Lahore, PAKISTAN.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification,are permitted provided that the following conditions
* are met:
*
* ... |
/*
* disk_info.c
*
* (c) 2020-21 <NAME>
*
* TODO:
*
* 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... |
#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 <keyboard.h>
#include <stdbool.h>
extern int __ReadKey__();
enum Commands
{
Escape = -1,
Control = -2,
LShift = -3,
Rshift = -4,
PrintScreen = -5,
Alt = -6,
CapsLock = -7,
NumLock = -8,
ScrollLock = -9,
Home = -10,
ArrowUp = -11,
ArrowDown = -12,
ArrowLeft... |
#include <nusys.h>
#include <math.h>
#include "utilities.h"
#include "hashtable.h"
#include "actor.h"
#include "collision.h"
#include "scene.h"
#include "vector.h"
// Generated includes.
#include "definitions.h"
#include "segments.h"
#include "actors.h"
#include "mappings.h"
#include "core.h"
#include "... |
/* $OpenBSD: print-cdp.c,v 1.4 2009/10/27 23:59:55 deraadt Exp $ */
/*
* Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997
* 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: (1) sou... |
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include "bitmap.h"
#include "bitmap_internal.h"
/* Values for bitmap header */
#define BITMAP_FILETYPE 19778
#define BITMAP_RESERVED_BITS 0
#define BITMAP_PIXEL_OFFSET 0x36
#define BITMAP_HEADER_SIZE 4
/* Values for DIB header ... |
#include <stdio.h>
#include <time.h>
#include "guessing.h"
#include "core/random/hgl_rand.h"
#include "core/console/hgl_input.h"
static void
handle_menu_scene( guessing *p_guessing );
static game_state
fetch_menu_option( hgl_str *p_texts, int max_input_size );
static void
handle_play_scene( guessing *p_guessing )... |
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef __DREAMCAST__
#include <kos.h>
#endif
#include "GL/gl.h"
#include "GL/glu.h"
#include "GL/glext.h"
#include "GL/glkos.h"
#ifdef __DREAMCAST__
extern uint8_t romdisk[];
KOS_INIT_ROMDISK(romdisk);
#define IMAGE_FILENAME "/rd/NeHe.bmp"
#else
#define IMAG... |
/* $OpenBSD: if_iecreg.h,v 1.3 2009/11/03 21:41:42 miod Exp $ */
/*
* Copyright (c) 2009 <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.
*... |
/* client.c */
/******************************************************************
* Remote Shell - Client Program *
* Author: <NAME> *
******************************************************************/
#include <stdio.h>
#include <stdlib.h>... |
/*
laser measurement
@Company:
<NAME>
@File Name:
main.c
@Summary:
Main section of the program laser_measurement
http://www.paolocarlobernardi.it/index.php/en/embedded-en
@Description:
This is an example on how to use vl53l0x library.
PIC settings prerequisite:
... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* user_interface.c :+: :+: :+: ... |
/*
mulmid.c: middle products
Copyright (C) 2007, 2008, <NAME>
This file is part of the zn_poly library (version 0.9).
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, eit... |
/*
*** Kamots Time ***
Original code based from: https://github.com/pebble-examples/ks-clock-face/commit/38d1daa29ab4354f592ac274206b95ba648bec63
...which is Copyright (C) 2015 Pebble Technology and licensed under the MIT License
Changes and additions by kamotswind...
Copyright 2015 kamotswind
Licensed under the Apac... |
/*
MIT License
Copyright (c) 2021 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.