text stringlengths 3.12k 18.7k |
|---|
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
#define n 50
int enr=1;
int num_books=10;
int arr[50]={0}; // Initially No book is issued (inidicated bt 0)
void add_book();
void set_books();
void total_books();
void delete_mem();
void show_list();
void ret_book();
void is... |
/*
* Copyright (C) 2008 <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 ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <netinet/in.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/udp.h> //Provides declarations for udp header
#include <netinet/ip.h> //Provides declarations for ip header
#include <netinet/if_ether.... |
/*
* 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 ... |
/*
* power-manager
* Copyright (c) 2012 Samsung Electronics 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 requi... |
/**
* Duktape environmental and task control functions.
*/
#if defined(ESP_PLATFORM)
#include <esp_err.h>
#include <esp_log.h>
#include <esp_system.h>
#include <esp_wifi.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include "duktape_spiffs.h"
#include "esp32_specific.h"
#include "sdkconfig.h"
#end... |
/* namestr.c - deals with soft menu items of form:
NameStr symbol
{
name1, "Some string 1"
name2, "Some really long string that has to go"
"over a couple of lines"
name3, "another string"
}
We use these to group together messages where we don't want to
put a million of them in individual... |
/*
* gdt.c
*
*/
#include <configuration.h>
#include <multiboot.h>
#include <conio.h>
#include "gdt.h"
static void _prepare_gdt(size_t* start,
struct gdt_entry_t* global_descriptor_table);
static int _find_mem(size_t mem, void* base, size_t length, void** found);
size_t gdt_init(void* mmap_base, ... |
/*****************************************************************************
*
* ffs_rosenbluth.c
*
*****************************************************************************/
#include "u/libu.h"
#include "util/ffs_util.h"
#include "util/ranlcg.h"
#include "ffs_private.h"
#include "ffs_state.h"
#include "ff... |
/*
*
* Copyright (c) 2019 Matrix Orbital, Corp. https://www.matrixorbital.com/
*
* 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... |
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "dlist.h"
/*
//Datastructure Manual//
data formate: real of data put in int data,"structpoint" of recode data put in *prior(prior struct of location) and *next(next struct of location)
//Function Manual//
Function_1:auto create data, and put it(data)... |
/* zzsepq.f -- translated by f2c (version 19980913).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Table of constant values */
static doublereal c_b12 = 1e-12;
/* $Procedure ZZSEPQ ( Separation quantity from observer ) */
doublereal zzsepq_(double... |
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define DEBUG 0
// Based on: http://csis.uni-wuppertal.de/courses/scripts/lab2_chapters/PP4.pdf
typedef struct {
int size; // Number of processes
MPI_Comm comm;
MPI_Comm row_comm;
MPI_Comm col_comm;
int ... |
/* csci4061 S2016 Assignment 4
* section: 11
* date: 05/03/17
* names: <NAME>, <NAME>, <NAME>
* UMN huhnx025, lexxx600, kormi001
*/
#include <fcntl.h>
#include <math.h>
#include <pthread.h>
#include <semaphore.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#i... |
#include "pebble.h"
#include "units.h"
#define NUM_MENU_SECTIONS 2
#define MAX_SUB_MENUS 6
static Window* menu_windows[MAX_SUB_MENUS];
static MenuLayer* menu_layers[MAX_SUB_MENUS];
static void show_next_level();
// A callback is used to specify the amount of sections of menu items
// With this, you can dynamically ... |
/*
* Copyright (C) 2008 The Android Open Source 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:
* * Redistributions of source code must retain the above copyright
* notice, t... |
/*******************************************************************************
* PROJECT: Bomberman
*
* AUTHORS: <NAME>, <NAME>, <NAME>, <NAME>
*
* DATE CREATED: 01/16/2019
*
* Copyright (c) 2019 <NAME> (@Astropilot). All rights reserved.
*
* Licensed under the MIT License. See LICENSE file in the project root for fu... |
/*
* MIT License
*
* Copyright (c) 2021-2022 <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 restriction, including without limitation the rights
* to use, ... |
/*
This is the highest-level (most comprehensive) test in the OBC repository.
It runs all the code in the main OBC program, with some extra debugging features
for special modes, to enable/disable/modify specific features, etc.
*/
#include <stdbool.h>
#include <can/data_protocol.h>
#include <conversions/conversions.h... |
/*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
* File: SpeechNoiseEstimator.c
*
* MATLAB Coder version : 5.3
* C/C++ source code generated on ... |
#include <stdio.h>
#include <ctype.h>
#include <stdint.h>
#include <netinet/in.h>
void usage()
{
printf(
"usage: romdump FILENAME\n"
"\n"
);
}
typedef union
{
struct {
uint8_t op:6;
union {
struct {
uint8_t rs:5;
uint8_t rt:5;
... |
/* Dia -- an diagram creation/manipulation program
* Copyright (C) 1998 <NAME>
*
* GRAFCET chart support
* Copyright (C) 2000,2001 <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 Foundatio... |
/**
*
* @generated d Tue Jan 7 11:45:24 2014
*
**/
#define _TYPE double
#define _PREC double
#define _LAMCH LAPACKE_dlamch_work
#define _NAME "PLASMA_dgetri_Tile"
/* See Lawn 41 page 120 */
#define _FMULS (FMULS_GETRF(M, N) + FMULS_GETRI( N ))
#define _FADDS (FADDS_GETRF(M, N) + FADDS_GETRI( N ))
//#define GE... |
/*
* File : board.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2012, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date Author... |
// SPDX-License-Identifier: MIT
#include <linux/input.h>
#include <sys/ioctl.h>
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include "platforms/platforms.h"
#include "input.h"
#define NONE 0x80
static int lshift = 0, rshift = 0,/* lctrl = ... |
/*****************************************************************************
* *
* Copyright Intel Corporation. *
* *
***... |
/* ====================================================================
* Copyright (c) 1996-2000 Carnegie Mellon University. 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. Red... |
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/** main_test_console.c
*
* Copyright (C) 2010 Signove Tecnologia Corporation.
* All rights reserved.
* Contact: Signove Tecnologia Corporation (<EMAIL>)
*
* $LICENSE_TEXT:BEGIN$
* This library is free software; you can redistribute it and/or
* ... |
/* Copyright (c) 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:
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions an... |
/*
* Copyright (C) 2015-2019 Alibaba Group Holding Limited
*/
#include "amp_platform.h"
#include "aos_system.h"
#include "py_defines.h"
#include "aiot_state_api.h"
#include "aiot_sysdep_api.h"
#include "aiot_ntp_api.h"
#include "aiot_mqtt_api.h"
#include "module_aiot.h"
#define MOD_STR "AIOT_NTP"
/* ntp timestamp ... |
//
// Created by joao on 10/12/18.
//
/*
* 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, Ve... |
/*
** Zabbix
** Copyright (C) 2001-2021 Zabbix SIA
**
** 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 header file gives the metrics for the vector fonts. */
/* Our choice for stroke width, in terms of virtual pixels. This number is
magic: just slightly greater than sqrt(2), so that adjacent strokes that
are inclined at a 45 degree angle will overlap as they should.
(According to ``Calligraphy for Co... |
/*
salsa.c version 20051118
<NAME>
Public domain.
*/
#include "salsa20.h"
#include "safecrypto_private.h"
#define U8C(v) (v##U)
#define U32C(v) (v##U)
#define U8V(v) ((UINT8)(v) & U8C(0xFF))
#define U32V(v) ((UINT32)(v) & U32C(0xFFFFFFFF))
#define ROTL32(v, n) (U32V((v) << (n)) | ((v) >> (32 - (n))))
#define ROTATE(v... |
/**
******************************************************************************
* @file ../stm32f103-hal-dma-flash-to-sram/src/main.c
* @author <NAME>
* @version 1.0
* @date 25 Jan 2017
* @brief This example code shows how to use DMA HAL API to transfer a word
* data from FLASH memory... |
/**
* \file
*
* \brief Unit tests for MegaRF Ext Interrupt driver
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
/*
FreeRDP: A Remote Desktop Protocol client.
Video Redirection Virtual Channel - ALSA Audio Device
Copyright 2010-2011 <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
... |
/******************************************************************************
Copyright (C) 2011-2012 by <NAME> <<EMAIL> DOT <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 wi... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void sort(int a1[],int a2[],int a3[],int a4[],int n){
for(int i = 0;i<n;i++){
for(int j = 0;j<n-i-1;j++){
if(a1[j]>a1[j+1]){
int temp = a1[j+1];
a1[j+1] = a1[j];
a1[j] = temp;
temp = a2[j+1];
a2[j+1] = a2[j];
a2[j] = temp;
t... |
/**
* --------------------------------------------
* | EnerCast project |
* --------------------------------------------
* | (C) HEAPLab, Politecnico di Milano, 2019 |
* --------------------------------------------
*/
/* USER CODE BEGIN Header */
/**
**************************... |
/*-
* Copyright (c) 2014-2018 <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 ... |
/**************************************************************************//**
* @file main.c
* @version V1.00
* $Revision: 15 $
* $Date: 15/11/24 3:16p $
* @brief Use PDMA channel 2 to transfer data from memory to memory.
* @note
* Copyright (C) 2014~2015 Nuvoton Technology Corp. All rights reserved.
... |
/*
* vs_httpd.c
*
* Very Simple HTTP server that can deliver static files very fast
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/stat.h> // stat
#include <event.h>
#include <evhttp.h>
#include "apr_getopt.h"
#include "apr_strings.h"
#include "apr_file_io.h"
#in... |
/* $OpenBSD: uvm_anon.c,v 1.34 2009/06/16 23:54:57 oga Exp $ */
/* $NetBSD: uvm_anon.c,v 1.10 2000/11/25 06:27:59 chs Exp $ */
/*
*
* Copyright (c) 1997 <NAME> and Washington University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
#include "librtmp/rtmp.h"
static FILE* open_flv(char *file_name){
FILE* fp = NULL;
fp = fopen(file_name,"rb");
if(!fp){
return fp;
}
fseek(fp,9,SEEK_SET);
fseek(fp,4,SEEK_CUR);
return fp;
}
static int read_u8(FILE *fp,unsigned... |
/* ntpd remote root exploit / babcia padlina ltd. <<EMAIL>> */
/*
* Network Time Protocol Daemon (ntpd) shipped with many systems is vulnerable
* to remote buffer overflow attack. It occurs when building response for
* a query with large readvar argument. In almost all cases, ntpd is running
* with superuser privi... |
/*
* Copyright (c) 2018 <NAME>.
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from
* the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including com... |
// This program will read & append up to 100 Student details
// in a text file stored locally.
#include <stdio.h>
#include <stdlib.h>
#define grades "Linked_List_Example_with_TextFile.txt"
//---------------------------------------------------
// **** STRUCTURES ****
//---------------------------------------------... |
/*
* Copyright (c) 2019-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* You may select,... |
//--------------------------------------------------------------------------
//
// Module Name: PFM.H
//
// Brief Description: This module contains the PSCRIPT driver's
// font metrics defines.
//
// Author: <NAME> (kentse)
// Created: 22-Jan-1991
//
// Copyright (C) 1991 - 1999 Microsoft Corporation.
//-... |
/**
* Copyright (2017) Baidu Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... |
/**************************************************************************************************************************************
Project6
STM32- PWM Output to drive the motor
**************************************************************************************************************************************/
#i... |
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sommelier.h"
#include <assert.h>
#include <gbm.h>
#include <libdrm/drm_fourcc.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>... |
/*
* prefork: accept in one process and using sockpair transfer connected to other
* processes
* codes from UNPv3
*/
#include <unistd.h>
#include <errno.h>
#include <signal.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/poll.h>
#include <sys/wait.h>
#include <string.h>
#inc... |
/****************************************************************************************
Autor: <NAME>
Componente Curricular : MI - Algoritmos I
Concluido em: 27/02/2016
Declaro que este código foi elaborado por mim de forma individual e não contém nenhum
trecho de código de outro colega ou de outro autor, tais... |
/******************************************************************************
* INCLUDES
*****************************************************************************/
#include "completion.h"
#include "../csf.h"
#include "../reorder.h"
#include "../util.h"
#include "../thd_info.h"
#include "../io.h"
#include <m... |
#include<stdlib.h>
#include"Graphe.h"
#include "Grille.h"
#include <math.h>
#include<stdio.h>
void Graphe_init(Graphe *H, int m, int n){
int i,j;
H->m=m;
H->n=n;
H->Tsom=(Sommet***)malloc(m*sizeof(Sommet**));
for (i=0;i<m;i++){
H->Tsom[i]=(Sommet**)malloc(n*sizeof(Sommet*));
for (j=0;j<n;j++)
... |
/* See LICENSE file for license details. */
#define _XOPEN_SOURCE 500
#define PASSLEN 256
#include <ctype.h>
#include <errno.h>
#include <pwd.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <security/pam_appl.h>
#include <sys/types.h>
#in... |
/**
* TÍTUL0: ALGORITMOS
* SUBTÍTUL0: Práctica 3
* @author <NAME> @login mateo.diaz
* @author <NAME> @login alvaro.freirea
* GRUPO: 4.2
* DATE: 16 / 11 / 2021
*/
#include <stdio.h>
#include <math.h>
#include <stdbool.h>
#include <sys/time.h>
#include <stdlib.h>
#include <time.h>
#include <string.... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
//#include "../otg/osk/sys-support.h" //ModifiedByJD
/*
* USB Communications Device Class (CDC) definitions
*
* CDC says how to talk to lots of different types of network adapters,
* notably ethernet adapters and various modems. It's used mostly with
* firmware based USB peripherals.
*/
#define USB_CDC_SU... |
/****************************************************************************
** Copyright (c) 2017, Fougue Ltd. <http://www.fougue.pro>
** 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 <ConsoleManager.h>
#include <videoDriver.h>
#include <font.h>
#define NEGRO 0
#define VERDE 1
#define MARGINVERTICAL 5 //pixeles de margen en la consola
#define MARGINHORIZONTAL 2
#define MARGIN 8
unsigned char currentConsoleNum;
static ConsoleUnit consolas[2];
unsigned char inReadMode = 0;
void pintarBo... |
// 0.Documentation Section
// Lab7_HeartBlock, main.c, glennlopez
// Runs on LM4F120 or TM4C123 LaunchPad
// Input from PF4(SW1) is AS (atrial sensor),
// Output to PF3, Green LED, is Ready,
// Output to PF1, Red LED, is VT (ventricular trigger)
// Make PF4 input, PF3,PF1 output
// Initialize Ready to high and VT t... |
#include <stdint.h>
#include <stdio.h>
#include "alloc.h"
#include "elf.h"
#include "link.h"
#include "objformat.h"
#include "pe.h"
static FILE* MiscLog = 0;
extern void __z__link__elf_set_virtual_address(void* arg1);
extern void __z__link__coff_set_virtual_address();
extern void __z__link__coff_do_reloc();
extern ... |
/**
*
* reciprocal frequency counter
* with Pi Pico
* using PWM-channel 4 - 7
*
*/
#include "I2C_LCD/LiquidCrystal_I2C.h"
#include <stdio.h>
#include <pico/stdlib.h>
#include <hardware/pwm.h>
#include <hardware/irq.h>
#include <hardware/i2c.h>
#include <hardware/flash.h>
#include <hardware/sync.h>
// GLOBAL DEC... |
/*
* translate.c : wc-specific eol/keyword substitution
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informa... |
/*
* Copyright 2020 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "fsl_romapi.h"
#include "fsl_debug_console.h"
#include "fsl_cache.h"
#include "pin_mux.h"
#include "clock_config.h"
#include "board.h"
#include "fsl_common.h"
/****************************************************... |
/*
* 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... |
/*-------------------------------------------------------------------------
*
* ybc_catalog_version.c
* utility functions related to the ysql catalog version table.
*
* Portions Copyright (c) YugaByte, Inc.
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"
... |
/*
Copyright (C) 2006-2007 <NAME>
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "util.h"
#define XC_GGA_X_HJS_PBE 525 /* HJS screened exchange PBE ver... |
/*-------------------------------------------------------------------------
*
* tzparser.c
* Functions for parsing timezone offset files
*
* Note: this code is invoked from the check_hook for the GUC variable
* timezone_abbreviations. Therefore, it should report problems using
* GUC_check_errmsg() and related... |
#include "asm/clock.h"
#include "timer.h"
#include "asm/power/p33.h"
#include "asm/charge.h"
#include "uart.h"
#include "device/device.h"
#include "asm/power_interface.h"
/*#include "power/power_hw.h"*/
#include "system/event.h"
#include "asm/efuse.h"
#include "gpio.h"
#define LOG_TAG_CONST CHARGE
#define LOG_TAG ... |
#include "common.h"
#include "linefile.h"
#include "options.h"
#include "axt.h"
#include "dnautil.h"
#include "bits.h"
#include "winCounts.h"
#include "slidingWin.h"
#include "align.h"
#include <limits.h>
static char const rcsid[] = "$Id: hgCountAlign.c,v 1.7 2009/09/23 18:42:21 angie Exp $";
void usage()
/* Explain... |
/* $Id: errno.c 3553 2011-05-05 06:14:19Z nanang $ */
/*
* Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
* Copyright (C) 2003-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 Fre... |
/**
* @file
* @brief unit testing for OSAL library (character related functions)
*
* @copyright Copyright (C) 2017-2018 Wind River Systems, Inc. All Rights Reserved.
*
* @license Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... |
#include <stdio.h>
#include <math.h>
#include <omp.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#define CLK CLOCK_MONOTONIC
struct timespec diff(struct timespec start, struct timespec end){
struct timespec temp;
if((end.tv_nsec-start.tv_nsec)<0){
temp.tv_sec = end.tv_sec-start.tv_sec-1... |
/*
* TI LMU (Lighting Management Unit) Core Driver
*
* Copyright 2017 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.
*/
#in... |
/**********************************************************
* Copyright 2014 VMware, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, ... |
#include "tetris.h"
void draw_playing_field() {
// loop var
int i;
// Set rendering clear color
// This sets the 'background color'
SDL_SetRenderDrawColor(render, 204, 192, 179, 255);
// Clear the render
// 'set' background color defined in SDL_SetRenderDrawColor(...)
SDL_RenderClea... |
/*
* Example on how to work with a non-blocking connect. Uses fixed input and
* should show all 3 situations we care about - a successful connect, a refused
* connect, and a timeout.
*
* Using FD_SETSIZE is not optimal - rewrite the code so that it stores maximum
* file descriptor number and use it for select().... |
/*
* Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
// SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
/*
* Copyright (C) 2018, STMicroelectronics - All Rights Reserved
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <i2c.h>
#include <misc.h>
#include <sysreset.h>
#include <time.h>
#include <dm/device.h>
#include <dm/device_compat.h>
#include <dm... |
#include "game.h"
int check_block_collision(int ball_x, int ball_y, int ball_dim, int obj_x, int obj_y, int obj_width, int obj_height)
{
if ( !( (ball_x >= obj_x + obj_width) || (obj_x >= ball_x + ball_dim) || (ball_y >= obj_y + obj_height) || (obj_y >= ball_y + ball_dim) ) )
{
//center point
... |
/*
* QEMU S390 Interactive Boot Menu
*
* Copyright 2018 IBM Corp.
* Author: <NAME> <<EMAIL>>
*
* This work is licensed under the terms of the GNU GPL, version 2 or (at
* your option) any later version. See the COPYING file in the top-level
* directory.
*/
#include "libc.h"
#include "s390-ccw.h"
#include "sclp... |
/*
* evaluate.c - very high-level API to evaluate LABELs or UUIDs
*
* Copyright (C) 2009 <NAME> <<EMAIL>>
*
* This file may be redistributed under the terms of the
* GNU Lesser General Public License.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <c... |
/*
* Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <platform_def.h>
#include <arch_helpers.h>
#include <common/debug.h>
#include <drivers/console.h>
#include <drivers/delay_timer.h>
#include <lib/mmio.h>
#include <ddr_parameter.h>
#in... |
/* bobdebug.c - debug routines */
/*
Copyright (c) 2001, by <NAME>
All rights reserved
*/
#include <stdio.h>
#include <string.h>
#include "bob.h"
#include "bobint.h"
/* instruction output formats */
#define FMT_NONE 0
#define FMT_BYTE 1
#define FMT_2BYTE 2
#define FMT_WORD 3... |
/*-------------------------------------------------------------------------
*
* sampling.c
* Relation block sampling routines.
*
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* src/backend... |
/* $Id$ */
/*
* Copyright (c) 2001-2010 <NAME> <aturner at synfin dot net>
* Copyright (c) 2013-2017 <NAME> <tcpreplay at appneta dot com> - AppNeta
*
* The Tcpreplay Suite of tools is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
* pub... |
/*******************************************************************************
Copyright (C) 2015 Annapurna Labs Ltd.
This file may be licensed under the terms of the Annapurna Labs Commercial
License Agreement.
Alternatively, this file can be distributed under the terms of the GNU General
Public License V2 as publ... |
/******************************************************************************
* @file APROM_main.c
* @version V1.00
* $Revision: 3 $
* $Date: 15/01/16 1:45p $
* @brief FMC APROM IAP sample for NUC131 series MCU
*
* @note
* Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.
*****... |
/* ripemd160.c
RIPE-MD160
Copyright (C) 1998, 2001, 2002, 2003 Free Software Foundation, Inc.
Copyright (C) 2011 <NAME>
This file is part of GNU Nettle.
GNU Nettle is free software: you can redistribute it and/or
modify it under the terms of either:
* the GNU Lesser General Public License as... |
/*
Copyright (c) 2016 <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, distribute, sublicen... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
/*
* Copyright (c) 2016 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#if defined(CONFIG_NET_DEBUG_L2_IEEE802154)
#define SYS_LOG_DOMAIN "net/ieee802154"
#define NET_LOG_ENABLED 1
#endif
#include <net/net_core.h>
#include <net/net_l2.h>
#include <net/net_if.h>
#include "ipv6.h"
#include <errno.h... |
/*
* Copyright 2016 Google 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 applicable law or agreed to... |
/* kod dla klienta w komunikacji tcp/ip */
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <netdb.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <assert.h>
#include ... |
/**
* \file mcspi.c
*
* \brief This file contains functions which configure the pin muxing and
* module clock configurations for mcspi peripheral.
*
*/
/*
* Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
*/
/*
* Redistribution and use in source and binary forms, with or withou... |
// SPDX-License-Identifier: Apache-2.0
// Copyright (C) 2018 IBM Corp.
#define _GNU_SOURCE
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <limits.h>
#include <poll.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sy... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.