source string | code_lang string | content string | idx int64 |
|---|---|---|---|
the-stack-v2-dedup | C | #define CPU_TIME (1)
#define MAX 500000
#define START 1024
#include <stdio.h>
#include <stdlib.h>
#include "generator.c"
#include "bubble.c"
#include "merge.c"
#include "heap.c"
#include "insertion.c"
#include "selection.c"
#include "quick.c"
#include <inttypes.h>
typedef char String[52];
void CopyData(int A[], in... | 1,330,000 |
the-stack-v2-dedup | C | #include "dsf_commands.h"
#include "dsf.h"
int DsfCommands_Register(RedisModuleCtx* ctx)
{
if(REDISMODULE_ERR == RedisModule_CreateCommand(ctx, "DSFADD", DsfCommand_Add, "write fast", 1, 1, 1))
return REDISMODULE_ERR;
if(REDISMODULE_ERR == RedisModule_CreateCommand(ctx, "DSFREMOVE", DsfCommand_Remove, "writ... | 1,330,001 |
the-stack-v2-dedup | C | #include <iostream>
#include <ostream>
#include <cmath>
#include <TMath.h>
#include <TRandom2.h>
#include <TH1.h>
#include <TH1D.h>
#include <TCanvas.h>
#include <TStyle.h>
#include <fstream>
#include <string>
#include <TFile.h>
#include <TArrayD.h>
#include <TTree.h>
#include <TLorentzVector.h>
#include <math.h>
#incl... | 1,330,002 |
the-stack-v2-dedup | C | #include <apue.h>
int sockid = -1;
int sock_init(char *address,int port,int *sockid)
{
int sock = -1;
sockaddr_in addr;
sock = socket(AF_INET,SOCK_STREAM,0);
bzero(&addr,sizeof(sockaddr_in));
addr.sin_family = AF_INET;
addr.sin_port = htons(port);
if(NULL == address){
addr.sin_... | 1,330,003 |
the-stack-v2-dedup | C | #include <stdio.h>
int main()
{
int n,c,r;
printf("Enter the number of resources: ");
scanf("%d",&r);
printf("Enter the requirement for each process: ");
scanf("%d",&c);
n = (r-1)/(c-1);
printf("Maximum Number of process such that no deadlock occurs = %d\n",n);
} | 1,330,004 |
the-stack-v2-dedup | C | /* Copyright (c) 2018 Griefer@Work *
* *
* This software is provided 'as-is', without any express or implied *
* warranty. In no event will the authors be held liable for any damages *
... | 1,330,005 |
the-stack-v2-dedup | C | /*
* Copyright 2019 Shannon F. Stewman
*
* See LICENCE for the full copyright terms.
*/
#ifndef FSM_INTERNAL_VM_H
#define FSM_INTERNAL_VM_H
#define DEBUG_ENCODING 0
#define DEBUG_VM_EXECUTION 0
#define DEBUG_VM_OPCODES 0
#define DFAVM_VARENC_MAJOR 0x00
#define DFAVM_VARENC_MINOR 0x01
#define DFAVM_FIXEDEN... | 1,330,006 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
struct node{
int data;
struct node *l;
struct node *r;
};
struct node *t=NULL;
void dump_tree_in(struct node* root){
if(!root) return;
dump_tree_in(root->l);
printf("%d\r\n", root->data);
dump_tree_in(root->r);
}
v... | 1,330,007 |
the-stack-v2-dedup | C | #include <stdio.h>
int equal (char word1[], char word2[]);
int main (void) {
char word1[20];
char word2[20];
printf("Enter two words: ");
scanf("%s %s", word1, word2);
printf("%d\n", equal(word1, word2));
}
int equal (char word1[], char word2[]) {
int a = 1;
int c = 0;
while (word1[c] != '\0' && word2[... | 1,330,008 |
the-stack-v2-dedup | C | #ifndef CHACHA20_H
#define CHACHA20_H
#define CHACHA20_KEY_LEN 32
#define CHACHA20_KEY_LEN_WORD 8
#define CHACHA20_BLOCK_LEN 64 // 16 * 4
#define CHACHA20_BLOCK_LEN_WORD 16
struct chacha20_state {
uint32_t state[CHACHA20_BLOCK_LEN_WORD];
uint8_t key[CHACHA20_KEY_LEN];
uint64_t nonce;... | 1,330,009 |
the-stack-v2-dedup | C | /*
* This file is part of the Score-P software (http://www.score-p.org)
*
* Copyright (c) 2012-2014,
* Technische Universitaet Dresden, Germany
*
* This software may be modified and distributed under the terms of
* a BSD-style license. See the COPYING file in the package base
* directory for details.
*
*/
/*... | 1,330,010 |
the-stack-v2-dedup | C |
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
// instead of calling gsl_rng_env_setup() to acquire seed from the
// environment, we access and set this GSL library global directly
extern unsigned long int gsl_rng_default_seed;
double weights[] = {0.0... | 1,330,011 |
the-stack-v2-dedup | C | /* mpn_set_str_subquad -- mpn_set_str forced to the sub-quadratic case.
Copyright 2002 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
The GNU MP 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 Fre... | 1,330,012 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
//ensure proper usage
if (argc != 2)
{
fprintf(stderr, "Usage: ./recover card.raw");
return 1;
}
//remember filename
char *infile = argv[1];
//make file pointer variables to read
FILE *inptrWhile =... | 1,330,013 |
the-stack-v2-dedup | C | /*!
* \file ig500Trigger.c
* \author SBG Systems (Alexis GUINAMARD)
* \date 05/05/2010.
*
* This small project illustrates how to use the sbgIronCalibration library.
* This library is used to compute a 2D or 3D magnetic calibration to account for
* soft and hard iron effects.
*/
#include "stdio.h"
... | 1,330,014 |
the-stack-v2-dedup | C | #ifndef WR_SQL_SQLITE3API_H
#define WR_SQL_SQLITE3API_H
#ifdef _WIN32
# define SQLITE_API __declspec(dllimport)
#endif
#include <sqlite3.h>
#endif // !WR_SQL_SQLITE3API_H
| 1,330,015 |
the-stack-v2-dedup | C | #include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "usemap.h"
struct usemap* usemap_alloc(uint64_t um_total_bytes)
{
struct usemap* ret;
ret = malloc(sizeof(struct usemap));
ret->um_bytes_per_ent = 4*4096;
ret->um_ents = (um_total_bytes+(4*4096-1))/(4*4096);
ret->um_map_c = malloc(2*ret->um_ent... | 1,330,016 |
the-stack-v2-dedup | C | /*
* Created: November 2015
* Author : Peter T and Victor T
* "Ah, sweet alcohol. Like a true friend, you replace the anger with better, louder anger." -Erik
*
* Implementation of USART in the system.
*
*/
#include "usart.h"
#include <util/delay.h>
/* Initialize USART. */
void init_USART_up(unsigned int bau... | 1,330,017 |
the-stack-v2-dedup | C | #include <stdio.h>
int main(void) {
float xToplam=0, yToplam=0,x2Toplam=0,xyToplam=0;
float dizi[5]={0.0,0.3,0.4,0.7,0.8};
float diziY[5]={-5.0,-3.75,-3.15,0.5,1.25};
for(int i=0;i<5;i++){
xToplam+=dizi[i];
yToplam+=diziY[i];
x2Toplam+=dizi[i]*dizi[i];
xyToplam+=dizi[i]*diziY[i];
}
printf(" xTop... | 1,330,018 |
the-stack-v2-dedup | C | #include <avr/io.h>
#include <avr/interrupt.h>
#define F_CPU 16000000
/* Basically, this code should make the LED from port D blink at every 1 sec */
ISR(TIMER1_COMPA_vect)
{
TCNT1 = 0;
/* Reverse PORTD at every 1 second */
PORTD ^= 0xff;
}
int main()
{
DDRD = 0xff;
PORTD = 0xff;
/* Maximum value for prescal... | 1,330,019 |
the-stack-v2-dedup | C | #ifndef __ERROR_H__
#define __ERROR_H__
#define OK 0
#define ERROR -99
#define EINVAL -1
#define ENXIO -2
#define E_TTY_AGAIN -3
#define E_BAD_CALL -4
#define E_BAD_PID -5
#define EEXIST -6
#define ... | 1,330,020 |
the-stack-v2-dedup | C | void CreateD3D9Hook();
| 1,330,021 |
the-stack-v2-dedup | C |
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/wait.h>
int main()
{
int fd1[2];//P->C
int fd2[2];//C->P
int f,c;
pid_t p;
if (pipe(fd1)==-1)
{
printf("first Pipe Failed");
return 1;
}
if (pipe(fd2)==-1)
{
printf("second Pipe Failed");
return 1... | 1,330,022 |
the-stack-v2-dedup | C | /*
MAC 122 - Principio de Desenvolvimento de Algoritmos
Exercicio-Programa 2: Fractais
Fernando Omar Aluani
#USP: 6797226
entrega: 3/10/2009
Testado no Linux (Ubuntu)
Compilando com: -Wall -ansi -pedantic -std=c99 -lglut -lm
*/
/*Parte deste código foi retirado de http://mindfuck.de-brauwer.be/articles/gl... | 1,330,023 |
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,330,024 |
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,330,025 |
the-stack-v2-dedup | C | /*******************************************************************************
* File Name: Pin_0_4.h
* Version 2.10
*
* Description:
* This file containts Control Register function prototypes and register defines
*
* Note:
*
********************************************************************************
* Copyri... | 1,330,026 |
the-stack-v2-dedup | C | #pragma once
#include "proc/kthread.h"
#include "proc/proc.h"
extern kthread_t *curthr;
extern proc_t *curproc;
extern void *testproc(int arg1, void *arg2);
extern void *sunghan_deadlock_test(int arg1, void *arg2);
extern void *sunghan_test(int arg1, void *arg2);
extern int vfstest_main(int argc, char **argv);
| 1,330,027 |
the-stack-v2-dedup | C | #include "Click_AlphaNum_G_types.h"
const uint32_t _ALPHANUMG_SPI_CFG[ 4 ] =
{
_SPI_MASTER_OSC_DIV64,
_SPI_DATA_SAMPLE_MIDDLE,
_SPI_CLK_IDLE_LOW,
_SPI_LOW_2_HIGH
};
| 1,330,028 |
the-stack-v2-dedup | C | #include<stdio.h>
void fib(int); | 1,330,029 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* reverse.c :+: :+: :+: ... | 1,330,030 |
the-stack-v2-dedup | C | /*arops1 calcule et affiche des expressions arithm‚tiques bas‚es sur des
constantes*/
#include <stdio.h> /* pour printf */
main()
{
printf("Somme = %d\tDiff‚rence = %d\tProduit"
" = %d\tQuotient = %d", 4+2, 4-2, 4*2, 4/2);
} | 1,330,031 |
the-stack-v2-dedup | C | #include "ceh.h"
int main(void)
{
try
{
try
{
throw(1, 15, "嵌套在try块中");
}
catch_part(4, 6)
{
printf("catch_part(4, 6)块,被执行到\n");
printf("捕获到一个异常,错误原因是:%s! err_type:%d err_code:%d\n",
ceh_ex_info->err_msg, ceh_ex_info->err_type, ceh_ex_info->err_code);
}
end_try
printf("这里将不会被执行到\n");
}
catch_part(2, 3)
{
printf("cat... | 1,330,032 |
the-stack-v2-dedup | C | #include <stdio.h>
int main()
{
int num;
scanf("%d", &num);
printf("%d", flip(num));
}
int flip(int num)
{
int flipped = 0;
while (num > 0)
{
flipped = 10 * flipped + (num % 10);
num /= 10;
}
return flipped;
} | 1,330,033 |
the-stack-v2-dedup | C | /* Builtin.c */
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
// プロトタイプ宣言
int mit_cd(char **args);
int mit_help(char **args);
int mit_exit(char **args);
// 組み込みコマンドのリスト
char *builtin_command[] = {
"cd",
"help",
"exit"
};
// 組み込みコマンドに対応する関数のリスト
int (*builtin_func[])(char**) = {
&mit_cd,
&mit_help,
... | 1,330,034 |
the-stack-v2-dedup | C | /*8- Construa um algoritmo para calcular as raízes de uma equação do 2º grau, sendo que os
valores A, B e C são fornecidos pelo usuário.
Obs.: x = (– b +– (b2 – 4ac)1/2) / 2a*/
#include <stdio.h>
#include <stdlib.h>
#include<math.h>
main(){
printf("Equação do 2º Grau!");
//Variáveis a, b, c, x',x'' : real
floa... | 1,330,035 |
the-stack-v2-dedup | C | void * Malloc(int num_elements, int el_size, MPI_Comm comm, int rank);
void calcRangePerProcess(mpz_t N, int p, mpz_t low, mpz_t *nums_per_process);
void nextPrime(mpz_t current_prime, mpz_t previous);
unsigned long maxGap(mpz_t lower, mpz_t upper, mpz_t high, mpz_t gap);
| 1,330,036 |
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,330,037 |
the-stack-v2-dedup | C | ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
ola ola ola ola
... | 1,330,038 |
the-stack-v2-dedup | C | /**
* Copyright 2016-2019 Couchbase, 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 appl... | 1,330,039 |
the-stack-v2-dedup | C | #include "at91sam3u1.h"
#include "ll.h"
#include "irqs.h"
typedef void( *IntFunc )( void );
extern unsigned int _estack;
extern unsigned int _stext;
extern unsigned int _etext;
extern unsigned int _sdata;
extern unsigned int _edata;
extern unsigned int _sbss;
extern unsigned int _ebss;
extern int main(void);
void R... | 1,330,040 |
the-stack-v2-dedup | C | /*
* Copyright (c) 2006 - 2019 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* 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 o... | 1,330,041 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <math.h>
int main()
{
float x,y, result;
char operation;
printf("Введите команду:\n");
scanf("%f%c%f", &x,&operation,&y);
switch(operation)
{
case '-': result=x-y;
break;
case '+': result=x+y;
break;
case '*': result=x*y;
break;
case '/': result=x/y;
break;
case '%': result=x/y*100;
b... | 1,330,042 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <linux/fb.h>
#include <string.h>
#include <time.h>
#include <stdarg.h>
#include "common.h"
int c2i(char ch) {
if(isdigit(ch)) return ch - 48;
if( ch < 'A' || (ch > 'F' && ch < 'a')... | 1,330,043 |
the-stack-v2-dedup | C | //*****************************************************************************
//
// Microsoft Windows Media Player
// Copyright (C) Microsoft Corporation, 2001
//
// FileName: wmpids.h
//
// Abstract: Dispatch ID definitions for all public Windows Media
// Player Interfaces
... | 1,330,044 |
the-stack-v2-dedup | C | #include "/obj/clean.c"
#include "/players/feldegast/defines.h"
string name, alias, long_desc;
string type;
int worn, ac;
object worn_by;
object next;
string info;
int set_ac_flag;
reset(arg)
{
if(arg) return;
set_light(1);
name="blur field";
alias="field";
type = "blur_field";
long_desc=
"A b... | 1,330,045 |
the-stack-v2-dedup | C | #ifndef SWS_UTILS_H
#define SWS_UTILS_H
#define SERVER_NAME "sws"
#define SERVER_VERSION "1.0"
#define SERVER_INFO "sws/1.0"
#define HTTP_VERSION "HTTP/1.0"
#define CONNECTION_TYPE "close"
#endif //SWS_UTILS_H
| 1,330,046 |
the-stack-v2-dedup | C | #ifndef TREETEST_QUEUE_H
#define TREETEST_QUEUE_H
#include <stddef.h>
#include "TreeTest.h"
#define FALSE 0
#define OK 1
#define TRUE 1
#define OVERFLOW -2
#define ERROR -1
typedef struct Queue {
Tree* element;
struct Queue *next;
} Queue;
Queue* InitQueue();
Status push(Queue *Q, Tree *T);
Tree* pop(Que... | 1,330,047 |
the-stack-v2-dedup | C | /*
* This file is part of HiKoB Openlab.
*
* HiKoB Openlab 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, version 3.
*
* HiKoB Openlab is distributed in the hope that it will be useful,
* but W... | 1,330,048 |
the-stack-v2-dedup | C | // BlueprintGeneratedClass GCN_Athena_PetrolPickup_Pickup.GCN_Athena_PetrolPickup_Pickup_C
// Size: 0x1a8 (Inherited: 0x1a8)
struct UGCN_Athena_PetrolPickup_Pickup_C : UFortGameplayCueNotify_Burst {
void OnBurst(struct AActor* MyTarget, struct FGameplayCueParameters Parameters, struct TArray<struct UParticleSystemCom... | 1,330,049 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* hook.c :+: :+: :+: ... | 1,330,050 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <string.h>
int
main(void)
{
char courseName[20];
char grade;
float credit;
char *a_string = "Biology A 4.0";
sscanf( a_string, "%s %c %f", courseName, &grade, &credit );
return 0;
} | 1,330,051 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: ... | 1,330,052 |
the-stack-v2-dedup | C | // jiuke.c
// by hubo 208/4/19
#include <ansi.h>
inherit NPC;
void create()
{
set_name("酒客", ({ "jiu ke","ke" }) );
set("gender", "男性");
set("age", 25);
set("long",
"这是位外地客人,特意来临安府酒家吃饭。\n");
set("combat_exp", 20000);
set("attitude", "heroism");
set("apply/attack", 30);
set("apply/defense", 30);
set_ski... | 1,330,053 |
the-stack-v2-dedup | C | /*
* libdds
* Copyright (c) 2010 Cyril Bazhenov bazhenovc@gmail.com
*
* 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 ... | 1,330,054 |
the-stack-v2-dedup | C | ../../../PlotKitBase/PlotKitBase/Classes/PlotKit/KLineView/HXKlineDataPack.h | 1,330,055 |
the-stack-v2-dedup | C | /*
* %CopyrightBegin%
*
* Copyright Everton de Vargas Agilar 2022. 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... | 1,330,056 |
the-stack-v2-dedup | C | CMFCEditBrowseCtrl m_wndFolderEdit;
CMFCEditBrowseCtrl m_wndFileEdit; | 1,330,057 |
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,330,058 |
the-stack-v2-dedup | C | ../../../../../LSTTimer/Classes/LSTTimer.h | 1,330,059 |
the-stack-v2-dedup | C | /*************************************************************************
Atari Night Driver hardware
*************************************************************************/
/*----------- defined in machine/nitedrvr.c -----------*/
extern unsigned char *nitedrvr_ram;
extern int nitedrvr_gear;
extern int nited... | 1,330,060 |
the-stack-v2-dedup | C | #include "../../../../public/web/WebMessagePortChannelClient.h"
| 1,330,061 |
the-stack-v2-dedup | C | -0.02845102, 0.00329646, -0.06423061, 0.07175082, 0.01460428, -0.01615690, 0.03955771, -0.05741536, 0.04335099, -0.00484271, -0.00190616, 0.05844074, 0.18451917, 0.18807535, 0.05567127, 0.02763353, -0.00446215, 0.08633099, 0.04673085, 0.06467846, 0.05252448, 0.07498474, 0.06737961, 0.06202769, -0.05985077, 0.02938844, ... | 1,330,062 |
the-stack-v2-dedup | C | /*
* qq.c
*
* Copyright (C) 2009-2011
* Copyright (C) 2011-18 - ntop.org
*
* This file is part of nDPI, an open source deep packet inspection
* library based on the OpenDPI and PACE technology by ipoque GmbH
*
* nDPI is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesse... | 1,330,063 |
the-stack-v2-dedup | C | //-*-coding:utf-8-*-
//----------------------------------------------------------
// module: bob
//----------------------------------------------------------
#include <stdio.h>
void showData(int data[]){
for (int i=0; i<sizeof(data); i++){
printf("%d\n", data[i]);
}
printf("\n");
}
void bobsort(int data[... | 1,330,064 |
the-stack-v2-dedup | C | #include <stdint.h>
#include "instructions.h"
/*
* This file contains the actual implementations for the 8085 instructions.
*
* Each function needs to have the same prototype, so they all pass in the 8 bit opcode and 16 bits
* of immediate data regardless of whether or not the instruction needs it.
*/
#define ... | 1,330,065 |
the-stack-v2-dedup | C | inherit ROOM;
void create()
{
set("short", "石道");
set("long", @LONG
一路往北行,中间仅有一道宽约五尺的石道,两边石壁
如墙,一路上都有日月教徒模样的人物在走动,对往来的路
人都严密监视。
LONG
);
set("no_clean_up", 0);
set("outdoors", "wudang");
set("exits", ([ /* sizeof() == 2 */
"east" : "/d/quanzhou/nanmen",
"north" : __DI... | 1,330,066 |
the-stack-v2-dedup | C | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include "codegen/il2cpp-codegen-metadata.h"
IL2CPP_EXTERN_C_BEGIN
IL2CPP_EXTERN_C_END
extern Il2CppGenericClass* const s_Il2CppGenericTypes[];
extern const Il2CppGenericInst* const g_Il2CppGenericInstTable[... | 1,330,067 |
the-stack-v2-dedup | C | /home/sandeepan/tiago_public_ws/devel/.private/pal_interaction_msgs/include/pal_interaction_msgs/AudioPlayFeedback.h | 1,330,068 |
the-stack-v2-dedup | C | /***************************************************************************
* volume.h is part of Math Graphic Library
* Copyright (C) 2007-2014 Alexey Balakin <mathgl.abalakin@gmail.ru> *
* *
* This program is free software; you can r... | 1,330,069 |
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,330,070 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* :::::::: */
/* utils_str.c :+: :+: ... | 1,330,071 |
the-stack-v2-dedup | C | #include "utils.h"
#include "table.h"
extern int isError;
struct opcode {
char *name;
int group;
} opr[] = { { "mov", TWO_OPERANDS },
{ "cmp", TWO_OPERANDS },
{ "add", TWO_OPERANDS },
{ "sub", TWO_OPERANDS },
{ "not", ONE_OPERAND },
{ "clr", ONE_OPERAND },
{ "lea", TWO_OPERANDS },
{ "inc", ONE_OPERAND },
{ "dec", O... | 1,330,072 |
the-stack-v2-dedup | C | /* MollenOS
*
* Copyright 2011 - 2017, Philip Meulengracht
*
* 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 3 of the License, or
* (at your option) any later version... | 1,330,073 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_create_elem.c :+: :+: :+: ... | 1,330,074 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "priorityq.h"
#define MAX_ARGS 2
#define MAX_LINE_LENGTH 1002
#define BUFFER 2
/**
* This application accepts a very specific output. A list of vals and priorities
* seperated by a single space. It is not designed to handle exceptions to this
* bu... | 1,330,075 |
the-stack-v2-dedup | C | #ifndef __uart0_h
#define __uart0_h
#include <reg51.h>
void InitUART(void);
void putbuf(char c);
void putall(char *s,unsigned int con);
#endif | 1,330,076 |
the-stack-v2-dedup | C | #pragma once
#include <stdint.h>
#include <assert.h>
#include <exception>
#include "codegen/il2cpp-codegen.h"
// System.Runtime.Remoting.Contexts.SynchronizationAttribute
struct SynchronizationAttribute_t2048;
// System.Runtime.Remoting.Activation.IConstructionCallMessage
struct IConstructionCallMessage_t2036;
// Sys... | 1,330,077 |
the-stack-v2-dedup | C | /* A Bison parser, made by GNU Bison 3.0.4. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
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
t... | 1,330,078 |
the-stack-v2-dedup | C | #include <avr/io.h>
uint16_t current_address;
uint8_t not_dmx;
uint16_t first_address;
int main(void) {
uint8_t inbyte = 0;
uint16_t index = 0;
current_address = 0;
first_address = 0;
not_dmx = 0;
// Our clock speed is 16000000
// We want a serial baud rate of 250000 so
// UBRR = 1000000/(250000) - ... | 1,330,079 |
the-stack-v2-dedup | C | #ifndef _KERNEL_ITERRUPT_H
#define _KERNEL_ITERRUPT_H
typedef void* intr_handler;
typedef void (*t_intr_proc)(int);
enum status_interrupt
{
INTR_OFF,
INTR_ON
};
enum intr_name
{
INTR_TIMER=0x20
};
extern void init_interrupt(void);
extern enum status_interrupt get_intr_status(void);
extern enum status_interrupt s... | 1,330,080 |
the-stack-v2-dedup | C | #define LEFTBORDER_WIDTH 40
#define LEFTBORDER_HEIGHT 160
const unsigned short leftBorder_data[6400]; | 1,330,081 |
the-stack-v2-dedup | C | #include <stdio.h>
void printNumbers(int args, ...)
{
printf("%d\n ", args);
}
int main(void)
{
printNumbers(1, 10);
printNumbers('a', 10);
printNumbers("a", 10);
return (0);
}
| 1,330,082 |
the-stack-v2-dedup | C | /**
* Fixed point arithmetics optimized for 32-bits microcontrollers without FPU.
*/
#ifndef MICROMATH_INCLUDED
#define MICROMATH_INCLUDED
typedef int32_t fpt;
typedef int64_t fptd;
#define FPT_TBITS 32 // Total bits
#define FPT_FBITS 16 // Fractional bits
#define FPT_PBITS (FPT_TBITS - FPT_FBITS - 1) // Bits in p... | 1,330,083 |
the-stack-v2-dedup | C | #ifndef CHELL_HASHM_H
#define CHELL_HASHM_H
#include <stdlib.h>
struct hash_node {
char *key;
int used;
void * value;
struct hash_node *next;
};
struct hashmap {
size_t size;
size_t capacity;
struct hash_node *entries;
};
/**
* Creates, intiializes, and returns a hashmap.
* The returned map should o... | 1,330,084 |
the-stack-v2-dedup | C | /*
XXX Fixme : shouldnt show [malformed frame] for long packets
*/
/* packet-smb-pipe.c
* Routines for SMB named pipe packet dissection
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
* significant rewrite to tvbuffify the dissector, Ronnie Sahlberg and
* Guy Harris 2001
*
* $Id: packet-smb-pipe.c 28356 2... | 1,330,085 |
the-stack-v2-dedup | C |
/********************************************************************20**
Name: EnodeB Application
Type: C include file
Desc: This file contains
File: wr_umm_perd_strong_cell_meas.h
Prg: Vmahanka
*****************************************************... | 1,330,086 |
the-stack-v2-dedup | C | // Vanilla Linux OpenGL+GLUT+SOIL App
#define GL_GLEXT_PROTOTYPES
#include <GL/gl.h>
#include <GL/glext.h>
#include <GL/glut.h>
#include "opengles_bridge.h"
#include "libqwqz.h"
#include "impl_main.h"
FILE *iosfopen(const char *filename, const char *mode) {
return fopen(filename, mode);
}
// ... | 1,330,087 |
the-stack-v2-dedup | C | ../../../../../ELNetworking/Classes/Validator/ELValidator.h | 1,330,088 |
the-stack-v2-dedup | C | #include "form.h"
int main() {
unsigned int menu;
int quantity;
int i;
user profile;
user blank;
user *profiles = NULL;
setlocale(LC_ALL, "Portuguese");
system("cls || clear");
system("printf \'\\033[8;45;160t\'");
clean_temps();
sleep(2);
system("cls || clear");
interface();
system("cls || clear");
cle... | 1,330,089 |
the-stack-v2-dedup | C | #include <signal.h>
void CollectChar(char *Get){
Get=Current_Char;
Collected=1;
}
| 1,330,090 |
the-stack-v2-dedup | C | #include "umc.h"
void threadEscucha(t_cliente* cliente) {
_Bool buscarCliente(void* elementoDeLaLista){
return elementoDeLaLista == cliente;
}
int socket = cliente->socket;
enviar(socket, &marco_size, sizeof(int));
void* mensaje;
while (!flagTerminar) {
mensaje = recibir(socket);
if (!mensaje) {
print... | 1,330,091 |
the-stack-v2-dedup | C | #ifndef __FY_IIC_H
#define __FY_IIC_H
#include "fy_includes.h"
void I2C_Configuration(void);
u8 i2cWriteBuffer(uint8_t addr_, uint8_t reg_, uint8_t len_, uint8_t *data);
u8 i2cWrite(uint8_t addr_, uint8_t reg, uint8_t data);
u8 i2cRead(uint8_t addr_, uint8_t reg, uint8_t len, uint8_t* buf);
uint16_t i2cGetErrorCoun... | 1,330,092 |
the-stack-v2-dedup | C | #ifndef _logo_h_
#define _logo_h_
#define logo_width 384
#define logo_height 98
static const uint8_t PROGMEM logo_data[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00... | 1,330,093 |
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 9987.c
* Seed: 2339340409
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GL... | 1,330,094 |
the-stack-v2-dedup | C | #ifndef __LISODLIB_H__
#define __LISODLIB_H__
#define MAX_HEADER 8192
typedef struct
{
int content_length;
char *content_type;
char *last_modified;
char *body;
} entity;
typedef struct
{
char method[MAX_HEADER];
char path[MAX_HEADER];
char version[MAX_HEADER];
char tokens[MAX_HEADER];... | 1,330,095 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#define MAX_SYMBOL_TABLE_SIZE 1000
//used in parser and vm
#define CODE_SIZE 1000
#define MAX_LEXI_levelELS 3
//used in vm
#define MAX_STACK_HEIGHT 2000
/**variables**/
int lexoutput;
int codegenoutput;
int vmoutput;
int printErrorCount;
i... | 1,330,096 |
the-stack-v2-dedup | C | #include "stdio.h"
int main(){
int input[3],num=0;
int let[26][3] = {{1,2,1},{1,2,3},{1,2,4},{1,3,1},
{1,3,2},{1,3,4},{1,4,1},{1,4,2},
{1,4,3},{2,1,2},{2,1,3},{2,1,4},
{2,3,1},{2,3,2},{2,3,4},{2,4,1},
{2,4,2},{2,4,3},... | 1,330,097 |
the-stack-v2-dedup | C | #ifndef LIBPORTABLE_STATIC
#define TETE_BUILD
#endif
#include "portable.h"
#include "inipara.h"
#ifndef DISABLE_SAFE
#include "safe_ex.h"
#endif
#include "ice_error.h"
#include "bosskey.h"
#include "new_process.h"
#include "cpu_info.h"
#include "balance.h"
#include "set_env.h"
#include "win_registry.h"
#include "MinHo... | 1,330,098 |
the-stack-v2-dedup | C | //-----------------------------------------------------------------------------------
#include "stdio.h"
#include "stdbool.h"
#include "platform.h"
#include "xil_printf.h"
#include "config.h"
#include "dma.h"
#include "PCP_IPs.h"
#include "CP_IPs.h"
//-------------------------------------------------------------------... | 1,330,099 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.