text stringlengths 3.12k 18.7k |
|---|
/*
* Authors: <NAME> <<NAME> at darou.fr>
* <NAME> <steven at midlink.org>
* <NAME> <mohammed at hawari.fr>
*
* Copyright 2015 Deutsche Telekom AG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... |
/*
Copyright (c) 2008 - <NAME>.
Permission is granted for use and modification of this file for
research, non-commercial purposes.
*/
#include "common.h"
#include "sysfunc.h"
#include "trec_eval.h"
#include "trec_format.h"
#include <ctype.h>
/* Read all relevance information from text_qrels_file.
Releva... |
#include "ext.h"
#include "ext_obex.h"
#include "z_dsp.h"
#include "soundpipe.h"
typedef struct _sndpipe {
t_pxobject ob;
long ob_in; // holds the inlet number used by all parties
void *ob_proxy;
// soundpipe-related
sp_data *sp; // soundpipe data
sp_delay *delay;
sp_osc *osc;
sp_metr... |
#include "compilium.h"
int IsPointerType(struct Node *n) { return n && n->type == kTypePointer; }
int GetScaleOfPointerType(struct Node *n) {
// int * -> 4
// char * -> 1
// not a pointer -> 0
if (!IsPointerType(n)) {
return 0;
}
return GetSizeOfType(n->right);
}
int IsSameTypeExceptAttr(struct Node ... |
// TinyGL texture mapping example
//
// updated by <NAME> (<EMAIL>)
//
#include <stdio.h>
#include "OSMesa/gl.h"
#include "OSMesa/osmesa.h"
#include <SDL/SDL.h>
static GLuint TexObj[2];
static GLfloat Angle = 0.0f;
static int cnt=0,v=0;
void draw()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glCol... |
//
// encrypt.c
// <NAME>56
//
#include "crypto_aead.h"
#include "api.h"
#define ROUNDS 16
#define CRYPTO_BYTES 32
// gen pentagonal numbers
unsigned char roundConsts[CRYPTO_BYTES] = {
0x00, 0x01, 0x02, 0x05, 0x07, 0x0c, 0x0f, 0x16,
0x1a, 0x23, 0x28, 0x33, 0x39, 0x46, 0x4d, 0x5c
};
/*
// cal... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct {
char* banda;
int currentPosition;
}Tape;
typedef struct {
int current_state;
int next_state;
char* read_symbol;
char* write_symbol;
char direction;
}Tranzitie;
typedef struct {
int terminare; // 1 - se termina, -1 se agata, 0 defau... |
#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... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <curses.h>
#include <panel.h>
#include <form.h>
#include "todo.h"
/* Creates the MainWindow instance and returns a pointer to it.
*/
MainWindow*
window_main_create(char *name)
{
MainWindow *todo = (MainWindow*) malloc(sizeof(... |
#include "masked-cbd.h"
#include "params.h"
#include "randombytes.h"
#include <stdint.h>
extern int16_t asm_barrett_reduce32(int32_t a);
extern void secbit_add_sub_constadd(masked_lambda_bs32 *z, const masked_eta_bs32 *x, const masked_eta_bs32 *y, const uint32_t *randptr);
extern void secadd_coef(masked_coef_bs32 *z, ... |
/*
* Lthread
* Copyright (C) 2012, <NAME> <<EMAIL>>
* Copyright (C) 2017 Imperial College London
*
* 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 copyri... |
#include <stdlib.h>
#if WIN_DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#endif
#include <stdio.h>
#include <string.h>
#include "include/parser.h"
// static scope_T *get_node_scope(parser_T *parser, ast_T *node) {
// return node->scope == NULL ? parser->global_scope : node->scope;
// }
// TODO: Deal with p... |
/* 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 commercial app... |
/*
* This software is Copyright (c) 2013 <NAME> jfoug AT cox dot net,
* Copyright (c) 2013 <NAME> <<EMAIL> at <EMAIL>>
* and Copyright (c) 2014-2017 magnum, and it is hereby released
* to the general public under the following terms: Redistribution and use in
* source and binary forms, with or without modificatio... |
//
// ipc.c
// AM2Discord
//
// Created by peter-rit on 5/12/20.
//
//
/*
OKAY I MADE IF HOPEFULLY VERY SIMPLE CTRL-F FOR "HERE" EACH INSTANCE IS A SPOT THAT NEEDS
TO BE FILLED IN AND EACH SPOT SPECIFIES WHAT NEEDS TO BE PUT THERE ONCE THAT IS DONE YOU CAN COMPILE
PROCEED WITH THE FOLLOWING INSTRUCTION IN THE G... |
/**
\brief Whisper module, runs on the (DAG)root only and is responsible for sending fake dio's
*/
#include <stdarg.h>
#include "opendefs.h"
#include "whisper.h"
#include "opencoap.h"
#include "openqueue.h"
#include "packetfunctions.h"
#include "openserial.h"
#include "openrandom.h"
#include "board.h"
#include "idman... |
#include "arvore_binaria.h"
TNoA *inicializa_arvore_binaria(void) {
return NULL;
}
int vazia_arvore_binaria(TNoA* t){
/* Retorna 1 se a árvore for vazia e 0 caso contrário */
return t == NULL;
}
void imprime_arvore_binaria(TNoA *nodo) {
printf("<"); /* notação para organizar na hora de mostrar os elementos... |
/*
* Copyright (c) 2019-2020, 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 copyright
* n... |
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <assert.h>
#include <SDL2/SDL.h>
#include "../XError.h"
#include "../XFlow.h"
#ifndef M_PI
#define M_PI 3.141592f
#endif
#define UNUSED_PARAM(p) ((void) (p))
enum {
DEFAULT_WIDTH = 640,
DEFAULT_HEIGHT = 480
};
#define DEFAULT_TITLE "Draw Triang... |
/*
** Private data structurs for FTT internals
*/
#define FTT_EPRINT_BUF_SIZE 512
extern char ftt_eprint_buf[];
#define MAX_TRANS_ERRNO 50 /* maximum error number we translate */
#define MAX_TRANS_DENSITY 20 /* maximum density number we translate */
/* device information structure */
#define MAXDEVSLOTS 80
typede... |
/* 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 ... |
/*
* CPM serial console support.
*
* Copyright 2007 Freescale Semiconductor, Inc.
* Author: <NAME> <<EMAIL>>
*
* It is assumed that the firmware (or the platform file) has already set
* up the port.
*/
#include "types.h"
#include "io.h"
#include "ops.h"
#include "page.h"
struct cpm_scc {
u32 gsmrl;
u32 gsmr... |
/*-------------------------------------------------------------------*/
/* CNVXHULL.C <NAME> */
/* <NAME> */
/* */
/* - 2-dimensional convex hull ... |
/*
*
* File: runs.c
* Author: <NAME> [<EMAIL>]
* Copyright (c) 2007 The Trustees of Columbia University
*
* This file implements the run based optimization on the hybrid
* and global table.
*
*/
#include "aggregate.h"
#include "global.h"
#include <atomic.h>
#include <thread.h>
#include <pthread.h>
#include... |
#include "kernel/types.h"
#include "kernel/stat.h"
#include "user.h"
#include "kernel/fcntl.h"
#include "kernel/fs.h"
#include "kernel/spinlock.h"
#include "kernel/sleeplock.h"
#include "kernel/file.h"
int null_fd, zero_fd, kmesg_fd, random_fd, disk_fd;
void
openDevs()
{
null_fd = open("/dev/null", O_RDWR);
zero_fd... |
/******************************************************************************************
*
* Description: Source code for single-channel LoRaWAN Gateway based on ESP8266 and SX1276
* Version : 0.8.2
* Date : 2018-11-26
* Software : https://github.com/SandboxElectronics/LoRaGoDOCK-Gateway
* Hardware ... |
/* playmenu.c */
#include "player.h"
#include "softmenu.h"
static SHORT jiffies;
static Qslider speed_sl = QSL_INIT1(0, 120, &jiffies, 0, NULL, leftright_arrs);
static void see_speed_sl(Button *b)
{
jiffies = millisec_to_jiffies(pcb.speed);
see_qslider(b);
}
static void feel_speed_sl(Button *b)
{
... |
#include <assets/model/modelload.h>
#include "iqmfile.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <hashmap.h>
#include <linalgb.h>
#include <assert.h>
static struct frameset* iqm_read_frames(struct iqm_file* iqm)
{
struct iqm_header* h = &iqm->header;
unsigned char* base = iqm->base;... |
/*
* Copyright (c) 2015 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by <NAME> <<EMAIL>>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are... |
/*
Raw UDP sockets: inyeccion de rutas rip; para compilar en bsd/osx usa -DBSD
mips-linux-gnu-gcc --static -s -mips32 --sysroot=mips-sysroot ripinj.c -o ripinj
*/
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <errno.h>
#include <netinet/in.h>
#include <netinet/udp.h>
#i... |
/*
* simple_queue.c
*
* Description: simple and lightweight implementation of message-queues in C.
*
* Copyright (c) 2016, <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:
*
* ... |
//
// Created by Christopher on 2021-02-21.
//
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "system_data.h"
#ifndef DTP_CONVERSION_H
#define DTP_CONVERSION_H
#endif //DTP_CONVERSION_H
#define NULL_CHAR 'j'
#define DATA_ENCAPSULATOR '|'
#define DATA_ENCAPSULATOR_STR "|"
char *extract_data(cons... |
#include <sys/types.h>
#include <sys/mman.h>
/* for open */
#include <sys/stat.h>
#include <fcntl.h>
#include "../globals.h"
#include "../hashtable.h"
#include "../native_exec.h"
#include <string.h>
#include <unistd.h> /* for write and usleep and _exit */
#include <limits.h>
#include <dlfcn.h>
#include <stdlib.h>
#i... |
#include <stdlib.h>
#include <stdio.h>
#include <pcap.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <arpa/inet.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <signal.h>
char *dev = NULL;
pcap_t *fp;
char errbuffer[PCAP_ERRBUF_SIZE];
u_char packet[50];
i... |
#include "orbitsrsg.h"
/* Moved to struct.h */
/* typedef int **clocksADT; */
/* typedef struct clockkey{ */
/* int enabled; */
/* int enabling; */
/* } *clockkeyADT; */
/* A list of timed enabled events that haven't been fired and explored */
/* for a given marking. ... |
#include "libtrading/proto/fix_message.h"
#include "libtrading/proto/fix_session.h"
#include "libtrading/array.h"
#include "libtrading/die.h"
#include <netinet/tcp.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/*
* Copyright © 2018 Intel Corporation
*
* 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
* on the rights to use, copy, modify, merge, ... |
/* zgv 5.5 - GIF, JPEG and PBM/PGM/PPM viewer, for VGA PCs running Linux.
* Copyright (C) 1993-2001 <NAME>. See README for license details.
*
* readtga.c - loads TGA files (based on readpnm.c).
*
* only supports file types 1, 2, 9 and 10, since that's all I've
* got documentation for. If you want support for the ... |
/* advprs.c - adventure parser */
/*
Copyright (c) 1993, by <NAME>
All rights reserved
*/
#include "advint.h"
#include "advdbs.h"
/* parser result variables */
int nouns[20];
int *adjectives[20];
static int actor,action,dobject,ndobjects,iobject;
/* local variables */
static char *lptr; /* line pointer */
static i... |
/*
* Copyright © 2020 Loongson Corporation
*
* 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, ... |
#include <stdio.h>
#include <string.h>
#include <thsemap.h>
#include "ioplib.h"
#include "sio2man.h"
#include "sio2man_hook.h"
//#define DEBUG //comment out this line when not debugging
#include "module_debug.h"
#define PORT_NR 3
static int lock_sema = -1;
static int lock_sema2 = -1;
static u16 hooked_version = 0;... |
#include <stdint.h>
#include "cmsis.h"
#include <stdio.h>
extern void gf_polymul_8x8_nr(void *h, void *f, void *g);
extern int jump8divsteps(int minusdelta, int *M, int *f, int *g);
void jump16steps(int minusdelta, int *M, int *f, int *g);
void gf_polymul_8x8_2x2_x2p2 (int *V,int *M,int *fh,int *gh);
void gf_polymul_8x... |
/*
module: loadres.c
The Chicken Little Resource Loader.
This module contains code which decides what resources to load, based on the current
state of the game.
*/
#include "chicken.h"
#include "clmenu.h"
#include <string.h>
CL_RES *respak = NULL; // current resource pak we load stuff fr... |
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <ctype.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/epoll.h>
#include <logger.h>
#include "http_utils.h"
#include "socket_wrapper.h"
#include "config.h"
filetype_t type_arr[] = {
{"*", "application/octet-str... |
/* ptoke - Linux pbasic tokenizer,
Copyright (C) 2003, <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later versi... |
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
# include <math.h>
# include <xvops.h>
# include "nicmos.h"
# define PI 3.14159265358979323846
/* N_RMEDIAN -- Ring median filter a NICMOS image.
**
** Based on "images$imfilter/rmedian" task in IRAF.
**
**
**
** Revision history:
** ---------... |
//
// aksinha
// tsh.c
// Assignment 2: Shell-Assignment
// A tiny shell program with job control
//
// Created by <NAME> on 09/12/21.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <signa... |
/* SPDX-License-Identifier: MIT */
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <fontconfig/fontconfig.h>
#include <fontconfig/fcfreetype.h>
#include <hb.h>
#include ... |
/******************************Module*Header*******************************\
* Module Name: stretch.c
*
* Routines to stretch a glyph bitmap up to five times in the x direction
* and an arbitrary number of times in the y direction. These limits are
* the ones imposed by windows.
*
* Created: 7-Dec-1992 16:00:00... |
//
// test-issue17.c
//
// Copyright (c) 2015-2018, <NAME> mobile Software, http://mro.name/~me
// 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 ret... |
/*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2020 Broadcom Inc. All rights reserved.
*/
/* Feature : Flexport
*
* Usage : BCM.0> cint flexport_4x25G_to_2xHG21.c
* ... |
// This file is free software, distributed under the BSD license.
#include "hack.h"
#include "extern.h"
#include "mkroom.h"
const char vowels[] = "aeiou";
const char *const traps[] = {
" bear trap",
"n arrow trap",
" dart trap",
" trapdoor",
" teleportation trap",
" pit",
" sleeping gas t... |
/*
* Acess2 GUI (AxWin) Version 3
* - By <NAME> (thePowersGang)
*
* wm_render_text.c
* - WM Text Rendering
*/
#include <common.h>
#include <wm_internals.h>
#include <stdlib.h>
#include <unicode.h>
#include <limits.h> // INT_MAX
// === TYPES ===
typedef struct sGlyph tGlyph;
struct sGlyph
{
struct sGlyph *Next;... |
/*
this is NTLM-brute - a generic password guesser.
It's just a shell for now. Eventually I'll get it working.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h> /*for memset */
#include <sys/types.h>
#include <sys/socket.h>
#include <ntlm.h>
#include <signal.h>
#include "spike.h"
#include "base... |
/*++
Copyright (c) 2004 - 2006, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distrib... |
/*
* Copyright 2004 <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 conditi... |
#include <adc/adc.h>
#include <conversions/conversions.h>
#include <can/data_protocol.h>
#include <spi/spi.h>
#include <uart/uart.h>
#include "../../src/general.h"
uint32_t last_col_uptime_s = 0;
const uint32_t col_period_s = 30;
// 'sends' command (by putting it in the queue) to PAY
// PAY processes it and puts re... |
/*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 1996, 1997, 1998
* Sleepycat Software. All rights reserved.
*/
/*
* Copyright (c) 1990, 1993, 1994, 1995, 1996
* <NAME>. All rights reserved.
*/
/*
* Copyright (c) 1990, 1993, 1994, 1995
* The Regents of the University of Californi... |
/* Copyright 2019, 2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
/*
Copyright 2013 <NAME> <<EMAIL>>
2020 <NAME> <<EMAIL>>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This progra... |
/*
This file is part of the SC Library.
The SC Library provides support for parallel scientific applications.
Copyright (C) 2010 The University of Texas System
Additional copyright (C) 2011 individual authors
The SC Library is free software; you can redistribute it and/or
modify it under the terms of the ... |
//
// GitHub: https://github.com/SERPWoo/API
//
// This code requests all of your projects and outputs their ID, names, amount of keywords, and links to API query of keywords
//
// This output is text format
//
// Last updated - Aug 27th, 2017 @ 22:05 EST (@MercenaryCarter https://github.com/MercenaryCarter and https:/... |
/****************************************************************************
** MIPSim
**
** Copyright (c) 2010, <NAME>
** All rights reserved.
**
** This file may be used under the terms of the BSD license.
** Refer to the accompanying COPYING file for legalese.
*********************************************... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
bool automatEntier(char mot[10]);
bool automateClef(char mot[10]);
bool automateIdentifiant(char mot[10]);
bool automatessinon(char mot [10]);
bool autamatalors(char mot [10]);
bool automatevar(char mot[10]);
bool automateint(char mot[10])... |
#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... |
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/signal.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <unistd.h>
#include <pthread.h>
#include <signal.h>
#include <time.h>
#include "ParseConf.c"
... |
/*
Copyright (c) 2012, Broadcom Europe Ltd
Copyright (c) 2012, <NAME> <<EMAIL>>
<NAME> <<EMAIL>>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code m... |
/*
* Raw FLAC demuxer
* Copyright (c) 2001 <NAME>
*
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... |
/*
* clock_am33xx.c
*
* clocks for AM33XX based boards
*
* Copyright (C) 2013, Texas Instruments, Incorporated - http://www.ti.com/
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/arch/cpu.h>
#include <asm/arch/clock.h>
#include <asm/arch/hardware.h>
#include <asm/io.h>
#define OSC ... |
/* $XConsortium: cir_driver.h,v 1.5 95/01/23 15:35:14 kaleb Exp $ */
/* $XFree86: xc/programs/Xserver/hw/xfree86/vga256/drivers/cirrus/cir_driver.h,v 3.17 1995/06/02 11:19:47 dawes Exp $ */
#define CIRRUS_INCLUDE_COPYPLANE1TO8
enum cirrusChipTable {
CLGD5420, CLGD5422, CLGD5424, CLGD5426, CLGD5428, CLGD5429,
CLGD62... |
/************************************************************************
* "HR_calib_table.c"
*
* To create a file with photometric and miscelaneous data
* in order to prepare various plots (HR diagram or statistics)
* Can create a Hertzprung-Russel diagram of the objects contained
* in the calibrated table wit... |
/* getifname.c -- network interface handling
* Copyright(C) 1999,2000,2001 <NAME> <<EMAIL>>
* Copyright(C) 2001 by <NAME> <<EMAIL>>
* This code is under the GPL license */
/* BSD support thanks to <NAME> <<EMAIL>> */
#include <stdio.h> /* perror */
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#i... |
/*
Develop by <NAME>
email: <EMAIL>
compile in the keyhunt directory
gcc -o keysubstracter keysubstracter.c -lgmp
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <gmp.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <time.h>
#include "util.h"
#inc... |
/*
* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
* © 2010 <NAME> and contributors (see also: LICENSE)
*
*
*/
#include "common.h"
#include "libi3.h"
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include <yajl/yajl_parse.h>
struct windowtitle_json_params {
char ... |
/**
File: main.c
Project: DCPU-16 Tools
Component: Assembler
Authors: <NAME>
Description: Main entry point.
**/
#ifndef WIN32
#include <unistd.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <setjmp.h>
#include <bstring.h>
#include <argtable2.h>
#i... |
/*
* Copyright (c) 2019, National Taipei University of Technology. Taipei, Taiwan.
* 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 abov... |
/////////////////////////////////////////////////////////////////////////////////
//////
////// Interface to MKL's DSS sparse linear solver simplified PARDISO interface.
////// Copyright (C) 2005 <NAME> (lourakis at ics.forth.gr)
////// Institute of Computer Science, Foundation for Research & Technology - Hellas
/... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h> // fabs, fmax
#include "../include/crntk.h"
// declare the bicgstab solver
size_t bicgstab(const void*, void (*)(const void*, const double*, double*), const size_t, const double *, double *, double, size_t);
// an implementation of matrix-multiplication with ... |
#include "dgst.h"
#include <efilib.h>
#include <stdarg.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/ossl_typ.h>
#include <openssl/buffer.h>
#include "OpenSSL/crypto/bio/bio_lcl.h"
#include "shim.h"
EVP_PKEY * dgstPrepareKey();
void dgstVerify(BIO *bp, unsigned char *sigin, int siglen);
c... |
/*
* Copyright (c) 2000-2002 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... |
/*******************************************************************************
*
* Copyright 2020 Samsung Electronics 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 Licen... |
/*
* RELIC is an Efficient LIbrary for Cryptography
* Copyright (C) 2007-2017 RELIC Authors
*
* This file is part of RELIC. RELIC is legal property of its developers,
* whose names are not listed here. Please refer to the COPYRIGHT file
* for contact information.
*
* RELIC is free software; you can redistribute... |
/******************************************************************************
*
* Copyright (C) 2009 - 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... |
/*
Copyright (C) Intel Corp. 2006. All Rights Reserved.
Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
develop this 3D driver.
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 ... |
/** **************************************************************************
* @file uart.c
* @brief LED HAL for EFM32GG STK
* @version 1.0
*
* @note Configure UART0 to work at 115200 bps, 8 bit, no parity, 1 stop bit
* no parity handshake.
*
* With this configuration, it can communi... |
/*-
* Copyright (c) 2011 <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 c... |
/*
* Varitext code variant by A.McConnell 1997/01/19
*
* Supports Varitext's Radio Clock
*
* Used the Meinberg/Computime clock as a template for Varitext Radio Clock
*
* Copyright <NAME> <<EMAIL>>
* Copyright the NTPsec project contributors
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "config.h"
#incl... |
/*
* linux/fs/nfs/nfs4namespace.c
*
* Copyright (C) 2005 <NAME> <<EMAIL>>
* - Modified by <NAME> <<EMAIL>>
*
* NFSv4 namespace
*/
#include <linux/dcache.h>
#include <linux/mount.h>
#include <linux/namei.h>
#include <linux/nfs_fs.h>
#include <linux/string.h>
#include <linux/sunrpc/clnt.h>
#include <linux/vfs.h>
... |
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifdef GUNZIP_PATH
# define IS_GZIP() (size >= 18 && mem8[0] == 0x1f && mem8[1] == 0x8b)
#endif
#define IS_PSF_V1() (size >= 4 && mem8[0] == 0x36 && mem8[1] == 0x04)
#define IS_PSF_V2() (size >= 32 && mem8[0] == 0x72 && mem8[1] == 0xb5 && m... |
/*-
* BSD LICENSE
*
* Copyright (c) Intel Corporation.
* 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 copyri... |
/* -*- indent-tabs-mode: nil;c-basic-offset: 4 -*- */
/* ex: ts=4 sw=4 sts=4 et */
/* */
/* Copyright 2008-2018 <NAME>. All Rights Reserved. */
/* Copyright 2010-2018 <NAME>. All Rights Reserved. ... |
/******************************************************************************
Copyright (c) 2007-2011, Intel Corp.
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... |
/*
* Archivo: proyectovacas.c
* Dispositivo: PIC16F887
* Autor: <NAME>
* Compilador: XC8 MPLABX V5.40
* Programa: Laboratorio9: Servos con pots (modulo PWM1 y 2)
* Hardware: 2 pots en puerto A y 2 servos en CCP1 y CCP2
* Creado: 14 de junio de 2021, 05:09 PM
* Ultima modificacion: 26 de ab... |
/*
* Copyright (C) 2012 Texas Instruments, 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... |
#include <SDL2/SDL.h>
#include <SDL2/SDL2_gfxPrimitives.h>
#include <onnx.h>
#include "mnist_onnx.h"
#define BUFFER_MAX_LENGTH (8192)
static int xbuf[BUFFER_MAX_LENGTH];
static int ybuf[BUFFER_MAX_LENGTH];
static int length = 0;
struct window_context_t {
SDL_Window * window;
SDL_Surface * screen;
SDL_Surface * su... |
/* ndlinear.c
*
* Copyright (C) 2006, 2007 <NAME>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This... |
/*
* Copyright (c) 2010-20122Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* EXYNOS5250 - CPU frequency scaling support
*
* 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 Founda... |
/** @example Intro/BasicRequester.c
*/
/*
* This sample shows how to implement a Requester for direct Request-Reply messaging, where
*
* BasicRequester: A message Endpoint that sends a request message and waits to receive
* a reply message as a response.
* BasicReplier: A message E... |
/*----------------------------------------------------------------------------*/
/* Hobbit monitor SNMP data collection tool */
/* */
/* Copyright (C) 2007-2009 <NAME> <<EMAIL>> */
/* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.