text stringlengths 3.08k 10.5k |
|---|
/*
* This file is subject to the terms and conditions defined in
* file 'LICENSE', which is part of this source code package.
*
* @author <NAME>
*/
#include "cxa_xmega_clockController.h"
// ******** includes ********
#include <stdbool.h>
#include <avr/io.h>
#include <cxa_assert.h>
#include <cxa_criticalSection.h... |
/*-
* Copyright (c) 2013 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007 Advanced Micro Devices, 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.
*
* This program is distributed in... |
/**************************************/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/**************************************/
#include "Bitmap.h"
#include "Colourspace.h"
/**************************************/
//! Clear context data
#define CLEAR_CONTEXT(Ctx) \
Ctx->Width = 0, ... |
/**
* @file notifier.c Presence notifier
*
* Copyright (C) 2010 Creytiv.com
*/
#include <re.h>
#include <baresip.h>
#include "presence.h"
/*
* Notifier - other people are subscribing to the status of our AOR.
* we must maintain a list of active notifications. we receive a SUBSCRIBE
* message from peer, and sen... |
/*
* task_attach_timeout.c - attach to another task for monitoring for a short while
*
* Copyright (c) 2009 Google, Inc
* Contributed by <NAME> <<EMAIL>>
*
* Based on:
* Copyright (c) 2002-2006 Hewlett-Packard Development Company, L.P.
* Contributed by <NAME> <<EMAIL>>
*
* Permission is hereby granted, free o... |
/* Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in t... |
/*
Copyright (C) 2009-2019 Parallel Realities
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in t... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
/* Copyright (C) 2008-2017 Free Software Foundation, Inc.
This file 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 f... |
/*-
* Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
* Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
* 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 dea... |
/*
This file from https://github.com/codebrainz/morse under the following license:
The MIT License
Copyright (c) 2012 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without res... |
/*
Description:
This program implements my backtracking method of solving the "N-Queens Problem"
Abides by Lab 5 Exercise 1 requirements
Author:
<NAME> (1046900)
Year: 5
Parallel Programming in Machine Learning Problems
Electrical and Computer Engineering Departm... |
/* ntpshmread.c -- monitor the inner end of an ntpshmwrite.connection
*
* This file is Copyright (c) 2010 by the GPSD project
* BSD terms apply: see the file COPYING in the distribution root for details.
*
* Some of this was swiped from the NTPD distribution.
*/
#define _XOPEN_SOURCE 600
#include <string.h>
#incl... |
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#include <netinet/tcp.h>
#define SERVER_NAME_LEN_MAX 255
typedef struct pthread_arg_t {
int socket_fd;
int block_size;
... |
/******************************************************************************
*
* Copyright (C) 2002 - 2014 Xilinx, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Softwa... |
/*
* (C) Copyright 2001-2003
* <NAME>, DENX Software Engineering, <EMAIL>.
*
* (C) Copyright 2005-2009
* <NAME>, esd gmbh germany, <EMAIL>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms o... |
#include "input.h"
//*********************************************************************
//NOTE: We will overwrite this file, so whatever changes you put here
// WILL NOT persist
//*********************************************************************
/* getline implementation is copied from glibc. */
#ifndef ... |
/* fips/fips_err.h */
/* ====================================================================
* Copyright (c) 1999-2005 The OpenSSL Project. 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 "pebble.h"
#include "algebra.h"
#include "geometry.h"
#include "trigonometry.h"
#include "calc.h"
#include "biology.h"
#include "physics.h"
#include "chemistry.h"
#include "conversion.h"
#define NUM_MATH_MENU_ITEMS 4
#define NUM_MENU_SECTIONS 4
#define NUM_SCIENCE_MENU_ITEMS 3
#define NUM_OTHER_MENU_ITEMS 1
... |
/*
* Copyright 2018-2022 Redis Labs Ltd. and Contributors
*
* This file is available under the Redis Labs Source Available License Agreement
*/
#include "decode_v12.h"
// forward declarations
static SIValue _RdbLoadPoint(RedisModuleIO *rdb);
static SIValue _RdbLoadSIArray(RedisModuleIO *rdb);
static SIValue _RdbLoad... |
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <assert.h>
#include <lib/sync/completion.h>
#include <threads.h>
#include <unistd.h>
#include <zircon/compiler.h>
#include <zircon/device/block.h>... |
/*
LUFA Library
Copyright (C) <NAME>, 2010.
dean [at] fourwalledcubicle [dot] com
www.fourwalledcubicle.com
*/
/*
Copyright 2010 <NAME> (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is... |
typedef uint16_t mpz_dig_t;
typedef uint32_t mpz_dbl_dig_t;
typedef int32_t mpz_dbl_dig_signed_t;
typedef struct _mpz_t {
machine_uint_t neg : 1;
machine_uint_t fixed_dig : 1;
machine_uint_t alloc : 30;
machine_uint_t len;
mpz_dig_t *dig;
} mpz_t;
#define MPZ_DIG_SIZE (15) // see mpn_div for why t... |
/*
* 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 "../../gl-utils.h"
//
// gl_info_framebuffer_constant
//
void gl_info_framebuffer_constant_print() {
gl_info_framebuffer_constant_write (stdout);
}
void gl_info_framebuffer_constant_write (FILE* file) {
fprintf (file, "gl info framebuffer constants...\n");
if (gl_check_context()) {
// version infor... |
// File: GPIO_Util.c
// Author: JS
// Date: 9/9/17
// Purpose: GPIO utilities
// Hardware: TM4C123 Tiva board
#include <stdint.h>
#include "HAL.h"
#include "tm4c123gh6pm.h"
typedef struct {
uint32_t DATA_BITS[255];
uint32_t DATA;
uint32_t DIR;
uint32_t IS;
uint32_t IBE;
uint32_t IEV;
uint32_t IM;
uint32_t... |
/*
* Locally authenticate a TCP socket via /proc/net.
*
* Obviously, if a TCP connection comes from a different host, there's
* no way to find out the identity of the thing at the other end (or
* even really to assign that concept a meaning) except by the usual
* method of speaking a protocol over the socket itse... |
/*
* U-Boot - main board file
*
* Copyright (c) 2008-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#include <common.h>
#include <config.h>
#include <command.h>
#include <net.h>
#include <netdev.h>
#include <spi.h>
#include <asm/blackfin.h>
#include <asm/portmux.h>
#include <asm/mach-common/b... |
/* Select 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, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>... |
/**
******************************************************************************
* @file DMA/DMA_RAMDACTransfer/main.c
* @author MCD Application Team
* @version V1.4.0
* @date 24-July-2014
* @brief Main program body
*****************************************************************************... |
/*
* Copyright (c) 2014, Intel Corporation
* All rights reserved.
*
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* ... |
/* $OpenBSD: daadioreg.h,v 1.1 1999/07/23 19:11:24 jason Exp $ */
/*
* Copyright (c) 1999 <NAME> (<EMAIL>)
* All rights reserved.
*
* This software was developed by <NAME> under contract with
* RTMX Incorporated (http://www.rtmx.com).
*
* Redistribution and use in source and binary forms, with or without
* mod... |
#include "cimgui.h"
#include "client.h"
void gizmo_init(struct gizmo *gizmo) {
gizmo->mode = GIZMO_MODE_NONE;
}
void gizmo_fini(struct gizmo *gizmo) {
UNUSED(gizmo);
}
static void gizmo_render_translation(struct gizmo *gizmo) {
UNUSED(gizmo);
static bool dragging = false;
static size_t drag_axis = 0;
static v... |
/** @file at_commands.c
*
* @brief AT Command main processing
* @par
* COPYRIGHT NOTICE: (c) Rigado
*
* All rights reserved. */
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "nrf.h"
#include "at_commands.h"
#include "simple_uart.h"
#include "uart.h"
#incl... |
#include "songs.h"
#include <string.h>
#include <pic18f4520.h>
#include "lcd.h"
#include "bits.h"
#include "keypad.h"
#include "ssd.h"
#include "delay.h"
#include "pwm.h"
typedef struct {
unsigned int duracao;
unsigned char nome[17];
} musica;
unsigned char nomes[10][17] = {"Temporal", "<NAME>", "<NAME>", "So... |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*****************************************************************************
* Copyright (c) 2019 FrontISTR Commons
* This software is released under the MIT License, see LICENSE.txt
*****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <str... |
/*
* Copyright (c) 2015 Cisco 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-2.0
*
* Unless required by applicabl... |
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include <stdio.h>
#include <stdint.h>
#define FLUXOP_INDEX 1
#define FLUXOP_SPACE 2
#define FLUXOP_ASTABLE 3
/* bitarray.append(value) */
static PyObject *append_s;
static int bitarray_append(PyObject *bitarray, PyObject *value)
{
PyObject *res = PyObject_CallMet... |
/*
Copyright 1996, 1998, 2000, 2001, 2007 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP 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 3 of the... |
/* *********************************************************************** */
/* $Id: gw6cuistrings.c,v 1.11 2008/03/20 16:55:33 cnepveu Exp $ */
/* */
/* Copyright (c) 2007 Hexago Inc. All rights reserved. */
/* ... |
/* WiFi Connection Example using WPS
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.
*/
/*
... |
// MIT License
// Copyright (c) 2021 <NAME> @nesbox // <EMAIL>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, cop... |
/*
* (C) 2001 Clemson University and The University of Chicago
*
* See COPYING in top-level directory.
*/
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/time.h>
#include <time.h>
#include <stdlib.h>
#includ... |
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*-
* vim: ts=8 sts=4 sw=4 noexpandtab
*
* Copyright (C) 2007 UChicago/Argonne LLC.
* See COPYRIGHT notice in top-level directory.
*/
#include <adio.h>
#include <stdio.h>
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#includ... |
/**
* @file p2d_clip.c
* @brief p2d clip managemet
* @author <NAME> <<EMAIL>>
* @version 0.1b
* @date (yyyy-mm-dd) 2013-04-07
* Licence: MIT
*/
#include "p2d_internal.h"
/**
* @function P2D_ClipFit
* @brief modify a given clip in order to fit it in the global clip
* @param rect_st *toClip
* @return none
... |
#include <u.h>
#include <libc.h>
#include <libg.h>
int bitbltfd;
Bitmap screen;
Font *font;
static uchar bbuf[8000];
uchar _btmp[8000];
static uchar *bbufp = bbuf;
static void (*onerr)(char*);
static char oldlabel[128+1];
static char *label;
uchar*
bneed(int n)
{
if(n < 0)
berror("negative count in bneed");
i... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <libchimara/glk.h>
#include <libchimara/garglk.h>
void print_help();
void do_style_test();
void do_link_test();
void do_mouse_test();
winid_t mainwin;
winid_t statuswin;
void glk_main(void)
{
char stringbuffer[128];
event_t... |
/*
* This software is licensed under the terms of the MIT-License
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, <NAME> <<EMAIL>>.
* Copyright (c) 2012-2019, <NAME> <<EMAIL>>.
*/
#include "taisei.h"
#include "sprite.h"
#include "video.h"
#include "renderer/api.h"
ResourceHandler sprite... |
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <errno.h>
#include <unistd.h>
#include "tqueue.h"
struct queue_element {
void *data;
struct queue_element *next;
struct queue_element *prev;
};
struct queue {
struct queue_element *head, *tail;
size_t nelems;
};
static void *queue_put(struct... |
#include "game.h"
#include <avr/interrupt.h>
#include "motor.h"
#include "solenoid.h"
#include "servo.h"
#include "ir.h"
#include "encoder.h"
#include <stdio.h>
#define F_CPU 16000000UL
#include <util/delay.h>
#include "can.h"
#include "mode.h"
#include "dispenser.h"
#define FAIL_TRESHOLD 500
int x = 0;
int y = 0;
in... |
/*
* Copyright (c) 2018-2019 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <lvgl.h>
#include <zephyr.h>
#include <fs/fs.h>
#include <stdlib.h>
#include "lvgl_fs.h"
static bool lvgl_fs_ready(struct _lv_fs_drv_t *drv)
{
return true;
}
static lv_fs_res_t errno_to_lv_fs_res(int err)
{
switch... |
/**
*
* \file
*
* \brief megaRF example for twi as slave
*
* Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
*
* \asf_license_start
*
* \page License
*
* Subject to your compliance with these terms, you may use Microchip
* software and any derivatives exclusively with Microchip prod... |
#include <stdio.h>
#include <stdlib.h>
#include <p4c/lexer.h>
#include <p4c/parser.h>
#include <p4c/generator.h>
#include <p4c/output.h>
const char* HELP_MESSAGE = "Compiles one or more .p4c files into one P4 assembly file.\n"
"Usage:\n"
"\tp4c [-o out_asm] [-t ou... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2017, DUKELEC, Inc.
* All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*/
#include "math.h"
#include "app_main.h"
extern UART_HandleTypeDef huart1;
extern SPI_HandleTypeDef hspi1;
extern SPI_HandleTypeDef hspi2;
extern TIM_HandleTypeDef htim1;
ex... |
#include <stdio.h>
#include <string.h>
#include<stdlib.h>
#include<ctype.h>
#define TElemType int
#define MAXL 100
typedef enum {Link,Thread} PointerTag;
typedef struct BiThrNode{
TElemType data;
struct BiThrNode *lchild,*rchild;
PointerTag LTag,RTag;
}BiThrNode,*BiThrTree;
BiThrTree pre;
int... |
/*
* Handling of the int64 and uint64 types. Done in 32-bit integers,
* for (pre-C99) portability. Hopefully once C99 becomes widespread
* we can kiss this lot goodbye...
*/
#include <assert.h>
#include <string.h>
#include "int64.h"
uint64 uint64_div10(uint64 x, int *remainder)
{
uint64 y;
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <signal.h>
#include "stdalsp.h"
#define NUM_THREADS 10
#define MAX_ITEMS 64
#define PATH_FIFO "/tmp/my_fifo"
struct workqueue
... |
/* Demo program of SCOP */
/* The original implimentation of data encryption part of SCOP (
functions encrypt/decrypt) is in Intel Assembler. Following are
given a partially optimized C versions of these functions.
SCOP is tested with MSVC 4.1 and 5.0, and with gcc 2.7.x.
Please be careful with Borland'... |
/* coff information for TI TMS320C80 (MVP)
Copyright (C) 2001-2015 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
... |
/* functions which connect to many other functions */
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <X11/Xlib.h>
#include <X11/cursorfont.h>
#include <Xm/Xm.h>
#include "xephem.h"
/* called to set or unset the watch cursor on all menus.
* allow for nested requests.
*/
void... |
/* $title: 'TFFIX.C ===== Fix Java source code text fields =====' */
/* $subtitle: 'Elipse Ltd. [jms] 2001 Jan 14' */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_ITEM 80
#define TFF_TOKEN "//TFF//"
int main( int argc, char *argv[] );
static void tffi... |
/* Includes ------------------------------------------------------------------*/
#include "log.h"
#include "cx32l003_hal_uart.h"
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -----------... |
int ex(SCR **);
int ex_cmd(SCR *);
int ex_range(SCR *, EXCMD *, int *);
int ex_is_abbrev(CHAR_T *, size_t);
int ex_is_unmap(CHAR_T *, size_t);
void ex_badaddr
(SCR *, EXCMDLIST const *, enum badaddr, enum nresult);
int ex_abbr(SCR *, EXCMD *);
int ex_unabbr(SCR *, EXCMD *);
int ex_append(SCR *, EXCMD *);
int ex_chang... |
/*
* Copyright (c) 2022, NVIDIA 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 law ... |
#include "c4-internal.h"
#include "nodes/copyfuncs.h"
#include "nodes/makefuncs.h"
static AstProgram *
copy_program(AstProgram *in, apr_pool_t *p)
{
return make_program(in->defines, in->timers, in->facts, in->rules, p);
}
static AstDefine *
copy_define(AstDefine *in, apr_pool_t *p)
{
return make_define(in->na... |
//
// VGContext.c
// example_gl3
//
// Created by Isaac on 2018/5/7.
//
#include "VGContextInternal.h"
#include "VGGradientInternal.h"
#include "VGFont.h"
#include <stddef.h>
#include <stdlib.h>
static char* codepointToUTF8(int cp, char* str)
{
int n = 0;
if (cp < 0x80) n = 1;
else if (cp < 0x800) n = ... |
/**
* Copyright (c) 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:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions an... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* 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 ... |
#include "mcp3427.h"
#include "fsm.h"
#include "log.h"
#include "mcp3427defs.h"
#include "soft_timer.h"
#define MCP3427_FSM_NAME "MCP3427 FSM"
#define MCP3427_MAX_CONV_TIME_MS 50
FSM_DECLARE_STATE(channel_1_trigger);
FSM_DECLARE_STATE(channel_1_readback);
FSM_DECLARE_STATE(channel_2_trigger);
FSM_DECLARE_STATE(channe... |
/* File: mapCreator.c
Author: <NAME>
Time spent: about 2:30 hours
This program will be used to create a map using the terminal and the library Ncurses
First it asks the user to write the number of the new map.
Then it opens a curses window with the blank map
Using the cursor and some keys you can modi... |
#include "project.h"
#include "glyphs.h"
#define CORRECT_BIT_MASK 0b00111111
//Program states
enum State {INIT, GAME, FAILED, SOLVED};
//Global variables
enum State state;
//Whether the button was Pressed
volatile uint8 buttonPressed;
//Indices for glyph, node, and value of last Node
volatile uint8 glyphCount, node... |
#include<stdio.h>
#include<string.h>
#define LEN 100
#define WID 80
void bsort()
{
long long int n,count,imp;
printf("Enter the Number Of Passengers:-\n");
scanf ("%lld",&n);
long long int a[n],b[n],i,j,t,r,cn=0,pnr[10];
char name[10][10],tname[10][10];
for(i=0;i<n;i++)
{
count=0;
printf("Enter the Tr... |
/*
sp-music-to-mp Code Created by Troy "<NAME>" Pruitt
Allows all single player songs to be played in Multiplayer.
*/
#include <tamtypes.h>
#include <libdl/stdio.h>
#include <libdl/game.h>
#include <libdl/player.h>
#include <libdl/pad.h>
#include <libdl/music.h>
int Active = 0;
int FinishedConvertingTracks = 0;
int... |
/* $NetBSD: sireg.h,v 1.3 1996/01/01 22:40:58 thorpej Exp $ */
/*
* Register map for the Sun3 SCSI Interface (si)
* The first part of this register map is an NCR5380
* SCSI Bus Interface Controller (SBIC). The rest is a
* DMA controller and custom logic in one of two flavors,
* one for the OBIO interface (3/50,3... |
/* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.... |
/* mbed Microcontroller Library
* (C)Copyright TOSHIBA ELECTRONIC DEVICES & STORAGE CORPORATION 2018 All rights reserved
* SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy... |
#include "ard_to_esp_serial.h"
const int CURR_PROCESS_BIT = BIT0;
const int STRUCT_COMPLETE_BIT = BIT1;
const int TRANSMIT_BIT = BIT2;
const int DEBUG_RUNNING_BIT = BIT3;
EventGroupHandle_t debug_sync_group = NULL;
void uartInit() {
const uart_config_t uart_config = {
.baud_rate = 9600,
.data_bits... |
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include "rte_lpm.h"
#include "ipv4.h"
/**< Read IPv4 prefixes from a file */
struct ipv4_prefix *ipv4_read_prefixes(const char *prefixes_file,
int *num_prefixes)
{
assert(prefixes_file != NULL && num_prefixes != NULL... |
/*
* Copyright (c) 2012-2014 The Khronos Group Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and/or associated documentation files (the
* "Materials"), to deal in the Materials without restriction, including
* without limitation the rights to use, copy, m... |
/* dnaSeq.c - stuff to manage DNA sequences.
*
* This file is copyright 2002 <NAME>, but license is hereby
* granted for all use - public, private or commercial. */
#include "common.h"
#include "dnaseq.h"
#include "bits.h"
#include "hash.h"
#include "obscure.h"
struct dnaSeq *newDnaSeq(DNA *dna, int size, char ... |
/*
* Copyright (c) 2014 DeNA Co., Ltd.
*
* 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, publ... |
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <limits.h>
#include "../include/input.h"
char* help_text = "gba_dumper v1.0 by <NAME>.\n\n" \
"gba_dumper is a set of utilites designed to make text modifications for Game Boy ... |
/* Copyright 2014-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 in writ... |
/*
* Copyright (C) 2015-2017 Alibaba Group Holding Limited
*/
#include <k_api.h>
#include <stdio.h>
#include <stdlib.h>
#include "aos/init.h"
#include "board.h"
#include "network/hal/wifi.h"
extern void hw_start_hal(void);
#ifndef AOS_BINS
extern int application_start(int argc, char **argv);
#endif
uint32_t ui... |
/**
* エンディング シーン
* @author <NAME> (NWK)
*/
#include "../system/sys.h"
#include "../system/sound.h"
#include "../system/print.h"
#include "../system/vram.h"
#include "../system/math.h"
#include "../game/score.h"
#include "../game/stage.h"
#include "../game/se.h"
#include "../game/gameMode.h"
#include "../game/stars.... |
/**
* Copyright (c) 2009 - 2019, Nordic Semiconductor ASA
*
* 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 no... |
/******************************************************************************
** This material was prepared as an account of work sponsored by an agency **
** of the United States Government. Neither the United States Government **
** nor the United States Department of Energy, nor Battelle, nor any of **
... |
/*
* Copyright IBM Corp. 2021
*
* s390-tools is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#... |
/****************************************************************/
/* EusLisp: intern.c
/* intern a symbol in a package
/* Copyright (c) 1989, <NAME>, Electrotechnical Laboratory
/*
/****************************************************************/
static char *rcsid="@(#)$Id$";
#include "eus.h"
int export_all;... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program and library */
/* SCIP --- Solving Constraint Integer Programs */
... |
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
typedef struct{
int pos[3];
}posto;
typedef struct{
char er[6];
}com;
int inserisci(int a,int b, int c);
void tabella(posto *p);
int main(){
int sceltar,sceltac;
int n;
int c=0,g=0;
int ran;
int tv,vv;
int end;
int m=0;
int spo... |
/*
* Copyright 2019 The Opentls Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.opentls.org/source/licens... |
/*
* Copyright (C) 2021 Southern Storm Software, Pty Ltd.
*
* 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, ... |
/*----------------------------------------------------------------------------
* File: ooaofooa_E_ESS_class.c
*
* Class: Event Specification Statement (E_ESS)
* Component: ooaofooa
*
* your copyright statement can go here (from te_copyright.body)
*------------------------------------------------... |
/*
* bsp.c
*
* Created on: Feb 10, 2017
* Author: baram
*/
#include "bsp.h"
#include "hw.h"
#include "led.h"
//-- Internal Variables
//
USBD_HandleTypeDef USBD_Device;
//-- External Variables
//
//-- Internal Functions
void SystemClock_Config(void);
static void CPU_CACHE_E... |
/*******************************************************************************
* (c) 2019 ZondaX GmbH
*
* 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/lice... |
//There are two possible reasons for using Manhattan distance in the homework
//First, the time cost of calculating Manhattan distance is slightly cheaper then Euclidean distance
//Second, and more likely, Euclidean distance calculations will almost always output a number that cannot be accuratly expressed in decimal. ... |
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "shadowdive/internal/reader.h"
#include "shadowdive/internal/writer.h"
#include "shadowdive/error.h"
#include "shadowdive/pic.h"
int sd_pic_create(sd_pic_file *pic) {
if(pic == NULL) {
return SD_INVALID_INPUT;
}
memset(pic, 0, si... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.