text stringlengths 5.8k 28.2k |
|---|
/*
* Memory arbiter functions. Allocates bandwidth through the
* arbiter and sets up arbiter breakpoints.
*
* The algorithm first assigns slots to the clients that has specified
* bandwidth (e.g. ethernet) and then the remaining slots are divided
* on all the active clients.
*
* Copyright (c) 2004-2007 Axis Com... |
/*
* @file dict.c
* @author <NAME>
* @date Apr 2011
* @brief Dictionary object
* @license MIT
* @date Tue Apr 5 14:11:10 CEST 2011
*
* dict: a stand-alone string/string associative array
*
* This single-file implements a stand-alone string/string associative array,
* similar to a Python di... |
/*
This module is based on the Lua MD5 module, written by <NAME>
and <NAME>.
Copyright (C) 2003 PUC-Rio. 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 without re... |
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <strings.h>
#include <inttypes.h>
#include <string.h>
#include "lmc.h"
/* Littleman computer args
* 000 HLT halt the program
* 1xx ADD [loc] add value at location to register value
* 2xx SUB [loc] subtract value at ... |
/*----------------------------------------------------------------------------*/
/* Xymon monitor network test tool. */
/* */
/* This is used to implement the testing of an LDAP service. ... |
/*
* Copyright (c) 1984-2008, 2011-2015 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief LoApicIntr.c - Intel Pentium[234] Local APIC/xAPIC driver
*
* This module is a driver for the local APIC/xAPIC (Advanced Programmable
* Interrupt Controller) in P6 (PentiumPro, II, ... |
/*
*
* Copyright (c) 2017 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This... |
// Includes
#include <stdio.h>
#include <string.h>
#include "defines.h"
#include "parsetree.h"
#include "compiler.h"
#include "strutil.h"
#include "functiontable.h"
#include "stringtable.h"
#include "optimizer.h"
// Global variables
FILE* fp;
extern function_table* fTable;
extern string_table* strTable;
// Defines
#d... |
/*
* Open a PNG and write a `mahalanobisified' version.
*
* Probably a hundred ways this could be simplified &| improved - you're
* welcome to hit me up with ideas, I'd like to see how fast we can make
* this!
*
* Author: <NAME> (01.03.17)
* Genius who suggested we try this ... |
/*
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdint.h>
#include <string.h>
#... |
/*
Bacula(R) - The Network Backup Solution
Copyright (C) 2000-2018 <NAME>
The original author of Bacula is <NAME>, with contributions
from many others, a complete list can be found in the file AUTHORS.
You may use this file and others of this release according to the
license defined in the LICENSE ... |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* darray.c - Double-array trie structure
* Created: 2006-08-13
* Author: <NAME> <<EMAIL>>
*/
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "trie-private.h"
#include "darray.h"
#include "fileutils.h"
/*--------... |
/**
\brief Eldorado-specific definition of the "radio" bsp module.
\author <NAME> <<EMAIL>>, February 2012.
*/
#include "stdint.h"
#include "string.h"
#include "radio.h"
#include "eldorado.h"
#include "spi.h"
#include "radiotimer.h"
#include <hidef.h>
//=========================== defines ===========================... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "picture.h"
#include "region.h"
#include "characters.h"
int fontSize;
void setFontSize(int new) {
if (new > 0) {
fontSize = new;
}
}
int getFontSize() {
return fontSize;
}
int formatSpaceX;
int formatSpaceY;
void se... |
/*
Copyright (C) Intel Corp. 2006. All Rights Reserved.
Intel funded Tungsten Graphics to
develop this 3D driver.
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, inclu... |
/* hashtest.c - Check the hash functions
* Copyright (C) 2013 g10 Code GmbH
*
* This file is part of Libgcrypt.
*
* Libgcrypt 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... |
/*
* Constant Quark Database (CQDB).
*
* Copyright (c) 2007, <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 copyri... |
#include "common.h"
#include "iolib.h"
#include "listlib.h"
#include "compiler.h"
#include <ctype.h>
// KRC lex analyser
// ----------------------------------------------------------------------
// The KRC system is Copyright(c) D.A.Turner 1981
// All rights reserved.It is distributed as free software under the
// t... |
/*
Name: <NAME>
Roll Number: 160053
*/
#include "mem_tracker.h"
#include "interface.h"
static int command;
static unsigned long tlb_misses, readwss, writewss, unused;
//My Global Variables
static unsigned long gptr, total_pgs;
#define WRITE_MASK 2
static pte_t *gpte;
extern int (*rsvd_fault_hook)(struct mm_struct ... |
#define MASTER 0
#define NONE 0
#define BEGIN 999
#define LTAG 777
#define RTAG 666
#define WRITE 555
#define ERROR 888
#define BREAK 111
//----------------------------------------------------------------------------//
#define var_coeff
// #define const_coeff
int numtasks, numworkers, taskid, rank, de... |
/* -*- c -*- --------------------------------------------------------------- *
*
* linux/fs/autofs/root.c
*
* Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
* Copyright 1999-2000 <NAME> <<EMAIL>>
*
* This file is part of the Linux kernel and is made available under
* the terms of the GNU Gen... |
/*
* Help with timers thanks to Dr. <NAME> @ Univ of Oklahoma
*/
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/atomic.h>
#include <time.h>
#include <util/usa_dst.h> //TODO rewrite
#include <util/delay.h>
#define TOP_TC0 99
#define TOP_TC2 155
#define TC1_DIFF 0x7
#define NIXIE_TUBE_COUNT 8
#define... |
/**
* \file
*
* \brief Low-level initialization functions called upon chip startup.
*
* Copyright (c) 2018 Microchip Technology Inc.
*
* \asf_license_start
*
* \page License
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this f... |
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include <openenclave/bits/defs.h>
#include <openenclave/edger8r/host.h>
#include <openenclave/internal/calls.h>
#include <openenclave/internal/defs.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/safemath.h>
... |
/******************************************************************************
* $Id$
*
* Project: MapServer
* Purpose: Date/Time utility functions.
* Author: <NAME> and the MapServer team.
*
******************************************************************************
* Copyright (c) 1996-2005 Regents of... |
//-----------------------------------------------------------------------------
// C file:
// BMPmini.c
//
// Implementation for BMPmini library
//-----------------------------------------------------------------------------
#include "BMPminidef.h"
#include <string.h>
#include <assert.h>
//----------------------... |
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "../util/util.h"
#include "../util/where.h"
#include "../util/limits.h"
#include "../util/math.h"
#include "../util/macros.h"
#include "cc1.h"
#include "fold.h"
#include "sue.h"
#include "const.h"
#include "fop... |
/*-
* Copyright (c) 1998 <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 a... |
/*
* Machine Logic
*
* The MIT License (MIT)
*
* Copyright (c) 2013, TAG Universal Machine.
*
* 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... |
#include <stdio.h>
#include <gapi.h>
#include <string.h>
#include <sys/time.h>
#include <mui_renderer.h>
static char logbuf[64000];
static int logbuf_updated = 0;
static float bg[3] = {90, 95, 100};
static void write_log(const char *text)
{
if (logbuf[0])
{
strcat(logbuf, "\n");
}
strcat(logbuf, text);
logbuf_... |
/*
* 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) 2003-2006 <NAME> <<EMAIL>>
* Copyright (C) 2012 <NAME>, Katalix Systems Ltd <<EMAIL>>
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General P... |
/*------------------------------------------------------/
/ Copyright (c) 2020, Elehobica
/ Released under the BSD-2-Clause
/ refer to https://opensource.org/licenses/BSD-2-Clause
/------------------------------------------------------*/
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "ff.h"
#incl... |
/*
* MIT/X Consortium License
*
* © 2013 <NAME>
* © 2009 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to us... |
/* exhaust.c: crippled pmars-like redcode simulator
* $Id: exhaust.c,v 1.5 2003/07/13 09:22:32 martinus Exp $
*/
/* This file is part of `exhaust', a memory array redcode simulator.
* Copyright (C) 2002 M <NAME>
*
* This file falls under the GNU Public License, version 2. See the
* file COPYING for det... |
#include <stdio.h>
#include <stdlib.h>
int foo() { return 0; }
int echo(int x) { return x; }
void bar(int a, int b, int c, int d, int e, int f) {
printf("%d\n", a + b + c + d + e + f);
}
void print(char c) { printf("%c\n", c); }
int **alloc4(int **p, int a, int b, int c, int d) {
int *t;
t = calloc(1, 4 * si... |
/*-
* Copyright (c) 1980, 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the abov... |
#include "tty-mania.h"
#include "config.h"
int kbhit(void) {
int ch = getch();
if (ch != ERR) {
ungetch(ch);
return 1;
} else {
return 0;
}
}
long long getCurTime(void){
struct timeval tv;
gettimeofday(&tv, NULL);
return (((long long)tv.tv_sec)*1000)+(tv.tv_usec/10... |
/**
* @file modules/iso9660.c
* @brief ISO9660 "High Sierra" CD file system driver.
* @package x86_64
* @package aarch64
*
* @copyright
* This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* Copyright (C) 2016-2021 <NAME>
*/
#include <k... |
/*
* Copyright (c) 2014, Texas Instruments Incorporated
* 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... |
//
// Created by postolka on 10.02.20.
//
#include <stdio.h>
#include <stdbool.h>
#include <rte_log.h>
#include <rte_ethdev.h>
#include <rte_mbuf.h>
#include <rte_cycles.h>
#include <rte_launch.h>
#include "common.h"
#include "dpdk.h"
#include "wyrand.h"
#include "conn.h"
#define RTE_RX_DESC_DEFAULT 1024
#define RT... |
/**********************************************************************/
/* File : linedraw.c
* Description: Testbed for line drawing algorithms:
* - Direct scan conversion [O]
* - Bresenham [Q]
* - Midpoint [O]
* - DDA (Direct Differential Anal... |
#include "type.h"
/* Here are the statically initialized structs for the predefined datatypes.
*/
//C type structs
Typestruct TSchar = {.count=1, .lb=0, .ub=sizeof(char),
.committed=1, .o_lb=0, .o_ub=0, .pairs[0] =
{.disp = 0, .type = (Simpletype) SIMPLE_CHAR }};
Type... |
// SPDX-License-Identifier: MIT
// Copyright (c) 2018-2020 The Pybricks Authors
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <contiki.h>
#include <pbio/math.h>
#include <pbio/trajectory.h>
static int64_t as_mcount(int32_t count, int32_t count_ext) {
return ((int64_t)count) * 1000 + coun... |
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2014 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software w... |
// Memory Test
// Copyright 2021, <NAME>
//
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT License was not distributed with this file,
// You can obtain one at https://spdx.org/licenses/MIT.html.
static bool test_specific_printf(const char *function, char *buffer, const ch... |
/********************************************
print.c
copyright 2008-2012,2016. <NAME>
copyright 1991-1996,2014. <NAME>
This is a source file for mawk, an implementation of
the AWK programming language.
Mawk is distributed without warranty under the terms of
the GNU General Public License, version 2, 1991.
********... |
/* -*- C -*- */
/*
* Copyright (c) 2017-2020 Seagate Technology LLC and/or its Affiliates
*
* 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... |
/* See COPYRIGHT for copyright information. */
/*
KEY WORDS
==========
MACROS: STATIC_KERNEL_PHYSICAL_ADDRESS, STATIC_KERNEL_VIRTUAL_ADDRESS, PDX, PTX, CONSTRUCT_ENTRY, EXTRACT_ADDRESS, ROUNDUP, ROUNDDOWN, LIST_INIT, LIST_INSERT_HEAD, LIST_FIRST, LIST_REMOVE
CONSTANTS: PAGE_SIZE, PERM_PRESENT, PERM_WRITEABLE, PERM_USE... |
/*
* Copyright (c) 2017, <NAME>
* Copyright (c) 2016, <NAME>
* Copyright (c) 2014, <NAME>
* Copyright (c) 2011, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* *... |
/*
* SJA: x86_64 assembler.
*
* Copyright (c) 2015 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS... |
//------------------------------------------------------------------------------
// LAGraph_dfs_topsort: DFS-based topological sort
//------------------------------------------------------------------------------
/*
LAGraph: graph algorithms based on GraphBLAS
Copyright 2019 LAGraph Contributors.
(see C... |
/*!
* @file Adafruit_SSD1306.cpp
*
* @mainpage Arduino library for monochrome OLEDs based on SSD1306 drivers.
*
* @section intro_sec Introduction
*
* This is documentation for Adafruit's SSD1306 library for monochrome
* OLED displays: http://www.adafruit.com/category/63_98
*
* These displays use I2C or SPI to... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define false 0
#define true 1
#define is_valid_leaf 0
//Write a C program that returns the following information about your CPU, using the CPUID assembly instruction:
static void cpuid(unsigned int *eax, unsigned int *ebx,
unsigned int *ec... |
/*
* Copyright 2020 <NAME> for HAW Hamburg
*
* This file is subject to the terms and conditions of the MIT License. See the
* file LICENSE in the top level directory for more details.
* SPDX-License-Identifier: MIT
*/
/**
******************************************************************************
* @addt... |
/************************************
This is a simple c based cgi program
to read, interpret and send VentMon
data.
Geoff
Written by <NAME> @2020
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... |
/**
* Copyright 2021 <NAME> (richard at theretiredprogrammer.uk).
*
* 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 requi... |
#include "mex.h"
#include <omp.h>
#include <math.h>
void splitMatrices(mwIndex startRow, mwIndex endRow,
mwIndex* R_A0 , mwIndex *starts_A0, double *V_A0 ,
mwIndex *R_Aomega , mwIndex *starts_Aomega, double *V_Aomega);
void Sparsify(mwIndex startRow, mwIndex endRow, mwIndex naux,
... |
#include "simulation.h"
#include "user.h"
SimulationInput get_sim_input() {
FILE *fp;
SimulationInput sim_input;
char key[BUFFER_SIZE];
float value;
int i;
/* Opens the input file in read mode (r) */
fp = fopen("input/simulation_input.txt", "r");
if (fp == NULL) {
printf("... |
#include <curses.h>
#include <locale.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "os_compat.h"
#ifdef THIS_IS_WINDOWS
#include <windows.h>
#include <winsock.h>
#else
#include <asm/ioctls.h>
#endif
#include "log.h"
#include "render.h"
#include "terminal_size.h"
#include "t... |
/*
* Copyright (C) 2013 - <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, pub... |
/*
Copyright (c) 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:
Redistributions of source code must retain the above copyright notice, this list
of conditions and the following disclaimer... |
/* Copyright (c) 2000-2003, 2005-2007 MySQL AB, 2009 Sun Microsystems, Inc.
Copyright (c) 2009-2011, Monty Program Ab
Use is subject to license terms.
Copyright (c) 2009-2011, Monty Program Ab
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Publ... |
/******************************************************************************
*
* Copyright (C) 2021 TUD - Telekom Chair for Communication Networks
*
* 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 ... |
/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "bfmatt.h"
#include "../mem.h"
#include "../archive.h"
#include "../stage.h"
#include "../random.h"
#inc... |
/*
* 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 ... |
/* Copyright (C) 2021 <NAME>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial app... |
/*
* Copyright (C) 2015 <NAME>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distr... |
#include "includes.h"
/* Add an extent to an extent list tracking emap */
static void
lc_addEmapExtent(struct gfs *gfs, struct fs *fs, struct extent **extents,
uint64_t page, uint64_t block, uint64_t count) {
uint64_t ecount;
/* Break up the extent if it is too big to fit */
while (count)... |
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (C) 2020 <NAME> <<EMAIL>>
*
* SPI-NAND driver with bad block skipping mechanism
*/
#include <types.h>
#include <errno.h>
#include <bitops.h>
#include <stddef.h>
#include <stdbool.h>
#include <malloc.h>
#include <string.h>
#include <genfuncs.h>
#include <timer... |
#pragma once
#include "utils.h"
#include "hash.h"
#include "state.h"
#include "wzccrypt.h"
// internal control flags - they mix with INTFCTL_* public flags, so
// the values need to be in the highest 2 bytes of the dword
//
// the public mask can contain as many as 16 bits (0xffff). Currently it masks
// - w... |
//Day14a.c
//
//The fourteenth challenge is to generate key values using MD5 hashes, similar
//to what we did on Day 5. This time, we're looking for hashes that have three
//of the same number in a row. Such a hash is a key only if one of the next 1000
//hashes has the same number five times in a row. Only the first tr... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "dataEuclidean.h"
#include "../dataStruct/data.h"
#include "../dataStruct/hashTable.h"
#include "../dataStruct/list.h"
#include "random.h"
extern dataIF data;
//typedef unsigned long long int bitStr;
typedef struct _item {
int i... |
/*
* 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.
*/
/* lc_hdl.c */
#include <stdio.h>
#include "lc.h"
#include "ACode32.h"
ex... |
/*-
* Copyright (c) 2012 NetApp, 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
/*
Copyright (C) 1997-2001 Id Software, Inc.
Copyright (C) 2000-2002 <NAME> and <NAME>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any ... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <allegro5/allegro5.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_primitives.h>
#include "display_settings.h"
#include "KN_settings.h"
#include "include/kohoen_netwo... |
#include "include.h"
static struct view view;
static char year[8];
static char month[8];
static char day[8];
static void date_ondata(unsigned int id, void *data, unsigned int count)
{
if (count >= 10)
{
char *s = data;
memcpy(year, s, 4);
memcpy(month, s + 5, 2);
memcpy(day,... |
/*
* 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... |
// #include <libstatic/libstatic.h>
#include <errno.h>
// extern long errno;
#define NULL 0
int linux_write(int fd, const void *data, unsigned long len);
int linux_read(int fd, char *buffer, unsigned long bufferlen);
int linux_open(const char *pathname, unsigned long flags, unsigned long mode);
int linux_close(int f... |
/**
******************************************************************************
* @addtogroup OpenPilotModules OpenPilot Modules
* @{
* @addtogroup StabilizationModule Stabilization Module
* @brief Stabilization PID loops in an airframe type independent manner
* @note This object updates the @ref ActuatorDesir... |
/* i2c - Example
For other examples please check:
https://github.com/espressif/esp-idf/tree/master/examples
See README.md file to get detailed usage of this example.
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing,... |
/*
* Sun3 SCSI stuff by <NAME> (<EMAIL>)
*
* Sun3 DMA routines added by <NAME> (<EMAIL>)
*
* Adapted from mac_scsinew.c:
*/
/*
* Generic Macintosh NCR5380 driver
*
* Copyright 1998, <NAME> <<EMAIL>>
*
* derived in part from:
*/
/*
* Generic Generic NCR5380 driver
*
* Copyright 1995, <NAME>
*
* ALPHA RE... |
/* Copyright (c) 2018, Linaro Limited
* Copyright (c) 2021, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <inttypes.h>
#include <stdlib.h>
#include <getopt.h>
#include <odp_api.h>
#include <odp/helper/odph_api.h>
... |
/*
* Copyright (c) 2004-2010 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Resea... |
/*
* sm5720-irq.c
* Samsung Interrupt controller support for SM5720
*
* Copyright (C) 2016 Samsung Electronics
*
*
* 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.
*/
#inc... |
#include "editor_func.h"
// Function to insert character at position
// NOTE: line_size should be modified by caller of this function it is not modified in this fun
void insert_at_pos(line *subline, int position, char data) {
// move the cursor at appropriate position
line *lne = move_cursor(subline, position);
//... |
// SPDX-License-Identifier: MIT
// Copyright (c) 2019-2020 The Pybricks Authors
#include <string.h>
#include <pbdrv/gpio.h>
#include <pbio/button.h>
#include <pbio/uartdev.h>
#include "../../drv/button/button_gpio.h"
#include "../../drv/bluetooth/bluetooth_stm32_cc2640.h"
#include "../../drv/ioport/ioport_lpf2.h"
#i... |
/*
* Copyright (C) 2012 Altera Corporation <www.altera.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/io.h>
#include <errno.h>
#include <fdtdec.h>
#include <libfdt.h>
#include <altera.h>
#include <miiphy.h>
#include <netdev.h>
#include <watchdog.h>
#include <asm/arch/reset_manager... |
#include "mupdf/pdf.h"
#ifdef NOCJK
#define CJK_CMAPS 0
#endif
#ifndef CJK_CMAPS
#define CJK_CMAPS 1
#endif
#ifndef EXTRA_CMAPS
#define EXTRA_CMAPS 0
#endif
#ifndef UTF8_CMAPS
#define UTF8_CMAPS 0
#endif
#ifndef UTF32_CMAPS
#define UTF32_CMAPS 0
#endif
#if CJK_CMAPS
#include "gen_cmap_gb.h"
#include "gen_cmap_cns.... |
/* SQUID - A C function library for biological sequence analysis
* Copyright (C) 1992-1996 <NAME>
*
* This source code is distributed under terms of the
* GNU General Public License. See the files COPYING
* and GNULICENSE for further details.
*
*/
/* interleaved.c
* I/O of interleaved format multip... |
/**
* (C) Copyright 2016-2019 Intel 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 applicable l... |
#include "motorControl.h"
#include "pwm.h"
#include "initIO.h"
#include "spiFunctions.h"
#include "can.h"
#include "DEEEmulation.h"
#include "timers.h"
#include "qei.h"
#include "adc.h"
#include "dma.h"
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <uart.h>
#define MOTOR_TEST_RA... |
#include "lib9.h"
#include "isa.h"
#include "interp.h"
/* s800 disassembler. */
/* does not handle stuff that won't be generated */
typedef struct instr Instr;
struct instr
{
ulong value; /* bits 31-00 */
uchar op; /* bits 31-26 */
uchar subop; /* bits 11-05 */
uchar sysop; /* bits 12-05 */
uchar reg0; /* ... |
/* Copyright © Triad National Security, LLC, and others. */
/* Note: This program does not bother to free memory allocations, since they
are modest and the program is short-lived. */
#define _GNU_SOURCE
#include <argp.h>
#include <fnmatch.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "co... |
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<sys/wait.h>
#include<fcntl.h>
#include<string.h>
#include<math.h>
#include<signal.h>
#include<time.h>
#include<poll.h>
#include"functions.h"
#include"fifo_fcts.h"
#include"PCOptions.h"
#include"child.h"
#include... |
/*
* linux/include/asm-arm/arch-pxa/irqs.h
*
* Author: <NAME>
* Created: Jun 15, 2001
* Copyright: MontaVista Software Inc.
*
* 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 Foundatio... |
/*
* Copyright (c) 2014-present MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include "wt_internal.h"
/*
* Compute the time in nanoseconds that must be reserved to represent a number of bytes in a
* subsystem with a... |
#include <stdlib.h>
#include <math.h>
#include "gameboard.h"
#include "gameboardElement.h"
#include "gameboardElementList.h"
#include "gameboardBSplinePrint.h"
#include "../../common/ascii/asciiUtils.h"
#include "../../common/color/color.h"
#include "../../common/error/error.h"
#include "../../common... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.