text stringlengths 3.08k 10.5k |
|---|
/*
* Copyright 2008 Freescale Semiconductor, 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 Foundation.
*/
#include <common.h>
#include <asm/fsl_law.h>
#include "ddr.h"
unsigned i... |
/*
* Copyright (c) 1996, <NAME> <<EMAIL>>
* Copyright (c) 2008, <NAME> <<EMAIL>>
* Copyright (c) 2013, <NAME> <<EMAIL>>
* Copyright (c) 2015 Joyent, Inc.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright... |
#include <assert.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "ex19.h"
int Monster_attack(void *self, int damage) {
assert(self != NULL);
// Cast the pointer self to type (Monster *).
Monster *monster = self;
// printf("You attach %s!\n", monster... |
/**
* @setting.c
*
*/
/*********************
* INCLUDES
*********************/
#include "./lvgl/lvgl.h"
#include <stdlib.h>
#include <stdio.h>
#include "setting.h"
#include "dataset.h"
#include "custom_widget.h"
#include "gencode.h"
#include "loadproj.h"
#include "saveproj.h"
#if LV_EX_KEYBOARD || LV_EX_MOU... |
/*
Copyright (c) 2009-2011, <NAME> <<EMAIL>>
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" AND THE AU... |
/*
* Vortex OpenSplice
*
* This software and documentation are Copyright 2006 to TO_YEAR ADLINK
* Technology Limited, its affiliated companies and licensors. All rights
* reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e... |
/*
* Copyright (c) 2008 <NAME> (snavely (at) cs.washington.edu)
* and the University of Washington
*
* 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 Licens... |
/*
* Example application using RADIUS client as a library
* Copyright (c) 2007, <NAME> <<EMAIL>>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>
#include <linux/types.h>
#include <linux/posix_... |
/*
* Copyright (C) 2015, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <errno.h>
#include <fdtdec.h>
#include <asm/mtrr.h>
#include <asm/post.h>
#include <asm/arch/mrc.h>
#include <asm/arch/msg_port.h>
#include <asm/arch/quark.h>
DECLARE_GLOBAL_DATA_PTR;
static int mrc_co... |
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <uv.h>
#include "nvim/os/channel_defs.h"
#include "nvim/os/channel.h"
#include "nvim/os/server.h"
#include "nvim/os/os.h"
#include "nvim/vim.h"
#include "nvim/memory.h"
#include "nvim/message.h"
#include "nvim/fileio.h"
#include... |
#include "errcodes.h"
#include "ptrmacro.h"
#include "memory.h"
#include "cmap.h"
#include "libdummy.h"
#include "rastlib.h"
#define VDEV_INTERNALS
#include "vdevice.h"
/* mcga driver name */
char pj_mcga_name[] = "=MCGA.DRV"; /* leading comma, a non-DOS name! */
/******* Device Level Functions *******... |
/*-
* Copyright (c) 2009 <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... |
/*
* Copyright (c) 2007 <NAME>
* Copyright (c) 2010 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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 (a... |
/*
* 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 ma... |
/***********************************************************************************************************************
* This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
* will be overwritten if the respective MCUXpresso Config Tools is used to update this file.
**********... |
#include "aftypes.h"
/*
* a python script used to generate the following table
*
import sys, math
units = 256
scale = units/math.pi
comma = ""
print ""
print "table of arctan( 1/2^n ) for PI = " + repr(units/65536.0) + " units"
r = [-1] + range(32)
for n in r:
if n >= 0:
x = 1.0/(2.0**n) # ta... |
// A utility similar to "time" that reports elapsed time for a given subcommand.
// Reports in microseconds, as opposed to milliseconds (or hundredths of a second).
// Does not do path resolution, however.
#include <sys/resource.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <sys/fcntl.h>
#include <stdio.h>
#... |
/* This file is part of the YAZ toolkit.
* Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* \file marc_read_json.c
* \brief Implements reading of MARC in JSON format
*/
#if HAVE_CONFIG_H
#include <config.h>
#endif
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <yaz/ma... |
/*
* Parse command line, get partition information
*
* Written by <NAME> <<EMAIL>>
*
*/
#include <linux/export.h>
#include <linux/cmdline-parser.h>
static int parse_subpart(struct cmdline_subpart **subpart, char *partdef)
{
int ret = 0;
struct cmdline_subpart *new_subpart;
*subpart = NULL;
new_subpart = kza... |
/*
* OV7692.c
*
* Created on: Dec 10, 2021
* Author: saffaria
*/
#include "OV7692.h"
#include "stm32h7xx_hal.h"
/*
* HM.c
*
* Created on: Jul 6, 2020
* Author: saffaria
*/
#define CAM_ADR (0x3C<<1)
#define TIMEOUT 1
void i2c_write(I2C_HandleTypeDef* hi2c, uint8_t addr, ... |
/*
* Image format
* Copyright (c) 2000, 2001, 2002 <NAME>
* Copyright (c) 2004 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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
* versi... |
/*
* Copyright (c) 2021 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 applica... |
/**************************************************************************
* Piotr's Image&Video Toolbox Version 2.53
* Copyright 2010 <NAME>. [pdollar-at-caltech.edu]
* Please email me if you find bugs, or have suggestions or questions!
* Licensed under the Lesser GPL [see external/lgpl.txt]
*********... |
#include "symbol.h"
#include "mapgen.h"
#include "utils.h"
#include "player.h"
#include "guiutils.h"
#include "utils.h"
#define MONSTER_RANDOM_INTERVAL 2
#define MONSTER_ROOMIE_INTERVAL 3
#define MONSTER_STALK_INTERVAL 0
#define MONSTER_STALK_RADIUS 90
#define MONSTER_COUNT 9
struct object *head_monster;
char effe... |
// <#file>
#include <gst/gst.h>
//#include <stdio.h>
//#include <string.h>
// ----------------------------------------------------------------------------
static char *video_uri = "https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm";
// ------------------------------------------... |
/*
* $Id: HttpStatusLine.c,v 1.18.2.1 2000/02/09 23:29:52 wessels Exp $
*
* DEBUG: section 57 HTTP Status-line
* AUTHOR: <NAME>
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individ... |
/**************************************************************
* Modul: AKT - dependent language txt/bez AKTdeptext.c
* get action language-dependend texts
* if ok anzzus > 0 else -1
*
* Copyright: yafra.org, Basel, Switzerland
**********************************************************... |
#include "untrusted_app.h"
#include <stdio.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <linux/gpio.h>
#include <string.h>
volatile cmd_channel *c;
volatile bmp_mem *bmp;
//////////////////////// UTILITY FUNCTIONS ///////////////... |
/*
* Example code to test crc and speed
*/
/////////////////////////////////Lib
#include "espressif/esp_common.h"
#include "esp/uart.h"
#include "FreeRTOS.h"
#include "task.h"
#include "esp8266.h"
#include <esp/hwrand.h>
//crc lib
#include "crc_generic.h"
#define NUMBER_COMPUTE_TEST 1000
unsigned char check_data[]... |
/*
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")... |
/* test.c */
#include "test.h"
#include "mongo.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#ifndef SEED_START_PORT
#define SEED_START_PORT 30000
#endif
#ifndef REPLICA_SET_NAME
#define REPLICA_SET_NAME "replica-set-foo"
#endif
int test_connect_deprecated( const char *set_name )... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include "mpi.h"
#define ROOT 0
#define ALIVE 'X'
#define DEAD '.'
int toindex(int row, int col, int N)
{
if (row < 0) {
row = row + N;
} else if (row >= N) {
row = row - N;
}
if (col < 0) {... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2013 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are subject... |
/*
* Copyright © 2002 <NAME>
*
* 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... |
#include <uwsgi.h>
#include <curl/curl.h>
extern struct uwsgi_server uwsgi;
struct pushover_config {
char *token;
char *user;
char *message;
char *device;
char *title;
char *url;
char *url_title;
char *priority;
char *timestamp;
char *sound;
char *pushover_url;
char *ssl_no_verify;
char *timeout;
};
s... |
/* ------------------------------------------------------------
Student: <NAME> - hickmanjv
StudentID: 10236503
Assignment: Lab 6
Program to demonstrate recursion principles using the
Towers of Hanoi as a template to move a linked list
between 3 different stacks
-------------------------------------------... |
/*
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 writing... |
/* Copyright (C) 2012-2017 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C 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 ... |
/******************************************************************************
* @file main.c
* @version V3.00
* $Revision: 3 $
* $Date: 16/10/17 2:06p $
* @brief Show how to read/program embedded flash by ISP function.
* @note
* Copyright (C) 2016 Nuvoton Technology Corp. All rights reserved.
********... |
#include <string.h>
#include "resources/ids.h"
#include "game/utils/settings.h"
#include "utils/log.h"
const char* get_resource_file(unsigned int id) {
switch(id) {
case BK_INTRO: return "INTRO.BK";
case BK_OPENOMF: return "openomf.bk";
case BK_MENU: return "MAIN.BK";
... |
/** @file
Copyright 2006 - 2016 Unified EFI, Inc.<BR>
Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full tex... |
#include <math.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <spdr/spdr.h>
#include "../src/allocator_type.h"
#include "../src/clock.h"
#ifndef TRACING_ENABLED
#define TRACING_ENABLED 0
#endif
static struct SPDR_Context *gbl_spdr;
static void *std_allocator_alloc(struct SPDR_Allocator *se... |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#include "config.h"
#include <assert.h>
#include <errno.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "diagonal.h"
#include "diago... |
/*
* Copyright (c) 2021, Renesas Electronics Corporation. All rights reserved.
*/
#include <stdint.h>
#include <stddef.h>
#include <lib/mmio.h>
#include <drivers/console.h>
#include "rcar_def.h"
#include "scif.h"
/* RST */
#define RST_BASE (UL(0xE6160000) + (RCAR_DOMAIN * UL(0x4000)))
#define RST_MODEMR0 RST_BASE... |
/* This file contains a few general purpose utility routines.
*
* The entry points into this file are
* clock_timespec: ask the clock task for the real time
* copy_path: copy a path name from a path request from userland
* fetch_name: go get a path name from user space
* panic: something awful ha... |
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "util.h"
#include "include/sumhash512.h"
#include "matrix.h"
#include "algorand_matrix.h"
#define Q_t uint64_t
typedef Q_t matrix[SUMHASH512_N_ROWS][SUMHASH512_M_BITS];
static void hash_bytes(const matrix A, const uint8_t *msg, Q_t *result) {
... |
#include "struct.h"
#include "trie.h"
#include "list.h"
struct key_data
{
char* key;
void* data;
};
static int
get_structs (ctf_file file, struct trie** root, struct list** head)
{
ctf_type type = NULL;
ctf_kind kind;
ctf_struct_union su;
int rv;
char* su_name;
*root = trie_create();
while (1)
{
rv = c... |
/*
MIT License
Copyright (c) 2022 <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, distrib... |
/*
* linux/fs/hfsplus/bfind.c
*
* Copyright (C) 2001
* <NAME> (<EMAIL>)
* (C) 2003 Ardis Technologies <<EMAIL>>
*
* Search routines for btrees
*/
#include <linux/slab.h>
#include "hfsplus_fs.h"
/* Find the record in bnode that best matches key (not greater than...)*/
void hfsplus_find_rec(hfsplus_bnode *bnod... |
/****************************************************************
Copyright (C) 2015 <NAME>. All rights reserved.
> File Name: < key.c >
> Author: < <NAME> >
> Mail: < <EMAIL> >
> Created Time: < 2015/08/12 >
> Last Changed:
> Descrip... |
/* Copyright 2020 <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 later version.
*
* This program is distributed in the... |
/*
* HMAC-SHA-224/256/384/512 implementation
* Last update: 06/15/2005
* Issue date: 06/15/2005
*
* Copyright (C) 2005 <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:... |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include <string.h>
#include "../Stack/main.c"
#include "Stack_cpu.h"
#define $(type, param) type##_ok(param)
#define CPU_ERR(cpu_p, msg) \
{\
printf(msg);\
Stack_cpu_dump(cpu_p); \
assert(NULL); \
}
#define Validate_CPU(cpu_p... |
/*
* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following d... |
/*
* File: multiplex1_pthreads.c
* Author: <NAME>
* <EMAIL>
* Mods: <NAME>
* <EMAIL>
*/
/* This file really bangs on the multiplex pthread functionality */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "papi.h"
#include "papi_test.h"
#include "do_l... |
/*
* 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... |
/**
* MIT License
* Copyright (c) 2022 PoireDB authors and contributors
*
* 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
*... |
/*
* Copyright 2007 <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 library is distri... |
#include "Tools.h"
/***********************************************/
/* Fonction pour MiniScroll */
/***********************************************/
void
InitMiniScroll (struct XObj *xobj)
{
unsigned long mask;
XSetWindowAttributes Attr;
int i;
/* Enregistrement des couleurs et de la po... |
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "code.h"
/*
* LZW encoder/decoder
*/
struct {
char *prog;
int verbose;
int mode;
char *codefi... |
#include "module.h"
#include "module-http.h"
#include "module-ssh.h"
#include "module-geoip.h"
#include "module-rdns.h"
#include "module-tls.h"
#include "module-smtp.h"
#include "module-default.h"
#include "database.h"
const char *worker_status_color[] = {
"",
"\x1b[41m",
"\x1b[42m",
"\x1b[43m",
"\x1b[44m",
"\x... |
/* SCTP kernel Implementation
* (C) Copyright IBM Corp. 2001, 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... |
/**
* @copyright
* Copyright (C) 2020 Assured Information Security, Inc.
*
* @copyright
* 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 limitatio... |
#include <ctype.h>
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <chmath.h>
#include <csv.h>
#include <table.h>
enum { N = 999 };
static const char me[] = "gyration";
#include "util.h"
#define GET(f, r) \
... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include "cleanup.h"
#include "error.h"
#include "hash.h"
#include "port.h"
#include "multiswitch.h"
#define IS_BROADCAST(mac) ((mac[0] & 1) == 1)
extern int hub_flag;
/* head of the port list */
static struct port * phead = NULL;
/* prototypes */
st... |
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <getopt.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <pthread.h>
#include <connectionHandler.h>
#include <dbHandler.h>
#include <webserver.h>
#include <ArgumentStruct.h>
#include <read_file.h>
#include <string.h>
int dbStrarted = 0;
int ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
#include "svmapi.h"
#include "pyobjs.h"
#include "structmember.h"
#include "default.h"
PyObject *svmapi_usermodule;
PyObject *svmapi_thismodule;
PyObject* py_user_module(PyObject*self, PyObject *args) {
Py_INCREF(svmapi_usermodule);
return svmapi_usermodule;
}
static PyMethodDef svmapi_EmbMethods[] = {
// THE ... |
//*****************************************************************************
// talloc
//
// File: pool.h
// Author: <NAME>
// Date: 19/05/2017
//
// Copyright 2017 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (th... |
#include <stdint.h>
#include <assert.h>
#include <rte_byteorder.h>
#include "libvig/verified/expirator.h"
#include "libvig/unverified/expirator.h"
#include "nf.h"
#include "nf-log.h"
#include "nf-util.h"
#include "psd_config.h"
#include "psd_state.h"
struct nf_config config;
struct State *state;
bool nf_init(void... |
#include "includes.h"
#include "Keyboard.h"
#include <stdlib.h>
#include <stdio.h>
//This funtion opens the event file for a keyboard struct
//The path to the file is stored in the devPath member of the struct
//The open function opens this file in read only mode and returns a file descriptor
//The file descriptor is ... |
/*
** Copyright 2003-2010, VisualOn, 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
**
** Unless required by a... |
/*
* Copyright (c) 2019-2020, <NAME>
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include "zephyr/types.h"
#include "tools/util.h"
#include "adapter.h"
#include "config.h"
#include "system/fs.h"
struct config config;
static uint32_t config_version_magic[] =... |
#include "all.h"
#include "dk.h"
/*
* poll process
*/
void
calldk(Alarm *a, Dk *dk)
{
cancel(a);
wakeup(&dk->dkto);
}
void
dktimer(void)
{
long t, toy;
Chan *up;
Dk *dk;
dk = getarg();
print("dk local %d\n", dk-dkctlr);
cccinit(dk);
toy = 0;
memset(dk->timeout, 0, sizeof(dk->timeout));
t = toytime();
... |
/*
* pg_kafka - PostgreSQL extension to produce messages to Apache Kafka
*
* 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 without restriction, including ... |
/*
* Copyright (C) 2010 <NAME> <<EMAIL>>.
*
* Xenomai 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.
*
* Xenomai is distribute... |
/*
* Copyright 2016-2019 <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 ... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <mpi.h>
void print_vec(int* vec, int l, int myRank) {
for (int i = 0; i < l; i++) {
printf("(%d,%d)", myRank, vec[i]);
fflush(stdout);
}
printf("\n");
}
int cmp(const int* a, const int* b) {
return *a - * b; // Be careful on... |
/**************************************************************************//**
* @file main.c
* @version V3.00
* @brief Show how to reload the WWDT counter value.
*
* @copyright (C) 2016 Nuvoton Technology Corp. All rights reserved.
************************************************************************... |
// <NAME>
// curl test
// attribution: https://curl.haxx.se/libcurl/c/getinmemory.html
// attribution: https://stackoverflow.com/questions/2329571/c-libcurl-get-output-into-a-string USER <NAME>
// attribution: https://stackoverflow.com/questions/3673226/how-to-print-time-in-format-2009-08-10-181754-811 USER paxdiablo
... |
/**
* @file rtmp/amf_dec.c Real Time Messaging Protocol (RTMP) -- AMF Decoding
*
* Copyright (C) 2010 Creytiv.com
*/
#include <string.h>
#include <re_types.h>
#include <re_fmt.h>
#include <re_mem.h>
#include <re_mbuf.h>
#include <re_net.h>
#include <re_sa.h>
#include <re_list.h>
#include <re_sys.h>
#include <re_od... |
/*
* Copyright (C) 2011 <NAME> <<EMAIL>>
*
* This file may be redistributed under the terms of the
* GNU Lesser General Public License.
*/
/*
* DOCS: - "lo@" prefix for fstype is unsupported
* - encyption= mount option for loop device is unssuported
*/
#include <blkid.h>
#include "mountP.h"
#include "loopde... |
#include "gmp.h"
#include "elliptic/Divisor.h"
// References
// * [RFC-5091] <NAME>, <NAME>. 2007. RFC 5091. Identity-Based Cryptography Standard (IBCS) #1: Supersingular Curve Implementations of the BF and BB1 Cryptosystems
Complex divisor_evaluateVertical(const EllipticCurve ec, const AffinePoint a, const Compl... |
/*
* drivers/staging/omapdrm/omap_encoder.c
*
* Copyright (C) 2011 Texas Instruments
* 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 pro... |
/**
* \file liste.c
* \brief Listes doublement chaînées de monomes
*/
#include "liste.h"
#include <stdlib.h>
#include <string.h>
#include <sysexits.h>
#include <unistd.h>
/**
* \brief Liste
*/
struct liste {
/** \brief Feves. */
unsigned int graines;
/** \brief Élément suivant dans la liste. */
struct l... |
/******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
* File Name : usb_istr.c
* Author : MCD Application Team
* Version : V2.2.1
* Date : 09/22/2008
* Description : ISTR events interrupt service routines
***********************************... |
#ifdef __KERNEL__
#include <linux/module.h>
#else
#define EXPORT_SYMBOL(x) // x
#define KERN_ALERT
#define printk printf
#include <gplib.h>
#endif
#include <RtGpShm.h> // Global Rt/Gp Externals and structures
#include <rtpmacapi.h>
int rtsprintf(char * buf, const char *fmt, ...);
double user_pid_ctrl( st... |
#include "stddefx.h"
/********/
/* USES */
/********/
/* libs ext. <>, our "" */
#include "misc.h"
#include "calc.h"
#include "app.h"
/* global header (opt.) and test's prototypes "" */
/* headers of this app. modules called */
#include "p_calc_list.h" /* RNeighbor, CNeighbor */
#include <string.h> /* memset */... |
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "mort/types/symfile_t.h"
/* constants */
#define DJB2_MAGIC_NUMBER 5381
#define SYMBOL_COLLISION_LIMIT 3
/* types */
/* symbolCallback_t is the signature for callbacks passed to findSymbol,
tryEachSymbol and forEachSymbol */
typedef Symbol_t *(... |
/*
*
* Copyright (c) International Business Machines Corp., 2001
*
* 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 l... |
/*
===============================================================================
Nombre : lcd.c
Autor : Cátedra: Técnicas Digitales II - UTN FRH
Versión : 2.0
Fecha : Junio 2014
Descripción : Contiene las funciones básicas para controlar un display HD44780
=======================================... |
/*
* Copyright (c) 2017 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dis... |
/**
* @file rast_object.c
* @author <NAME>
* @date 10 Sep 2018
* @brief Function for loading & interactiong with wavefront obj
* file defined 3d models
* @copyright Copyright (c) 2018 <NAME>
* @license MIT License
*/
/*** Headers ***/
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include "rast_obje... |
/* Copyright 2020 <NAME>
* Copyright 2017 Mikkel (Duckle29)
*
* 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.
*
... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2019, <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... |
#include <argp.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "arch.h"
#include "codegen.h"
#include "const_fold_tree.h"
#include "data_flow.h"
#include "dead_code_elim.h"
#include "error.h"
#include "ir.h"
#include "lexer.h"
#include "mem2reg.h"
#include "merge.h"
#include "parser.h"
#include ... |
// ihx2bas for SHARP pocket computers by <NAME>
// BSD-3 license, last updated May 10, 2021
// build: cc -o ihx2bas ihx2bas.c
// usage: ihx2bas [file.ihx|-] [file.bas]
// no gaps allowed in ihx, helps to catch assembly/link errors
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define BUF_SIZE 1024
#defin... |
/* UDP.C
*
* UDP.c, contains a few c-routines
* to be called from REX to communicate with another
* machine via the UDP/IP protocol
*
* NOTE: after connecting this machine with the Mac,
* directly, we still had problems until we
* removed the entry for "Default gateway"
* in the network (TCP/IP) configuration pa... |
// Access from ARM Running Linux
#define BCM2708_PERI_BASE 0x20000000
#define GPIO_BASE (BCM2708_PERI_BASE + 0x200000) /* GPIO controller */
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <sys/time.h>
#define PAGE_SIZE (4*1024)
#def... |
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_spi_flash.h"
#include "driver/gpio.h"
#include "driver/uart.h"
#include "esp32/rom/uart.h"
#include "driver/i2c.h"
#include "nvs_flash.h"
#include "console.h"
#include "mqtt-sn.h"
#include "mqtt-dbg.h"
#i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.