text stringlengths 3.12k 18.7k |
|---|
/******************************************************************************
**
** conf.c
**
** This file is part of the ABYSS Web server project.
**
** Copyright (C) 2000 by <NAME> <<EMAIL>>.
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permit... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#define FALSE 0
#define TRUE 1
#define EOL 0
#define AMPERSAND 1
#define PIPE 2
#define ARG 10
#define IREDIRECT 11
#define OREDIRECT... |
#include <stdio.h>
#include "golang.c"
#include "pdflib.h"
void temp(PDF *p, const char *text, int len, double x, double y, const char *optlist);
void _PDF_activate_item(PDF *p, int id);
void _PDF_add_nameddest(PDF *p, const char *name, int len, const char *optlist);
int _PDF_add_path_point(PDF *p, int path, double... |
/*
* canfdtest.c - Full-duplex test program (DUT and host part)
*
* (C) 2009 by <NAME>, IXXAT Automation GmbH, <<EMAIL>>
* (C) 2009 <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... |
/*!
\file main.c
\brief SPI fullduplex communication use DMA, adapted for Longan Nano
*/
/*
Copyright (c) 2019, GigaDevice Semiconductor Inc.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Red... |
/*
* Copyright 2017 Hillcrest Laboratories, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License and
* any applicable agreements you may have with Hillcrest Laboratories, Inc.
* You may obtain a copy of the License at
*
* h... |
/* calstis11 -- subtract science from wavecal
This file contains:
CalStis11
StisInit11
PrintInfo11
*/
# include <stdio.h>
# include <string.h>
# include "hstio.h"
# include "stis.h"
# include "calstis11.h"
# include "hstcalerr.h"
# include "stisshutter.h" /* for EXT_SHUTTER_CLOSED */
static void StisInit11 (... |
#include <stdio.h>
#include "cimgui.include.h"
#include "pcmockup.h"
#include "renderer.h"
#include "texgen/texgen.h"
#include "platform.h"
static const GSize WINDOW_START_SIZE = { 1024, 768 };
static const int MAX_FRAMERATE = 60;
struct PCMockup
{
Renderer *renderer;
Level* level;
TextureManager* texture... |
/*
* Copyright (c) 2022 Mesh4all <mesh4all.org>
*
* 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 l... |
#include <inttypes.h>
#include <zxmacros.h>
#include <zxformat.h>
#include <zbuffer.h>
#include "os.h"
#include "cx.h"
#include "aes.h"
#define CTX_REDJUBJUB "Zcash_RedJubjubH"
#define CTX_REDJUBJUB_LEN 16
#define CTX_REDJUBJUB_HASH_LEN 64
#define CTX_EXPAND_SEED "Zcash_ExpandSeed"
#define CTX_EXPAND_SEED_LEN 16
#def... |
/*-
* Copyright (c) 2011-2012 <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 condit... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "platform.h"
#include "dcl.h"
#include "termio.h"
// HLPVMS provides extensive help from a VMS help file.
#define MAX_TOP 100
#define MAX_BUF 1024
#ifndef max
#define max(a,b) ((a)>(b)?(a):(b))
#endif
#ifndef min
#define min(a,b) (... |
#include "util.h"
#include "malloc.h"
/*
struct StringListNode* makeStringBuilder(char* s){
struct StringListNode* node = (struct StringListNode*) malloc(sizeof(struct StringListNode));
node->prev = 0;
node->next = 0;
char* str = (char*)malloc(strLen(s));
memCopy(s,str,strLen(s));
node->str = str;
return s;
}
*... |
/* Converted to C by <NAME>, based on bitcoin source: */
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2012 The Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "config.h"
#include <bitcoi... |
/* infix-calc.c -- simple infix calculator for integer arithmetic
*
* Copyright (C) 2017 SINTEF
*
* Distributed under terms of the MIT license.
*/
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "infixcalc.h"
/*
The algorithm:
1. While there are sti... |
#include "z3D/z3D.h"
#include "entrance.h"
#include "settings.h"
#include "string.h"
#include "item_override.h"
typedef void (*SetNextEntrance_proc)(struct GlobalContext* globalCtx, s16 entranceIndex, u32 sceneLoadFlag, u32 transition);
#define SetNextEntrance_addr 0x3716F0
#define SetNextEntrance ((SetNextEntrance_pr... |
/*
Copyright 2014-2017 Thumbtack, 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 in wr... |
#pragma once
#include "InputEnums.h"
enum
{
JOYSTICK_MAX_BUTTON_COUNT = 32 ,
JOYSTICK_POV_BUTTON_COUNT = 4 ,
JOYSTICK_AXIS_BUTTON_COUNT = MAX_JOYSTICK_AXES * 2 ,
};
#define JOYSTICK_BUTTON_INTERNAL( _joystick, _button ) ( JOYSTICK_FIRST_BUTTON + ((_joystick) * JOYSTICK_MAX_BUTTON_COUNT) + (_button) )
#define JOYS... |
#include "mem.h"
void * HEAP_START = ((void*)0x04040000);
void *heap_begin(){
return HEAP_START;
}
void garbage_collect(struct vector * Vector, void * Heap_start)
{
void * Heap_el;
void * Heap;
void * Old_Heap;
struct mem_t * Newel;
long old;
int N = Vector->last;
int i,j;
new_Vector(Vector);... |
/*
* Copyright (C) 2005-2013 <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 program is dist... |
/*---------------------------------------------------------
* Estruturas e Rotinas Utilitarias do Compilador
*
* Por <NAME>
*--------------------------------------------------------*/
/*---------------------------------------------------------
* Limites das estruturas
*----------------------------------------... |
/* This changes the definition of ucontext_t */
#define _XOPEN_SOURCE 1
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include <string.h>
#include <stdbool.h>
#include <valgrind.h>
#define offsetof(type, fld) ((unsigned long)&((type *)0)->fld)
#define stringify(x) #x
static int verbose = 0;
#define _AS... |
#include "mini_uart.h"
#include "string.h"
#include "reboot.h"
#include "uint.h"
#include "dtb.h"
#include "allocator.h"
#include "aux.h"
#include "thread.h"
#include "getopt.h"
#include "scheduler.h"
#include "loadimg.h"
#include "mailbox.h"
#include "mmu.h"
struct ARGS{
char** argv;
int argc;
};
extern uns... |
#include <stdint.h>
/**
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
*/
//! @ingroup QDebug-Remote
//! List of the command IDs used in QDebug.
//! @{
// TWI/I2C address
#define KXTF9_TWI_ADDR (0x0f)
#define KXTF9_ID_VAL (0x01) // KXTF9 device ID... |
/*
The MIT License (MIT)
Copyright (c) 2014 <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, mod... |
/* Test file for mpfr_div_ui.
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
Contributed by the AriC and Caramel projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redistribute i... |
/*************************************************************************/
/* This code has been modified for Bellbird. */
/* See COPYING for more copyright details. */
/* The unmodified source code copyright notice */
/* ... |
/*----------------------------------------------------------------------------
* File: UI_TestCase_class.c
*
* Class: TestCase (TestCase)
* Component: UI
*
* your copyright statement can go here (from te_copyright.body)
*--------------------------------------------------------------------------*... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <ft2build.h>
#include FT_FREETYPE_H
#include "sf_frotz.h"
/////////////////////////////////////////////////////////////////
static char * sf_searchfile( char *fn, int fnlen, char *buf, char *paths)
{
char *... |
/*
Flirt, an SWF rendering library
Copyright (c) 2004-2006 <NAME> <<EMAIL>>
All rights reserved.
http://www.opaque.net/flirt/
This code is distributed under the two-clause BSD license.
Read the LICENSE file or visit the URL above for details
*/
#include "readsound.h"
void
readMP3Headers(ddReader* r, int leng... |
#include <storage.h>
ata_t ata[32];
PCI_COFIG_SPACE *ata_pci = NULL;
extern unsigned int ata_record_dev,ata_record_channel;
static int ata_pci_configuration_space(int bus,int dev,int fun)
{
unsigned int data;
// Indentification Device
data = read_pci_config_addr(bus,dev,fun,0);
ata_pci->... |
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
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 ve... |
#include "aes.h"
//compile using gcc and following arguments: -g;-O0;-Wall;-msse2;-msse;-march=native;-maes
/*** MACROS ***/
#define ENC_BLOCK(m, k) \
m = _mm_xor_si128(m, k[0x0]); \
m = _mm_aesenc_si128(m, k[0x1]); \
m = _mm_aesenc_si128(m, k[0x2]); \
m = _mm_aesenc_si128(m, k[0x3]); \
m = _mm_ae... |
/* Copyright © 2019 <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, distrib... |
// Copyright (c) 2021, <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distr... |
/*
* Copyright (C) 2004-2012 Free Software Foundation, Inc.
*
* Author: <NAME>
*
* This file is part of GnuTLS.
*
* GnuTLS is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the Licen... |
/* Definitions of target machine for GNU compiler. Iris version 5.
Copyright (C) 1993, 1995 Free Software Foundation, Inc.
This file is part of GNU CC.
GNU CC 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; ... |
/*
* isotpserver.c
*
* Implements a socket server which understands ASCII HEX
* messages for simple TCP/IP <-> ISO 15765-2 bridging.
*
* General message format: <[data]+>
*
* e.g. for an eight bytes PDU
*
* <1122334455667788>
*
* Valid ISO 15625-2 PDUs have a length from 1-4095 bytes.
*
* Authors:
* <NAM... |
/*
* MONA
* Copyright (C) 1997-2013 Aarhus University.
*
* 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.
*
* Th... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include "users.h"
#include "seguidores.h"
#include "processos.h"
#include "posts.h"
/*
Cria um novo usuario.
*/
int create_user(){
//Struct User do novo usuario
User user;
/*
Entrada, com a verificacao para impedir de criar um usuario com um login (ni... |
#include "wavetable.h"
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define M_PI 3.14159265358979323846
const int wavetable_number_of_waves = 8;
wave* waves[8];
int wavetable_sample_rate = 44100;
float tuning = 0;
float buf0,buf1;
float f, pc, q; //filter coefficients
flo... |
/*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
/***********************************************************/
/***********************************************************/
/** **/
/** Ce fichier gère le serveur de jeu : **/
/** - connexion des clients **/
/** - i... |
/* -*- indent-tabs-mode: nil -*-
*
* injector - Library for injecting a shared library into a Linux process
*
* URL: https://github.com/kubo/injector
*
* ------------------------------------------------------
*
* Copyright (C) 2018 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it an... |
#include <u.h>
#include <libc.h>
#include "haconfig.h"
enum {
Nline = 8192,
};
static char *procname;
static char *
pname(void)
{
int fd, n;
char buf[64], *p;
if (procname)
return procname;
snprint(buf, sizeof buf, "/proc/%d/args", getpid());
fd = open(buf, OREAD);
if (fd < 0)
return "?";
n = read(fd, b... |
/*
* tfcrypt -- high security Threefish encryption tool.
*
* tfcrypt is copyrighted:
* Copyright (C) 2012-2019 <NAME>. All rights reserved.
*
* tfcrypt is licensed to you under the terms of std. MIT/X11 license:
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software... |
/*
This Example implements a simple SQL syntax parser.
INSERT INTO <table> SET column1=value1,column2=value2,...
SELECT <* | column1,columnm2,...> FROM <table> [WHERE] [ORDER BY] [LIMIT] [OFFSET]
UPDATE <table> SET column1=value1,column2=value2 [WHERE] [ORDER BY] [LIMIT] [OFFSET]
DELETE FROM <table> [WHERE] [ORDER... |
/* VNC Reflector
* Copyright (C) 2001-2004 HorizonLive.com, Inc. All rights reserved.
*
* This software is released under the terms specified in the file LICENSE,
* included. HorizonLive provides e-Learning and collaborative synchronous
* presentation solutions in a totally Web-based environment. For more
* in... |
/*
* Copyright (c) 2010-2012 Digi International Inc.,
* All rights not expressly granted are reserved.
*
* 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/.
*
* Digi... |
/*
* Copyright 2016 <NAME> <<EMAIL>>
*
* This file is part of HackRF.
*
* 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, or (at your option)
* any later version.
*
* T... |
/*
* Copyright (C) 2009 <NAME> <<EMAIL>>
* All Rights Reserved.
*
* Use and distribution of this program is licensed under the
* BSD license. See the COPYING file for full text.
*/
#include "skyload.h"
SKY_WORKER *sky_worker_new(void) {
SKY_WORKER *worker = malloc(sizeof(*worker));
if (worker == NULL) {
... |
#include <unistd.h>
#include <stdbool.h>
#include <string.h>
#include <sys/stat.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <signal.h>
#include <SDL.h>
#include "../external/ini.h"
#include "../launcher.h"
#include <launcher_config.h>
#include "unix.h"
#include "../util.h"
#include "../... |
/*
* wcharmap.c
*
* Provides an implementation-private helper function, to facilitate
* conversion from UTF-16LE wchar_t data, of arbitrary length, to an
* equivalent multi-byte character encoding sequence.
*
* $Id$
*
* Written by <NAME> <<EMAIL>>
* Copyright (C) 2019, 2020, MinGW.org Project
*
*
* Permiss... |
/*
* Copyright (c) 2010 Citrix Systems, 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, merg... |
/*
* trainer.c
*
* Example simple trainer intro in C.
*
* Written & released by <NAME> <<EMAIL>>
*
* This is free and unencumbered software released into the public domain.
* See the file COPYING for more details, or visit <http://unlicense.org>.
*/
static volatile struct amiga_custom * const cust =
(s... |
#include "network.h"
#include "config.h"
#include "cmsis_os.h"
#include "lwip/init.h"
#include "lwip/tcpip.h"
#include "lwip/dhcp.h"
#include "lwip/api.h"
#include "lwip/tcp.h"
#include "ethernetif.h"
#include "stm32f7xx_hal.h"
#include "connection.h"
#include "send_data.h"
#include "sd_config.h"
#include "http.h"
sta... |
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "../QtSpecem/h/quirks.h"
#include "../QtSpecem/h/env.h"
#define MAX_LINES 20
void show_system_vars();
// ZX Spectrum BASIC tokens as they are in ROM
char tokens[][10] =
{
"RND",
"INKEY$",
"PI",
"FN",... |
// SPDX-License-Identifier: BSD-2-Clause
/*
Copyright 2001 <NAME>
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 and the ... |
#include <stdio.h>
#include <ctype.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
/* Copyright 2021 <NAME> */
/* Divide-By-N: Num = Num / N, and Return = Num Modulo N. */
int dividebyN(char *num, int divisor, int max_digits)
{
int temp_val = 0;
int carry_val = 0;
for (int i = 0; i < max_... |
/*
* Copyright 2012 Samsung Electronics Co., Ltd
*
* Licensed under the Flora License, Version 1.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.tizenopensource.org/license
*
* Unless required by applicable law or ... |
/*******************************************************************************
@ddblock_begin copyright
Copyright (c) 1997-2018
Maryland DSPCAD Research Group, The University of Maryland at College Park
Permission is hereby granted, without written agreement and without
license or royalty fees, to use, copy, modif... |
// C program to calculate the First and
// Follow sets of a given grammar
#include<stdio.h>
#include<ctype.h>
#include<string.h>
// Functions to calculate Follow
void followfirst(char, int, int);
void follow(char c);
// Function to calculate First
void findfirst(char, int, int);
int count, n = 0;
// Stores the fina... |
#pragma once
#include "window.h"
mode = PERSPECTIVE;
GLdouble viewer[] = { 0.0, 0.0, 1.0, // initial camera location
0.0, 0.0, 0.0, // initial look at point
0.0, 1.0, 0.0 // initial upvector
};
// angle of rotation for the camera direction
float angle = 0.0;
// actual vector representing the cam... |
#include "demo_toh.h"
glb_info glbInfo;
FILE *moves;
#define PAUSE_CYCLE 10
void update( glb_info *g );
void printState( glb_info *g );
io_wme *get_output_wme( char *attribute, io_wme *head );
void toh_wait_cb( agent *a, soar_callback_data data,
soar_call_data call_data ) {
print( "*** Wait Callback Invo... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Old U-boot compatibility for Acadia
*
* Author: <NAME> <<EMAIL>>
*
* Copyright 2008 IBM Corporation
*/
#include "ops.h"
#include "io.h"
#include "dcr.h"
#include "stdio.h"
#include "4xx.h"
#include "44x.h"
#include "cuboot.h"
#define TARGET_4xx
#include "ppcboot.h"
... |
/* rtc.c - Use /dev/rtc for clock access */
#include <unistd.h> /* for close() */
#include <fcntl.h> /* for O_RDONLY */
#include <sys/ioctl.h>
#include "clock.h"
#include "nls.h"
/*
* Get defines for rtc stuff.
*
* Getting the rtc defines is nontrivial.
* The obvious way is by including <linux/mc146818rtc.h>
*... |
/*
Test for the MPI Graph routines :
MPI_Graphdims_get
MPI_Graph_create
MPI_Graph_get
MPI_Graph_map
MPI_Graph_neighbors
MPI_Graph_neighbors_count
*/
#include "mpi.h"
#include <stdio.h>
/* stdlib.h Needed for malloc declaration */
#include <stdlib.h>
#include "test.h"
void NumberEdges ( int **, int **... |
/* Routines modified from CSparse, <NAME> et al */
#include "csparse.h"
ScsMatrix *SCS(cs_spalloc)(scs_int m, scs_int n, scs_int nzmax, scs_int values,
scs_int triplet) {
ScsMatrix *A = (ScsMatrix *)scs_calloc(1, sizeof(ScsMatrix));
if (!A) {
return SCS_NULL;
} /* out of m... |
/*******************************************************************************
Name: <NAME>GRAPHIC
Purpose: Provides the transformations between Easting/Northing and longitude/
latitude for the Polar Stereographic projection. The Easting and Northing
values are in meters. The longitude and latitude are in... |
/*
* Copyright (c) 2005 MontaVista Software, Inc.
*
* All rights reserved.
*
* Author: <NAME> (<EMAIL>)
*
* This software licensed under BSD license, the text of which follows:
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... |
#include <stdio.h>
#include <stdlib.h>
#include "util.h"
#include "symbol.h"
#include "absyn.h"
#include "prabsyn.h"
// note! might end up blowing the heap doing this...
// note! should call free after every emit.
string emitint(int ifpptr);
string emitstring(string s);
string emitty(A_ty ty);
string emitexp(A_exp exp... |
#pragma once
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <time.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include "mzapo_parlcd.h"
#include "mzapo_phys.h"
#include "mzapo_regs.h"
#include "font_types.h"
//#include "wArial_44.c"
#include "utils.h"
#include "shapes.h"
int sel... |
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
typedef struct {
char ID[41];
char receiver[41];
char copyTo[41];
char sender[41];
char title[41];
char content[151];
char date[20];
} letter;
typedef struct Node {
letter data;
struct N... |
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "libvm.h"
//reverse string (str, 0, strlen-1)
void reverse(char *x, int beg, int end){
char c;
if ( beg >= end )
return;
c = *(x+beg);
*(x+beg) = *(x+en... |
/*
Author: <NAME> (c) 1997
The following program implements and tests two
algorithms for solving the discrete logarithm
problem. The algorithms are baby-step giant-step
and Pollard's rho algorithms. The implementations
are from "Handbook of Applied Cryptography" by
<NAME> et al pages 103 - 107.
... |
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <time.h>
#include "instruction.h"
#include "dstack.h"
#include "util.h"
#include "env.h"
//height = 2^POWHEIGHT
//same for width
#define POWWIDTH 5
#define POWHEIGHT 6
#define FIELDWIDTH (1 << POWWIDTH)
#define FIELDHEIGHT (1 << POWHEIGHT)
#define... |
/*
SPDX-FileCopyrightText: 2021 <NAME>
SPDX-License-Identifier: MIT
*/
#include "debug.h"
#include "hx711.h"
#include "nvm.h"
#include "twi.h"
#include "util.h"
#include <avr/eeprom.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/pgmspace.h>
#include <avr/sleep.h>
#include <avr/wdt.h>
#include... |
/* This project is based on the MIPS Assembler of CS61C in UC Berkeley.
The framework of this project is been modified to be suitable for RISC-V
in CS110 course in ShanghaiTech University by <NAME> in March 2019.
Updated by <NAME> and <NAME> in March 2021.
*/
#include <stdlib.h>
#include <stdio.h>
#include <s... |
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <stdbool.h>
//----------------------------------------------------------------------------------
// Defines and Macros
//----------------------------------------------------------------------------------
#ifndef MAX_TEXT_BUFFER_LENGTH
#define MAX... |
#include "6a-generate-output.h"
#include "alloc.h"
#include "grow-array.h"
#include <limits.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
enum substitution_type {
STRING,
UNSIGNED_NUMBER,
SIGNED_NUMBER,
};
struct substitution {
// Zero-terminated.
const char *... |
// ATMEL Microcontroller Software Support - Colorado Springs, CO -
// ----------------------------------------------------------------------------
// DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// ME... |
/**
* Main driver
* Copyright (C) 2011-2013 <NAME>
* All rights reserved.
*
* 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/.
*
* Author: <NAME> (<EMAIL>... |
/* Resolve perf style event descriptions to attr */
/*
* Copyright (c) 2014, Intel Corporation
* Author: <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 so... |
/* include ------------------------------------------------------------------ */
#include "eos_test.h"
#include "eventos.h"
#include "unity.h"
#include "unity_pack.h"
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
#include "eos_test_def.h"
/* heap function -------------------... |
/* TRS */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <sys/select.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <errno.h>
#define TRSPORT 59000
#define TCSPORT 58067
#define M... |
#include <SDL2/SDL.h>
#include <stdio.h>
#include "map.h"
#include "player.h"
#include "lua.h"
#include "mouse.h"
#include "screen-manager.h"
#include "gameloop.h"
#include "screens/narrate.h"
#include "screens/screen-main.h"
#include "screens/inventory.h"
#include "screens/add-load-save.h"
#include "../src/combat.h"
#... |
/*
postmortem.c - output of debug info on sketch crash
Copyright (c) 2015 <NAME>. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by th... |
/*
* common.c: some common bitstream operations
*
* Copyright (C) 1999-2010 The L.A.M.E. project
*
* Initially written by <NAME>, see also AUTHORS and README.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published... |
#include "blake2b.h"
#include "ckb_syscalls.h"
#include "gw_syscalls.h"
#include "secp256k1_helper.h"
#include "sha3/sha3.h"
#include "stdio.h"
/* Defines */
#define RECID_INDEX 64
#define BLAKE2B_BLOCK_SIZE 32
#define BLAKE160_SIZE 20
#define SCRIPT_SIZE 32768
#define MAX_WITNESS_SIZE 32768
#define PUBKEY_SIZE 65
#de... |
/**
* Example of pin iterrupt processing using PS/2 keyboard as interrupt source
*
* https://wiki.osdev.org/PS/2_Keyboard
*
* Commands reply usually 0xFA (ACK) or 0xFE (Resend)
*
* cmd data description
* xED led Set LEDs: 0x01 Scroll, 0x02 Num, 0x04 Caps lock
* xEE Echo, reply 0xEE (Echo) or 0xFE (Res... |
/*
Copyright 2015 Concurrent Computer Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LENGTH_AUX 100
#define PATH_MAX 1024
void NameDir(char *);
int NumTopos(char *);
void ListDir(char *, char *);
int contenString(char *);
int DirValid(char *);
int Parser(char *, char *);
int NumLines(FILE *);
int NumNodes(char *)... |
/*
* dlls/rsaenh/rsa.c
* RSA public key cryptographic functions
*
* Copyright 2004 <NAME>
* Based on public domain code by <NAME> (<EMAIL>)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software ... |
/*
* 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, software
*... |
/*
* MUH_game3.c
*
* Created on: Mar 29, 2014
* Author: Muhlbaier
*/
////////////////////////////MMmmbbbb
#include "project_settings.h"
#include "random_int.h"
#include "stddef.h"
#include "strings.h"
#include "game.h"
#include "timing.h"
#include "task.h"
#include "terminal.h"
#include "random_int.h"
#ifde... |
#include "stm32f1xx_hal.h"
#include "BME280.h"
#include "i2c.h"
#include <math.h>
#include "ssd1306.h"
uint16_t BMx280 = 0;
uint16_t dig_T1;
int16_t dig_T2;
int16_t dig_T3;
uint16_t dig_P1;
int16_t dig_P2;
int16_t dig_P3;
int16_t dig_P4;
int16_t dig_P5;
int16_t dig_P6;
int16_t dig_P7;
int16_t dig_P8;
int16_t dig_P9;
... |
/* SCTP kernel Implementation: User API extensions.
*
* sendmsg.c
*
* Distributed under the terms of the LGPL v2.1 as described in
* http://www.gnu.org/copyleft/lesser.txt
*
* This file is part of the user library that offers support for the
* SCTP kernel Implementation. The main purpose of this
* code is ... |
/* Copyright (C) 2011, 2012 The uOFW team
See the file COPYING for copying permission.
*/
/*
* uOFW/trunk/src/loadcore/systable.c
*
* System Call table
*
* A system call table is used to hold the exported functions provided
* by resident libraries. These exported functions have to be exported
... |
/*
* Generic reference iterator infrastructure. See refs-internal.h for
* documentation about the design and use of reference iterators.
*/
#include "cache.h"
#include "refs.h"
#include "refs/refs-internal.h"
#include "iterator.h"
int ref_iterator_advance(struct ref_iterator *ref_iterator)
{
return ref_iterator->... |
//I made this code with the teaching, help and assessing from my brother <NAME>
#include <stdio.h>
#include <stdlib.h>
int saveN[10];
int nums[26];
int pos = 0;
int GetSetNumByChar(char s, int num, int getNum, int setNum, char nextS);//funcion para guardar o poner un numero
int ValidateGetSet(int idx, int nu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.