text stringlengths 3.12k 18.7k |
|---|
/**
******************************************************************************
* @file TIM/TIM_OnePulse/main.c
* @author MCD Application Team
* @version V1.8.0
* @date 04-November-2016
* @brief Main program body
*************************************************************************... |
// Copyright 2018, <NAME>, mailto:<EMAIL>
//
// Part of "Nuitka", an optimizing Python compiler that is compatible and
// integrates with CPython, but also works on its own.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with t... |
/*
* (C) Copyright 2005- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
* virtue of its status as an int... |
/*-------------------------------------------------------------------------
*
* buf_init.c
* buffer manager initialization routines
*
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* $Heade... |
#include <config.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "kod_management.h"
#include "log.h"
#include "sntp-opts.h"
#include "ntp_stdlib.h"
#include "ntp_worker.h"
#include "ntp_debug.h"
int kod_init = 0, kod_db_cnt = 0;
const char *kod_db_file;
struct kod_entry **kod_db; /* array... |
/*-------------------------------------------------------------------------
* drawElements Stream Library
* ---------------------------
*
* Copyright 2014 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 ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
/* vim: set ts=8 sts=4 sw=4 noexpandtab : */
/*
*
*/
#include "mpid_nem_impl.h"
#include "llc_impl.h"
//#define MPID_NEM_LLC_DEBUG_VC
#ifdef MPID_NEM_LLC_DEBUG_VC
#define dprintf printf
#else
#define dprintf(...)
#endif
/* function prototypes */
s... |
/*****************************************************************************
* *
* uCUnit - A unit testing framework for microcontrollers *
* *
* ... |
/*
*******************************************************************
*
* Copyright 2016 Intel Corporation All rights reserved.
*
*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... |
// Handling of TLS calls, include x86 specifi set_thread_area
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "debug.h"
#include "box86context.h"
#include "x86emu.h"
#include "x86tls.h"
#include "elfloader.h"
typedef struct thread_area_s
{
int e... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <json-c/json.h>
#include "errors.h"
#include "IO/term.h"
#include "IO/local-repo.h"
#include "package.h"
#include "internet.h"
// Some hardcoded values that are used in the program
#define MAX_PACKAGE_FILE_SIZE 10240
#define MAX_INSTALLED_PACKAGES_FI... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include "lista.h"
#define TAM_INICIAL 101
#define MAX_FACTOR_DE_CARGA 1.5
#define MIN_FACTOR_DE_CARGA 0.25
#define FACTOR_MULTIPLICACION 3
/* ******************************************************************
* DEFINICION... |
#include <stdlib.h>
#include <math.h>
#include "grib2.h"
int enc_jpeg2000(unsigned char *,g2int ,g2int ,g2int ,
g2int , g2int, g2int , char *, g2int );
void jpcpack(g2float *fld,g2int width,g2int height,g2int *idrstmpl,
unsigned char *cpack,g2int *lcpack)
//$$$ SUBPROGRAM DOCUMENTATION ... |
#define _GNU_SOURCE
#include "parse.h"
#define VERSION "0.1"
#define BASIC_HELP 0
#define ADVANCED_HELP 1
typedef int (*CommandFunction)(int argc, char **argv);
struct Command
{
CommandFunction func; /* function which implements the command */
int nargs; /* if == 999, any number of argumen... |
/*
Copyright 2013-2014 bcstack.org
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 writing,... |
/*
* Copyright (c) 2015 <NAME> <<EMAIL>>
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <target/m4display.h>
#include <stdio.h>
#include <lk/trace.h>
#include <lk/err.h>
#include <stm32f4xx.h>
#inclu... |
/*
* Copyright (c) 2003 <NAME>
* Copyright (c) 2003 Massachusetts Institute of Technology
*
* 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 ... |
#include <ctype.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include "md5.h"
#include "log.h"
#include "util.h"
int run_cmd(const char *fmt, ...) {
char *cmd;
int rv;
va_list args;
va_start(args, fmt);
if (vasprintf(&cmd, fmt, args) ==... |
/* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "adc.h"
#include "clock.h"
#include "common.h"
#include "console.h"
#include "dma.h"
#include "hooks.h"
#include "hwtimer.h"
#include "reg... |
/*****************************************************************************/
/* loadmod.c v0.1 Load Module Data */
/* */
/* Created by: <NAME> */
/* Em... |
/* $OpenBSD: util.c,v 1.36 2007/10/02 17:59:18 otto Exp $ */
/* $FreeBSD: head/usr.bin/grep/fastgrep.c 211496 2010-08-19 09:28:59Z des $ */
/*-
* Copyright (c) 1999 <NAME> and <NAME>
* Copyright (C) 2008 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without... |
/*
Tomato Firmware
Copyright (C) 2006-2009 <NAME>
*/
#define _BSD_SOURCE
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <stdarg.h>
#include <dirent.h>
#include <bcmnvram.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/fi... |
/* Materia: Algoritmos y Estructura de Datos II - 2020 FAMAF
PROYECTO 1: TAD Conjunto finito
Alumna:
- Vispo, <NAME>
Link de descarga: https://wiki.cs.famaf.unc.edu.ar/lib/exe/fetch.php?media=algo2:main:proy01_2020.zip
Fecha de entrega: 11/05 23:59:59
Teórico:
Tipos Abstractos de Datos: https://wiki.cs.f... |
/*
* 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) 2020 Bosch Sensortec GmbH
*
* The license is available at root folder
*
*/
/*!
* @ingroup bma400Examples
* @defgroup bma400ExamplesFifo FIFO watermark read with sensortime
* @brief Read and extract FIFO watermark data with sensortime
* \include fifo_watermark_xyz_data_sensortime.c
*/
#inc... |
/*
* Copyright (c) 2008, BSC (Barcelon Supercomputing Center)
* 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,... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright SUSE LLC
#include <assert.h>
#include <math.h>
#include <netlink/route/link.h>
#include <netlink/route/rtnl.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "algorithmic.h"
#include "filehelper.h"
#inc... |
/* Configuration for an i386 running MS-DOS with DJGPP.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005,
2007 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the... |
/**CFile****************************************************************
FileName [extraUtilReader.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [extra]
Synopsis [File reading utilities.]
Author [<NAME>]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Star... |
/* -*- mode: C; c-basic-offset: 4; -*- */
/* ex: set shiftwidth=4 tabstop=4 expandtab: */
/*
* Copyright (c) 2015, Rice University
* All rights reserved.
*
* Author(s): <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the foll... |
/**********************************************************************
*
* impoold.c - node based memory pool class
* created on Dec. 4 2004 by skywind <<EMAIL>>
*
* provide memory pool class with the following methods:
*
* imp_init - initialize the memory pool with the fixed node size
* imp_destr... |
// xv6Chat server.
//
// A simple IRC server implementation.
//
// To be run within host linux. Version 16.04 preferred.
//
// Compilation: "make server"
// Usage: "./xv6ChatServer <Server IP> <Server Port>"
//
/** xv6 support is no longer supported. Run Server on host machine instead. **/
#include <sys/socket.h>
... |
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Tests for firmware 2common.c
*/
#include "2sysincludes.h"
#include "vb2_common.h"
#include "vboot_struct.h" /* For old struct sizes */
#inc... |
/*
* 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... |
/**
*****************************************************************************
* @file cmem7_spi.c
*
* @brief CMEM7 SPI source file
*
*
* @version V1.0
* @date 3. September 2013
*
* @note
*
*****************************************************************... |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include <assert.h>
#include <unistd.h>
#include <pthread.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include "networking.h"
#include "client_utils.h"
#include "report_errors.h"
#define QUERY_LEN 256
typedef struct thread_args {
... |
// Define Frequencies of musical notes
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
#define NOTE_DS1 39
#define NOTE_E1 41
#define NOTE_F1 44
#define NOTE_FS1 46
#define NOTE_G1 49
#define NOTE_GS1 52
#define NOTE_A1 55
#define NOTE_AS1 58
#define NOTE_B1 62
#define NOTE_C2 65... |
/******************************************************************************
* Copyright 2020 The Firmament Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License ... |
/*
* Copyright (C) 2015-2017 Netronome Systems, Inc.
*
* This software is dual licensed under the GNU General License Version 2,
* June 1991 as shown in the file COPYING in the top-level directory of this
* source tree or the BSD 2-Clause License provided below. You have the
* option to license this software und... |
/*
* Arm SCP/MCP Software
* Copyright (c) 2017-2018, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <fwk_assert.h>
#include <fwk_macros.h>
#include <fwk_mm.h>
#include <fwk_module.h>
#include <fwk_module_idx.h>
#include <fwk_notification.h>
#include <mod_c... |
/*
* crc.c
*
* PURPOSE
* Routines to generate, calculate, and test a 16-bit CRC.
*
* DESCRIPTION
* The CRC code was devised by <NAME> of AT&T Bell Laboratories
* and <NAME> of Software Systems Group. It has been published in
* "Design and Validation of Computer Protocols", Prentice Hall,
* Englewood Cliffs, N... |
/* $OpenBSD: sshbuf-misc.c,v 1.14 2020/02/26 13:40:09 jsg Exp $ */
/*
* Copyright (c) 2011 <NAME>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*... |
#include "VideoDriver.h"
#include "Keyboard.h"
#include <stdint.h>
#include "math.h"
#include "stdlib.h"
#include "Beep.h"
#include "TimeDriver.h"
#include "BuddyAllocationSystem.h"
#include "scheduler.h"
#include "String.h"
#include "mutex.h"
#include "semaphore.h"
#include "syscalls.h"
#include "pipe.h"
#include "rea... |
/** @file cpu/stm32w108/hal/micro/cortexm3/mems.c
* @brief MB851 MEMS drivers
*
*
* <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved. -->
*/
#include PLATFORM_HEADER
#include "hal/hal.h"
#include "hal/error.h"
#include "hal/micro/mems.h"
#define TIMEOUT 20000
#define SUCCESS 1
#define SEND_... |
/*
Copyright 2010 SourceGear, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
/***************************************************************************
tlc34076.c
Basic implementation of the TLC34076 palette chip and similar
compatible chips.
***************************************************************************/
#include "driver.h"
#include "tlc34076.h"
stat... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* See authResponse.h for a description of this API call.*/
#include "authRequest.h"
#include "authResponse.h"
#include "authCheck.h"
#include "miscServerFunct... |
/* MACHINE GENERATED FILE, DO NOT EDIT! */
#define VMDPLUGIN molfile_vaspxmlplugin
#define STATIC_PLUGIN 1
/***************************************************************************
* RCS INFORMATION:
*
* $RCSfile: vaspxmlplugin.c,v $
* $Author: johns $ $Locker: $ $State: Exp $
* ... |
/*
* Copyright (C) 2016 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... |
/** @file econ.c
* @brief Embedded shell core implementation.
*
* @author t-kenji <<EMAIL>>
* @date 2018-09-16 create new.
* @copyright Copyright © 2018 t-kenji
*
* This code is licensed under the MIT License.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <st... |
/*
* Copyright (c) 2020 Huawei Device Co., Ltd.
* 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 applicab... |
/*
* This code is very much based on the BeOS R4_ sb16 driver, which is:
* Copyright (C) 1998 <NAME>. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version ... |
#include <stdlib.h>
#include <stdio.h>
#include "mpi.h"
#include "pool.h"
// MPI P2P tag to use for command communications, it is important not to reuse this
#define PP_CONTROL_TAG 16384
#define PP_PID_TAG 16383
// Pool options
#define PP_QuitOnNoProcs 1
#define PP_IgnoreOnNoProcs 0
#define PP_DEBUG 0
// Example com... |
/*
* This file contains the logic to walk all of the source objects and place
* them on the queue.
*
* In the case of directories, we'll simply read the contents of a directory
* and place each sub-object back on the queue to be treewalked again. In the
* case of files, we chunk up each file and place it on the q... |
// Header inclusions ---------------------------------------------------------------------------------------------------
#include <string.h>
#include "ble_config.h"
#include "ble_gap.h"
#include "boards.h"
#include "nrf_delay.h"
#include "rtc_external.h"
#include "sd_card.h"
#include "simple_logger.h"
#include "square... |
/*
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
* Author: <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published by
* the Free Software Foundation.
*
* This program is dis... |
#include "dwm.h"
#include <string.h>
#include <stdlib.h>
#include <X11/cursorfont.h>
unsigned int tagwidths[NUM_TAGS];
unsigned int alltagswidth;
void draw_init_font(const char *fontstr) {
/* init font */
dc.font.xfont = xcb_generate_id(conn);
testcookie(xcb_open_font_checked(conn, dc.font.xfont, strlen(fontstr), ... |
/**
******************************************************************************
* @file Templates/Src/main.c
* @author MCD Application Team
* @brief Main program body
*
* @note modified by ARM
* The modifications allow to use this file as User Code Template
* within the De... |
/* Projecto 1 */
/* Grupo 43 */
/* 81115 <NAME> */
/* 81538 <NAME> */
/* 81525 <NAME> */
/* Bibliotecas */
#include <stdio.h>
#include <stdlib.h>
/* Constantes */
#define BOM 1
#define MAU 0
#define MAX_REG_BANCOS 1000
#define MAX_NOME 41
/* Definicao do tipo banco */
typedef struct {
... |
/* sent.c - deal with data sent subsystem */
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
* Copyright 2001-2021 The OpenLDAP Foundation.
* Portions Copyright 2001-2003 <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
... |
/*
* CanInterface.cpp
*
* Created on: Mar 16, 2017
* Author: max
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <ctype.h>
#include <libgen.h>
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/soc... |
/*
* Copyright 2007, 2008, 2009 University Corporation for Atmospheric Research
*
* This file is part of the UDUNITS-2 package. See the file LICENSE
* in the top-level source-directory of the package for copying and
* redistribution conditions.
*/
/*
* This program prints definitions of units of physical qantit... |
#include "Mesh.h"
void initTetrahedra( Tetrahedra *_tetrahedra)
{
initMat( &_tetrahedra->B );
initMat( &_tetrahedra->K );
initMat( &_tetrahedra->D );
initMat( &_tetrahedra->dN );
setMatDim( &_tetrahedra->B, 12, 6 );
setMatDim( &_tetrahedra->K, 12, 12 );
setMatDim( &_tetrahedra->D, 6, 6 );
setMatDim(... |
/*-
* Copyright 2012 <NAME>
* All rights reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted providing that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and t... |
/******************************************************************************
@file mt_msg_dbg_core.c
@brief TIMAC 2.0 mt msg - debug decoder.
Group: WCS LPC
$Target Device: DEVICES $
******************************************************************************
$License: BSD3 2016 $
***********************... |
/**
*
* \section COPYRIGHT
*
* Copyright 2013-2015 Software Radio Systems Limited
*
* \section LICENSE
*
* This file is part of the srsLTE library.
*
* srsLTE is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Soft... |
#include <math.h> // fabsf
#include "defines.h"
#include "util.h"
float mapf( float x, float in_min, float in_max, float out_min, float out_max )
{
return ( ( x - in_min ) * ( out_max - out_min ) ) / ( in_max - in_min ) + out_min;
}
void limitf( float * input, const float limit )
{
if ( *input > limit ) {
*input... |
/*
* This config file is for iPod Nano 2nd Generation
*/
#define IPOD_ARCH 1
/* For Rolo and boot loader */
#define MODEL_NUMBER 62
#define MODEL_NAME "Apple iPod Nano 2g"
/* define this if you have recording possibility */
//#define HAVE_RECORDING
/* Define bitmask of input sources - recordable bitmask can be... |
/*
* Copyright (c) 2013-2014, ARM Limited and Contributors. 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
* l... |
/* GStreamer
*
* Copyright © 2018 <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, p... |
#define _GNU_SOURCE // for clone(); has to be before the #includes
#include <stdio.h>
#include <stdlib.h> // malloc()
#include <sched.h> // clone()
#include <errno.h> // errno
#include <unistd.h> // dup(), getpid(), STDIN_FILENO, STDOUT_FILENO, execl()
#include <fcntl.h> // open()
#include <signal.h> // SIGCHLD
#inclu... |
/*
* Copyright 2015 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
/******************************************************
Copyright (c) 2013 Percona LLC and/or its affiliates.
Streaming implementation for XtraBackup.
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;... |
#include <walpng.h>
void *bgbv86_ralloc(int sz)
{
static byte *buf=NULL;
static byte *bufe, *bufr;
void *p;
if(!buf)
{
buf=malloc(1<<18);
bufe=buf+(1<<18);
bufr=buf;
}
sz=(sz+15)&(~15);
if((bufr+sz)>bufe)bufr=buf;
p=bufr; bufr+=sz;
memset(p, 0, sz);
return(p);
}
char *bgbv86_rstrdup(char *str)
{
... |
// SPDX-License-Identifier: BSD-2-Clause
/*
Copyright 2005-2006 <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... |
/*
* $Id: wm_gesture.c 40390 2011-09-20 08:48:48Z campbellbarton $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 Lic... |
// Copyright 2020-2021 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
/*-
* Copyright (c) 2006 Verdens Gang AS
* Copyright (c) 2006-2011 Varnish Software AS
* 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... |
/*
* ecp_dese.c
*
* Rewritten by <NAME> <<EMAIL>>
* Written by <NAME> <<EMAIL>>
* Copyright (c) 1998-1999 Whistle Communications, Inc. All rights reserved.
* See ``COPYRIGHT.whistle''
*/
#include "ppp.h"
#include "ecp.h"
#include "log.h"
/*
* DEFINITIONS
*/
#define DES_OVERHEAD 2
/*
* INTERNAL FUNCTIO... |
/*
* Copyright (C) 2010-2012, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list o... |
/*
* QuadraComposer.c Copyright (C) 1999 Asle / ReDoX
* Modified by <NAME>
*
* Converts QC MODs back to PTK MODs
*/
#include "prowiz.h"
static int test_emod (const uint8 *, int);
static int depack_emod (FILE *, FILE *);
const struct pw_format pw_emod = {
"QuadraComposer",
test_emod,
depa... |
/**************************************************************************
*
* Copyright 2007 VMware, 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 Software wit... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* Uncomment this to exhaustively run memory checks while the game is running
(this is EXTREMEL... |
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
** **
** This file forms part of the Underworld geophysics modelling application. **
** ... |
/*
* Copyright (c) 2007 - 2015 <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, publi... |
#include <stdlib.h>
#include <errno.h>
#include <ifaddrs.h>
#include <fcntl.h>
#include <math.h>
#include <net/if.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include <ge... |
#include "wifi.h"
#include <string.h>
#include <esp_netif.h>
#include "sdkconfig.h"
#include "settings.h"
#include "bus.h"
static esp_netif_t *iface = NULL;
static void log_ip_info()
{
if (!iface) return;
esp_netif_ip_info_t ip_info;
esp_netif_get_ip_info(iface, &ip_info);
ESP_LOGI(TAG, "----------... |
// Copyright (c) 2016 Connectal Project
// 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, pub... |
#include "Timer.h"
#include "PostScriptOutput.h"
#include "Kinematics.h"
#include <assert.h>
#include <math.h>
#pragma warning(disable : 4996) /* This line disables warning 4996, which we are aware of and do intentionally.*/
#define NUM_RUNS 1000 // To get a better estimate of the running time should use ... |
/*
* Phoenix-RTOS
*
* Misc. utilities
*
* FAT filesystem implementation
*
* Copyright 2012 Phoenix Systems
* Author: <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <sys/types.h>
#includ... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
//*****************************************************************************
// +--+
// | ++----+
// +-++ |
// | |
// +-+--+ |
// | +--+--+
// +----+ Copyright (c) 2009 Code Red Technologies Ltd.
//
// lcd.c contains various routines to plot to the LCD display ... |
/*
* ----------------------------------------------------------------------------
* "THE BLASTY-WAREZ LICENSE" (Revision 1):
* <<EMAIL>> wrote this file. As long as you retain this notice and don't
* sell my work you can do whatever you want with this stuff. If we meet some
* day, and you think this stuff is worth... |
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include "openvswitch/vlog.h"
#include "cm_output.h"
#include "interval_rotator.h"
#include "../../CM_testbed_code/public_lib/time_library.h"
#include "../../CM_testbed_code/public_lib/debug_output.h"... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/* tm.c
Simple turing machine implementation in C.
Copyright (c) 2018, <NAME>
*/
#include <stdio.h>
#include <stdlib.h>
#define NUMSTATE 10
#define NUMACEPT 1
#define NUMGAMMA 3 // Gamma includes blank character.
#define NUMSIGMA 2
#define LEN_TAPE 100
struct turing_machine {
// Q: Set of States
ch... |
/*
Copyright (C) 2015-2019 Parallel Realities
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 t... |
#include "sys/msys.h"
#include "intro.h"
#include "font.h"
typedef struct
{
int texwidth, texheight;
int font_size;
int letter;
int numrows;
int numcolumns;
int numletters;
GLuint texture;
shader_id program;
GLuint font_vbo, vao;
float rcol, gcol, bcol, acol;
}font_t;
void init_font(font_t * fon)
{
float... |
/**
******************************************************************************
* @file core_hal.c
* @author <NAME>, <NAME>
* @version V1.0.0
* @date 12-Sept-2014
* @brief
******************************************************************************
Copyright (c) 2013-2015 Particle Industries, Inc. ... |
/**
* Copyright (C) 2011-2012 <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.1 of the License, or (at your option) any later version.
*
* This ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.