source string | code_lang string | content string | idx int64 |
|---|---|---|---|
the-stack-v2-dedup | C | #pragma once
#ifdef _AFX
#define ERR_MSG(Message) AfxMessageBox(Message)
#else
#define ERR_MSG(Message) MessageBox(nullptr,Message,L"System_Error",MB_OK)
#endif
// KEY 관련
#define KEY_LBUTTON 0x00000001
#define KEY_RBUTTON 0x00000002
#define KEY_LEFT 0x00000004
#define KEY_RIGHT 0x00000008
#define KEY_S 0... | 1,329,900 |
the-stack-v2-dedup | C |
#pragma once
#include <cstdlib>
typedef struct ComplexStruct {
float real;
float imag;
} Complex;
size_t xgpuReorderMatrix(Complex *matrix, size_t matLength,
size_t nfrequency, size_t nstation, size_t npol);
void xgpuExtractMatrix(Complex *matrix, Complex *packed,
... | 1,329,901 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
#include <sys/wait.h>
#include <sys/file.h>
int main(int argc, char** argv){
if (argc != 2) return 22;
srand(time(NULL));
int number_of_files = atoi(argv[1]);
int no_lines, line_size;
char* file_name = ... | 1,329,902 |
the-stack-v2-dedup | C | /* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 2002 Xodnizel
*
* 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... | 1,329,903 |
the-stack-v2-dedup | C | #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... | 1,329,904 |
the-stack-v2-dedup | C |
//{{BLOCK(espurrPAL)
//======================================================================
//
// espurrPAL, 16x16@4,
// + palette 16 entries, lz77 compressed
// Total size: 32 = 32
//
// Time-stamp: 2019-03-03, 16:26:58
// Exported by Cearn's GBA Image Transmogrifier, v0.8.14
// ( http://www.coranac.com/projects/... | 1,329,905 |
the-stack-v2-dedup | C |
//{{BLOCK(R)
//======================================================================
//
// R, 64x32@8,
// + palette 3 entries, not compressed
// + 32 tiles Metatiled by 8x4 not compressed
// Total size: 6 + 2048 = 2054
//
// Time-stamp: 2017-04-15, 15:00:30
// Exported by Cearn's GBA Image Transmogrifier, v0.8.6
//... | 1,329,906 |
the-stack-v2-dedup | C | #pragma once
#include<stdint.h>
typedef uint64_t BitmapType;
#define BitmapMaxSize 1000
typedef struct Bitmap
{
uint64_t* data;
uint64_t capacity;//位图最多能容纳多少位
}Bitmap;
//初始化
void BitmapInit(Bitmap* bm,uint64_t capacity);
//销毁
void BitmapDestroy(Bitmap* bm);
//将某一位设置为1
void BitmapSet(Bitmap* bm,uint64_t index);... | 1,329,907 |
the-stack-v2-dedup | C | // Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
// Project developers. See the top-level LICENSE file for dates and other
// details. No copyright assignment is required to contribute to VisIt.
// ************************************************************************* //
// ... | 1,329,908 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* :::::::: */
/* validate_input.c :+: :+: ... | 1,329,909 |
the-stack-v2-dedup | C | /*
* Tiago Correia - 1151031@isep.ipp.pt
* ARQCP - Turma 2DK
*
* even_number_printer.c
*
*/
#include <stdio.h>
/*
* Receives an array of integers and prints all its even numbers.
*/
void even_number_printer(int size, int* array){
int i;
printf("The even numbers in the array are:\n");
for(i ... | 1,329,910 |
the-stack-v2-dedup | C | #ifndef T_GUI_Data_H
#define T_GUI_Data_H
#include "T_Radar_Data.h"
#include "T_Simulator_Data.h"
#include "T_Viewer_Data.h"
#include "T_General_Data.h"
//-----------------------------------------
// Struct: T_GUI_Status
//-----------------------------------------
typedef struct T_GUI_Data
{
//--------------------... | 1,329,911 |
the-stack-v2-dedup | C | // 4. write a program which accept number from user and return multiplication of all digit.
// Input : 2395
// Output :270
// Input : 1018
// Output :8
// Input : 9440
// Output :144
// Input : 922432
// Output :864
// Time complexity is O(n)
#include<stdio.h>
int MultDigits(int iNo)
{
... | 1,329,912 |
the-stack-v2-dedup | C | #include <stdio.h>
int main()
{
char ch;
char ch1;
int flag=0;
while((ch=getchar())!='#')
{
if(ch=='e')
ch1=ch;
if(ch1=='e' && ch=='i')
flag++;
}
printf("The total count is %d",flag);
return 0;
}
| 1,329,913 |
the-stack-v2-dedup | C | /*--------------------------------------------------------------------------+
| |
| Copyright (c) 1992 by Info Tech, Inc. All Rights Reserved. |
| |
| ... | 1,329,914 |
the-stack-v2-dedup | C | /home/mohamed/tiago_public_ws/devel/.private/temperature_sensor_controller/include/temperature_sensor_controller/ActuatorTemperatureState.h | 1,329,915 |
the-stack-v2-dedup | C | #include <stdio.h>
int go() {
printf("Hello, world. This is a string. It should stay, even /* though there are // comment tags everywhere */!");
return 0;
}
| 1,329,916 |
the-stack-v2-dedup | C | #include <Python.h>
#include <structmember.h>
#include "libsass/sass_interface.h"
PyDoc_STRVAR(sass_module_doc,
"sass - document me\n");
// py_sass_options
typedef struct {
PyObject_HEAD;
// The options are stored directly in the python object
struct sass_options options;
} py_sass_options;... | 1,329,917 |
the-stack-v2-dedup | C | ../../../GTSpec/Example/GTSpec/Classes/Defines/MGJEXTScope.h | 1,329,918 |
the-stack-v2-dedup | C | /*
* blackbox_converter.h
*
* Author: ptr
*/
#include "calendars.h"
#include "coordinate_system.h"
#include "ordinal.h"
#ifndef BLACKBOX_CONVERTER_H_
#define BLACKBOX_CONVERTER_H_
BYTE parse_single_number(char * str_in, int32 * int_number);
pt_error_type instant_strings_to_ptime_instants(int32 *int_count, P... | 1,329,919 |
the-stack-v2-dedup | C | #include<stdio.h>
void main()
{
int i,a[i],max;
printf("\n enter an array");
for(i=0;i<5;i++)
{
scanf("\n %d",&a[i]);
}
max=a[0];
for(i=0;i<4;i++)
{
if(a[i]<a[i+1])
max=a[i+1];
}
printf("\nmax value %d ",max);
}
| 1,329,920 |
the-stack-v2-dedup | C | #include "libpov.h"
int main(int cgc_argc, char *cgc_argv[]) {
cgc_negotiate_type1(0x0, 0x0, 0);
do {
//*** writing data
static unsigned char write_00000_00000[] =
"\x31\x0a\x5b\x7b\x22\x61\x22\x3a\x20\x74\x72\x75\x65\x7d\x2c\x20"
"\x7b\x22\x62\x22\x3a\x20\x5b\x7b\x22\x6e\x79\x61\x6... | 1,329,921 |
the-stack-v2-dedup | C | /*
* Copyright (C) 2009-2012 Melexis N.V.
*
* Software Platform
*
*/
#ifndef IOPORTS_H_
#define IOPORTS_H_
#include <mmc16_io.h>
/* -------------------------------------------------------------------------
* System service to switch to System mode (product specific,
* see product's linker script to define th... | 1,329,922 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<math.h>
typedef struct
{
int a,b;
}rational;
void citire(rational* x, char c)
{
printf("Dati numarul rational %c:\n",c);
printf("\tnumaratorul: ");
scanf("%d",&x->a);
int n;
do
{
printf("\tnumitorul: ");
scanf("%d",&n);
}
while(n==0);
x->b=n;
}
void afisare(rational x, char c... | 1,329,923 |
the-stack-v2-dedup | C | // qiufeng-chenfa.c 秋风拂尘
#include <ansi.h>
inherit SKILL;
mapping *action = ({
([ "action": "$N端坐不动,一招「秋风拂叶」,手中$w带着一股劲风,击向$n的脸颊",
"force" : 40,
"dodge" : 20,
"damage": 20,
"lvl" : 0,
"skill_name" : "秋风拂叶",
"damage_type": "刮伤"
]),
([ "action": "$N单臂一挥,一招「玉带围腰」,手中$w直绕向$n的身后",
... | 1,329,924 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <cs50.h>
int main(void)
{
// Ask the user to enter a height
int height;
do
{
height = get_int("Height: ");
}
while (height < 1 || height > 8);
// Prints the pyramid until the specified height
for (int i = 1; i <= height; i++)
{
// For lo... | 1,329,925 |
the-stack-v2-dedup | C | /*
* File: assignmentAdd.c
*
* MATLAB Coder version : 3.2
* C/C++ source code generated on : 26-Dec-2018 13:48:23
*/
/* Include Files */
#include "rt_nonfinite.h"
#include "assignmentAdd.h"
/* Function Definitions */
/*
* ASSIGNMENTADD Summary of this function goes here
* Detailed explanation g... | 1,329,926 |
the-stack-v2-dedup | C | #include "global.h"
#include "raw_data.h"
#include "display.h"
#include "game_data.h"
struct s_game_data game_data;
int data_load_raw(ansigraphic_image_t* dest, char*src) {
ansigraphic_ivector2_t xy;
int x, y;
int width = dest->width;
int height = dest->height;
char val;
y = -1;
while (++y < height) {... | 1,329,927 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_next_line.c :+: :+: :+: ... | 1,329,928 |
the-stack-v2-dedup | C | ../../../YLT_BaseLib/YLT_BaseLib/Classes/Category/NSArray+YLT_Log.h | 1,329,929 |
the-stack-v2-dedup | C | #include <stddef.h>
#include "kernel.h"
#include "lib/malloc.h"
#include "lib/queue.h"
#include "events.h"
fifo_queue* event_queue;
void events_install() {
fifo_queue_init(event_queue);
}
/* Add an event to the event queue
* The caller is responsible for malloc()ing the data parameter.
* Once the event is no long... | 1,329,930 |
the-stack-v2-dedup | C | #ifndef FAH_PARSE_UTILITIES_H
#define FAH_PARSE_UTILITIES_H
MYSQL* getMysqlConn();
int bprintf(char ** buffer, size_t * bufsize, const char * format, ... );
void mysqlErrAndExit(MYSQL* dbconn, char *text);
void errAndExit(char *text);
#endif
| 1,329,931 |
the-stack-v2-dedup | C | /*
* normalize
*/
#include <stdio.h>
#include <sys/file.h>
#include <math.h>
#include <hipl_format.h>
#define errexit(msg) fprintf(stderr,"%s\n", msg), exit(1)
char usage[] =
"usage: normalize rt_mn_sq seq";
int main(argc, argv)
int argc;
char **argv;
{
struct header hd;
FILE *fp;
register float *ip;
r... | 1,329,932 |
the-stack-v2-dedup | C | /*
* chosen-plaintext attack for the matasano challenge #14
*
*/
#include <string.h>
#include <stdlib.h>
#include "../lib/libkrypto.h"
#include "../lib/hacking.h"
int main(void)
{
unsigned char
ciphertext[4096], decrypted[512],
ciphertext_block[16], chosen_plaintext[64], random_prefix[2048];
int
i, ... | 1,329,933 |
the-stack-v2-dedup | C |
// Use resetGyro and getGyroDegrees
#pragma config(StandardModel, "Clawbot IQ With Sensors")
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main()
{
resetGyro(port4);
setMotorSpeed(motor1, -50);
setMotorSpeed(motor6, 50);
while(getGyroDegrees(port4) < 90){
}
stopMult... | 1,329,934 |
the-stack-v2-dedup | C | /** @file hal/micro/sim-eeprom.h
* See @ref simeeprom for documentation.
*
* <!-- Copyright 2008 by Ember Corporation. All rights reserved. *80*-->
*/
/** @addtogroup simeeprom
* @brief Simulated EEPROM access functions.
*
* The Simulated EEPROM system is designed to operate under the @ref tokens
* AP... | 1,329,935 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* execute_rrr.c :+: :+: :+: ... | 1,329,936 |
the-stack-v2-dedup | C | #ifndef USER_API_H
#define USER_API_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "ZDApp.h"
#include "AF.h"
void user_show_info(void);
afStatus_t user_send_data( afAddrMode_t mode, uint16 addr, char *data_buf );
void user_state_change( devStates_t state );
#ifdef __cplusplus
}
#endif
#endif /* USER_API_H */
| 1,329,937 |
the-stack-v2-dedup | C | // Accept a string from user and count number of whitespaces in it.
#include<stdio.h>
#include<string.h>
int CountSpaces(char *s)
{
int i=0;
int cnt=0;
for(i=0;s[i]!='\0';i++)
{
if(s[i]==32)
{
cnt++;
}
}
return cnt;
}
int main()
{
char str[30... | 1,329,938 |
the-stack-v2-dedup | C | #include <SDL/SDL.h>
#include <math.h>
#define WIDTH 640
#define HGHT 510
#define mapWidth 24
#define mapHeight 24
typedef struct s_vect
{
int x;
int w;
int cont;
int mapX;
int mapY;
int stepX;
int stepY;
int hit;
int side;
int lineHeight;
int drawStart;
int drawEnd;
int color;
double sideDistX;
double... | 1,329,939 |
the-stack-v2-dedup | C | #include "extremite.h"
void echo(int f, char* hote, char* port);
int ext_in(char * port, char * hote, int fd)
{
char ip[NI_MAXHOST]; /* adresse IPv4 en notation pointée */
struct addrinfo *resol; /* struct pour la résolution de nom */
int s; /* descripteur de socket */
/* Résolution de l'hôte */
if ( getadd... | 1,329,940 |
the-stack-v2-dedup | C | #pragma once
/* sorts array in ascending order of size "size". */
void radix_sort(int *array, int size);
/* reverses an array of size "size". */
void reverse(int *array, int size);
/* moves all non-zero elements of array to head of array, and fills rest of the element wit zero, at the end. */
void move_array (int *a... | 1,329,941 |
the-stack-v2-dedup | C | /****************************************************************************
*
* Firefly X10 Linux Kernel driver
* File: x15locode.c
* Copyright 2003 Heber Limited (http://www.heber.co.uk)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Gener... | 1,329,942 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl_fd.c :+: :+: :+: ... | 1,329,943 |
the-stack-v2-dedup | C | #include "AD5689R.h"
static General_GPIOTypeDef AD5689R_Pin_Init(GPIO_TypeDef* GPIOx, uint16_t GPIO_Pin)
{
General_GPIOTypeDef PinName;
PinName.GPIOx=GPIOx;
PinName.GPIO_Pin=GPIO_Pin;
return PinName;
}
void AD5689R_Init(AD5689R_HandleTypeDef *hAD5689Rx, int8_t DAC_num)
{
hAD5689Rx->PinReset = AD5689R_Pin_Init(... | 1,329,944 |
the-stack-v2-dedup | C | #ifndef __UVP_H__
#define __UVP_H__
/**
* Determines the value of U and G according to the formula
*
* @f$ F_{i,j} := u_{i,j} + \delta t \left( \frac{1}{Re} \left( \left[
\frac{\partial^2 u}{\partial x^2} \right]_{i,j} + \left[
\frac{\partial^2 u}{\partial y^2} \right]_{i,j} \right) - \left[
\f... | 1,329,945 |
the-stack-v2-dedup | C | /*
This file is part of flexOS and The Open Source Protogen Collection (OSPC).
flexOS is free software under the MIT license. Please see https://opensource.org/licenses/MIT for more info
*/
// for colour switching
#define UPDATES_PER_SECOND 100
static uint8_t startIndex = 0; // creating an index for Fil... | 1,329,946 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include "mult.h"
void multiplicar(int **matrizA, int **matrizB, int sizeA, FILE *result_of_matriz){
int soma=0, i=0, j=0,k=0, resposta=0;
asm volatile("jmp .For1\n\t"); // salto para o label .For1
asm volatile(".Mult:");
asm volatile(
//... | 1,329,947 |
the-stack-v2-dedup | C | /*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.2.0
* Git version: dcef523
* Options: --no-structs --no-pointers --no-math64 --max-funcs 4 --no-unions --output 16951.c
* Seed: 554176739
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GL... | 1,329,948 |
the-stack-v2-dedup | C | /*
* qspi_interface_def.h
*
* Created on: Nov 20, 2016
* Author: John Smith
*/
#ifndef STM32F4XX_INTERFACE_QSPI_INTERFACE_DEF_H_
#define STM32F4XX_INTERFACE_QSPI_INTERFACE_DEF_H_
#include "driver/stm32f4xx_hal_qspi.h"
/* QSPI Error codes */
#define QSPI_OK ((unsigned char)0x00)
#define QSPI_ERRO... | 1,329,949 |
the-stack-v2-dedup | C | /*
* RingBufferDef.h
*
* Created: 2014/07/30 9:37:02
* Author: tatsuro
*/
#ifndef RINGBUFFERDEF_H_
#define RINGBUFFERDEF_H_
#if defined(USE_RS485)
typedef enum{
Empty,
DataIn,
FullUp
}RingStatus;
typedef struct {
unsigned char buf[BUFFER_SIZE]; // Buffer
uint16_t head; // Head Position
uint16_t... | 1,329,950 |
the-stack-v2-dedup | C | /*Given two strings, check if they’re anagrams or not. Two strings are
anagrams if they are written using the same exact letters, ignoring
space, punctuation and capitalization. Each letter should have the same
count in both strings.
For example, ‘Eleven plus two’ and ‘Twelve plus one’ are meaningful
anagrams of each o... | 1,329,951 |
the-stack-v2-dedup | C | //-----------------------------------------------------------------------------
// File : TextureId.h
// Desc : Texture ID.
// Copyright(c) Project Asura. All right reserved.
//-----------------------------------------------------------------------------
#pragma once
//////////////////////////////////////////////////... | 1,329,952 |
the-stack-v2-dedup | C | /*
* $Source: /d2/3.7/src/sys/config/RCS/sgiglue.c,v $
* $Revision: 1.1 $
* $Date: 89/03/27 17:27:36 $
*/
#include <stdio.h>
#include "config.h"
#include "y.tab.h"
/* default interrupt table */
static char *vecs[8] = {
"default",
"default",
"default",
"default",
"default",
"default",
"default",
"default"
}... | 1,329,953 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <sys/shm.h>
void main() {
key_t key = 4711;
int shmid = shmget(key, 1024, IPC_CREAT | 0666);
char* shmptr = shmat(shmid, NULL, 0);
sprintf(shmptr, "This is Doctor Hugo Strange. Return to your cells immediately.");
}
| 1,329,954 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* pem_write_rsa_priv_file.c :+: :+: :+: ... | 1,329,955 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<time.h>
/* 土日祝日かどうかを返す関数
返り値:平日=0、土曜=1、日曜=2、休日=3、振休=4、祝日=5 */
/* この関数(含むint Syunbun()、int Syubun())は、
http://www.h3.dion.ne.jp/~sakatsu/
の祝日判定ロジック(VBA版)を利用して作ったものです。*/
/*
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/
_/ CopyRight(C) K.Tsunoda(AddinBox) ... | 1,329,956 |
the-stack-v2-dedup | C | #include "client.h"
void registr_user(struct client_info* client, int socketfd, char *user_name, char* user_surname, char* user_password, char* phone, char* image, int* tagsid, int tags_length)
{
client->current_user->name = mx_strdup(user_name);
client->current_user->lastname = mx_strdup(user_surname);
... | 1,329,957 |
the-stack-v2-dedup | C | #include<stdio.h>
int main()
{
int n,k,i;
scanf("%d%d",&n,&k);
int b[k];
for(i =0;i<k;i++)
{
b[i]=0;
}
for(i=0;i<n;i++)
{
int a;
scanf("%d",&a);
b[a%k]++;
}
int max;
for(i=0;i<=k/2;i++)
{
if(i==0)
{
if(b[i]>0)
... | 1,329,958 |
the-stack-v2-dedup | C |
#ifndef __LINUX__
#include "types.h"
#include "fletcher16.h"
#else
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <assert.h>
#include <fcntl.h>
#include <unistd.h>
typedef u_int16_t uint16_t;
typedef u_int32_t uint32_t;
typedef u_int8_t uint8_t;
#inc... | 1,329,959 |
the-stack-v2-dedup | C | /*
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this softwar... | 1,329,960 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* lst_tools.c :+: :+: :+: ... | 1,329,961 |
the-stack-v2-dedup | C | #ifndef __NETWORK_API_H__
#define __NETWORK_API_H__
#define ASIO_STANDALONE
#include <asio.hpp>
#endif//__NETWORK_API_H__
| 1,329,962 |
the-stack-v2-dedup | C | /*++
Copyright (c) 1987-1993 Microsoft Corporation
Module Name:
read.c
Abstract:
Module reads next send packet from a VIRTUAL boot block.
THIS IS VERY COMPLICATED ALGORITHM, YOU MUST UNDERSTAND THE ALGORITHM
AND KNOW THE SIDE EFFECTS IF YOU DO ANY CHANGES.
Provides similar functionality to... | 1,329,963 |
the-stack-v2-dedup | C | //
// main.c
// 11_exemple08_fonction_suppression_maillon
//
// Created by Francois LABASTIE on 20/05/2020.
// Copyright © 2020 Francois LABASTIE. All rights reserved.
//
#include <stdio.h>
#include<stdlib.h>
typedef struct Maillon Maillon;
struct Maillon {
int valeur;
Maillon *suivant;
};
// Prototype d... | 1,329,964 |
the-stack-v2-dedup | C | //#include <stubs.h>
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* Cherokee
*
* Authors:
* Alvaro Lopez Ortega <alvaro@alobbs.com>
*
* Copyright (C) 2001-2011 Alvaro Lopez Ortega
*
* This program is free software; you can redistribute it and/or
* modify it under the terms ... | 1,329,965 |
the-stack-v2-dedup | C | #ifndef FILE2_H
#define FILE2_H
/* C++ musi widziec ze funkcja jest C style, C jednak nie zna extern "C" wiec musimy ifowac */
#ifdef __cplusplus
extern "C" {
#endif
void bar(void);
#ifdef __cplusplus
}
#endif
#endif | 1,329,966 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <inttypes.h... | 1,329,967 |
the-stack-v2-dedup | C | #include "tests.h"
#include "x86_desc.h"
#include "lib.h"
#include "system_wrapper.h"
#include "i8259.h"
#include "paging.h"
#include "keyboard.h"
#include "rtc.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... | 1,329,968 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* circular_lock.c :+: :+: :+: ... | 1,329,969 |
the-stack-v2-dedup | C | /******************************************************************************
* Copyright (C) 2015 Hisilicon Technologies CO.,LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
... | 1,329,970 |
the-stack-v2-dedup | C | /**
* @file jalp_file_info_xml.c This file defines functions to deal with
* converting the jalp_file_info struct to XML.
*
* @section LICENSE
*
* Source code in 3rd-party is licensed and owned by their respective
* copyright holders.
*
* All other source code is copyright Tresys Technology and licensed as belo... | 1,329,971 |
the-stack-v2-dedup | C | /*----------------------------------------------------------------
*
* Programación avanzada: Problema del barbero.
* Fecha: 11-Oct-2018
* Autor: A01206747 Mariana Perez Garcia
*
*--------------------------------------------------------------*/
#include "header.h"
#include <time.h>
void a_barber(char* program, i... | 1,329,972 |
the-stack-v2-dedup | C | #include "pwm.h"
#include "golomb.h"
unsigned char ramp_init(void)
{
return 0;
}
void ramp_pix(unsigned char pix)
{
unsigned char i;
unsigned short j;
for(j = 1, i = 0; i < 16; i++, j <<= 1)
set_led(j, i);
}
| 1,329,973 |
the-stack-v2-dedup | C | /* Android Event Queue
* Implemented through static cyclic queue
*
* author: Joy.you
* email: yjcpui@gmail.com
* date: 2013-05-08
*/
#include <arch/hd_event_api.h>
#ifdef ANDROID_OS
#include <arch/hd_thread_api.h>
#include <arch/hd_timer_api.h>
#include "hd_event_queue_android.h"
#include <sched.h>
#ifdef D... | 1,329,974 |
the-stack-v2-dedup | C |
// -----------------------------------------------------------------------------
// Define sample rate and compute sampling period that controls ADC convert and serial write
// Uses Teensyduino interrupt Timer object
//
// JE 24 Oct 2018: Also compute the ratio between sampling frequency and UART data stream rate. ... | 1,329,975 |
the-stack-v2-dedup | C | #include <avr/io.h>
#include <util/delay.h>
#define F_CPU 16000000L
int main(void) {
unsigned char i;
DDRD |= 0xFF;
while (1) {
for (i = 0; i <= 7; i++) {
PORTD = (1<<i);
_delay_ms(50);
}
}
} | 1,329,976 |
the-stack-v2-dedup | C | #include <stdio.h>
int main(void)
{
int c, space = 0, tab = 0, newline = 0;
while ((c = getchar()) != EOF) {
if (c == ' ')
++space;
else if (c == '\t')
++tab;
else if (c == '\n')
++newline;
else
;
}
printf("space is %d, ta... | 1,329,977 |
the-stack-v2-dedup | C | /*
ID: slad0711
LANG: C
TASK: friday
*/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
int is_leap_year(int year) {
if (!(year % 100)) {
if (!(year % 400)) {
return 1;
}
} else if (!(year % 4)) {
return 1;
}
return 0;
}
int main() {
FILE* in = fopen("friday.in", "r");
FI... | 1,329,978 |
the-stack-v2-dedup | C | #include <linux/kernel.h>
#include <linux/module.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>
#include <net/ip.h>
#include <linux/ip.h>
#include <linux/udp.h>
#include <linux/tcp.h>
#include <linux/icmp.h>
#include <linux/skbuff.h>
#include <linux/proc_fs.h>
#include <asm/uaccess.h>
#define ... | 1,329,979 |
the-stack-v2-dedup | C | #include <stdio.h>
#define IN "input.txt"
int main () {
FILE *fp;
int x[2],y1[2],y2[2];
float area;
char line[512];
fp = fopen (IN, "r");
fgets (line,sizeof(line),fp);
sscanf (line, "%d %d %d", &x[0],&y1[0],&y2[0]);
area = 0;
while (fgets(line,sizeof(line),fp)) {
sscanf (line, "%d %d %d",&x[1],&y1[1],&y2[1... | 1,329,980 |
the-stack-v2-dedup | C |
/*
* pipeline.c
*
* Donald Yeung
*/
#include <stdlib.h>
#include "fu.h"
#include "pipeline.h"
#include <string.h>
#include <assert.h>
#define IQ_TAIL(state) ((state->IQ_tail >= state->IQ_head) ? (state->IQ_tail) : (state->IQ_tail + IQ_SIZE))
#define CQ_TAIL(state) ((state->CQ_tail >= state->CQ_head) ? (state... | 1,329,981 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* v_scale.c :+: :+: :+: ... | 1,329,982 |
the-stack-v2-dedup | C | /*
* Automatically Generated from Mathematica.
* Wed 12 Feb 2020 15:29:07 GMT-08:00
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "H_LeftToeBack_src.h"
#ifdef _MSC_VER
#define INLINE __forceinline /* use __forceinline (VC++ specific) */
#else
#define INLINE static __inline__ /* us... | 1,329,983 |
the-stack-v2-dedup | C | ////IMGUI_API void BeginDockspace();
//IMGUI_FUNCTION(BeginDockspace)
//CALL_FUNCTION_NO_RET(BeginDockspace)
//ADD_END_STACK(0)
//END_IMGUI_FUNC
////IMGUI_API void EndDockspace();
//IMGUI_FUNCTION(EndDockspace)
//CALL_FUNCTION_NO_RET(EndDockspace)
//POP_END_STACK(0)
//END_IMGUI_FUNC
////IMGUI_API void ShutdownDock();
/... | 1,329,984 |
the-stack-v2-dedup | C | /* @(#)CM_VerSion publictypes.h atm09 1.4 16563.eco sum= 57080 atm09.004 */
/* @(#)CM_VerSion publictypes.h atm08 1.4 16273.eco sum= 01329 atm08.003 */
/* @(#)CM_VerSion publictypes.h atm07 1.5 16186.eco sum= 34508 atm07.013 */
/* @(#)CM_VerSion publictypes.h atm06 1.11 14016.eco sum= 60180 */
/* @(#)CM_VerSion publict... | 1,329,985 |
the-stack-v2-dedup | C | #pragma once
#ifndef __CnnAllLayer__
#define __CnnAllLayer__
/*
引用CnnLayer基类以及各种Layer的头文件
*/
#include"CnnLayer.h"
#include"Conv.h"
#include"Dense.h"
#include"Pooling.h"
#include"Relu.h"
#include"Input.h"
#endif | 1,329,986 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memchr.c :+: :+: :+: ... | 1,329,987 |
the-stack-v2-dedup | C | #include <stdio.h>
#define BUFFSIZE 10
static char buff[BUFFSIZE];
char* buffp = &buff[0];
char getch(void)
{
return (buffp > buff) ? *--buffp : getchar();
}
void ungetch(int c)
{
if (buffp >= buff + BUFFSIZE) {
printf("buff overflow\n");
} else {
*buffp++ = c;
}
}
| 1,329,988 |
the-stack-v2-dedup | C | #include "TMVA/Factory.h"
#include "TMVA/Tools.h"
#include "TMVA/TMVAGui.h"
void gui(TString outfile = "../bak_multivariate/TMVA.root") {
TMVA::TMVAGui( outfile );
return;
}
| 1,329,989 |
the-stack-v2-dedup | C | //=============================================================================
//
// エフェクト処理 [effect.h]
// Author : GP_11B_341_19 千葉 大樹
//
//=============================================================================
#ifndef _EFFECT_H_
#define _EFFECT_H_
// マクロ定義
#define NUM_EFFECT (2) // ポリゴン数
#define TEXTU... | 1,329,990 |
the-stack-v2-dedup | C | #include <Services\SyncSurface\ITrackedSurface.h> | 1,329,991 |
the-stack-v2-dedup | C | #include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "simulation.h"
int executa_funcao(FUNCTION funcao, OPERAND_STACK **pilhaOperandos, ITEM_VECTOR **vetor, ConstantPoolItem *constPool, FRAME **pilhaFrame, CLASS **nova_Classe, CLASS *classe_corrente)
{
u4 opCode = funcao.opCode;
opCode = opC... | 1,329,992 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
struct Node
{
int data;
struct Node *next;
};
typedef struct Node Node;
Node *start = NULL;
void insert(int data)
{
Node *temp = (Node *)malloc(sizeof(Node));
temp->data = data;
temp->next = NULL;
if (start == NULL)
{
start = temp;
}
e... | 1,329,993 |
the-stack-v2-dedup | C | #include "config.h"
#include "gca-util.h"
#include <string.h>
GNOME_CertificateAuthentication_Data *
_gca_datum_to_corba (GNOME_CertificateAuthentication_Data *corba, const gnutls_datum_t *datum)
{
corba->_length = datum->size;
corba->_buffer = datum->data;
corba->_release = FALSE;
return corba;
}
g... | 1,329,994 |
the-stack-v2-dedup | C | #ifndef VIEW3D_TEXTURE_H
#define VIEW3D_TEXTURE_H
#include "view3d.h"
typedef struct image
{
int width;
int height;
unsigned char *data;
} image_t;
void image_init(image_t *this);
void image_term(image_t *this);
bool image_load_bmp(image_t *this, GLenum *format, const char *filename);
bool image_load_tga(imag... | 1,329,995 |
the-stack-v2-dedup | C | /*-------------------------------------------------------------------------
*
* cdbpersistentstore.c
*
* Portions Copyright (c) 2009-2010, Greenplum inc
* Portions Copyright (c) 2012-Present Pivotal Software, Inc.
*
*
* IDENTIFICATION
* src/backend/cdb/cdbpersistentstore.c
*
*----------------------------... | 1,329,996 |
the-stack-v2-dedup | C | /*
* display_demo.c
*
* Created: 22.12.2015 21:05:25
* Author: Ondrej Blazek
*/
#define F_CPU 32000000
#include <util/delay.h>
char hello_text[50] = "hello, visit site www.ondrashova-automatizace.webnode.cz";
char text[205];
void display_run()
{
// funkce pro vzkreslení bodu přes videopamě
... | 1,329,997 |
the-stack-v2-dedup | C |
/*
*基本变量类型,数组,指针,动态内存分配
*
*C语言主要有以下变量类型:
* char short int long float double 结构体 共用体
* char* short* int* long* float* double* struct s* enum e*
* char[] short[] int[] long[] float[] double[] struct[] enum[]
* char*[] short*[] int*[] long*[] float*[] double*[... | 1,329,998 |
the-stack-v2-dedup | C | /* -*-C-*-
*******************************************************************************
*
* File: xtangofills.h
* RCS: $Header: /disk3/npm/src/winterp/src-server/xtango/RCS/xtangofills.h,v 2.5 1994/06/09 01:32:06 npm Exp $
* Description: XTANGO ANIMATION PACKAGE (fills.h)
* Author: John T. St... | 1,329,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.