text stringlengths 3.12k 18.7k |
|---|
/*
* hue 0.1
* A very basic Philips Hue-like application using the PiGlow board.
* requires wiringPi
* Copyright 2014, <NAME>.
*
* TODO:
* Fix fade delaying
* Maybe make argument parsing less of a hackish nightmare
*/
// includes {{{
#include "hue.h"
//}}}
// variable defs {{{
state light;
state update;
cmd ... |
/* version 3.6. (c) Copyright 1999-2004 by the University of Washington.
Written by <NAME>, <NAME>, <NAME>, and <NAME>.
Permission is granted to copy and use this program provided no fee is
charged for it and provided that this copyright notice is not removed. */
#include <float.h>
#include "phylip.h"
#inclu... |
/*
Unix SMB/CIFS implementation.
Copyright (C) <NAME> 2004
Copyright (C) <NAME> 2005
Copyright (C) <NAME> 2007
Copyright (C) <NAME> 2008
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 F... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2006-2007 PA Semi, Inc
*
* Author: <NAME>, PA Semi
*
* Maintained by: <NAME> <<EMAIL>>
*
* Based on arch/powerpc/oprofile/op_model_power4.c
*/
#include <linux/oprofile.h>
#include <linux/smp.h>
#include <linux/percpu.h>
#include <asm/processor.h>
#inc... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*dpfgse_sarxfer2 1D STD Saturation Transfer experiment with
... |
/*
* Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2005 The University of Tennessee and The University
* of Tennessee Resea... |
/*
*
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 sup... |
/*
Copyright (C) 1996-1997 Id Software, Inc.
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 distribut... |
/* -*- Mode:C; c-basic-offset:4; tab-width:4 -*-
****************************************************************************
* (C) 2003 - <NAME> - Intel Research Cambridge
* (C) 2002-2003 - <NAME> - University of Cambridge
* (C) 2005 - <NAME> - Intel Research Cambridge
* (C) 2006 - <NAME> - FH Wiesbaden
******... |
///
/// @file
/// @copyright All code copyright Movidius Ltd 2014, all rights reserved.
/// For License Warranty see: common/license.txt
///
/// @brief Minimal Fp16 conversion software
/// minimal library for fp16 conversions providing helper functions
/// for users sharing data bet... |
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <rudolph/buffer.h>
#include <rudolph/elf_link.h>
#include "ir.h"
#include "stack.h"
#define BUDGIE_MAX_CELLS 131072
#define c(x) ((const unsigned char *)(x))
static budgie_stack *loop_stack;
__inline static void budgie_translate_op_next(rd_buf_t **b... |
/*
* Toradex Colibri VF50 Touchscreen driver
*
* Copyright 2015 Toradex AG
*
* Originally authored by <NAME> for 3.0 kernel
*
* 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 vers... |
/*
* FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 <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... |
/* crypto/md2/md2_dgst.c */
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as ... |
#include "plt_mesh.h"
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include "platypus/base/plt_macros.h"
#define _PLT_MESH_READ_LINE_BUFFER_SIZE 2048
typedef enum Plt_Mesh_Ply_Token_Type {
Plt_Mesh_Ply_Token_Type_Invalid,
Plt_Mesh_Ply_Token_Type_EOF,
Plt_Mesh_Ply_Token_Type_Magi... |
#include <errno.h>
#include <limits.h>
#include <netinet/in.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <h2o.h>
#include <h2o/http1.h>
#include <h2o/http2.h>
#include <lmdb.h>
static h2o_pathconf_t *register_handler(h2o_hostconf_t *hostconf, cons... |
/* GTK - The GIMP Toolkit
* Copyright (C) 1995-1997 <NAME>, <NAME> and <NAME>
*
* 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 of the License, or (at your option... |
/*
File name: readsent.c
Description: Functions for input, output and initialization
Created by: Kang, Seung-Shik 04/13/1993
*/
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <stdlib.h> /* declared only for 'randomize_file_ptr()' */
#include <time.h> /* declared only for 'randomize_file_ptr()' *... |
/* Copyright (c) 2011,2012 <NAME> <<EMAIL>>.
* Modifications by <NAME> 2014-2015 <<EMAIL>>
*
* 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 ... |
/* Clusters tabular data.
*
* SRE, Mon Nov 3 13:43:29 2008 [Janelia]
* SVN $Id: esl-cluster.c 685 2011-05-23 14:27:52Z eddys $
*/
#include "esl_config.h"
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "easel.h"
#include "esl_fileparser.h"
#include "esl_getopts.h"
#include... |
// Asynchronous echo-server implemented in C. Based on libev.
// To compile for production:
// clang -DNDEBUG -O2 main.c -lev -o main
// To compile for debug:
// clang -O0 -g main.c -lev -o main
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#includ... |
/*
*
* Copyright 2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
#include "x86_desc.h"
#include "lib.h"
#include "paging.h"
/* credit to http://wiki.osdev.org/Setting_Up_Paging */
#define kernel_dir page_dir[1]
#define initial_dir page_dir[0]
#define SINGLE_PAGE_DIR_OFFSET 1024
#define USER_LEVEL_OFFSET (2*1024)
#define USER_SPACE_START 32
#define USER_VIDEO_START 40
#define KB_4 ... |
// SPDX-License-Identifier: GPL-2.0
#include <linux/cpumask.h>
#include <linux/dma-mapping.h>
#include <linux/dmapool.h>
#include <linux/delay.h>
#include <linux/gfp.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci_regs.h>
#include <linux/vmalloc.h>
#include <linux/pci.h>
#include "nitrox_dev... |
/*
* Copyright (C) 2010 <NAME> <<EMAIL>>
*
* (C) Copyright 2009 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* publishe... |
/*
** Copyright 2005-2018 Solarflare Communications Inc.
** 7505 Irvine Center Drive, Irvine, CA 92618, USA
** Copyright 2002-2005 Level 5 Networks Inc.
**
** 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 ... |
/*
* Copyright (C) 2009-2011 <NAME> <nick<EMAIL>>
*
* 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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE A... |
/*
* 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, distribut... |
// Copyright 2018 Cloudbase Solutions Srl
// Copyright 2018-2019 CrowdStrike, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
... |
#include "ext.h" // you must include this - it contains the external object's link to available Max functions
#include "ext_obex.h" // this is required for all objects using the newer style for writing objects.
#define viewLength 12
typedef struct _rotatePiano { // defines our object's internal variables for ea... |
/*
* Helper functions for tree diff generation
*/
#include "cache.h"
#include "diff.h"
#include "diffcore.h"
#include "tree.h"
static void show_entry(struct diff_options *opt, const char *prefix,
struct tree_desc *desc, struct strbuf *base);
static int compare_tree_entry(struct tree_desc *t1, struct tree_d... |
#include "one_inch_plugin.h"
#include <string.h>
// Need more information about the interface for plugins? Please read the README.md!
// You can check 1inch swap methods here
// https://etherscan.io/address/0x11111112542d85b3ef69ae05771c2dccff4faa26#writeContract
//
// swap 0x7c025200
static const uint8_t ONE_INCH_SW... |
/*
* lst.c Implements the data types for a Logic Syntax Tree
*
* Author: <NAME>
* March, 2016. 16W.
*
* Based on code written for cs57 by myself and Quinn Stearns '16 for the
* pccbr compilers project. This means that the code may have structural
* similarities to examples given by <NAME> or Sean S... |
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2001, 2003 Internet Software Consortium.
*
* 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 per... |
/*******************************************************************************
* Copyright (c) 1991, 2015 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... |
/** @file
* Copyright (c) 2019, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://... |
/*
* Node.js-like module loading framework for Duktape
*
* https://nodejs.org/api/modules.html
*/
#include "be_inl.h"
static void duk__push_module_object(duk_context *ctx, const char *id);
static duk_bool_t duk__get_cached_module(duk_context *ctx, const char *id)
{
duk_push_global_stash(ctx);
(void)duk... |
/*
htop - linux/Battery.c
(C) 2004-2014 <NAME>
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
Linux battery readings written by <NAME> (<EMAIL>, <EMAIL>).
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <dirent.h>
#include <errno.h>
#include <unistd.h>
#inclu... |
/* ---------------------------------------------------------------------------
ca_iter_block.c
This file is part of Ruby/CArray extension library.
Copyright (C) 2005-2020 <NAME>
---------------------------------------------------------------------------- */
#include "carray.h"
/* yard:
class CABlockIterat... |
/**
@file
@author <NAME>
@section LICENSE
Copyright (c) 2015 <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... |
/**
* \file
*
* \brief AVR XMEGA Analog to Digital Converter Driver Example 2
*
* 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 fo... |
#pragma once
#ifdef UNIX
#include <pthread.h>
#endif
void utils_global_init( void );
void utils_global_deinit( void );
//LIST:
struct list_data
{
utf8_char* items; //Items data
int* items_ptr; //Item pointers
int items_num; //Number of items;
int selected_item;
int start_item;
};
void list... |
/*
* Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* 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 permissio... |
/*
* Copyright (c) 2004-2015 <NAME>.
* All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the BSD_LICENSE file.
*/
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <getopt.h>
#inclu... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <xcb/xcb.h>
#include "overlay_window.h"
static xcb_connection_t* x_conn;
static xcb_window_t root;
static xcb_atom_t ATOM_NET_ACTIVE_WINDOW;
static xcb_atom_t ATOM_NET_WM_NAME;
static xcb_atom_t ATOM_UTF8_STRING;
static xcb_atom_t... |
/* Copyright (C) 2010-2020 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (eq.c).
* ---------------------------------------------------------------------------------------
*
* Permission is... |
/*********************************************************************************************************
* Software License Agreement (BSD License) *
* Author: <NAME> <<EMAIL>> *
* *
* Copyright (c) 2013, WIDE Project and NICT *... |
/*-
* Copyright (c) 2011 The FreeBSD Foundation
* All rights reserved.
*
* This software was developed by <NAME> under sponsorship from
* the FreeBSD Foundation.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2008-2009 coresystems GmbH
* Copyright (C) 2014 <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; version 2 of
*... |
/* -*- c -*- *****************************************************************
** Copyright (C) 2003 Sandia Corporation
** Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
** the U.S. Government retains certain rights in this software.
**
** This source code is released under the New BSD License.
... |
/*!
* @section LICENSE
*
* (C) Copyright 2011~2015 Bosch Sensortec GmbH All Rights Reserved
*
* (C) Modification Copyright 2018 <NAME> 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 c... |
/*
* 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... |
/* $Id: xinit.c,v 1.5 2001/12/26 22:17:06 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */
/************************************************************************/
/* */
/* (C) Copyright 1989, 1990, 1990, 1991, 1992, 1993, 1994, 1995 Venue. */
/* All Rights Reserved. */
/* Manufactured in the ... |
/* Simple Travelling Salesman Problem heuristics.
*
* <NAME>, 2017.
*/
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <gsl/gsl_vector_double.h>
#include <gsl/gsl_permutation.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_blas.h>
#include "../utils/utils.h"
#include "../datastructures/datastruc... |
/* $Id: macdefs.h,v 1.1 2020/06/13 14:55:53 ragge Exp $ */
/*
* Copyright (c) 2020 Puresoftware Ltd.
*
* 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... |
/* pdf.c
*
* Copyright (C) 2008 <NAME> <<EMAIL>>
* Copyright (C) 2008 <NAME> (formerly Uebernickel) <<EMAIL>>
*
* This file is part of foomatic-rip.
*
* Foomatic-rip 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 Softwar... |
/*
* File: ms_thread.c
* Author: <NAME>
*
* Created on February 10, 2009
*
* (c) Copyright 2009, Schooner Information Technology, Inc.
* http://www.schoonerinfotech.com/
*
*/
#include "mem_config.h"
#if defined(HAVE_SYS_TIME_H)
# include <sys/time.h>
#endif
#if defined(HAVE_TIME_H)
# include <time.h>
#end... |
/* reviewSanity - Look through sanity files and make sure things are ok.. */
/* Copyright (C) 2011 The Regents of the University of California
* See README in this or parent directory for licensing information. */
#include "common.h"
#include "linefile.h"
#include "hash.h"
#include "portable.h"
#include "obscure.h"
... |
/*-
* Public Domain 2014-present MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* bina... |
#include "wanwan_string.h"
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#define WANWAN_STRING_ALLOCTAG 0xDE0AFEF5
#define WANWAN_STRING_VALID(__S__) ((__S__) && ((__S__)->allocTag==WANWAN_STRING_ALLOCTAG))
#define WANWAN_STRING_PIECE 4096
struct wanwan_String {
uint32_t allocTag;
... |
/*
* CCE MMC-1000 BIN to CAS file converter and WAV generator
*
* $Id: mc.c $
*/
#include "appmake.h"
static char *binname = NULL;
static char *crtfile = NULL;
static char *outfile = NULL;
static char *blockname = NULL;
static int ... |
/*
* SPI testing utility (using spidev driver)
*
* Copyright (c) 2007 MontaVista Software, Inc.
* Copyright (c) 2007 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; ... |
/*
* Copyright (C) 2014 BlueKitchen GmbH
*
* 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 follo... |
/*
* Copyright (c) 2019, Cascoda Ltd.
* 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 con... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/epoll.h>
#include <arpa/inet.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
#include <utillib.h>
#include <errno.h>
#include <fcntl.h>
#include <server_sock.h>
#include <libhashshm.h>
#include <typedef.h>
#inclu... |
/* msgchk.c -- check for mail
*
* 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/mts.h>
#include <h/tws.h>
#include <pwd.h>
#include <h/popsbr.h>
#ifndef CYRUS_... |
/*
* ARM Versatile Platform/Application Baseboard System emulation.
*
* Copyright (c) 2005-2007 CodeSourcery.
* Written by <NAME>
*
* This code is licenced under the GPL.
*/
#include "hw.h"
#include "arm-misc.h"
#include "primecell.h"
#include "devices.h"
#include "net.h"
#include "sysemu.h"
#include "pci.h"
#i... |
/*-
* Copyright (c) 2014-present MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#define WT_WIREDTIGER "WiredTiger" /* Version file */
#define WT_SINGLETHREAD "WiredTiger.lock" /* Locking file */
#define WT_BASECO... |
/*
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 ... |
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1997 - 1999
//
// File: _msinst.h
//
//--------------------------------------------------------------------------
// This file *must* be unguarded to allow ... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief
* Use PDMA0 channel 4 to transfer data from memory to memory by scatter-gather mode.
*
* @note
* Copyright (C) 2017 Nuvoton Technology Corp. All rights reserved.
*
***********... |
/*-
* Copyright (c) 2016, 2019
* <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, th... |
/*
goal:
provide a fairly abstract interface into rpc subsystem.
2 arrays to define args:
first arg type;
second arg value.
arg types:
int: long-int value;
bool: long-int bool value;
string: string pointer;
float: float value;
date: pointer to a byte array, YMDhms;
data: pointer to a long size followed by a buffer;
... |
/*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... |
/*!
* @file main.c
* @author <NAME>
* @brief Start everything and start services
* @section LICENSE
* Copyright 2021-2022 <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... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// __ \_/ ___\| |/ /| __ \ / __ \ \/ /
* Jukebox | | ( (__) ) \___| ( | \_\ ( (__) ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include "array.h"
/*
功能描述:
实现了多参数整数相加和多字符串拼接功能。
对于add函数,实现了整数相加,并且会对输入数值和相加结果进行数值溢出检查。
对于concat函数,实现了多个字符串的拼接,最终拼接的字符串长度限定在预定义的最大长度里。
*/
static const struct option long_option[]={
{"func_name",optional_argument,NULL,'f'},
{"... |
#include <MiniFB.h>
#include <stdio.h>
#include <stdint.h>
#define _USE_MATH_DEFINES
#include <math.h>
#define kPI 3.14159265358979323846f
#define kUnused(var) (void) var;
#define WIDTH_A 800
#define HEIGHT_A 600
static unsigned int g_buffer_a[WIDTH_A * HEIGHT_A];
#define WIDTH_B... |
// Adapted from nvme-cli: https://github.com/linux-nvme/nvme-cli
// Original license:
/*
* nvme.c -- NVM-Express command line utility.
*
* Copyright (c) 2014-2015, Intel Corporation.
*
* Written by <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e... |
/*
* Copyright (c) 2004-2008 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2006 The University of Tennessee and The University
* of Tennessee Resea... |
/* gammaf.c
*
* Gamma function
*
*
*
* SYNOPSIS:
*
* float x, y, __tgammaf_r();
* int* sgngamf;
* y = __tgammaf_r( x, sgngamf );
*
* float x, y, tgammaf();
* y = tgammaf( x);
*
*
* DESCRIPTION:
*
* Returns gamma function of the argument. The result is
* correctly signed. In the reentrant versi... |
// Copyright (C) 2019 LCIS Laboratory - <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, in version 3.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ... |
/*
* @brief LWIP standalone http server example
*
* @note
* Copyright(C) NXP Semiconductors, 2013
* All rights reserved.
*
* @par
* Software that is described herein is for illustrative purposes only
* which provides customers with programming information regarding the
* LPC products. This software is suppli... |
/**
* @author PAPI team UTK/ICL
* Test case for powercap component
* @brief
* Tests basic functionality of powercap component
*/
#include <stdio.h>
#include <stdlib.h>
#include "papi_test.h"
#define MAX_powercap_EVENTS 64
#ifdef BASIC_TEST
void run_test( int quiet )
{
if ( !quiet ) {
printf( "Sle... |
/* Copyright (c) 2017, <EMAIL>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... |
// STM32 bootloader client
#include <stdio.h>
#include <unistd.h>
#include "serial.h"
#include "type.h"
#include "stm32ld.h"
static ser_handler stm32_ser_id = ( ser_handler )-1;
#define STM32_RETRY_COUNT 10
// ****************************************************************************
// Helper functio... |
#include "gt9147.h"
#include "touch.h"
#include "ctiic.h"
#include "usart.h"
#include "delay.h"
#include "string.h"
#include "lcd.h"
//////////////////////////////////////////////////////////////////////////////////
//本程序只供学习使用,未经作者许可,不得用于其它任何用途
//ALIENTEK STM32开发板
//4.3寸电容触摸屏-GT9147 驱动代码
//正点原子@ALIENTEK
//技术论坛:www.ope... |
/* 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 not... |
/* ----------------------------------------------------------------------------
* ATMEL Microcontroller Software Support
* ----------------------------------------------------------------------------
* Copyright (c) 2008, Atmel Corporation
*
* All rights reserved.
*
* Redistribution and use in so... |
/* SCTP kernel Implementation
* (C) Copyright IBM Corp. 2002, 2003
* Copyright (c) 1999-2000 Cisco, Inc.
* Copyright (c) 1999-2001 Motorola, Inc.
* Copyright (c) 2001 Intel Corp.
* Copyright (c) 2001 Nokia, Inc.
*
* The SCTP implementation is free software;
* you can redistribute it and/or modify it under the t... |
/* Nom: generateur.c
* Description: module qui gère les générateurs
* Date: 11.06.2015
* version : 1.1
* responsable du module : <NAME>
* groupe : <NAME>, <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include "constantes.h"
#include "graphic.h"
#include "geometry.h"
... |
/*
* Copyright (c) 2013 Google, Inc
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <fdtdec.h>
#include <malloc.h>
#include <asm/io.h>
#include <dm/test.h>
#include <dm/root.h>
#include <dm/uclass-internal.h>
#include <dm/util.h>
#include <test/ut.h>
DECLAR... |
/*
* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following conditions are met:
*
* * Redistributions of source ... |
/* A simple web server in the internet domain using HTTP and TCP
* Usage: ./myserver [port number] (E.g. ./myserver 10000)
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h> // definitions of standard smbolic constants and types and declares miscellaneous functions
#include <fcntl.h> // ... |
/* Copyright (c) 2001 <NAME>.
* Copyright (c) 2001-2004, <NAME>.
* Copyright (c) 2004-2006, <NAME>, <NAME>.
* Copyright (c) 2007-2021, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* @file unitparse.c
* @brief Functions for parsing values with units from a configuration file.
**/
#inc... |
/**
* @file xmc_spi.c
* @date 2015-11-04
*
* @cond
*********************************************************************************************************************
* XMClib v2.1.6 - XMC Peripheral Driver Library
*
* Copyright (c) 2015-2016, Infineon Technologies AG
* All rights reserved. ... |
/*
WebDAV 207 multi-status response handling
Copyright (C) 1999-2006, <NAME> <<EMAIL>>
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 Foundation; either
version 2 of the License, or (... |
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
#include "bips.h"
void
fatal(char* fmt, ...)
{
va_list args;
va_start(args,fmt);
fputs("Fatal error: ",stderr);
vfprintf(stderr,fmt,args);
fputc('\n',stderr);
exit(1);
}
void
warning(char* fmt, ...)
{
va_list args;
va_... |
/*
* ISC License
*
* Copyright (C) 1991-2018 by
* <NAME>
* <NAME>
* <NAME>
* Delft University of Technology
*
* 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 appea... |
/*
* This file is part of the uv_hal distribution (www.usevolt.fi).
* Copyright (c) 2017 <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, version 3.
*
* This program is di... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.