text stringlengths 3.08k 10.5k |
|---|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <errno.h>
#include <libssh/server.h>
#include "globals.h"
#include "log.h"
#include "daemon.h"
#include "cmdline.h"
#include "worker.h"
#include "pidfile.h"
#define MAX_THREADS 100
#define SESSION_TIMEOUT 120
struct globals... |
#include <stdio.h>
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
// Callback for receiving installation instances
typedef void (*instance_callback)(const wchar_t* version, const wchar_t* path);
extern int
get_vs_installations(instance_callback callback);
typedef struct ISetupInstanceVTable ISetupInstanceVTable... |
//
// helper.c
// Firedrake
//
// Created by <NAME>
// Copyright (c) 2013 by <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
/... |
/*
* Nuke Snake - A game where you control a nuclear-powered snake. Your goal is
* to destroy your opponent(s) while avoiding obstacles such as mines and rocks.
*
* Copyright (c) 2016 <NAME>, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and as... |
#include <std/string.h>
#include <std/stdbool.h>
#include <lunaros/buddy.h>
#include <lunaros/kernel.h>
#include <lunaros/list.h>
#include <lunaros/page.h>
#include <lunaros/printf.h>
#include <lunaros/vmm.h>
/*
** Physical page frame allocator.
** Uses the binary buddy algorithm. The maximum pages that can be alloca... |
/**
* This program reads a list of positive 32-bit integers from an input file, sorts them, and then writes them to the
* standard output. Each integer must be in its own line. It uses a bit vector in order to sort the input. In order to
* minimize the memory usage, n number of passes of the input file can be perfor... |
////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2003 Conifer Software. //
// ... |
/*
* 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.
*/
/*
*/
static char Version_ID[] = "stext.c v2.50 STM 9/11/94";
/* revision h... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <inttypes.h>
#include <math.h>
#include <glib.h>
GSList* prime_numbers(uint32_t max_prime_candidate)
{
const int8_t SIEVE_UNKNOWN = -1;
const int8_t SIEVE_NOT_PRIME = 0;
const int8_t SIEVE_PRIME = 1;
const uint8_t FIRST_PRIME = 2;
uint3... |
/* This file is a part of MIR project.
Copyright (C) 2018-2021 <NAME> <<EMAIL>>.
s390x call ABI target specific code.
*/
typedef int target_arg_info_t;
static void target_init_arg_vars (c2m_ctx_t c2m_ctx, target_arg_info_t *arg_info) {}
static int target_return_by_addr_p (c2m_ctx_t c2m_ctx, struct type *ret_ty... |
/*-
* Copyright (c) 1998 <NAME> <<EMAIL>>
* Copyright (c) 2007 Semihalf, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain... |
/*
* This file is part of the UCB release of Plan 9. It is subject to the license
* terms in the LICENSE file found in the top-level directory of this
* distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
* part of the UCB release of Plan 9, including this file, may be copied,
* modified, prop... |
#include <Python.h>
#include <clustal-omega.h>
static PyObject *
clustalo_clustalo(PyObject *self, PyObject *args, PyObject *keywds)
{
mseq_t *prMSeq = NULL;
LogDefaultSetup(&rLog);
LogMuteAll(&rLog);
// Initialize sequence and alignment options.
NewMSeq(&prMSeq);
// Assuming input sequences ... |
#include "mpeg-types.h"
#include "mpeg-util.h"
#include <assert.h>
#include <string.h>
#define H264_NAL_IDR 5
#define H264_NAL_AUD 9
/// e.g.
/// 1. 0x00 00 00 00 00 01 09 EF => return 6(09), leading 4
/// 2. 0x80 00 00 00 00 01 09 EF => return 6(09), leading 4
///
/// Find h264 nalu start position
/// @param[out] ... |
/*
* $Id: compint.h,v 1.8 2005/07/03 08:53:37 daniels Exp $
*
* Copyright © 2003 <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 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
#include "ext.h" // you must include this - it contains the external object's link to available Max functions
#include "ext_obex.h" // this is required for all objects using the newer style for writing objects.
#define octsLength 10
#define notesLength 12
typedef struct _calcprobs { // defines our object's inte... |
/**
* \file
* \brief Local memory allocator for init till mem_serv is ready to use
*/
/*
* Copyright (c) 2007, 2008, 2009, 2011, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found by writing to:
* ET... |
/**
*
* @file First_Stage.c
*
* @copyright 2009-2014 The University of Tennessee and The University of
* Tennessee Research Foundation. All rights reserved.
* @copyright 2012-2018 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
* Univ. Bordeaux. All rights reserved.
* @copy... |
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <errno.h>
#include <sys/queue.h>
#include <sys/types.h>
#include <sys/socket.h>
#include "thread_wrapper.h"
#include "cpu.h"
#include "debug.h"
#include "mtcp_logger.h"
/*---------------------------------------... |
#include <stdint.h>
#include <sys/types.h>
#include <netinet/ip.h>
#include "mtcp.h"
#include "icmp.h"
#include "eth_out.h"
#include "ip_in.h"
#include "ip_out.h"
#include "debug.h"
#include "arp.h"
#define IP_NEXT_PTR(iph) ((uint8_t *)iph + (iph->ihl << 2))
/*--------------------------------------------... |
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "ldapconnection.h"
#include "ldapentry.h"
#include "ldapsearchiter.h"
#include "ldapmodlist.h"
#include "ldapconnectiter.h"
#include "utils.h"
PyObject *LDAPDNObj = NULL;
PyObject *LDAPEntryObj = NULL;
PyObject *LDAPValueListObj = NULL;
char debugmod = 0;
#ifdef... |
/**
* @file aufile.c Audio File interface
*
* Copyright (C) 2010 Creytiv.com
*/
#include <string.h>
#include <re.h>
#include <rem_au.h>
#include <rem_aufile.h>
#include "aufile.h"
/** Audio file state */
struct aufile {
struct aufile_prm prm;
enum aufile_mode mode;
size_t datasize;
size_t nread;
size_t nwri... |
#include"print.h"
#include"types.h"
#include"superblock.h"
#include"disk.h"
#include"gpdes.h"
#include"inode.h"
#include"str.h"
#include"dic_entry.h"
#include"elf.h"
#include"sec_header.h"
#include"jump.h"
#define FS_START_LBA 128
#define FS_SIGNATURE 0xAF01
#define FS_BUFFER 0x1400000
#define BLOCK_SECTOR_CNT 8
#defi... |
/*
* Metadata demuxer
* 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 (at your op... |
/*
* $PostgreSQL$
*
* Copyright (c) 2005-2006 <NAME>
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose, without fee, and without a
* written agreement is hereby granted, provided that the above
* copyright notice and this paragraph and the following two
*... |
/*
* taper.c
*
* FUNCTION:
* Draws a tapered screw shape.
*
* HISTORY:
* -- created by <NAME> October 1991
* -- heavily modified to draw more texas shapes, Feb 1993, Linas
* -- converted to use GLUT -- December 1995, Linas
*
*/
#include "extrusion.h"
#include <math.h>
#include <stdlib.h>
#ifndef NULL
#d... |
/*
*-----------------------------------------------------------------------------
* The confidential and proprietary information contained in this file may
* only be used by a person authorised under and to the extent permitted
* by a subsisting licensing agreement from ARM Limited or its affiliates.
*
* ... |
#include <stdio.h>
#include <stdlib.h>
// STILL NOT WORKING
enum sweepLinePointsTypes {
SEGMENT_BEG,
SEGMENT_END,
POINT
};
struct sweepLinePoint {
long location;
unsigned char type;
unsigned long pointIdx; // For type = POINT, stores its position on the input array
};
struct segment {
lo... |
/**
* @file fonctions_utilitaires.c
* @brief Fonctions utiles pour ajouter un personnage et une question à la base de données
**/
#include "../include/fonctions_utilitaires.h"
/**
* @brief Convertit tous les caractère de la string en minuscule
* @param string String à convertir
**/
void stringToLower(char string[... |
/******************************************************************************
* *
* License Agreement *
* *
... |
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <poll.h>
#include <signal.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
/* XXX Make that some parameter */
#define TCP_PORT 13245
#define MAX_PACKET 32
#define vhp... |
#include "f2c.h"
#include "blaswrap.h"
/* Table of constant values */
static integer c__1 = 1;
/* Subroutine */ int dtrt01_(char *uplo, char *diag, integer *n, doublereal *
a, integer *lda, doublereal *ainv, integer *ldainv, doublereal *rcond,
doublereal *work, doublereal *resid)
{
/* System generated locals... |
/*
* This software was developed at the National Institute of Standards and
* Technology (NIST) by employees of the Federal Government in the course
* of their official duties. Pursuant to title 17 Section 105 of the
* United States Code, this software is not subject to copyright protection
* and is in the public ... |
typedef int _____STARTSTRIPPINGFROMHERE_____;
typedef int __cs_barrier_t;
typedef int __cs_barrierattr_t;
typedef int __cs_attr_t;
typedef int __cs_cond_t;
typedef int __cs_condattr_t;
typedef int __cs_key_t;
typedef int __cs_mutex_t;
typedef int __cs_mutexattr_t;
typedef int __cs_once_t;
typedef int __cs_rwlock_t;
typ... |
/*
Copyright (c) 2006-2010, <NAME> <antirez at gmail dot com>
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... |
/*
* Copyright (c) 2015, 2017-2018, The Linux Foundation. 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 version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distribut... |
/*-
* Copyright (c) 2002,2005 <NAME>
* Copyright (c) 2002 <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
* ... |
/* Copyright 2014-2016 Samsung Electronics Co., Ltd.
* Copyright 2016 University of Szeged.
*
* 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/LICEN... |
/*
* Copyright (C) 2000, 2001 Broadcom Corporation
*
* 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 pr... |
/* $OpenBSD$ */
/*
* Copyright (c) 2017 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... |
/* Copyright (c) 2007 <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, distr... |
#include "buzzer.h"
#include "stm32f4xx.h"
#include "delay.h"
//buzzer use PB4 TIM3_CH1
//buzzer's resonant frequency is 4000+-500Hz
//use TIM3->AAR to update period
int32_t buzzerTime;
void buzzer_Configuration(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
TIM_TimeBaseInitTypeDef TIM_TimeBaseStruct... |
#include "debounce_test.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// For our test implementation, we only do one row of keys
// Really, we should just do one key, but this better matches
// production code
//
// All our data will be on key 0 in this row.
// Run the program with 'v' as its only comm... |
/* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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 r... |
/**
* Copyright 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, ... |
#include <math.h>
#include <raymath.h>
#include <datastructure/slice.h>
#include "lib.h"
#include "utils.h"
Vector2 ship_triangle[] = {
{
.y = 0,
.x = SHIP_OUT_CIRCLE,
},
{
.y = SHIP_SIDE_LEN / 2.f,
.x = -SHIP_IN_CIRCLE,
},
{
.y = -SHIP_SIDE_LEN / 2.f,
.x = -SHIP_IN_CIRCLE,
},
};
Vector2 Vector2... |
/*
* Copyright (c) 1986, 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 above copyr... |
#define _GNU_SOURCE
#define __STDC_WANT_LIB_EXT2__ 1
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include "4.h"
int main(int argc, char **argv) {
char *solution_one, *solution_two;
double time_elapsed_one, time_elapsed_two;
int i, j;
struct puzzle_input *input;
input = read_i... |
/* $OpenBSD$ */
/*
* Copyright (c) 2009 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... |
/*****************************************************************************
* Made with beer and late nights in California.
*
* (C) Copyright 2017-2020 AND!XOR LLC (https://andnxor.com/).
*
* PROPRIETARY AND CONFIDENTIAL UNTIL AUGUST 11th, 2020 then,
*
* Licensed under the Apache License, Version 2.0 (the "Li... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <assert.h>
#include <concord/discord.h>
#include "interactions.h"
struct discord *cogbot;
void
on_interaction_create(struct discord *cogbot,
const struct discord_interaction *interaction)
{
/* Return in... |
/*
D4Player
* score.h
*/
#include "score.h"
#include "../common.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
void print_frame(FILE *fp, int index, uint16_t *frame, int size) {
int i;
fprintf(fp,"%d",index+1);
for (i=0;i<size;i++) {
fprintf(fp,",%d",frame[i]);
}
fprintf(... |
/* NOCW */
/*-
* demos/spkigen.c
* 18-Mar-1997 - eay - A quick hack :-)
* version 1.1, it would probably help to save or load the
* private key :-)
*/
#include <stdio.h>
#include <stdlib.h>
#include <openssl/err.h>
#include <openssl/asn1.h>
#include <openssl/objects.h>
#include <openssl/e... |
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <arch_helpers.h>
#include <assert.h>
#include <bpmp.h>
#include <common/debug.h>
#include <delay_timer.h>
#include <errno.h>
#include <mmio.h>
#include <platform.h>
#include <stdbool.h>... |
#include "inc/hw_ints.h"
#include "inc/hw_types.h"
#include "inc/hw_memmap.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "driverlib/fpu.h"
#include "driverlib/uart.h"
#include "driverlib/interrupt.h"
#include "driverlib/ssi.h"
#include "usblib/usblib.h"
#include "usblib/usbcdc.h"
#inc... |
#include <malloc.h>
#include <stdlib.h>
#include "afd.h"
#include "error.h"
#include "nt.h"
#include "util.h"
#include "win.h"
#include "ws.h"
#define FILE_DEVICE_NETWORK 0x00000012
#define METHOD_BUFFERED 0
#define AFD_POLL 9
#define _AFD_CONTROL_CODE(operation, method) \
((FILE_DEVICE_NETWORK) << 12 | (operation... |
/*
* Battery charger driver for X-POWERS AXP19X
*
* Copyright (C) 2014 X-POWERS Ltd.
* <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.
*/
#include <linux/... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
/*
** Copyright (C) 2009-2017 <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:
**
** * Redistributions of source code must retain the above copyright
** notice,... |
/*
* Copyright (C) 2010-2012 Free Software Foundation, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* GnuTLS 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 Licen... |
/*
* config.h
*
* Configuration file parsing.
*
* Written & released by <NAME> <<EMAIL>>
*
* This is free and unencumbered software released into the public domain.
* See the file COPYING for more details, or visit <http://unlicense.org>.
*/
struct opt {
const char *name;
};
struct opts {
FIL *fil... |
/*
* Copyright (c) 2000-2004
* 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 above c... |
#include <hal/debug.h>
#include <hal/video.h>
#include <windows.h>
#include <assert.h>
#include <usbh_lib.h>
#include <xid_driver.h>
#define ROM_NAME "D:\\dvd-dongle-rom.bin"
#define REQUEST_INFO 1
#define REQUEST_ROM 2
int sha1digest(uint8_t *digest, char *hexdigest, const uint8_t *data, size_t databytes... |
/*
* MEI Library for mei bus nfc device access
*
* Copyright (C) 2013 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.... |
#include "nr_axiom.h"
#include <stddef.h>
#include <stdlib.h>
#include "nr_postgres.h"
#include "nr_postgres_private.h"
#include "util_logging.h"
#include "util_memory.h"
#include "util_strings.h"
char* nr_postgres_default_host() {
char* host = getenv("PGHOSTADDR");
if (nr_strempty(host)) {
host = getenv("P... |
/*
* Copyright (C) 2004-2009 by Objective Systems, Inc.
*
* This software is furnished under an open source license and may be
* used and copied only in accordance with the terms of this license.
* The text of the license may generally be found in the root
* directory of this installation in the COPYING file. It... |
/************************************************************
Copyright 1989, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
c... |
/* zd_ieee80211.c
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope t... |
//
// Created by whmwi on 2017/10/20.
//
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include "include/inlineHook.h"
#include "include/d_helper.h"
#include "include/cJSON.h"
int main(int argc, char **argv) {
printf("A Little project..");
exit(1);
}
typedef... |
#include "fan.h"
#include <fcntl.h>
#include <linux/limits.h>
#include <regex.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "config.h"
#include "util.h"
char *max_temp_path = NULL;
char *input_temp_path = NULL;
void fan_cleanup() {
if (max_temp_path != NULL) {
... |
/* This file is part of The Firekylin Operating System.
*
* Copyright 2016 Liuxiaofeng
*
* 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/LIC... |
/*
* Copyright (C) 2019 <NAME>
*
* 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 disc... |
/**
* @file sun_sensors.c
* @author <NAME> (<EMAIL>)
* @brief Source module to implement the sun sensor interface
* @version 0.2
* @date 2021-01-01
*
* @copyright Copyright (c) 2021 <NAME>
*
*
* @note PINOUT:
* P2.7 == SPI CHIP SELECT
*
* @todo IMPLEMENT RESET FUNCTION
*/
#include <stdio.h>
#include <st... |
#define _USE_MATH_DEFINES // Required to use M_PI with MSVC
#include <math.h>
#include <stdio.h>
#include "YggInterface.h"
int timestep_calc(double t, const char* t_units, generic_t state,
const char* model) {
double x_period = 10.0; // Days
double y_period = 5.0; // Days
double z_period = 20.0; // Days
... |
//------------------------------------------------------------------------------
//
// File Name: BehaviorFlower.c
// Author(s): <NAME>, <NAME>
// Project: ArcaneEscape
// Course: GAM150S19-c
//
// Copyright © 2019 DigiPen (USA) Corporation.
//
//-----------------------------------------------------------------------... |
/** @file simple_session_client.c
*
* @brief This simple client demonstrates the most basic features of JACK
* as they would be used by many applications.
* this version also adds session manager functionality.
*/
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#... |
/*
* FreeRTOS V202012.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. 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 restriction, including ... |
/*
Glidix GUI
Copyright (c) 2014-2017, <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 condition... |
/******************************************************************************
* Copyright (C) 2020 - 2021 Xilinx, Inc. All rights reserved.
* SPDX-License-Identifier: MIT
******************************************************************************/
/*****************************************************************... |
/*
* linux/kernel/ptrace.c
*
* (C) Copyright 1999 <NAME>
*
* Common interfaces for "ptrace()" which we do not want
* to continually duplicate across every architecture.
*/
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/mm.h>
#include <linux/highmem.h>
#include <linux/smp_lock.h>
#include <as... |
/* Icecast
*
* This program is distributed under the GNU General Public License, version 2.
* A copy of this license is included with this source.
*
* Copyright 2000-2004, <NAME> <<EMAIL>,
* <NAME> <<EMAIL>>,
* oddsock <<EMAIL>>,
* <NAME> <<EMAIL>>... |
#include <lua.h>
#include <lauxlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
# include <windows.h>
# include <winsock2.h>
static void
startup() {
WORD wVersionRequested;
WSADATA wsaData;
int err;
wVersionRequested = MAKEWORD(2, 2);
err = WSAStartup(wVersionRequested, &wsaDat... |
/***************************************************************************
Lethal Enforcers
(c) 1992 Konami
Video hardware emulation.
***************************************************************************/
#include "driver.h"
#include "video/konamiic.h"
#define GUNX( a ) ( ( readinputport( a ) * 287 ) / ... |
/******************************************************************************\
** get_activities.c **
** Implementation file for the activity download routines **
\****************************************************************************... |
/*
* Copyright (c) 2014 Machine Zone, Inc.
*
* Original author: <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* not... |
// -*- mode: C++; tab-width: 4; -*-
// vi:ts=8 sw=4 noexpandtab autoindent
/*
* Copyright 2011 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*
* System- and compiler-dependent definitions for portability.
*/
// network portability definitions moved ... |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1996-2003
* Sleepycat Software. All rights reserved.
*/
#include "db_config.h"
#ifndef lint
static const char revid[] = "$Id: os_region.c,v 11.17 2003/07/13 17:45:23 bostic Exp $";
#endif /* not lint */
#ifndef NO_SYSTEM_INCLUDES
#inc... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/**
* Tutorial on how to use DMA to receive data from UART together with IDLE line feature on USART
*
* @author <NAME>
* @email <EMAIL>
* @website http://stm32f4-discovery.net
*
* Example was tested on Nucleo-F411 and Nucleo-F401 where VCP is connected to:
* - USART2, TX: PA2, RX: PA3, used baudrate:... |
/*
* Legal Notice
*
* This document and associated source code (the "Work") is a part of a
* benchmark specification maintained by the TPC.
*
* The TPC reserves all right, title, and interest to the Work as provided
* under U.S. and international laws, including without limitation all patent
* and trademark rig... |
/*
* Copyright (C) 2008 Renesas Solutions Corp.
* Copyright (C) 2008 <NAME> <<EMAIL>>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your opti... |
/*This program calculates pi using a Simpson's Rule estimation of the
integral of arctangent from 0 to 1. When inputting the number of
iterations to perform, more iterations = more precision. The number of
iterations is given as a command line argument. If no argument is
provided, a default value of 20,000 is used. A... |
#include "config.h"
#include "fat.h"
#include "nd_usart.h"
#include <libopencm3/stm32/f1/rtc.h>
#include <libopencm3/stm32/usart.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <sys/time.h>
const char *seek_str[] = {... |
/****************************************************************************
* arch/hc/src/m9s12/m9s12_timerisr.c
*
* 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 copyrigh... |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... |
//-------------------------------------------------------------------------//
// //
// This benchmark is a serial C version of the NPB SP code. This C //
// version is developed by the Center for Manycore Programming at Seoul //
// Nati... |
#include <fcntl.h>
#include <pthread.h>
#include <semaphore.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
/**
Given the text file (lotr-part.txt), the program will reverse the file
content character (byte) by charac... |
/*!
* @file main.c
* @brief GNSS RTK Click Example.
*
* # Description
* This example reads and processes data from GNSS RTK click.
*
* The demo application is composed of two sections :
*
* ## Application Init
* Initializes driver and starts the module.
*
* ## Application Task
* Reads the received data and... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.