text stringlengths 3.12k 18.7k |
|---|
/*++
/* NAME
/* cleanup_init 3
/* SUMMARY
/* cleanup callable interface, initializations
/* SYNOPSIS
/* #include "cleanup.h"
/*
/* CONFIG_INT_TABLE cleanup_int_table[];
/*
/* CONFIG_BOOL_TABLE cleanup_bool_table[];
/*
/* CONFIG_STR_TABLE cleanup_str_table[];
/*
/* CONFIG_TIME_TABLE cleanup_time_table[];
/*
/* void clea... |
/*-
* Copyright (c) 2003-2004 <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 conditi... |
/** @file mdev_gpt.c
*
* @brief This file provides mdev driver for GPT
*
* (C) Copyright 2008-2019 Marvell International Ltd. All Rights Reserved.
*
* MARVELL CONFIDENTIAL
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Marve... |
/*
** mouse:~ppr/src/ppop/ppop_modify.c
** Copyright 1995--2006, Trinity College Computing Center.
** Written by <NAME>.
**
** This file is part of PPR. You can redistribute it and modify it under the
** terms of the revised BSD licence (without the advertising clause) as
** described in the accompanying file LICENSE.... |
/*
FreeRTOS V7.3.0 - Copyright (C) 2012 Real Time Engineers Ltd.
***************************************************************************
* *
* FreeRTOS tutorial books are available in pdf and paperback. *
* C... |
//======================================================================
//
// blake2b_test.c
// --------------
// Test runner for the Blake2b reference model.
//
//
// Built with:
// clang -Wextra -O2 -o test blake2b_test.c blake2b.c -I blake2b.h
//
//
// Reference code by <NAME>, <NAME>.
// Copyright (c) 2015 IETF Tr... |
#include "cmds.h"
#include "pps.h"
#include "regs.h"
#include "ublox.h"
#include "ui.h"
#include "usb.h"
#include "usb_protocol.h"
static const struct usb_device_descriptor device_descriptor = {
.bLength = 18,
.bDescriptorType = USB_DESCRIPTOR_DEVICE,
.bcdUSB = 0x200,
.bDeviceClass = 0x00,
.bDeviceSubClass = 0... |
/*******************************************************************************************
********************************************************************************************/
#include "raylib.h"
#define HITBOX_COLLISIONS_IMPLEMENTATION
#include "hitbox_collision.h"
#define DEBUG
//#define PLATFORM_WEB... |
/*
* captest.c - A program that demonstrates and outputs capabilities
* Copyright (c) 2009 Red Hat Inc., Durham, North Carolina.
* All Rights Reserved.
*
* This software may be freely redistributed and/or modified under the
* terms of the GNU General Public License as published by the Free
* Software Foundation;... |
/* $OpenBSD: hack.pager.c,v 1.24 2016/03/15 19:56:20 mestre Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
* Amsterdam
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... |
/***************************************************************************//**
* @file main_single_window_compare.c
* @brief Uses the IADC as a window comparator on a single pin. Input is taken
* on PC05 and PB01 (WSTK LED0) toggles on each comparator trigger. The most
* recent sample within the window comparison... |
////////////////////////////////////////////////////
// Copyright (c) 2012 ICRL
// See the file LICENSE.txt for copying permission.
//
// Original Author: <NAME>
// Date: 7/5/2012
// Contact: <EMAIL>
////////////////////////////////////////////////////
#include <stdio.h>
#include "ImageTable.h"
#include ... |
/**
* @file
* Hier sind alle CallBack-Funktionen
*
* @author <NAME>, <NAME>
*/
/* ---- System Header einbinden ---- */
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#ifdef MACOSX
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
/* ---- Eigene Header einbinden ---- */
#include "io.h"
#incl... |
/*******************************************************************************
*
* Copyright (C) 2018 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 the Softw... |
/* <NAME>
* G00349242
* MD5 Hash Generator
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <unistd.h>
#include <ctype.h>
#include <time.h>
// leftrotate function definition
#define LEFTROTATE(x, c) (((x) << (c)) | ((x) >> (32 - (c))))
// These variables will store the ... |
/* $ReOpenLDAP$ */
/* Copyright 1992-2018 ReOpenLDAP AUTHORS: please see AUTHORS file.
* All rights reserved.
*
* This file is part of ReOpenLDAP.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
*
* A copy... |
/*
* Copyright (C) 2015-2016 Freie Universität Berlin
* 2016 Inria
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup drivers_cc2420
* @{
*
* @file
* @b... |
/**
* \file
*
* \brief PWM SYNC example for SAM.
*
* Copyright (c) 2011-2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
... |
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* FreeRDP Server Common
*
* Copyright 2012 <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://ww... |
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreemen... |
/*
* skeleton.c
* author: <NAME>
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ogg/ogg.h>
#include "skeleton.h"
/* write an ogg_page to a file pointer */
size_t write_ogg_page_to_file(ogg_page *og, FILE *out) {
size_t written;
written = fwrite(og->header,1, og... |
/* olly - Look for matches and near matches to short sequences genome-wide. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "portable.h"
#include "localmem.h"
#include "dnautil.h"
#include "fa.h"
#include "nib.h"
int maxDiff = 2;
int ollySize = 25;
int ramMb = 490;
boolean ... |
/* *INDENT-OFF* */
/*INDENT OFF*/
/* Description: get_ips - put ip address list for a host into a buffer
*/
/******************************************************************************
* This software is covered by the zlib/libpng license.
* The zlib/libpng license is a recognized open source license by
* the Open S... |
/**
******************************************************************************
* @file stm32f1xx_it.c
* @brief Interrupt Service Routines.
******************************************************************************
*
* COPYRIGHT(c) 2018 STMicroelectronics
*
* Redistribution and use in source... |
#include "zybo_audio.h"
#include <stdio.h>
#include <xil_io.h>
#include <sleep.h>
#include "xiicps.h"
#include <xil_printf.h>
#include <xparameters.h>
#include "xfir.h"
#include "xuartps.h"
#include "xscutimer.h"
#include "xscugic.h"
typedef short Xint16;
typedef long Xint32;
#define TIMER_FREQ_HZ (XPAR_CPU_CORTEXA... |
/*# function
A function is basically a branch, but in which you have to:
- know where to jump back to after return
- pass arguments
- get back a return value
*/
#include "common.h"
void func_int(int i) {}
void func_float(float f) {}
void func_double(double d) {}
/* Struct arguments and return */
... |
/* Modified by Broadcom Corp. Portions Copyright (c) Broadcom Corp, 2012. */
/*
* xHCI host controller driver PCI Bus Glue.
*
* Copyright (C) 2008 Intel Corp.
*
* Author: <NAME>
* Some code borrowed from the Linux EHCI driver.
*
* This program is free software; you can redistribute it and/or modify
* it under ... |
#include "Globals.h"
#include "OCB.h"
#include "aes.h"
void XOR(uint32_t* Output, uint32_t* Input1, uint32_t* Input2);
void DOUBLE(uint32_t* Output, uint32_t* Input);
void CALCULATE_L(uint32_t* l, uint32_t* ldollar, uint8_t i);
void AUTH(uint32_t *authenticationdata, uint32_t *associateddata, uint8_t associat... |
/* See LICENSE for license details. */
/*
Module: snck_main.c
Description:
*/
/* OS headers */
#include "snck_os.h"
/* Configuration */
#include "snck_cfg.h"
/* Context */
#include "snck_ctxt.h"
/* Module */
#include "snck_main.h"
/* String */
#include "snck_string.h"
/* Heap */
#include "snck_heap.h"
/* Inf... |
/* Editor Settings: expandtabs and use 4 spaces for indentation
* ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: *
* -*- mode: c, c-basic-offset: 4 -*- */
/*
* Copyright © BeyondTrust Software 2004 - 2019
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... |
#include "mruby.h"
#include <string.h>
#include <stddef.h>
#include "mruby/array.h"
#include "mruby/class.h"
#include "mruby/data.h"
#include "mruby/hash.h"
#include "mruby/string.h"
#include "mruby/variable.h"
//#include "Utils/KeyBoardMan.h"
/*#include "gedi.h"*/
/*GEDI_KBD_e_Key eKey_w;*/
#if MRUBY_RELEASE_NO <... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*... |
// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2020 Norik systems d.o.o.
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "rules.h"
#include "json.h"
#include "net.h"
unsigned int djbHash(char *str, unsigned int len) {
unsigned int hash = 5381;
unsigned int i = 0;
for(i = 0; i < len; str++, i++) {
hash = ((hash << 5) + hash) + (*str);
... |
/*
* File : listbox.c
* This file is part of RTGUI in RT-Thread RTOS
* COPYRIGHT (C) 2010, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date ... |
/*****************************************
This is a implementation of pseudo-3d game
in command promt.
-<NAME> 2021
*****************************************/
#include <stdio.h>
#include <winsock2.h>
#include <windows.h>
#include <stdlib.h>
#include <malloc.h>
#include <math.h>
#include <string.... |
/**
* A little tool for decrypting claymore's homegrown
* encryption that he uses in ethminer (and some other
* miners.) I'm not exactly sure what this cipher is called
* but it's pretty simple. Probably not intended as a super
* secure means of protecting stuff, but it keeps most of the
* lamers out.
*
* Not... |
//
// BSD 3-Clause License
//
// Copyright (c) 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:
//
// 1. Redistributions of source code must retain the abov... |
/*
* Copyright (c) 1999-2003 WIDE Project
* 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 copyrig... |
/******************************************************************************
NAME:cpx_spectrum- Calculates the azimuthal spectrum of a complex image product
SYNOPSIS:
cpx_spectrum <complex image input> <azimuthal spectrum file> <start_line>
<complex image input> Input Complex Image
... |
#include "boardutils.h"
void setFromRawFenMain(){
setFromRawFen(&b);
}
void reportBoardRepMain(){
reportBoardRep(&b,outbuff);
}
void makeMoveMain(uint8_t ff,uint8_t fr,uint8_t tf,uint8_t tr,uint8_t promkind){
Move m;
m.fsq=(Square){ff,fr};
m.tsq=(Square){tf,tr};
m.prompiece=(Piece){promkind,b.turn};
m.invalid... |
#include "mex.h"
#include "matrix.h"
#include "math.h"
/* If you are using a compiler that equates NaN to zero, you must
* compile this example using the flag -DNAN_EQUALS_ZERO. For
* example:
*
* mex -DNAN_EQUALS_ZERO findnz.c
*
* This will correctly define the IsNonZero macro for your
compiler. */
#if NA... |
/*
File: netbsd/hwaccel_async_sw.c
Description:
This is an asycronous stub software implementation for netbsd
that takes care of setting the process run levels and
demonstrates how the packet is returned to the engine.
Copyright:
Copyright (c) 2002, 2003 SFNT Finland Oy.
Cop... |
// compare (<0:less,0:equal,>0:greater) ----------------------------------------
// - rlyeh, public domain
// typed
int sort_int(int a, int b);
int sort_u64(uint64_t a, uint64_t b);
int sort_str(const char *a, const char *b);
int sort_ptr(void *a, void *b);
// untyped (generic, qsort style). single indirection.
int s... |
/* <EMAIL> <NAME> */
/* Program to Access websites through a proxy */
#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#define FAIL -1
#define BUFF_LEN 8192
#define SIZE 1000
int cl = 0;
char ... |
/* --- include header files ------------------------------------------------ */
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <math.h>
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif
/* --- global variables ---------------------------------------------------- */
... |
#include <stdio.h>
#include <SDL/SDL.h>
#include "kiss_fftr.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
/* Use the newer ALSA API */
#define ALSA_PCM_NEW_HW_PARAMS_API
#include <alsa/asoundlib.h>
#define WIDTH 1920
#define HEIGHT 1080
#define BPP 4
#define DEPTH 3... |
// Commander X16 Emulator
// Copyright (c) 2019 <NAME>
// All rights reserved. License: 2-clause BSD
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
#include <string.h>
#include <time.h>
#include "uart.h"
#include "memory.h"
#include "glue.h"
#define UART_CHECK_UPLOAD_INTERVAL_SECONDS 3
static uint8... |
#include "parse.h"
int parseInput() {
if (scan() != 0)
return 1;
if (parseTokenList() != 0)
return 2;
if (commandList == NULL)
return 3; // means no commands.
return 0;
}
int scan() {
char ch;
char str[INPUT_LEN+1];
int i = 0; // index for char array 'input'
i... |
//https://www.opengl.org/archives/resources/code/samples/win32_tutorial/minimal.c
//////////////////////////////////////// ffic
//#include <windows.h>
#include "windows_gl.h"
//https://www.khronos.org/registry/OpenGL/api/GLES/1.0/gl.h
#include "../ffic.h"
//typedef void* ffic_ptr;
//typedef ffic_ptr (__attribute... |
/* $Id: attset.c,v 1.4 2008/11/25 08:56:51 strauman Exp $ */
/*
* Authorship
* ----------
* This software ('pmelf' ELF file reader) was created by
* <NAME> <<EMAIL>>, 2008,
* Stanford Linear Accelerator Center, Stanford University.
*
* Acknowledgement of sponsorship
* ------------------------------
... |
#include <shell.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <libc.h>
#include <command.h>
unsigned char listening_mouse = 1;
char shell_buffer[SHELL_BUFFER_SIZE];
int curr_pos = 0;
int history_index = 0, history_inserting_index;
history_entry cmd_history[100];
cmd_ent... |
#include"zzy_client.h"
int conn_fd;
int main(){
//创建一个TCP套接字
if((conn_fd = socket(AF_INET,SOCK_STREAM,0)) < 0){
my_err("socket",__LINE__);
}
//初始化服务器地址
struct sockaddr_in serv_addr;
memset(&serv_addr,0,sizeof(serv_addr));
serv_addr.sin_family = AF_INET;
serv_addr.sin_port =... |
#include <config_generator.h>
#include <logger.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#include <json_builder.h>
static void strlower(char *buffer){
while(*buffer){
if(isalpha(*buffer) && isupper(*buffer)){
*buffer += 32;
}
++buffer;
}
return;
}
... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <string.h>
#include "base.h"
struct timeval to_sleep;
// from https://www.gnu.org/software/libc/manu... |
/*
* Odyssey.
*
* Scalable PostgreSQL connection pooler.
*/
#include <kiwi.h>
#include <machinarium.h>
#include <odyssey.h>
od_storage_watchdog_t *od_storage_watchdog_allocate(od_global_t *global)
{
od_storage_watchdog_t *watchdog;
watchdog = malloc(sizeof(od_storage_watchdog_t));
if (watchdog == NULL) {
re... |
/*---------------------------------------------------------------------------*\
FILE........: golay23.c
AUTHOR......: <NAME> & <NAME>
DATE CREATED: 3 March 2013
To test:
src$ gcc golay23.c -o golay23 -Wall -O3 -DGOLAY23_UNITTEST && ./golay23
src$ gcc golay23.c -o golay23 -Wall -O3... |
#include "server_main.h"
/*
Parse arguments with getopt(), and return whether is -G or -P. Next, malloc and set URL to optarg value.
Caution! you have to free *URL when program is closed.
*/
int parseArguments(int argc, char *argv[], short *port)
{
int c = 0;
while((c = getopt(argc, argv, "p:")) != -1... |
/*
Copyright (c) 2003-2019 <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 following d... |
/* vim: ts=3 sw=3 sts=3 tw=80 sta noet list
*/
/**
* \file t_enc_rc4.c
* \brief RC4 Encryption Decryption algorithm.
* Yes it's unsafe and considered broken. Still can be used as a
* semi-decent rng. More of a demonstartion on how to write an
* algorthm within Lua-t.
* ... |
// #include <stdio.h>
// #include <stdlib.h>
#include "lab3.h"
#include "inc/hw_gpio.h"
#include "inc/hw_ints.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "inc/lm3s8962.h"
#include "driverlib/adc.h"
#include "driverlib/debug.h"
#include "driverlib/gpio.h"
#include "driverlib/interrupt.h"
#include "d... |
/*
Author: <NAME> (c) 1997
Polynomial extended Euclidean algorithm. See
"Handbook of Applied Cryptography" by <NAME> et al 2.6.2 Section 2.2.1 Algorithm
page 82.
*/
#include <stdio.h>
#include "lip.h"
#define DEBUG
#define POLY_SIZE 8192l
void zpoly_mul(long m, long n, verylong *za, verylong ... |
#include <mctop_alloc.h>
#include <pthread.h>
#include <getopt.h>
#include <limits.h>
#if __x86_64__
# include <numaif.h>
#endif
#include <mctop_rand.h>
#include <mctop_sort.h>
void* test_pin(void* params);
struct timespec
timespec_diff(struct timespec start, struct timespec end)
{
struct timespec temp;
if ((e... |
#include <nm_core.h>
#include <nm_form.h>
#include <nm_utils.h>
#include <nm_string.h>
#include <nm_window.h>
#include <nm_menu.h>
#include <nm_database.h>
#include <nm_cfg_file.h>
#include <nm_vm_control.h>
#include <nm_9p_share.h>
typedef struct {
nm_str_t mode;
nm_str_t path;
nm_str_t name;
} nm_9p_data... |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2011, 2013 Oracle and/or its affiliates. All rights reserved.
*/
/*
* This is the multithreaded test for XA. The client creates several threads
* and uses each thread to send requests to the servers, which are also
* multithreaded. ... |
#if _XOPEN_SOURCE < 500
# undef _XOPEN_SOURCE
# define _XOPEN_SOURCE 500 /* snprintf */
#endif
#include "abi.h"
#include "assemble.h"
#include <assert.h>
#include <ctype.h>
#include <stdarg.h>
#define SUFFIX(w) ((w) == 1 ? 'b' : (w) == 2 ? 'w' : (w) == 4 ? 'l' : 'q')
#define I0(instr) out("\t%s\n", instr... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
/*
* mesh hal impl.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/select.h>
#include <pthread.h>
#include <aos/aos.h>
#include <cpu_event.h>
#include <umesh_hal.h>
#include <umesh_80211.h>
#include "osdep.h"
#define MYT... |
/*
* SPDX-FileCopyrightText: 2020 Efabless 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.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
#include "scheduler.h"
#include "sched_impl.h"
/* Used to pass thread arguments to worker_proc() */
typedef struct worker_args {
pthread_t thread_id;
int iterations;
w... |
/* This file is part of the package "parapin".
The parapin package is free software; you can redistribute it
and/or modify it under the terms of the GNU Library General Public
License (LGPL) as published by the Free Software Foundation.
The parapin package is distributed in the hope that it will be
... |
#include <zlib.h>
#include "common.h"
#include <hfs/hfsplus.h>
#include <hfs/hfscompress.h>
void flipHFSPlusDecmpfs(HFSPlusDecmpfs* compressData) {
FLIPENDIANLE(compressData->magic);
FLIPENDIANLE(compressData->flags);
FLIPENDIANLE(compressData->size);
}
void flipRsrcHead(HFSPlusCmpfRsrcHead* data) {
FLIPENDIAN(da... |
//
// Created by ouyang on 2020/12/20.
//
#include "shell.h"
#include "util.h"
#include "IO.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#define LIST 1
#define MKDIR 2
#define TOUCH 3
#define COPY 4
#define SHUTDOWN 5
#define CLEAN 6
#define EMPTY 7
// 寻找文件路径的in... |
#include "exifwriter.h"
#include "jhead.h"
#define LOG_TAG "ExifWriterCamera"
//#define LOG_NDEBUG 0
#include <utils/Log.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#define TAG_ORIENTATION 0x0112
#define TAG_... |
/*
Copyright (c) 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 following disclaim... |
/*
* Copyright (c) 2001-2003 Swedish Institute of Computer Science.
* 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 ... |
/* Copyright 2013-2014 IBM Corp.
*
* 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 ... |
#include <stddef.h>
#include <stdint.h>
#define O_MASK 0x8000
#define O_OPEN (O_MASK | 0)
#define O_CLOSE (O_MASK | 1)
#define O_READ (O_MASK | 2)
#define O_WRITE (O_MASK | 3)
#define O_SEEK (O_MASK | 4)
#define BS_MASK 0xE000
#define OUT_B (BS_MASK | 0)
#define OUT_S (BS_MASK | 1)
#define OUT_P (BS_MASK | 2)
#define... |
#include <stdio.h>
#include <string.h>
#include <lauxlib.h>
#include "lua_api.h"
#include "lua_config.h"
#include "debug.h"
#include "graphics.h"
#include <strings.h>
#include <GLFW/glfw3.h>
struct key_pair {const char *name; int key;};
const struct key_pair keys[] = {
{"space", GLFW_KEY_SPACE},
{"apostrophe", GL... |
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define LEFT -2
#define RIGHT 2
static int cnt = 0;
typedef struct _avl avl;
struct _avl
{
int data;
avl *left;
avl *right;
};
bool check_dup(int *data, int compare, int idx)
{
int i;
for (i = 0; i < idx; i++)
... |
/* Copyright (C) 2017 <NAME>.
*
* MLton is released under a HPND-style license.
* See the file MLton-LICENSE for details.
*/
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "trace.h"
static const char *EventKindStrings[] = {
[EVENT_NIL] ... |
/*
* File: main.c
* Author: <NAME>
* Advisor: <NAME>
*
* Created on 15 de septiembre de 2013, 10:48 PM
*/
#include "global.h"
int main(int argc, char** argv)
{
if (argc < 4)
{
printf("Specify input and output files\n");
exit(1);
}
int i;
char *input = argv[1];
... |
/*
* Copyright (c) 2007, 2008 University of Tsukuba
* 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 ... |
// MeasurementOfDistance.c
// Runs on LM4F120/TM4C123
// Use SysTick interrupts to periodically initiate a software-
// triggered ADC conversion, convert the sample to a fixed-
// point decimal distance, and store the result in a mailbox.
// The foreground thread takes the result from the mailbox,
// converts the resul... |
/*
* Copyright (C) 2019-2020 Alibaba Group Holding Limited
*/
#include <stdlib.h>
#include <stdio.h>
#include <soc.h>
#include <drv/rtc.h>
#include <drv/pmu.h>
#include <aos/list.h>
#include <aos/types.h>
#include <yoc/lpm.h>
#include <syscfg.h>
#include <sysctrl.h>
#include "silan_voice_adc.h"
#include "silan_pm... |
//
// dr_base64.c
// drbox
//
// Created by DHY on 2021/8/4.
// Copyright © 2021 @zb.drbox. All rights reserved.
//
#include "dr_base64.h"
#include <string.h>
const char * base64_charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz"
"0123456789"
"+/";
/// 根据Base64编码后的十进制索引,获取Base64字符对应表中的字符
char _... |
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
//for readline
#include <readline/readline.h>
#include <readline/history.h>
#include "../header/print.h"
#include "../header/launcher.h"
#include "../header/analyse_lexicale.h"
#include "../header/launcher.h"
#define B... |
/* $OpenBSD: mmu_sh4.c,v 1.2 2008/06/26 05:42:13 ray Exp $ */
/* $NetBSD: mmu_sh4.c,v 1.11 2006/03/04 01:13:35 uwe Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by UCHIYAMA Yasushi.
*
* Redistrib... |
/*
* GStreamer
* Copyright (C) 2005 <NAME> <<EMAIL>>
* Copyright (C) 2005 <NAME> <<EMAIL>>
* Copyright (C) YEAR AUTHOR_NAME AUTHOR_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 Soft... |
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
typedef struct {
ngx_uint_t enable;
} ngx_http_webp_conf_t;
static char *ngx_http_webp(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
static ngx_int_t ngx_http_webp_handler(ngx_http... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define ccat(x) (strcat(information,x),strcat(information,"\n"))
void Copyright( int Section )
{
static char information[20000];
information[0] = '\0';
if(Section == 1) {
ccat("Movie version 2.0, Copyright (C) 1995 <NAME>");
ccat("Movie v2.0 co... |
#include "game.h"
//#include "audio/audio.h"
#include "pieces.inl"
#include "primlib.h"
#include "userInterface.h"
//#include <SDL_mixer.h>
#include <stdbool.h>
#include <stdlib.h>
#include <time.h>
/*
Audio *music1;
Audio *music2;
Audio *music3;
*/
/* Global variables */
vec2 v_res; // externed
bool playing;
int rot... |
/* *********************************************************************
* Broadcom Common Firmware Environment (CFE)
*
* USB debugging code File: usbdebug.c
*
* This module contains debug code for USB.
*
* Author: <NAME> (<EMAIL>)
*
**********************************... |
#include <tmesh/minunit.h>
#include <tmesh/bstrlib.h>
#include <tmesh/tmParam.h>
#include "tmParam_tests.h"
//const char *testfile = "/datadisk/Code/C-Code/tmesh/share/files/example.para";
const char *testfile = "/datadisk/Code/C-Code/tmesh/share/files/comment_test.para";
/********************************************... |
/****************************************************************************/
/* pfixtools: a collection of postfix related tools */
/* ~~~~~~~~~ */
/* ______________________________________________________________________ */
/* ... |
/**
* \file configlexer.c
* \author <NAME>, <<EMAIL>>
*
* This file contains the config lexer
*/
/* {{{ includes */
#include "cfconfig.h"
#include "defines.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <dlfcn.h>
#include <fcntl.... |
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License ve... |
/**
* Copyright 2014 Context Information Security
*
* 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... |
/**
* Verify that a file's size in the directory is set to the logical size of the file upon close.
*/
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "sdcard_sim.h"
#include "sdcard.h"
#include "asyncfatfs.h"
#include "common.h"
#define SDCARD_SECTOR_SIZE 512
#define TEST_... |
/* so_util.c -- utils to load and hook .so modules
*
* Copyright (C) 2021 <NAME>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include <psp2/io/dirent.h>
#include <psp2/io/fcntl.h>
#include <psp2/kernel/sysmem.h>
#include <kubridge.... |
/***************************************************************************//**
* @file
* @brief
*******************************************************************************
* # License
* <b>Copyright 2021 Silicon Laboratories Inc. www.silabs.com</b>
*****************************************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.