text stringlengths 3.12k 18.7k |
|---|
/*
punycode.c from RFC 3492
http://www.nicemice.net/idn/
<NAME>
http://www.nicemice.net/amc/
This is ANSI C code (C89) implementing Punycode (RFC 3492).
*/
/************************************************************/
/* Public interface (would normally go in its own .h file): */
#include <limits.h... |
/*
* Copyright (c) 2014, STMicroelectronics International N.V.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License Version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... |
#define _POSIX_C_SOURCE 199309L
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <unistd.h>
#include <time.h>
#include <math.h>
#include <string.h>
#include <omp.h>
#include <argp.h>
const char *argp_program_version =
"benchmark 0.1";
/* Program documentation. */
static char doc[] =
... |
/*
* Copyright (c) 2017, [Ribose Inc](https://www.ribose.com).
*
* 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 condi... |
#include "uart.h"
#include "mbox.h"
#include "general.h"
#include "diy_sscanf.h"
#include "diy_string.h"
#include "cpio.h"
#include "diy_malloc.h"
#include "fdtb.h"
#include "sys_reg.h"
#include "timer.h"
#include <stdint.h>
#define MACHINE_NAME "rpi3-baremetal-lab3$ "
#define CMD_HELP "help"
#define CMD_HELLO ... |
/* $Id: qfits_time.c,v 1.7 2006/02/17 10:24:52 yjung Exp $
*
* This file is part of the ESO QFITS Library
* Copyright (C) 2001-2004 European Southern Observatory
*
* 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 F... |
#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... |
/*s: linkers/5l/pass.c */
#include "l.h"
// forward decls
void xfol(Prog*);
/*s: function [[brchain]](arm) */
static Prog*
brchain(Prog *p)
{
int i;
for(i=0; i<20; i++) {
if(p == P || p->as != AB)
return p;
p = p->cond;
}
return P;
}
/*e: function [[brchain]](arm) */
/... |
/**
** pscript.c:
**
** Purpose:
**
** To convert Vicar images to PostScript text file format,
** downloadable to a PostScript-compatible device.
**
** Revision History:
**
** 18 MAR 1993: NDR: Converted from FORTRAN to C (Unix Port).
** 09 JUN 1993: NDR: Fixed bugs in scaling images,
** ... |
/*
*
* ubenchmark-multiport.c
*
*
* Copyright:
* Copyright (c) 2002-2007 SFNT Finland Oy.
* All rights reserved.
*
* UDP benchmark with support for sending on multiple ports. This program
* does not support autotuning to determine the optimal sending rate.
*
*/
#include "sshinclude... |
#include "fopen_wrapper.h"
#include "util.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include <wavpack/wavpack.h>
#if 0
static uint8_t unpack_le_int8(int32_t *d, uint8_t *s) {
*d = (int8_t) *s;
return 1;
}
static uint8_t unpack_le_uint8(int32_t *d, uint8_t *s) {
*d =... |
#include "helpers.h"
#include "elfutils.h"
#if defined(__ARCH__) && __ARCH__ == 64
#define ELF_SYM Elf64_Sym
#define ELF_EHDR Elf64_Ehdr
#define ELF_PHDR Elf64_Phdr
#define ELF_SHDR Elf64_Shdr
#define ELF_DYN Elf64_Dyn
#else
#define ELF_SYM Elf32_Sym
#define ELF_EHDR Elf32_Ehdr
#define ELF_PHDR Elf32_Phdr
#d... |
#include <stdint.h>
#include "cmsis.h"
#include <stdio.h>
extern void gf_polymul_32x32(void *h, void *f, void *g);
extern int jump32divsteps(int minusdelta, int *M, int *f, int *g);
void jump64steps(int minusdelta, int *M, int *f, int *g);
void gf_polymul_32x32_2x2_x2p2 (int *V,int *M,int *fh,int *gh);
void gf_polymul_... |
/*
* Copyright (c) 2019-2021, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <stdbool.h>
#include <stdint.h>
#include "os_wrapper/mutex.h"
#include "os_wrapper/thread.h"
#include "os_wrapper/tick.h"
#include "psa/client.h"
#include "psa/internal_trusted_storage.h"
#inclu... |
#pragma once
#ifdef __cplusplus
#define AL2O3_EXTERN_C extern "C"
#else //!__cplusplus
#define AL2O3_EXTERN_C
#endif // end !_cplusplus
// platform options
#define AL2O3_PLATFORM_WINDOWS (0)
#define AL2O3_PLATFORM_APPLE_MAC (1)
#define AL2O3_PLATFORM_IPHONE (2)
#define AL2O3_PLATFORM_UNIX (3)
#define AL... |
// Porres 2016
#include "m_pd.h"
#include "math.h"
#define TWO_PI (3.14159265358979323846 * 2.)
typedef struct _freqshift{
t_object x_obj;
t_inlet *x_inlet_freq;
t_outlet *x_out1;
t_outlet *x_out2;
t_float x_r1x1;
t_float x_r1x2;
t_float x_r1y1;
t_float x_r1y... |
#include "platform.h"
#include "stm32f10x.h"
#include <string.h>
#include "hw_config.h"
#include "modem.h"
#include "adc.h"
#include "rfm12.h"
#include "buf.h"
#define MAGIC_ADDR 0x20002000
#define MAGIC_KEY 0xDEADBEEF
static uint8_t Mdm_state = MDM_STATE_CMD;
uint16_t Mdm_CMDTimeout = 1000; // 50ms
uint16_t Mdm... |
/* File: md_filter.c; Copyright and License: see below */
#include "md/md_filter.h"
#include "util/string/utf8stringview.h"
#include "trace.h"
#include "tslog.h"
#include <stdio.h>
#include <stdbool.h>
#include <assert.h>
/* Note, this is no full markdown syntax support - but it helps keeping markdown in shape */
sta... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
/* $Id: out.c,v 1.43 2011/09/20 23:05:49 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 <NAME> <<EMAIL>>
* Copyright (c) 2011 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notic... |
/*
* Christmas Tree - Brought to you by SDL2 and OpenGL
* Inspired by: https://github.com/anvaka/atree#
*
* <NAME>, 2019 - 2020
*/
#include <stdio.h>
#include <stdbool.h>
#include <assert.h>
#include <math.h>
#include <SDL2/SDL.h>
#define GL_GLEXT_PROTOTYPES 1
#include <SDL2/SDL_opengl.h>
#include <cglm/cglm.h>... |
// Portions Copyright 2019 Advanced Micro Devices, Inc.All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless r... |
void rbitrev(double* x, int m);
void rstage(int n, int n2, int n4, double* x1, double* x2, double* x3, double* x4);
/*
CC=================================================================CC
CC CC
CC Subroutine RSRFFT(X,M): ... |
#include <pebble.h>
#include "config.h"
static Window *window;
static Layer *layer;
static char info_text[256] = "";
static char info_text2[256] = "";
#define KEY_PERSIST_SENSIBILITY 1
#define SENSIBILITY_INI 200
int sensibility = SENSIBILITY_INI;
int cadence = 0;
bool debug = false;
#define NB_X_CHANGE_DTS 10
... |
#include "2450addr.h"
#include "my_lib.h"
#include "pink.h"
#include "start.h"
#include "blue.h"
#include "option.h"
#include "blue_c.h"
#include "pink_c.h"
#include"lose.h"
#include"victory.h"
#include"draw.h"
#include"restart.h"
#define BLACK 0x0000
#define WHITE 0xFFFF
#define A1 880 // ... |
#include "xmfract.h"
#include "fractype.h"
#include "macros.h"
#include "helpdefs.h"
#include "mpmath.h"
#include "globals.h"
#include "prototyp.h"
#ifndef NO_IDENT
#ident "$Id: tesseral.c,v 1.400 1995/06/20 15:39:23 darryl Exp $"
#endif
/* static functions */
static int tesschkcol(int x, int y1, int y2);
static int... |
/*
Test for MIPS branch likely instructions only executing their delay slot instruction when the branch is taken.
Currently it seems to always execute the delay slot instruction like a normal non-"likely" style branch.
*/
// windows specific
#ifdef _MSC_VER
#include <io.h>
#include <windows.h>
#include <process... |
/*
* Copyright © 2013-2017 <NAME>
*
* This file is part of FreshPlayerPlugin.
*
* 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 r... |
// SPDX-License-Identifier: BSD-2-Clause
/*
* Copyright (c) 2019 Huawei Technologies Co., Ltd
*/
/*
* SM3 Hash algorithm
* thanks to Xyssl
* author:goldboar
* email:<EMAIL>
* 2011-10-26
*/
#include <string.h>
#include <string_ext.h>
#include "sm3.h"
#define GET_UINT32_BE(n, b, i) \
do { \
(n) = ((... |
#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... |
/* code to account for a mount model.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <math.h>
#include <time.h>
#include "P_.h"
#include "astro.h"
#include "circum.h"
#include "configfile.h"
#include "telstatshm.h"
#include "strops.h"
#include "csiutil.h"
#include "telenv.h... |
/*
** EPITECH PROJECT, 2017
** load_functions
** File description:
** Load authorized functions in memory
*/
#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "my.h"
#include "structs.h"
#include "functions.h"
#include "stacktrace.h"
int char_valid(char c)
{
... |
/* ----------------------------------------------------------------------------
* Nuvoton Software Package License
* ----------------------------------------------------------------------------
* Copyright (c) 2012, Nuvoton Corporation
*
* All rights reserved.
*
* Redistribution and use in source and bin... |
#include <stdio.h>
#include <stdint.h>
//Base64url encoding table
static const unsigned char base64urlEncTable[64] =
{
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i... |
/***************************************************************************//**
* @file
* @brief Routines for the Sub-Ghz Client plugin.
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
*******************... |
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <fd/fd_types.h>
#include "fdimage.h"
#include "qdbmp.h"
#include "darknet.h"
#include "config.h"
#define DBG 0
#define WRITE_BMP 1
pixel pixel_max(pixel pa, pixel pb){
pixel ret;
ret.r = pa.r > pb.r ? pa... |
/*
* ident.c
*
* create git identifier lines of the form "name <email> date"
*
* Copyright (C) 2005 <NAME>
*/
#include "cache.h"
static char git_default_date[50];
#ifdef NO_GECOS_IN_PWENT
#define get_gecos(ignored) "&"
#else
#define get_gecos(struct_passwd) ((struct_passwd)->pw_gecos)
#endif
static void copy_g... |
#define _GNU_SOURCE
#include <unistd.h>
#include <sys/syscall.h>
#include <linux/types.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include <linux/bpf.h>
#include "bpf_elf.h"
#include "uid.h"
#define DUMP_PROGRAM false
struct whole_elf {
size_t size;
char *data;
};
static v... |
/*
* Copyright (c) 2017-2018 Mellanox Technologies Ltd. ALL RIGHTS RESERVED.
*
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
#include "generic.h"
#include <mxm/api/mxm_api.h>
mxm_mq_h mq;
mxm_conn_h conn;
mxm_ep_h ep;
mxm_h mxmh;
int *quit_flag = NULL;
#define MXM_TEST_HID_QUIT 4
int i... |
/*
* serial-trap.c
*
* Written by
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* 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 Fr... |
/*******************************************************************************
MPLAB Harmony Application Source File
Company:
Microchip Technology Inc.
File Name:
app_eeprom.c
Summary:
This file contains the source code for the MPLAB Harmony application.
Description:
This fi... |
/* GELL 15.26: include file for the module: "ttywindow" */
/* translation done: "Tue Aug 24 93 10:49:29 " */
/* impure LLM3 predefined */
extern Ptr GIdlink, GIllink, GIfcons, GIevalst;
/* LLM3 functions */
extern Ptr GXunbind7(), GXunbind5(), GXunbind3(), GXunbind1();
extern Ptr ... |
/*
ucg_box.c
Universal uC Color Graphics Library
Copyright (c) 2013, <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 must retain the above co... |
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
#include "gf3d_raycast.h"
#include "gf3d_physics.h"
void resetRayResult(RaycastResult* outResult) {
if (outResult != NULL) {
outResult->t = -1;
outResult->hit = false;
outResult->normal = vector3d(0, 0, 1);
outResult->point = vector3d(0, 0, 0);
}
}
//Assume a is a sphere -- returns t which is time of coll... |
// GLXBasics.c
// Use GLX to setup OpenGL windows
// Draw eyeballs
// OpenGL SuperBible, 5th Edition
// <NAME>
#include <X11/Xlib.h>
#include <GL/gl.h>
#include <GL/glx.h>
// #include <glxew.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define PI 3.14159265
// Store all system info i... |
#include <Python.h>
#include <_api.h>
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/library/large_fd_set.h>
#include <zmq.h>
#include <czmq.h>
#if CZMQ_VERSION_MAJOR < 3
#define zmsg_addstrf zmsg_addstr
#endif
/* Global counters */
static int active_hosts = 0;
/* G... |
// SPDX-License-Identifier: Apache-2.0
/*
* Copyright IBM Corp. 2021
*
* 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 ... |
/**
* @file cvms5.h
* @brief Main header file for CVM-S5 library.
* @author <NAME> - SCEC <<EMAIL>>
* @version 1.0
*
* Delivers CVM-S5 which consists of <NAME> and <NAME>'s full 3D
* tomographic results with a Vs30-based GTL as per <NAME> and <NAME>.
*
*/
// Includes
#include <stdio.h>
#include <stdlib.h>
#in... |
#include <stdio.h>
#include <stdlib.h>
#include "arvore_binaria.h"
void ola_mundo(){
printf("Ola mundo");
}
//Função que retorna uma função vazia
struct noArv* arv_criavazia (void){
return NULL;
}
//Inicia uma arvore com seu primeiro valor.
struct noArv* arv_cria(int id, struct noArv* sae, struct noArv* sad... |
int moveGameInterval = 150;
bool congratsHighScoreScreen = false;
bool congratsScreen = false;
bool playAgainScreen = false;
// -1 left, 1 right, 2 up, -2 down
int snakeDirection = 0;
// HIGH SCORE -> PLAYER
String player = "____";
const String alphabet = "abcdefghijklmnopqrstuvwxyz";
const byte maxLetterP... |
/* BFD back-end for Hitachi Super-H COFF binaries.
Copyright 1993, 1994 Free Software Foundation, Inc.
Contributed by Cygnus Support.
Written by <NAME>, <<EMAIL>>.
This file is part of BFD, the Binary File Descriptor library.
This program is free software; you can redistribute it and/or modify
it under the t... |
/*
* Copy me if you can.
* by 20h
*/
#define _BSD_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <strings.h>
#include <sys/time.h>
#include <time.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <X11/Xlib.h>
#define BLOC... |
/*
* Copyright (c) 2019-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... |
/*
$Id$
Copyright 1989-2014 <NAME>
This file is part of Linear/C3 Library.
Linear/C3 Library is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later v... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "error.h"
#include "modules.h"
/*
* This is a simulation of SPD EEPROM I2C slave.
* It only supports basic read/write commands.
* Although it has been written with SPD EEPROM chips in mind, it should be
* compatible with some other EEPROM chips th... |
/*
** print_packet.c for print_packet in /home/janel/Documents/coding/my_network_analyser
**
** Made by SRJanel
** Login SRJanel <<EMAIL>>
**
** Started on Sat Aug 19 21:29:04 2017
** Last update Mon Oct 23 03:10:06 2017
*/
#include <ctype.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/udp.h>
#in... |
/* -*- C -*-
* Copyright (c) 1997-2006 <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... |
/******************************************************************************
* File Name : can_driver_errors_printf.c
* Date First Issued : 09/06/2016
* Board : f103
* Description : Print the error counts for the can_driver
***************************************************************... |
/*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (c) 2015 <NAME> (MetalPhreak)
*
* 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.... |
#include "shmem.h"
/*********************************************************************
samplesort.c: source: http://www.cse.iitd.ernet.in/~dheerajb/MPI/codes/day-3/c/samplesort.c
Objective : To sort unsorted integers by sample sort algorithm
Write a MPI program... |
/*
* alock - bg_image.c
* Copyright (c) 2005 - 2007 <NAME> <akira at fluxbox dot org>
* 2014 - 2016 <NAME>
*
* This file is a part of an alock.
*
* This project is licensed under the terms of the MIT license.
*
* This background module provides:
* -bg image:file=<file>,color=<color>,shade=<int>... |
/*-----------------------------------------------------------------------------
* $RCSfile: ClCmn.c,v $
*
* See Copyright for the status of this software.
*
* The OpenSOAP Project
* http://opensoap.jp/
*-----------------------------------------------------------------------------
*/
#include "ClCmn.h"
#includ... |
/*
* Copyright (c) 2016, CESAR.
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*
*/
#include <errno.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <stdb... |
#include "rand.h"
/* This is a library of random number generators.
RAN0, RAN1, RAN2 and RAN3 are based on functions of the same name taken
from "Numerical Recipes".
*/
/* Define some variables that are used globally in the random functions. */
int inextran,inextranp ;
long iyran, irandum, iranbuf[98], ... |
/*
* Copyright (c) 2013-2015, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC)
* 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 r... |
/*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2013 <NAME> <<EMAIL>>
*
* 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/... |
#include <CoOS.h> /*!< CoOS header file */
#include <stdio.h>
#include "stm32f4xx_conf.h"
#include "LCD.h"
#include "BSP.h"
#include "LedTask.h"
#define STACK_SIZE_LCD 1024 /*!< Define "taskA" task size */
OS_STK LCD_stk[6][STACK_SIZE_LCD]; /*!< Define "taskA" task s... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/epoll.h>
#include <fcntl.h>
#include <omp.h>
#include "myqueue.h"
#define IP "127.0.0.1"
#define PORT 3000
#define MAX_CLIENT 2
#defin... |
#include "liumlib.h"
void NotImplemented(const char* s) {
Print("Not Implemented: ");
Println(s);
exit(1);
}
char *strstr(const char *haystack, const char *needle) {
int needle_len = strlen(needle);
while(*haystack) {
if(strncmp(haystack, needle, needle_len) == 0) {
return (char *)haystack;
}... |
#include "DataProcessing.h"
#ifdef HAVE_LIBZ
#include <zlib.h>
typedef struct
{
z_stream z_in;
z_stream z_out;
} zlibData;
#endif
//Zlib is a little weird. It accepts a pointer to a buffer (next_in) and a buffer length (avail_in) to specify the input
//and another buffer (next_out) and length (avail_out)... |
/* $NetBSD: rside.c,v 1.2 2004/01/04 13:49:49 chris Exp $ */
/*
* Copyright (c) 2004 <NAME>
* All rights reserved.
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
void inputUser();
void render();
void locar();
int excluir();
int alterar();
void listar();
int busc();
typedef struct
{
char nome[50];
char sobre[50];
int idade;
char sex;
char cpf[20];
char rg[20];
char end[100];
char tel[15];
c... |
#include <ctlra.h>
#include <string.h>
#include <cairo/cairo.h>
#include "config.h"
#include "impl.h"
#include "usb.h"
#include "immintrin.h"
static inline
void pixel_convert_from_argb(int r, int g, int b, uint8_t *data)
{
r = ((int)((r / 255.0) * 31)) & ((1<<5)-1);
g = ((int)((g / 255.0) * 63)) & ((1<<6)-1);
b... |
// -*- mode: c; tab-width: 4; indent-tabs-mode: 1; st-rulers: [70] -*-
// vim: ts=8 sw=8 ft=c noet
/*
* Copyright (c) 2015 Pagoda Box Inc
*
* 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... |
#include <Python.h>
#include "../include/CooklangParser.h"
#include "../include/ShoppingListParser.h"
// python wrapper methods
static PyObject * methodPrintRecipe(PyObject * self, PyObject * args){
Py_ssize_t i;
Py_ssize_t j;
Py_ssize_t length;
Py_ssize_t stepLength;
Py_ssize_t pos = 0;
const char * k... |
/* -*- Mode: C; c-basic-offset:3 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2011-2017 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2011 UT-Battelle, LLC. All rights reserved.
* Copyright (c) 2014 Research Organization for Information Science
* ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "process_rgb.h"
#include "process_grayscale.h"
#include "process_binary.h"
#include "image_processing.h"
double elapsed_time(void)
{
static struct timespec last_time,current_time;
last_time = current_time;
if(clock_gettime(CL... |
// 13 december 2014
// damn winsock
static void doselect(struct table *t, intptr_t row, intptr_t column)
{
RECT r, client;
intptr_t oldrow;
LONG width, height;
struct rowcol rc;
BOOL dovscroll;
intptr_t i;
intptr_t xpos;
LONG clientWidth;
// check existing selection to see if it's valid
if (t->selectedRow =... |
/*
* Title: analog.h - header file for log analyzer
*
* Description: This file provides structures and macros for log analyzer.
*
* Types:
* PoolLogRec Poolsnap structure
* MemLogRec Memsnap structure
* LogType Enumeration of known log types
*
* Macros:
*
* GET_DELTA ... |
/*
* multival.c - The Apache::MultiVal class
* $Id$
*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2003 RubyCrafters, LLC. 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. Redistributi... |
#include "tests.h"
#include "x86_desc.h"
#include "lib.h"
#include "idt.h"
#include "rtc_driver.h"
#include "terminal.h"
#include "filesystem.h"
#define PASS 1
#define FAIL 0
/* format these macros as you see fit */
#define TEST_HEADER \
printf("[TEST %s] Running %s at %s:%d\n", __FUNCTION__, __FUNCTION__, __FILE__... |
/* PPPoS Client Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <string.h>
... |
#include <ultra64.h>
#include "mapsel.h"
#include "render.h"
#include "main.h"
#include "pad.h"
#include "game.h"
#include "save.h"
#include "map.h"
#include "text.h"
#define SCREEN_W 320
#define SCREEN_H 240
#define UI_BASE_POS_X (MAP_X_OFS+(MAP_WIDTH*MAP_BRICK_W)+12)
#define UI_CENTER_POS_X (UI_BASE_POS_X+((SCREEN_W... |
#include <syslog.h>
#include <stdlib.h>
#include <string.h>
#include <libconfig.h>
#include "actions.h"
#include "database.h"
#include "utils.h"
#include "config.h"
#include "net.h"
struct bt_connect_reply* connect_request(struct bt_connect_request *request) {
struct bt_connect_reply *reply = malloc(sizeof(struct b... |
#include "libimgJpeg.h"
#include "../libgen/libgenDebug.h"
#include <unistd.h>
/* Overridden error handlers, mostly for decompression */
#define MAX_JPEG_ERRS 25
static int jpeg_err_count = 0;
void local_jpeg_error_exit( j_common_ptr cinfo )
{
static char buffer[JMSG_LENGTH_MAX];
local_error_ptr local_err = (loc... |
/*
* sensors.c
*
*/
#include <math.h>
#include "renesas_sensors.h"
#include "r_riic_rx_if.h"
struct bmi160_dev bmi160;
struct bme680_dev gas_sensor;
struct isl29035_dev isl_dev;
/*wrapper function to match the signature of bmm150.read */
static int8_t bmi160_aux_rd(uint8_t id, uint8_t reg_addr, uint8_t *aux_data... |
/*
* traj_qsp.c
*
* Created on: Jul 19, 2020
* Author: derek-lam
*/
#include "traj.h"
#include "traj_qsp.h"
#include <math.h>
static void qsp(float *ts, float *q, float t, uint8_t tau, float *r) {
float T[4][3] = { 0 };
float Tt[4] = { 0 };
for(uint8_t i = 0; i < 4; i++) {
for(uint8_t j = i + 1; j < 4... |
/*
* md5-internal.c
*
* Created on: Aug 26, 2019, 2:04:47 PM
* Author: <NAME>
*/
#include "md5-internal.h"
#include "crypto-internal.h"
#include "macros.h"
#include <assert.h>
#include <string.h>
#include <stdlib.h>
/* A block, treated as a sequence of 32-bit words. */
#define MD5_DATA_LENGTH 16
/* MD5 fu... |
/*
* libhfs - library for reading and writing Macintosh HFS volumes
* Copyright (C) 2000 <NAME> (<EMAIL>)
* Original work by 1996-1998 <NAME> (<EMAIL>)
*
* This file defines constants,structs etc needed for this library.
* Everything found here is usually not related to Apple defintions.
*
* This program is fre... |
/*
Author: <NAME> <<EMAIL>>
Copyright (c) 2015 Cromulence LLC
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 2020 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Kernel selection, loading, verification, and booting.
*/
#include "2common.h"
#include "2kernel.h"
#include "2misc.h"
#include "2nvstorage.h"
#i... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <time.h>
/* --- PRINTF_BYTE_TO_BINARY macro's --- */ //https://stackoverflow.com/a/25108449/14943431
#define PRINTF_BINARY_PATTERN_INT8 "%c %c %c %c %c %c %c %c"
#define PRINTF_BYTE_TO_BINARY_INT8(i) \
(((i) & 0x80ll) ? '1' : '0'), \
(((... |
/*
* libuwifi - Userspace Wifi Library
*
* Copyright (C) 2005-2016 <NAME> (<EMAIL>)
*
* This source code is licensed under the GNU Lesser General Public License,
* Version 3. See the file COPYING for more details.
*/
#include <string.h>
#include <stdint.h>
#include <endian.h>
#include "platform.h"
#include "wl... |
/* h316_lp.c: Honeywell 316/516 line printer
Copyright (c) 1999-2008, <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 r... |
/*
* Copyright (C) 2020 <EMAIL>
*
* 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 i... |
/******************************************************************************
* @section DESCRIPTION
*
* Print library.
*****************************************************************************/
#include <vic_driver_shared_image.h>
/***************************************************************************... |
/*
* Copyright (c) 1993-1997, Silicon Graphics, Inc.
* ALL RIGHTS RESERVED
* Permission to use, copy, modify, and distribute this software for
* any purpose and without fee is hereby granted, provided that the above
* copyright notice appear in all copies and that both the copyright notice
* and this permission... |
#include<stdio.h>
#include<stdlib.h>
#include<windows.h>
#include<conio.h>
#include<string.h>
int menu();
int checkacc();
int delacc();
int updateacc();
int menuchoice();
int choice,age;
char username[20],password[10],usr[20],pass[10],name[20],line[140],lineread[140];
unsigned long long phoneno;unsigned long money;
st... |
/*
* Copyright (c) 2018, GreenWaves Technologies, 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:
*
* o Redistributions of source code must retain the above copyright notice, this list... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.