text stringlengths 5.8k 28.2k |
|---|
#include <stdio.h>
#include <stdint.h>
#include <assert.h>
#define CGLTF_IMPLEMENTATION
#include <cgltf.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <stb_image_write.h>
#include <Render/Model.h>
#include <Runtime/Runtime.h>
#define BUFFER_PTR(acc) ((uin... |
/**
* @file sniffer.c
* @brief Sniffer
* @author KrizTioaN (<EMAIL>)
* @date 2021-07-27
* @note BSD-3 licensed
*
***********************************************/
// Set some program issues
#define APP_NAME "Sniffer"
#define APP_MAJOR_VERSION 1
#define APP_MINOR_VERSION 0
#define APP_DESC "Sniffer pr... |
/* manage endpoint /list/ functions */
#include "dataApi.h"
static void hubPublicJsonData(struct jsonWrite *jw, struct hubPublic *el,
int columnCount, char **columnNames)
/* Print array data for one row from hubPublic table, order here
* must be same as was stated in the columnName header element
* This code shou... |
#if (M != 4) || (N != 4)
#error "These functions are only defined for 4x4 matrices"
#endif
#include <math.h>
#include <assert.h>
#include <stdio.h>
#include "generic.h"
#include "array.g.h"
/* Declare MxN and 4x4 matrix functions */
#include "matrix.g.h"
#include "square-matrix.g.h"
#include "matrix44x.g.h"
/* Decl... |
/*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* GMime
* Copyright (C) 2000-2014 <NAME>
* Copyright (C) 2016 <NAME>
*
* Modified from gmime-filter-html.c
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Genera... |
#include <stddef.h>
#include <string.h>
#include "dw1000.h"
#include "timer.h"
#include "SEGGER_RTT.h"
#include "firmware.h"
#include "module_conf.h"
#include "app_standard_common.h"
#include "app_standard_init.h"
#include "app_standard_resp.h"
// APPLICATION STATE -------------------------------------------------... |
/*
* Copyright (c) 2019. tangzx(<EMAIL>)
*
* 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... |
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <ncurses.h>
#include "pokmon.h"
// TODO
// 1. create a pokey_win.h and pokey_win.c
// 2. create functions for found pokcell and found fightcell
// 3. create functions to the various commands f, s, etc.
/****************************... |
#include "StyleLexers.h"
// ----------------------------------------------------------------------------
KEYWORDLIST KeyWords_AHKL = {
// Directives
"#allowsamelinecomments #clipboardtimeout #commentflag #errorstdout #escapechar #hotkeyinterval "
"#hotkeymodifiertimeout #hotstring #if #iftimeout #ifwinactive #ifwine... |
#include "glk.h"
/* model.c: Model program for Glk API, version 0.5.
Designed by <NAME> <<EMAIL>>
http://www.eblong.com/zarf/glk/index.html
This program is in the public domain.
*/
/* This is a simple model of a text adventure which uses the Glk API.
It shows how to input a line of text, display resul... |
// SPDX-License-Identifier: BSD-2-Clause
/*
Copyright 2020 <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 ... |
#include <linux/input.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <unistd.h>
#include <dirent.h>
#include <signal.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include "pkcs5_pbkdf2.h"
#include "aes.h"
#include "base64... |
/**
******************************************************************************
* @file platform_rtc.c
* @author <NAME>
* @version V1.0.0
* @date 05-May-2014
* @brief This file provide RTC driver functions.
******************************************************************************
* UNP... |
/*
* Copyright (c) 2015, Freescale Semiconductor, 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:
*
* o Redistributions of source code must retain the above copyright notice, this list
* of... |
//-------------------------------------------------------------------
//
// SG: Summer Graphic ( GL / DirectX / HTML Canvas ):
//
// SG START DATA: 15/04/2019 - 17:40
//
//-------------------------------------------------------------------
//
#include "sg.h"
static const unsigned char fixed_font[14][764] = {... |
/*
* Copyright (c) 2010 Aalto University and RWTH Aachen University.
*
* 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 ... |
/* $NetBSD: alpha_reloc.c,v 1.41 2014/08/25 20:40:52 joerg Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
* All rights reserved.
*
* Written by <NAME> for Wasabi Systems, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
#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 "rtl8139.h"
#include "pci.h"
#include "icmp.h"
#include "../asm/asm.h"
#include "../mem/vmm.h"
#include "../mem/memlayout.h"
#include "../apic/apic.h"
#include "../vga/vga.h"
#include "../interrupt/trap.h"
#define ETH_ADDR_LEN 6
extern pci_device_t pci_devices[20];
extern unsigned int pci_devices_num;
unsigned... |
// /**********************************************************************
// * $Id$ mem_usbdesc.c 2011-06-02
// *//**
// * @file mem_usbdesc.c
// * @brief USB mass storage example project.
// * @version 1.0
// * @date 02. June. 2011
// * @author NXP MCU SW Application Team
// *
// * Copyright(C) 2011, NXP Semicon... |
// 0x07008930 - 0x07008948
static const Lights1 sl_seg7_lights_07008930 = gdSPDefLights1(
0x7f, 0x7f, 0x7f,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x07008948 - 0x07008960
static const Lights1 sl_seg7_lights_07008948 = gdSPDefLights1(
0x22, 0x17, 0x00,
0x44, 0x2f, 0x00, 0x28, 0x28, 0x28
);
// 0x07008... |
/*
Library of typemap functions for C arrays, idea is to provide
automatic conversion between references to perl arrays and C arrays.
If the argument is a scalar this is automatically detected and handles
as a one element array.
Thanks go to <NAME> for the pointer to gv.h so I could figure
out how... |
/*
* 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... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2015 RDK Management
*
* 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 ... |
#include<math.h>
#include<stdio.h>
#include <dirent.h>
#include <pthread.h>
#include"micromegas.h"
#include"micromegas_aux.h"
#include "../CalcHEP_src/include/rootDir.h"
#include"../CalcHEP_src/c_source/strfun/include/pdt.h"
#define dptDefault "cteq6l1"
char pdfName[50]={};
static pdtStr *data[8]={};
static pdtList... |
/*****************************************************************************
File: casn_dump.c
Contents: Functions to dump ASN.1 objects.
System: Compact ASN development.
Created:
Author: <NAME> <<EMAIL>>
Remarks:
COPYRIGHT 2004 BBN Systems and Technologies
10 Moulton St.
Cambridge, Ma. 02138
617-873-3000
*... |
/***** Temperature Guard to control a circulation pump *****************
By two KTY81 temperature sensors the outgoing and circulation
temperature of the warm water supply is measured and at a defined
difference the circulation pump is activated
Uses an ATmega8 with internal 8MHz oscillator
Copyright 2009-2013 <NAME>... |
#include <stdlib.h>
#include <string.h>
#include "sha224.h"
#define CONFIG_SHA256_SMALLER 1
/*
* 32-bit int32_teger manipulation macros (big endian)
*/
#ifndef GET_UINT32_BE
#define GET_UINT32_BE(n,b,i) \
do { \
(n) = ( (uint32_t) (b... |
#include "common.h"
#include "syscall.h"
#include "aofguard.h"
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/stat.h>
#define BLOCK_SIZE (1 << 20)
#define FSYNC(fd) syscall_fdatasync(fd)
#define MAKE_MIXED_META(fsync_len, buf_start) ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyri... |
/* Includes ------------------------------------------------------------------*/
#include <stm32h7xx_hal.h>
#include "ifec.h"
#include "ipport.h"
#include "tcpport.h"
#include "netbuf.h"
#include "net.h"
#include "q.h"
#include "ether.h"
#include "nvparms.h"
#ifdef IP_MULTICAST
#include "igmp_cmn.h"
extern int mcas... |
#include "pixel_log.h"
#include "pixel_bmp.h"
#include <stdlib.h>
#include <string.h>
// References
// 1. https://wiki.multimedia.cx/index.php/BMP
// 2. Chapter 23 in "Intermediate C Programming", by YungSiang-Lu, Chinese tranlation edition
// 3. https://www.cnblogs.com/wainiwann/p/7086844.html
// 4. https://github.... |
/*
* 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... |
/*************************************************************************\
* Copyright (c) 2013 UChicago Argonne LLC, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2013 Helmholtz-Zentrum Berlin
* für Materialien und Energie GmbH.
* EPICS BASE is distributed subject to a Software License Agreeme... |
//
// Created by Remi on 09/01/2021.
//
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
#include<dirent.h>
#include<fcntl.h>
#include"concert.h"
/*
* Fonctions de sérialization
*/
Concert* unserializeConcert(char* serializedStr) {
Concert* concert = (Concert*) malloc(sizeof(Concert... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2015 Endless Mobile, Inc.
* Author: <NAME> <<EMAIL>>
*
* Copyright (c) 2018 Baylibre, SAS.
* Author: <NAME> <<EMAIL>>
*/
/*
* In the most basic form, a Meson PLL is composed as follows:
*
* PLL
* +------------------------------... |
/*
* fivmr_methodrec.c
* Copyright 2008, 2009, 2010, 2011, 2012, 2013 Fiji Systems Inc.
* This file is part of the FIJI VM Software licensed under the FIJI PUBLIC
* LICENSE Version 3 or any later version. A copy of the FIJI PUBLIC LICENSE is
* available at fivm/LEGAL and can also be found at
* http://www.fiji-sy... |
/* $Xorg: PclArea.c,v 1.3 2000/08/17 19:48:07 cpqbld Exp $ */
/*******************************************************************
**
** *********************************************************
** *
** * File: PclArea.c
** *
** * Contents:
** * Image and Area functions for the PCL ... |
#include <sys/stat.h>
#include <sys/types.h>
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <pwd.h>
#include <search.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "blaze822.h"
... |
// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2019 Facebook
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation.
*
* Example program for Host Bandwidth Managment
*
* Thi... |
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditi... |
/* Emacs style mode select -*- C++ -*-
*-----------------------------------------------------------------------------
*
*
* PrBoom: a Doom port merged with LxDoom and LSDLDoom
* based on BOOM, a modified and improved DOOM engine
* Copyright (C) 1999 by
* id Software, <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
... |
/* main.c - Bluetooth Cycling Speed and Cadence app main entry point */
/*
* Copyright (c) 2016 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdbool.h>
#include <zephyr/types.h>
#include <stddef.h>
#include <string.h>
#include <errno.h>
#include <misc/printk.h>
#include <misc/byteorder.h... |
/*****************************************************************************/
/**
*
* @file xmulti_scaler_example.c
*
* This is main file for the MultiScaler example design.
*
* The MultiScaler HW configuration is detected and several use cases are
* selected to test it.
*
* On start-up the program reads the HW confi... |
#include "qemu/osdep.h"
#include "sysemu/sysemu.h"
#include "ui/keymaps.h"
#include "ui/input.h"
#include "standard-headers/linux/input.h"
static int linux_to_qcode[KEY_CNT] = {
[KEY_ESC] = Q_KEY_CODE_ESC,
[KEY_1] = Q_KEY_CODE_1,
[KEY_2] = Q_KEY_CODE_2,
[KEY_3] ... |
/*
* CUnit - A Unit testing framework library for C.
* Copyright (C) 2001 <NAME>
* Copyright (C) 2004, 2005 <NAME>, <NAME>
*
* This library 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 Foun... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* plugins/kdb/hdb/kdb_windc.c
*
* Copyright 2009 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 Governme... |
/*####COPYRIGHTBEGIN####
-------------------------------------------
Copyright (C) 2005 <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 optio... |
/*
* ECC algorithm for M-systems disk on chip. We use the excellent Reed
* Solmon code of <NAME> (<EMAIL>) available under the
* GNU GPL License. The rest is simply to convert the disk on chip
* syndrom into a standard syndom.
*
* Author: <NAME> (<EMAIL>)
* Copyright (C) 2000 Netgem S.A.
*
* This program is fr... |
/* EzWebSocket
*
* Copyright © 2017 <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,... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
#include <stdio.h>
#include <stdint.h>
#include "le501x.h"
#include "ls_ble.h"
#include "platform.h"
#include "cpu.h"
#include "field_manipulate.h"
#include "reg_lsadc.h"
#include "reg_lsadc_type.h"
#include "lsadc.h"
#include "reg_rcc.h"
#include "reg_syscfg_type.h"
#include "reg_syscfg.h"
#include "HAL_def.h"
#includ... |
/*************************************************************************
*
* file: explain.c
*
* =======================================================================
* Description : To provide a function which at the least can do :
* (explain chunk-1)
* lists conditions -- given one ... |
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
/*
* Feature : L3 MPLS Tunnel Termination - Pop Max labels
*
* Usage : BCM.0> cint td4_hsdk_l3mpls_term_pop_... |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* SPDX-FileCopyrightText: Copyright (c) 2016 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... |
#include "ctrees.h"
#define LEFT (0)
#define RIGHT (1)
#define PARENT (2)
#define KEY(node) ((node)->key)
#define VALUE(node) ((node)->value)
#define LEFT_NODE(node) ((node)->link[LEFT])
#define RIGHT_NODE(node) ((node)->link[RIGHT])
#define PARENT_NODE(node) ((node)->link[PARENT])
#define LINK(node, n) ((node)-... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// AED, 2020/2021
//
// TODO: <NAME>, 98491
// TODO: <NAME>, 98495
// TODO: <NAME>, 98629
//
// Brute-force solution of the generalized weighted job selection problem
//
// Compile with "cc -Wall ... |
/*
* nixio - Linux I/O library for lua
*
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* 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.... |
/**
* miniSphere JavaScript game engine
* Copyright (c) 2015-2020, <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 c... |
#pragma once
// Includes
#include "libmx.h"
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <termcap.h>
#include <termios.h>
#include <dirent.h>
#include <pwd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <uu... |
/******************************************************************************
libpammap.c
*******************************************************************************
These are functions that deal with tuple hashes and tuple tables.
Both tuple hashes and tuple tables let you... |
/**
* A simple program that decreace number of requsets to weather API.
*
* Copyright 2020, <NAME> <Jeyky @ github>
*
* This is server program that decrease number of requests to
* API(In this case to weather API) by saving data in it's own storage
* and comparing new client's requests with relevance of data tha... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include <cstdint>
#define tag_AxisVariations 0x61766172 /* 'avar' */
#define tag_CharToIndexMap 0x636d6170 /* 'cmap' */
#define tag_CVTVariations 0x63766172 /* 'cvar' */
#define tag_ControlVal... |
#include "os.h"
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <pthread.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
// This is probably bad, but makes things easier to build
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wformat-pedantic"
#include <android_native_app_glue.c>
#p... |
/*
* Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2007 The University of Tennessee and The University
* of Tennessee Resea... |
/**************************************************************************************************
* *
* This file is part of HPIPM. *
* ... |
/* $NetBSD: sgecreg.h,v 1.1 1999/08/08 11:41:29 ragge Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Digital Equipment Corp.
*
* Redistribution and use in source and binary forms, with or without... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2017 Cavium, Inc
*/
#include "ssovf_evdev.h"
#include "timvf_evdev.h"
RTE_LOG_REGISTER(otx_logtype_timvf, pmd.event.octeontx.timer, NOTICE);
static struct rte_eventdev *event_dev;
struct __rte_packed timvf_mbox_dev_info {
uint64_t ring_active[4];
uint64_t ... |
/* $Header: /home/schj/src/vamps_0.99g/src/util/RCS/dataset.c,v 1.20 1999/01/06 12:13:01 schj Alpha $ */
/* $RCSfile: dataset.c,v $
* $Author: schj $
* $Date: 1999/01/06 12:13:01 $ */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <float.h>
#include "vamps.h"
#include "deffile.h"
static cha... |
/*
*
* Copyright (c) 2014 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This... |
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
* SM2 asymmetric public-key algorithm
* as specified by OSCCA GM/T 0003.1-2012 -- 0003.5-2012 SM2 and
* described at https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02
*
* Copyright (c) 2020, Alibaba Group.
* Authors: <NAME> <<EMAIL>>
*/
#include <linux/module... |
/*
* Copyright 2016-2019 The Opentls Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.opentls.org/source/l... |
/* test_libFLAC - Unit tester for libFLAC
* Copyright (C) 2014-2016 Xiph.Org Foundation
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your op... |
/* mmix-opc.c -- MMIX opcode table
Copyright (C) 2001, 2003, 2005, 2007 Free Software Foundation, Inc.
Written by <NAME> (<EMAIL>)
This file is part of the GNU opcodes library.
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as p... |
// vim: sw=8:ts=8:noexpandtab
#include "firmware/firmware.h"
#include "slogic.h"
#include "usbutil.h"
#include "log.h"
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define DEFAULT_N_TRANSFER_BUFFERS 4
#define DEFAULT_TRANSFER_BUFFER_SIZE (4 * ... |
/* file fillmrks.c */
/* NOTE: THIS IS ESSENTIALLY JON FISCUS' CODE! */
#include "sctk.h"
/****************************************************************/
/* File a wtoke structures, making sure all records have been */
/* loaded for each file in the ... |
/*
* Phoenix-RTOS
*
* IMX6ULL NAND tool.
*
* Writes image file to flash
*
* Copyright 2018 Phoenix Systems
* Author: <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <errno.h>
#include <unistd.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include... |
/* gtkkeyhash.c: Keymap aware matching of key bindings
*
* GTK - The GIMP Toolkit
* Copyright (C) 2002, Red Hat Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* ver... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <errno.h>
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
#include "serialsource.h"
#ifndef NO_JPEG
#include "jpeglib.h"
#endif
#include "camera_cmd.h"
#include "img_stat.h"
#include "cmd_msg.h"
#include "status.h"
#inclu... |
#include "disas.h"
#include "conf.h"
#include <inttypes.h>
#include <math.h>
#include <stdio.h>
static struct {
const char *mnemonic;
int arity;
} opcode_info[] = {
[OP_ADDX] = { "addx", 0 },
[OP_ADD] = { "add", 0 },
[OP_ANDX] = { "andx", 0 },
[OP_AND] = { "... |
/*
* I/O for a Wiki document set.
*
* The files are kept in one flat directory.
* There are three files for each document:
* nnn - current version of the document
* nnn.hist - history (all old versions) of the document
* append-only
* L.nnn - write lock file for the document
*
* At the moment, since we don... |
/**
******************************************************************************
* @file Camera/Camera_To_USBDisk/Src/main.c
* @author MCD Application Team
* @brief This application describes how to configure the camera in continuous mode
and save picture under USBDisk.
*****************... |
/* ncdc - NCurses Direct Connect client
Copyright (c) 2011-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 us... |
/* Copyright (c) 2012, <NAME> */
#include <stdio.h>
#include <math.h>
#include "ecp.h"
#include "ecp_array.h"
#include "type1.h"
#include "type2.h"
#include "util.h"
#include "angular_integrals.h"
#include "libecp.h"
#include "dimensions.h"
#include "transformations.h"
#include "gc_integrators.h"
struct _libECPHand... |
// SPDX-License-Identifier: GPL-2.0+
/*
* vsp1_rpf.c -- R-Car VSP1 Read Pixel Formatter
*
* Copyright (C) 2013-2014 Renesas Electronics Corporation
*
* Contact: <NAME> (<EMAIL>)
*/
#include <linux/device.h>
#include <media/v4l2-subdev.h>
#include "vsp1.h"
#include "vsp1_dl.h"
#include "vsp1_pipe.h"
#include ... |
#include <stdio.h>
#include "open62541.h"
#include "cgoua_api.h"
#include "_cgo_export.h"
inline int IsStringEqual(const char *a, const char *b) {
while (*a == *b) {
if (*a == '\0') return 1;
a++;
b++;
}
return 0;
}
size_t strlstchar(const char *str, const char ch) {
char *chpt... |
const char rcsid_mail_req_c[] = "$Id: mail_req.c,v 1.3 2002/09/08 19:27:34 rlaager Exp $";
/*
* Copyright (c) 1996, 1997, 1998, 1999, <NAME>. All rights reserved.
* See the LICENSE file in the release for redistribution information.
*/
#include <sys/types.h>
#include <ctype.h>
#include <stdlib.h>
#include <stri... |
/**
*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 n... |
/**
日志打印示例。
使用:
mylog(DEBUG, "This is debug info\n");
结果:
[2018-07-22 23:37:27:172] [DEBUG] [main.cpp:5] This is debug info
默认打印当前时间(精确到毫秒)、文件名称、行号。
*/
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <pthread.h>
#inclu... |
/**
* \file cuckoo_hash.c
* \brief Generic hash table with Cuckoo hashing support.
* \author <NAME>, <EMAIL>
* \author <NAME>, <EMAIL>
* \date 2013
* \date 2014
* \date 2015
*/
/*
* Copyright (C) 2013-2015 CESNET
*
* LICENSE TERMS
*
* Redistribution and use in source and binary forms, with or without
* mo... |
/*
* unicode.c
*
* PURPOSE
* Routines for converting between UTF-8 and OSTA Compressed Unicode.
* Also handles filename mangling
*
* DESCRIPTION
* OSTA Compressed Unicode is explained in the OSTA UDF specification.
* http://www.osta.org/
* UTF-8 is explained in the IETF RFC XXXX.
* ftp://ftp.internic.... |
/*
* Copyright (c) 2007, Novell Inc.
*
* This program is licensed under the BSD license, read LICENSE.BSD
* for further information
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#ifdef _WIN32
#include <windows.h>
#include <io.h>
#else... |
/*
* Copyright 2013-2017 Guardtime, Inc.
*
* This file is part of the Guardtime client SDK.
*
* 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/LICENS... |
#include <stdio.h>
#include <math.h>
#include "pebble_os.h"
#include "pebble_app.h"
#include "pebble_fonts.h"
#include "xprintf.h"
#include "tinymt32.h"
#include "numbers.h"
// defines
#define MY_UUID { 0x74, 0x19, 0xF2, 0x5C, 0x82, 0x1B, 0x4B, 0xD8, 0x93, 0xD5, 0x98, 0x7E, 0x31, 0x15, 0xA8, 0xB6 }
PBL_APP_INFO(MY_UUI... |
/*
#
# author : <NAME>
# date : 17th Feb, 2017
#
# last modified : 6th April, 2017
#
*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define NHASH 263167 //Use a prime number!
#define MULT 31
#define MAX_WORD_LENGTH 15
#define MAX_NUMBER_OF_SEQUENCES 10
#define MAX_FILENAME_LENGTH 255
#define MAX_FILE_L... |
//
// Copyright 2010 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise accompanies this software in either electronic or hard copy form.
//
//
#pragma once
#include <WType... |
/*
#
# ----------------------------------------------------------------------------
#
# Copyright 2020 IBM Corporation
#
# 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.or... |
/*
* 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.
*
* massF5.c
*
* Code generation for function 'massF5'
*
*/
/* Include files */
#include <string.h>
#include "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.