text stringlengths 3.08k 10.5k |
|---|
/*
* Copyright (C) 1992-1997, 2000-2003 Silicon Graphics, Inc.
* Copyright (C) 2004 <NAME>.
* Released under GPL v2.
*
* Support functions for the HUB ASIC - mostly PIO mapping related.
*/
#include <linux/bitops.h>
#include <linux/string.h>
#include <linux/mmzone.h>
#include <asm/sn/addrs.h>
#include <asm/sn/arc... |
/* iffscan - Simple AIFF/RIFF chunk scanner
* Copyright (C) 2007-2009 <NAME>
* Copyright (C) 2011-2014 Xiph.Org Foundation
*
* 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 versio... |
/** \file
* \date Oct 19, 2009
* \brief contains board dependent functions (LEDs, switch, power)
*/
#include <avr\io.h>
#include "delay_x.h"
#include "SA_Status.h"
/** \brief pin assignments for the AT88CK109BK3 CryptoAuth Adapter Board on an STK600 port
* Px0 (pin 01) - not connected\n
* Px1 (pin... |
// Copyright 2019, <NAME>.
// SPDX-License-Identifier: BSL-1.0
/*
* OpenHMD - Free and Open Source API and drivers for immersive technology.
*/
/* VR-Tek Driver */
#include <stdio.h>
#include <string.h>
#include "vrtek.h"
#ifdef _MSC_VER
#define inline __inline
#endif
inline static uint8_t read_uint8(const uint8_... |
#include "kernel.h"
struct TASK *task_init(struct MEMMAN *memman){
int i;
struct TASK *task;
struct SEGMENT_DESCRIPTOR *gdt = (struct SEGMENT_DESCRIPTOR *) ADR_GDT;
taskctl = (struct TASKCTL *) memman_alloc_4k(memman, sizeof(struct TASKCTL));
for( i=0; i<MAX_TASKS; i++){
taskctl->tasks0[i].flags = 0;
taskctl... |
/* This testcase is part of GDB, the GNU debugger.
Copyright 2001-2016 Free Software Foundation, Inc.
Contributed by Red Hat, originally written by <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... |
/* Copyright 2004,2007,2008,2010-2012,2014 IPB, Universite de Bordeaux, INRIA & CNRS
**
** This file is part of the Scotch software package for static mapping,
** graph partitioning and sparse matrix ordering.
**
** This software is governed by the CeCILL-C license under French law
** and abiding by the rules of distri... |
/* $Id$ */
/* DO NOT EDIT - file generated by ObitTables.pl */
/*--------------------------------------------------------------------*/
/*; Copyright (C) 2010 */
/*; Associated Universities, Inc. Washington DC, USA. */
/*; ... |
#include <assert.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include "stats.h"
#include "stats-chi2.h"
#include "stats-student-t.h"
#define LENGTH(array) (sizeof((array)) / sizeof((array)[0]))
double chi2_1df_p(double chi2) {
int imax, imid, imin;
struct chi2_1df_table *tmax, *tmin;
/* binary se... |
// Copyright (c) 2020 <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, distri... |
/* BEGIN_ICS_COPYRIGHT5 ****************************************
Copyright (c) 2015-2020, Intel Corporation
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 copyrig... |
/*
* Copyright 2013 Red Hat Inc.
*
* 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, d... |
/* $XFree86: xc/programs/Xserver/hw/dmx/dmxsync.c,v 1.1 2004/06/30 20:21:39 martin Exp $ */
/*
* Copyright 2002-2004 Red Hat Inc., Durham, North Carolina.
*
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files... |
/*
* temp.c
*
* Created on: Oct 4, 2014
* Author: etsam
*/
/*
* Test application that data integraty of inter processor
* communication from linux userspace to a remote software
* context. The application sends chunks of data to the
* remote processor. The remote side echoes the data back
* to applicat... |
#define _GNU_SOURCE
#include <dirent.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <poll.h>
#include <stdbool.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/resource.h>
#include <sys/mount.h>
#include <sys/sendfile.h>
#include <sys/... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2014-2021 Broadcom
* All rights reserved.
*/
#include <inttypes.h>
#include <rte_cycles.h>
#include <rte_malloc.h>
#include "bnxt.h"
#include "bnxt_irq.h"
#include "bnxt_ring.h"
#include "hsi_struct_def_dpdk.h"
/*
* Interrupts
*/
void bnxt_int_handler(vo... |
/* --COPYRIGHT--,BSD_EX
* Copyright (c) 2012, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above c... |
/*
* RTM/Z80 - a Retro Tiny Multitasking system for Z80 computers
*
* Copyright (C) 2021 by <NAME>
*
* MERGE SORT DEMO PROGRAM
*
*/
#include <stdio.h>
#include <string.h>
#include <dlist.h>
#include <balloc.h>
#include <rtsys.h>
#include <io.h>
#include <rtclk.h>
int xrnd(void);
void xrndseed(void);
/* nu... |
#include <stdint.h>
#include <stdlib.h>
#include <SDL.h>
#include <gos/noise.h>
#include <modules/hm/hm.h>
#include <modules/hm/demo.h>
static bool ghmd_loop_work(wd3hm* context, wd3hmdemo* demo, SDL_Event* event);
static bool ghmd_handle(wd3hm* context, wd3hmdemo* demo, SDL_Event* event);
static bool ghmd_handle_k... |
/*
* Copyright 2009 <NAME> <<EMAIL>>
*
* 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
* without limitation the rights to use, ... |
//Exercício 1
//Elaborar um programa para calcular e exibir o quadrado de apenas UM número inteiro.
#include <stdio.h>
#include <stdlib.h>
int main(){
int a;
scanf("%d",&a);
printf("%d",a*a);
return 0;
}
//Exercício 2
//Dados os coeficientes reais a, b e c, de um polinômio do segundo grau, com a d... |
/*
# This file is part of the Astrometry.net suite.
# Licensed under a 3-clause BSD style license - see LICENSE
*/
#include <stddef.h>
#include <assert.h>
#include "scamp-catalog.h"
#include "fitstable.h"
#include "fitsioutils.h"
#include "qfits_header.h"
#include "errors.h"
#include "log.h"
scamp_cat_t* scamp_ca... |
// <NAME>, 2018
#include "streaming.h"
struct tcp_pcb * start_song_stream(struct ip_addr* ipaddr, int port, start_song* start_args)
{
return establish_connection(ipaddr, port, (void*)start_args, start_song_callback);
}
struct tcp_pcb *next_song_stream(struct ip_addr* ipaddr, int port, stream_song* song)
{
struct t... |
/* 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/. */
/*
* test_crlentry.c
*
* Test CRLENTRY Type
*
*/
#include "testutil.h"
#include "testutil_nss.h"
static void... |
/*
* COMP20007 Design of Algorithms
* Semester 1 2016
* Assignment 2 driver
*
* <NAME> (<EMAIL>)
*
* This module processes and runs the program.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <assert.h>
#include "extra.h"
#include "types.h"
#include "hashtable.h"
#... |
// See LICENSE for license details.
#include <stdio.h>
#include <stdlib.h>
#include "platform.h"
#include <string.h>
#include "hf_interrupts.h"
#include "encoding.h"
#include <unistd.h>
#include "stdatomic.h"
#define RTC_FREQUENCY 32768
#define LED_OFF 0
#define LED_ON 65535
void hifive_init (void);
void led_control... |
/**
*
* Copyright (c) 2010, <NAME> and Mongrel2 Project Contributors.
* 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 co... |
/*
* Copyright (c) 2009
* Siemens AG, All rights reserved.
* <NAME> (<EMAIL>)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that: (1) source code distributions
* retain the above copyright notice and this paragraph in its entirety, (2)
* distribu... |
/**
* gstorage.c -- common storage handling
* ______ ___
* / ____/___ / | _____________ __________
* / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/
* / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ )
* \____/\____/_/ |_\___/\___/\___/____/____/
*
* The MIT License (MIT)
* Copyright (c) 2009-2020 <NAME... |
#include <inttypes.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <stdio.h>
//#include <stdlib.h>
//set up the debugging utility ASSERT
#define __ASSERT_USE_STDERR
#include <assert.h>
#include "uart.h"
/* define CPU frequency in Mhz here if not defined in Makefile */
... |
/****************************************************************************************
* The Sentential Decision Diagram Package
* sdd version 1.1.1, January 31, 2014
* http://reasoning.cs.ucla.edu/sdd
****************************************************************************************/
#include "sddapi.h"
... |
/*******************************************************************************
* Copyright 2008-2020 by Aerospike.
*
* 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 "ILS.h"
struct timeval start;
struct timeval stop;
bool flag_control=false;
//*********** Time Difference *****************
// Retorna uma diferença de tempo em ms.
float timedifference_msec(struct timeval t0, struct timeval t1)
{
return (t1.tv_sec - t0.tv_sec) * 1000.0f + (t1.tv_usec - t0.tv_usec) / 1000... |
/* Copyright (c) 2002-2003 krzYszcz and others.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
/* LATER: 'click' method */
#include <string.h>
#include "m_pd.h"
#include "../shared/shared.h"
#include "sic.h"
#include "a... |
/**
* Snake game.
* Played on console.
* Control snake with arrow keys to ate apples upto specified amount.
* Lose if collide with tail.
* '+' and '-' to increase and decrease speed respectively.
*/
#include <stdio.h>
#include <stdlib.h>
#include <ncurses.h>
#include <unistd.h>
#include <time.h>
#include "./move... |
/* ****************************************************************************
* _______________________
* \| RP6 ROBOT SYSTEM |/
* \_-_-_-_-_-_-_-_-_-_/ >>> BASE CONTROLLER
* ---------------------------------------------------... |
/* $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.... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "stack.h"
// Map the index (i,j,k) to an index l, the "flat" index
// into the row-major 3D array of dimensions, (m,n,p).
inline int map_index(int i, int j, int k, int m, int n, int p) {
return n*p*i + p*j + k;
}
// Add voxels coordinates in the... |
/*
* 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.
*/
/* proc_se.c - recombine nD SE spectra, revision 4.
Allows to choose the di... |
/*-----------------------------------------------------------------------------
* Name: Accelerometer_LIS3DH.c
* Purpose: Accelerometer LIS3DH interface
* Rev.: 1.00
*-----------------------------------------------------------------------------*/
/* Copyright (c) 2013 - 2014 ARM LIMITED
All rights reserv... |
/*
Copyright (c) 2016 SharkRF OÜ. https://www.sharkrf.com/
Author: <NAME>" Varga, HA2NON
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 righ... |
/*
* Copyright (c) 2015-2018 Nexenta Systems, inc.
*
* This file is part of EdgeFS Project
* (see https://github.com/Nexenta/edgefs).
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informat... |
/******************************************************************************
* @file main.c
* @version V3.00
* $Revision: 3 $
* $Date: 16/10/17 2:06p $
* @brief Demonstrate how to program, read, and lock OTP.
* @note
* Copyright (C) 2016 Nuvoton Technology Corp. All rights reserved.
******************... |
#ifdef HAVE_CONFIG_H
#include "autoconfig.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <limits.h>
#include <libgen.h>
#include <openssl/sha.h>
#define SHA_INIT SHA1_Init
#define SHA_UPDATE SHA1_Update
#define SHA_FINAL(... |
#define _GNU_SOURCE 1
#include "stdio.h"
#include <termios.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/time.h>
#include "/root/libpruio-0.2/src/c_wrapper/pruio.h" // include header
#include "/root/libpruio-0.2/src/c_wrapper/pruio_pins.h"
//#include "./pruio_c_wrapper.h" // include /... |
#include"snake.h"
#include<stdbool.h>
#include<stdio.h>
#include<time.h>
#include<SDL2/SDL.h>
// Init, close and update SDL pre-functions
bool init_game();
void update_game(struct Game* my_game);
void draw_game(struct Game* my_game);
void input_handler(struct Snake* player);
// Game constants
const int SCREEN_SIZE = 5... |
/*
* Copyright (C) 2018 <NAME>
*
* Author: <NAME> <<EMAIL>>
*/
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif
#include <string.h>
#include <sys/stat.h>
#include <windows.h>
#include "lexbor/core/fs.h"
lxb_status_t
lexbor_fs_dir_read(const lxb_char_t *dirpath, lexbor_fs_dir_opt_t opt,
... |
/*
* Parallel NetCDF version of the NetCDF wrapper.
* Only collective calls so far.
* 2017-03-09 ps
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <dlfcn.h>
#ifndef __NCMPI__
#define __NCMPI__
#endif
#include "pnetcdf_bind.h"
#include "../dvl.h"
// file
int ncmpi_open(MPI_Comm comm, const char *path, int ... |
/*******************************************************************************
################################################################################
# Copyright (c) [2017-2019] [Radisys] #
# ... |
/*This is the client used for the Computer Network final project.
Last modified: 11/01/2021
Author: <NAME> (2E4)
Parent-Child type
Project name: Monitorizarea traficului (A) [Propunere Continental]
Descriere: Implementati un sistem care va fi capabil sa gestioneze traficul si sa ofere informatii virtuale soferilor.
... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
// Options for sorting algorithms:
#if QUADSORT
#define sortname "quadsort"
#elif FLUXSORT
#define sortname "fluxsort"
#elif WOLFSORT
#define sortname "wolfsort"
#elif SKASORT
#define sortname "ska_sort"
#elif SKACOPY
#define sortna... |
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
#include "buddy.h"
#include "memory.h"
#include "paging.h"
#include <core/memory.h>
#include <core/paging.h>
#include <core/process.h>
#include <generic/asm.h>
#include <lib/stdlib.h>
#include <modules/systask.h>
static pde_t *copy_parent(struct memory_info *mem, process *parent) {
pde_t *pg_dir = create_page_dir(... |
/* Does not use built-in detection function!
alert udp $EXTERNAL_NET any -> $HOME_NET 162 (msg:"SNMP Castle Rock Computing SNMPc Network Manager community string attempted stack overflow"; flow:to_server; content:"|04|"; depth:10; metadata:policy balanced-ips drop, policy security-ips drop, service snmp; reference:bugt... |
/*-
* Copyright (c) 1997, 1998, 1999, 2000
* <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
* not... |
/* ============================================================================================================== */
/* gcc Tarefa2.c -o tar2 -pthread */
/*
* Programe a solução do jantar das filósofas, fazendo com que cada filósofa seja
* uma thread. Para estabelecer exclusão mútua use mutex. Para isso, utilize ... |
#define _GNU_SOURCE
#include <errno.h>
#include <error.h>
#define errorf(status, fmt, ...) \
error_at_line(status, errno, __FILE__, __LINE__, fmt, ##__VA_ARGS__)
#include <dirent.h>
#include <ftw.h>
#include <sched.h>
#include <stdarg.h>
#include <stdio.h>
#include <st... |
/*
* Copyright (c) 2004,2005 Voltaire Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this source... |
#include <stdlib.h>
#include <stdio.h>
#include "myLib.h"
#include "game.h"
#include "text.h"
// place for the extra assets
#include "titlescreen.h"
#include "spritesheet.h"
// maps in order
#include "map1.h"
#include "map2.h"
// parallax background
#include "parallaxBG.h"
/*
have variables to keep track of shadowOA... |
#include "lib.h"
#include <mmu.h>
#include <env.h>
#define TMPPAGE (BY2PG)
#define TMPPAGETOP (TMPPAGE+BY2PG)
int
init_stack(u_int child, char **argv, u_int *init_esp)
{
int argc, i, r, tot;
char *strings;
u_int *args;
// Count the number of arguments (argc)
// and the total amount of space needed for strings ... |
/*
extract_frams: utlize the framebyframe API and mpg123_framedata to extract the MPEG frames out of a stream (strip off anything else).
copyright 2011-2013 by the mpg123 project - free software under the terms of the LGPL 2.1
see COPYING and AUTHORS files in distribution or http://mpg123.org
initially written by ... |
#include "match.h"
struct StartMelee sm_regularvs;
struct StartMelee sm_train;
MatchController match_controller;
static u32* unk77C0;
u32* sub_8015CE44(u32 offset, u32 unk)
{
if (unk != 0x78) {
return (u32*)(unk77C0 + 0x1F2C * (unk / 0x13) + 0x1A4 * (unk % 0x13) + 0x319A);
}
if (offset >= 4) {
... |
#include <gst/gst.h>
/* Structure to contain all our information, so we can pass it to callbacks */
typedef struct _CustomData {
GstElement *pipeline;
GstElement *source;
GstElement *audio_convert;
GstElement *audio_sink;
GstElement *video_convert;
GstElement *video_sink;
} CustomData;
/* Handler for the ... |
//-----------------------------------------------------------------------------
// uniformarrays-glfw.c
//
// Tests 'native layout' uniform array handling in the sokol_gfx.h GL backend
//-----------------------------------------------------------------------------
#define SOKOL_IMPL
#define SOKOL_GLCORE33
#include "s... |
/*
* (C) 2005-2020 MediaTek Inc. All rights reserved.
*
* Copyright Statement:
*
* This MT3620 driver software/firmware and related documentation
* ("MediaTek Software") are protected under relevant copyright laws.
* The information contained herein is confidential and proprietary to
* MediaTek Inc. ("MediaTek"... |
#include "Game/Windows/VirtualWindow.h"
#include "Engine/Tools/List.h"
#include "Engine/Tools/Allocator.h"
#include "Engine/Fs/FontLoader.h"
#include <stdio.h>
#include <stdlib.h>
USG_List _USG_VWIN_list() {
static USG_List list = NULL;
if (list == NULL) {
list = USG_LIST_create();
}
return... |
/*
* Simple morphological filters
*
* Copyright (c) 2014, <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE I... |
#include <linux/init.h>
#include <linux/module.h>
#include <linux/cdev.h> // cdev_add cdev_init
#include <linux/kdev_t.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/fs.h> // struct file_operations
#include <linux/miscdevice.h>
#include <linux/delay.h>
#include <asm/irq.h>
#include <linux/kernel... |
/*************************************************************************
*
* file: tempmem.c
*
* =======================================================================
*
* Temporary Memory and Slot routines for Soar 6
*
* see comments below and in soarkernel.h
*
* ======================... |
/*
* Copyright (c) 2002 - 2006, Netherlands Forensic Institute
*
* 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 2018 Espressif Systems (Shanghai) PTE LTD
// All rights reserved.
#include <string.h>
#include <esp_err.h>
#include <esp_log.h>
#include <esp_wifi.h>
#include <esp_console.h>
#include <smart_home.h>
#include <alexa_smart_home.h>
static const char *TAG = "[app_smart_home]";
void app_device_driver_init()
... |
/* XXX DOES NOT USE BUILT-IN DETECTION FUNCTION! XXX
alert tcp $EXTERNAL_NET any -> $HOME_NET [389,9833] (msg:"EXPLOIT Sun Directory Server LDAP denial of service attempt"; flow:to_server,established; content:"|30|"; depth:1; reference:cve,2006-0647; reference:url,lists.immunitysec.com/pipermail/dailydave/2006-February... |
//semmle-extractor-options: --edg --target --edg win64
// Semmle test cases for UnboundedWrite.ql, BadlyBoundedWrite.ql, OverrunWrite.ql and OverrunWriteFloat.ql
// Associated with CWE-120 http://cwe.mitre.org/data/definitions/120.html
// Each query is expected to find exactly the lines marked BAD in the section corres... |
/*The project is about the railway ticket booking system. This will include three
destinations: Dhaka,Chittagong and Panchagarh. It takes passengers name and
age . It will use
different functions for booking, payment and printing of the ticket. It accepts
payment with mobile banking in bKah,Rocket and Nagad and cash .... |
/*INDENT OFF*/
/* Description: C source code for selection-related development */
/******************************************************************************
* This software is covered by the zlib/libpng license.
* The zlib/libpng license is a recognized open source license by
* the Open Source Initiative: http://... |
/*
* $Id$
*
* Copyright (c) 2012, Juniper Networks, Inc.
* All rights reserved.
* This SOFTWARE is licensed under the LICENSE provided in the
* ../Copyright file. By downloading, installing, copying, or otherwise
* using the SOFTWARE, you agree to be bound by the terms of that
* LICENSE.
*/
#include "local.h"... |
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2010 AT&T Intellectual Property *
* and i... |
#include <stdbool.h>
#include <string.h>
#include "bucket.h"
#include "cards.h"
#include "hands.h"
static bool HandIsStraightFlush(const Card*);
static bool HandIsWheelFlush(const Card*);
static bool HandIsFourOfAKind(const Card*);
static bool HandIsFullHouse(const Card*);
static bool HandIsFlush(const Card*);
stati... |
/* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or its l... |
/*
Copyright (C) 2018 Parallel Realities
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General 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... |
/**
* @file imx6_ecspi.c
* @brief i.MX6 Enhanced Configurable SPI driver
* @author <NAME> <<EMAIL>>
* @version 0.1
* @date 12.06.2017
*/
#include <drivers/common/memory.h>
#include <drivers/gpio/gpio.h>
#include <drivers/spi.h>
#include <embox/unit.h>
#include <errno.h>
#include <framework/mod/options.h>
#includ... |
/**
* @file src/main.c Main application code
*
* Copyright (C) 2010 - 2021 <NAME>
*/
#ifdef SOLARIS
#define __EXTENSIONS__ 1
#endif
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <re.h>
#include <baresip.h>
#include "dssipapp.h"
static struct ... |
/*
* Copyright (c) 2021 linkboy
* 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... |
/*
* Batch 13
* Authors: <NAME>, <NAME>.
* 2013A7PS079P and 2013A7PS183P
* <EMAIL> & <EMAIL>
* Alex-1995 and Abhinav0208 - github handles.
*/
/* Create a hash table, this hash table will store the keywords.
Functions need to code for
1. Creating an empty hash table of some fixed size k - 25 in this case.
2.... |
/* Copyright (C) 2012 <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY ... |
#include "first.h"
#include "base.h"
#include "log.h"
#include "buffer.h"
#include "http_header.h"
#include "sock_addr.h"
#include "plugin.h"
#include <stdlib.h>
#include <string.h>
/**
* mod_evasive
*
* we indent to implement all features the mod_evasive from apache has
*
* - limit of connections per IP
* - ... |
#include "rtl_433.h"
#include "data.h"
#include "util.h"
/* Conrad Electronics S3318P outdoor sensor
*
* Transmit Interval: every ~50s
* Message Format: 40 bits (10 nibbles)
*
*
* Nibble: 1 2 3 4 5 6 7 8 9 10
* Type: PP IIIIIIII ??CCTTTT TTTTTTTT HHHHHHHH XB?????? PP
* BIT/8 00 012... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#define Image IMAGE
#include <draw.h>
#include <memdraw.h>
#include <cursor.h>
#include "screen.h"
static int
ark2000pvpageset(VGAscr*, int page)
{
uchar seq15;
seq15 = vgaxi(Seqx, 0x15);
vgaxo(Se... |
#include "../keypress.h"
#include "../deadbeef_rand.h"
#include "../microsleep.h"
#include <ctype.h> /* For isupper() */
/* Convenience wrappers around ugly APIs. */
#define WIN32_KEY_EVENT_WAIT(key, flags) \
(win32KeyEvent(key, flags), Sleep(DEADBEEF_RANDRANGE(0, 63)))
void win32KeyEvent(int key, MMKeyFlags flags)... |
//Sort Operations
//Copyright @Agarwal-Kritik
#include <stdio.h>
#include<stdlib.h>
void second(void)
{
system("cls");
printf("\n=====================================================================================================================================");
printf("\n\t\t\t __ ___ __ ... |
#include <stdint.h> //Integer types, example uint8_t unsigned integer 8 bits
#include "pic32mx.h"
#include "project.h"
/* Write data to the display panel via SPI controller.
This information can be seen here: https://reference.digilentinc.com/chipkit_shield_basic_io_shield/refmanual
*/
uint8_t spi_send_get(uint8_t ... |
#include <math.h>
#include <time.h>
#include "quiet.h"
FILE *profiles_f;
int compare_chunk(const uint8_t *l, const uint8_t *r, size_t len) {
for (size_t i = 0; i < len; i++) {
if (l[i] != r[i]) {
return -1;
}
}
return 0;
}
int read_and_check(const uint8_t *payload, size_t pay... |
/*
* Copyright 2017 Advanced Micro Devices, Inc.
*
* 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, m... |
/*
Copyright 2015 refractionPOINT
Licensed under the Apache License, Version 2.0 ( the "License" );
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http ://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
/*
** $Id: subclass.c 549 2008-02-29 08:10:52Z malin $
**
** subclass.c:
** This program demostrates the technology of sub-class in MiniGUI
**
** Copyright (C) 2001 ~ 2002 <NAME>.
** Copyright (C) 2003 ~ 2007 Feynman Software.
**
** Create date: 2001/11/01
*/
/*
** This source is free software; you can redistribute ... |
/*
* Copyright (c) 2001-2004 <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 conditi... |
#include <stdio.h>
#include "core/crypter.h"
#define PATH_PUBLIC_KEY "public_key.txt"
#define PATH_ENCRYPTED_MESSAGE "encrypted.txt"
#define PATH_DECRYPTED_MESSAGE "decrypted.txt"
#define MENU_GENERATE_PUBLIC_KEY 1
#define MENU_ENCRYPT_MESSAGE 2
#define MENU_DECRYPT_MESSAGE 3
#define MENU_EXIT ... |
/*
Author: <NAME> (c) 1997
Fixed-base comb method for exponentiation. See
"Handbook of Applied Cryptography" by <NAME>.
Menezes et al 14.6.3 Section pages 623 - 627.
*/
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "lip.h"
/*#define DEBUG*/
long binar... |
#include "statusbar.h"
#include "st.h"
#include "mem.h"
#include "config.h"
int statusvisible;
Glyph *statusbar = NULL;
char* p_status = NULL;
static int statuswidth = 0;
static int focusdraw = 1;
void drawstatus(){
term->dirty[term->bot] = 1;
drawregion(0, term->bot, term->col, term->bot + 1);
}
void statusbar... |
/*
* machine/m_common.c
*
* Functionalities common to all the platforms.
*
* Copyright (c) 2013 VMware, Inc. All Rights Reserved.
*/
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include <libpq-fe.h>
#include "machine.h"
/* Query to fetch information about database activity ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.