source string | code_lang string | content string | idx int64 |
|---|---|---|---|
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 8725.c
* Seed: 1221586878
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GL... | 1,331,500 |
the-stack-v2-dedup | C | #pragma once
#include <stdint.h>
// System.Security.Cryptography.RC2
#include "mscorlib_System_Security_Cryptography_RC2.h"
// System.Security.Cryptography.RC2CryptoServiceProvider
struct RC2CryptoServiceProvider_t3590 : public RC2_t3589
{
};
| 1,331,501 |
the-stack-v2-dedup | C | # include <defines.h>
# include <datetime.h>
# include "../iutil/form_defs.h"
/*
* Программы перевода из текстового формата в формат
* даты или времени
*
* Некоторые тонкости
* 1. При вводе те символы в шаблоне и в тексте
* которые не являются символами преобразования,
* должны совпадать
* Исключение ... | 1,331,502 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#define ARRAY_LENGTH (4096+8)
#define ARRAY_EFFECTIVE_LENGTH 4096
#define SET_NUM (64)
#define LINE_NUM (8)
#define ELMT_PER_LINE (8)
static inline float get_elapsed_usec(struct timeval before, struct timeval after)
{
//dprintf("ge... | 1,331,503 |
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,331,504 |
the-stack-v2-dedup | C | unsigned char preset_rna2dna_json[] = {
0x7b, 0x22, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x3a, 0x0a, 0x20, 0x5b,
0x7b, 0x22, 0x6e, 0x22, 0x3a, 0x30, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x22,
0x69, 0x64, 0x22, 0x3a, 0x22, 0x52, 0x4e, 0x41, 0x5f, 0x74, 0x6f, 0x5f,
0x44, 0x4e, 0x41, 0x22, 0x2c, 0x0a, 0x20, 0x20, 0x20, 0x... | 1,331,505 |
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,331,506 |
the-stack-v2-dedup | C | #include <R.h>
#include <Rinternals.h>
#include <stdlib.h> // for NULL
#include <R_ext/Rdynload.h>
/* FIXME:
Check these declarations against the C/Fortran source code.
*/
/* .Call calls */
extern SEXP _cna_C_append_intList(SEXP, SEXP);
extern SEXP _cna_C_charList2string(SEXP, SEXP, SEXP, SEXP);
extern SEXP _cna_... | 1,331,507 |
the-stack-v2-dedup | C | //
// Created by Глеб Линник on 09.12.16.
//
#ifndef QUEUE_QUEUE_H
#define QUEUE_QUEUE_H
typedef struct Queqe {
int value;
Queqe *start;
Queqe *next;
} Queqe;
Queqe *init();
bool add(Queqe **, int);
int take(Queqe **);
int watch(Queqe *);
void printQueqe(Queqe *);
void clearQueqe(Queqe **);
#endif //Q... | 1,331,508 |
the-stack-v2-dedup | C | #ifndef __ARCH_ALPHA_COMMON_INCLUDE_PAGE_H__
#define __ARCH_ALPHA_COMMON_INCLUDE_PAGE_H__
#include "common/include/compiler.h"
#include "common/include/inttypes.h"
#include "common/include/mem.h"
#define PAGE_LEVELS 3
#define GET_L1PTE_INDEX(addr) (((addr) >> 33) & 0x3fful)
#define GET_L2PTE_INDEX(a... | 1,331,509 |
the-stack-v2-dedup | C | /*
* File: tools.h
* Author: nschoe
*
* Created on December 16, 2013, 2:53 PM
*/
#ifndef TOOLS_H
#define TOOLS_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
void turnONDebugLed( void );
void turnOFFDebugLed( void );
void toggleDebugLed( void );
void blockPauseMs( const uint16_... | 1,331,510 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: ... | 1,331,511 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <conio.h>
#include <locale.h>
int main()
{
int quant, n_pedido;
float v_total, preco;
char resp= 's',op;
printf("Seja bem-vindo(a) a Cantina Da ZeZé, deseja começar seu pedido? ");
printf("Seja bem-vindo(a) a Cantina Da ZeZé, deseja começar seu pedido? ");
scanf("%c", &res... | 1,331,512 |
the-stack-v2-dedup | C | // Room: /d/nanshaolin/cjlou.c
// Last Modified by winder on May. 29 2001
inherit ROOM;
void create()
{
set("short", "藏经阁一楼");
set("long", @LONG
这里就是南少林藏经阁。此处藏经之富,不下嵩山本院,天下罕有
其匹。这里都是密密麻麻,高及顶棚的书架,书架间仅有容身一人通行
的空隙。几排大书架中间,间隔地放着数丈长的书桌。目光及处,你看
到桌上放了几本佛经。
LONG );
set("exits", ([
"out" : __DIR__"xiaoxi1",
"up" : __D... | 1,331,513 |
the-stack-v2-dedup | C | #ifndef STOREDPREVTORRENTS_H
#define STOREDPREVTORRENTS_H
#include <QList>
#include <QString>
struct storedPrevTorrents
{
QList<QString> torrentAddedOn;
QList<QString> torrentName;
QList<long long> torrentSize;
};
#endif // STOREDPREVTORRENTS_H
| 1,331,514 |
the-stack-v2-dedup | C |
/* ===================================
** mf_estimation.c
** started on Mon Jan 29 16:14:11 2007
** ===================================
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
/* Personnal libraries */
#include <utils.h>
#include <utl_alloc.h>
#include <utl_operator.h>
#inclu... | 1,331,515 |
the-stack-v2-dedup | C | /**************************************
Author : Hisilicon multime
Created : 2006/3/6
Last Modified :
Description : ESS系统共用的错误码
Function List :
History :
*********************************/
#ifndef __ESS_ERRCODE_H__
#define __ESS_... | 1,331,516 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int lll, char **arg)
{
int a;
int b;
a = atoi(arg[1]);
b = a << 2;
printf("a : %d , %p\n", a, &a);
printf("b : %d , %p\n", b, &b);
printf("\n");
}
| 1,331,517 |
the-stack-v2-dedup | C | #ifndef __VARIABLES_H__
#define __VARIABLES_H__
#include <windows.h>
#include <stdio.h>
#include "capstone-3.0.4\include\capstone.h"
#define LONG_JMP 0xe9
#define PUSH_0 0x006a
#define MOV_RSP 0x2404c7
#define MOV_RSP4 0x042444c7
#define RET 0xc3
#define LEN_JMPABS 5
#define LEN_PUSH_RAX 1
#... | 1,331,518 |
the-stack-v2-dedup | C | /***********************************************************************
COPYRIGHT
The following is a notice of limited availability of the code and
Government license and disclaimer which must be included in the
prologue of the code and in all source listings ... | 1,331,519 |
the-stack-v2-dedup | C | #ifndef _FORCES_H_
#define _FORCES_H_
#include "particules.h"
#define NB_FORCES 1
/// Un seul type de force pour le moment.
typedef enum { GRAVITE } ForceType;
/// Une force est un type et des paramètres qui la définissent.
struct SForce {
ForceType type;
double params[ 2 ];
};
typedef struct SForce Force;
///... | 1,331,520 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* se_init_signal_handlers.c :+: :+: :+: ... | 1,331,521 |
the-stack-v2-dedup | C | ../../gtk/dialogs/GtkDialogManager.h | 1,331,522 |
the-stack-v2-dedup | C | /** File: q2-1.c
** Author: Dongli Zhang
** Contact: dongli.zhang0129@gmail.com
**
** Copyright (C) Dongli Zhang 2013
**
** 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; ei... | 1,331,523 |
the-stack-v2-dedup | C | //차수가 최대 2인 이진트리
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#define MAX 100
typedef int element;
typedef struct node{
element data;
struct node*left;
struct node*right;
}Node;
//각 트리의 노드를 스택방식으로 추가 => 반복문 노드순회
typedef struct stacknode{
Node*stack[MAX];
int top;
}StackNode;
void init_stack(StackNo... | 1,331,524 |
the-stack-v2-dedup | C | /*
TOKSTR.H
This header file contains definitions of a token stream and the
functions which operate on it.
*/
// @@@ START COPYRIGHT @@@
//
// (C) Copyright 1993-2014 Hewlett-Packard Development Company, L.P.
//
// Licensed under... | 1,331,525 |
the-stack-v2-dedup | C | #include <Windows.h>
INT addToLog(LPCTSTR message);
INT addToLogHasBeenDeleted(LPCTSTR message);
INT addToLogNotBeenDeleted(LPCTSTR message, DWORD error_num);
INT concatBeforeAddToLog(LPCTSTR first_message, LPCTSTR second_message); | 1,331,526 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include <gsl/gsl_spline.h>
#include "mgcal.h"
#include "cdescent.h"
#include "simeq.h"
#include "utils.h"
#include "settings.h"
#include "consts_dummy.h"
char ifn[80];
char ofn[80] = "curvature_sp... | 1,331,527 |
the-stack-v2-dedup | C | #include <stdlib.h>
#include <unistd.h>
#include "add.h"
int ft_strlen(char *s)
{
int i;
i = -1;
while (s[++i] != '\0')
;
return (i);
}
void ft_bzero(char **s, int mode)
{
int i;
i = -1;
if (mode == 0)
while (s[++i] != '\0')
s[i] = 0;
... | 1,331,528 |
the-stack-v2-dedup | C | #include<stdio.h>
int main()
{
int x1,y1,x2,y2,x3,y3;
printf("请输入三个点的横纵坐标:");
scanf("%d%d%d%d%d%d",&x1,&y1,&x2,&y2,&x3,&y3);
int a=x2-x1;
int b=y2-y1;
int c=x3-x1;
int d=y3-y1;
if(a*d-b*c>0)
printf("0");
else
printf("1");
return 0;
}
| 1,331,529 |
the-stack-v2-dedup | C | #include "path.h"
inherit "/std/outside";
void setup()
{
set_light(85);
set_short("Between Zones.");
set_long("\nBetween Zones.\n\n"
" You are standing in an area between two completely different "
"types of landscape. "
"To the east you can see a sandy desert, "
"while to the west th... | 1,331,530 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include "filacircular.h"
//#define MAX 10
// Cria o menu de opcoes
void Menu(FilaC *Fc)
{
int op=0, info=0;
system("cls");
printf("Prim: %d - Ult: %d\n",Fc->prim,Fc->ult);
printf("Estado da fila:\n");
Print(Fc);
printf("\n");
printf(":: Fila circular ::\n\n");
pr... | 1,331,531 |
the-stack-v2-dedup | C | #ifndef _FILE_WORKS_H_
#define _FILE_WORKS_H_
// Символические пути
char * getSymbolicPath(const char * cFileName);
// Сравнивает расширение файла с указанным в параметре
int is_file(const char * fname, const char * mask);
// Возвращает размера файла
int get_file_size(const char * fname);
// Проверяет, сущест... | 1,331,532 |
the-stack-v2-dedup | C | /*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#ifndef _DM_MESSAGE_CACHE_H_
#define _DM_MESSAGE_CACHE_H_
#include "iotx_dm_internal.h"
#define DM_MSG_CACHE_TIMEOUT_MS_DEFAULT (10000)
typedef struct {
int msgid;
int devid;
iotx_dm_event_types_t response_type;
char *data;
uint64_t ctime;
stru... | 1,331,533 |
the-stack-v2-dedup | C | // SQliteZorder.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "sqlite3\sqlite3.h"
#include "sqlite3\Btree.h"
int _tmain(int argc, _TCHAR* argv[])
{
sqlite3BtreeOpen(0, 0, 0, 0, 0, 0);
return 0;
}
| 1,331,534 |
the-stack-v2-dedup | C | /* THIS FILE IS GENERATED BY BUILD TOOLS! DO NOT TOUCH! DO NOT COMMIT! */
#include <nuttx/config.h>
#include <sys/types.h>
#include "connector.h"
extern struct ts_connector kii;
struct ts_connector *ts_connectors[] = {
&kii,
NULL,
};
| 1,331,535 |
the-stack-v2-dedup | C | #include <stdio.h>
// préférer un type int pour main que void
int main()
{
// Colors:
char __RED__[] = "\e[0;31m";
char __GREEN__[] = "\e[0;32m";
char __YELLOW__[] = "\e[0;33m";
char __D_BLUE__[] = "\e[0;34m";
char __PURPLE__[] = "\e[0;35m";
char __L_BLUE__[] = "\e[0;36m";
int i = 0;
... | 1,331,536 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <errno.h> /* ind AF_UNIX */
#define UNIX_PATH_MAX 108 /* man 7 unix */
#define SOCKNAME "./mysock"
#define N 100
int main(){
int fd_skt, fd_c;
ch... | 1,331,537 |
the-stack-v2-dedup | C | /*
* Code for class OPERATIONS
*/
#include "eif_eiffel.h"
#include "../E1/estructure.h"
#ifdef __cplusplus
extern "C" {
#endif
extern EIF_TYPED_VALUE F982_8428(EIF_REFERENCE);
extern EIF_TYPED_VALUE F982_8429(EIF_REFERENCE);
extern EIF_TYPED_VALUE F982_8430(EIF_REFERENCE);
extern EIF_TYPED_VALUE F982_8431(EIF_REF... | 1,331,538 |
the-stack-v2-dedup | C | #include "queue.h"
#include <stdio.h>
void queue__init(queue_S *queue)
{
queue->front = -1;
queue->rear = -1;
}
bool queue__push(queue_S *queue, uint8_t push_value)
{
if (queue->front > queue->rear || queue->rear > 100)
{
return true;
}
else
{
if (queue->front == -1)
... | 1,331,539 |
the-stack-v2-dedup | C | #include "stdio.h"
#define MAX 8
float sum_elements(float a[],unsigned length){
int i;
float result =0;
for(i=0;i<=length-1;i++)
result =result+a[i];
printf("%f\n",result);
return result;
}
void main(){
float a[MAX];
int count,j;
printf("please enter the amount of numbers( no more than %d):\n",MAX);
scanf("%... | 1,331,540 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_write.h :+: :+: :+: ... | 1,331,541 |
the-stack-v2-dedup | C | #include <stdio.h>
void multiplymatrices(int firstmatrix[][10],int secondmatrix[][10],int mult[][10],int rowfirst,int columnfirst,int rowsecond,int columnsecond)
{
int i,j,k;
//initializing elements of matrix mult to 0
for(i=0;i<rowfirst;i++)
{
for(j=0;j<columnsecond;++j)
{
mult[i][j]=0;
}
}... | 1,331,542 |
the-stack-v2-dedup | C | #pragma once
#include <stdint.h>
#include <assert.h>
#include <exception>
#include "codegen/il2cpp-codegen.h"
// System.Array/InternalEnumerator`1<UnityEngine.UILineInfo>
struct InternalEnumerator_1_t2070;
// System.Object
struct Object_t;
// System.Array
struct Array_t;
// UnityEngine.UILineInfo
#include "UnityEngin... | 1,331,543 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strclr.c :+: :+: :+: ... | 1,331,544 |
the-stack-v2-dedup | C | /*
* Copyright (c) 2012-2016 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of EITHER the GNU General Public License
* version 2 as published by the Free Software Foundation or the BSD
* 2-Clause License. This program is distributed... | 1,331,545 |
the-stack-v2-dedup | C | #include "NU32.h"
#define CORE_TICKS 4000000 // 40 M ticks (one second)
int main(void) {
NU32_Startup(); // turns on interrupts by default
__builtin_disable_interrupts(); //disable all interrupts at CPU
__CP0_SET_COMPARE(CORE_TICKS); //CPO_COMPARE register set to 40 M
IPC2bits.CTIP = 5; ... | 1,331,546 |
the-stack-v2-dedup | C | /* $Id: kdebug.c,v 1.2 2001/05/31 21:32:22 marvin Exp $
*/
#include <keffos/config.h>
#include <sys/asm.h>
#include <sys/int.h>
#include <keffos/string.h>
#include <asm/misc.h>
#include <keffos/shutdown.h>
char ASCIINames[] = {
/*
* 0 1 2 3 4 5 6 7 8 9 A B C D E F
*/
0, 27,'1'... | 1,331,547 |
the-stack-v2-dedup | C | // Copyright 1993 Symantec, Peter Norton Product Group
//************************************************************************
//
// $Header: S:/include/VCS/cmbstr.h_v 1.0 06 Feb 1997 20:51:12 RFULLER $
//
// Description:
// Typedefs and defines for NAVW string handling.
// (and some define... | 1,331,548 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memchr.c :+: :+: :+: ... | 1,331,549 |
the-stack-v2-dedup | C |
#pragma once
struct Arena
{
static float minX;
static float maxX;
static float minY;
static float maxY;
static float scale;
};
| 1,331,550 |
the-stack-v2-dedup | C | /******************************************************************************
*
* 文件名 : path.c
* 负责人 : 彭鹏(pengpeng@fiberhome.com)
* 创建日期: 20151104
* 版本号 : v1.0
* 文件描述: vfs中path的实现
* 版权说明: Copyright (c) 2000-2020 GNU
* 其 他: 无
*
* 修改日志: 无
*
*************************************************... | 1,331,551 |
the-stack-v2-dedup | C | #include "f2c.h"
#include "fio.h"
uiolen f__reclen;
int
do_us(ftnint *number, char *ptr, ftnlen len)
{
if (f__reading) {
f__recpos += (int)(*number * len);
if (f__recpos>f__reclen)
return err(f__elist->cierr, 110, "do_us");
if (fread(ptr, (int)len, (int)(*number), f__cf) != *number)
return e... | 1,331,552 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
void verifyArgs(char * tab[]){
char * ip_tmp=NULL;
ip_tmp... | 1,331,553 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_calloc.c :+: :+: :+: ... | 1,331,554 |
the-stack-v2-dedup | C | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* get_env.c :+: :+: :+: ... | 1,331,555 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#define IN 1 //inside world
#define OUT 0 //outside world
int
main(int argc, char * argv[])
{
if (argc < 1)
return 1;
FILE * fd;
fd = fopen("/home/titoreinhart/c_progs/sample.txt","r");
if(!fd) {
printf("ERROR\n");
exit(1);
}
int state, c;
char... | 1,331,556 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include "bst.h"
void inicializar(arvore *raiz){
*raiz=NULL;
}
arvore adicionar(int key,arvore raiz){
if(raiz==NULL){
arvore novo=(arvore)malloc(sizeof(NO));
novo->key=key;
novo->esq=NULL;
novo->dir=NULL;
return novo;
}
else{
if(key>raiz->key){
raiz->dir=adici... | 1,331,557 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <stdlib.h>
#include "queue.h"
QueueNode *enqueue( QueueNode *front, QueueNode *newNode )
{
QueueNode *qn;
if( front == NULL )
{
return newNode;
}
for( qn = front; qn->next != NULL; qn = qn->next )
{
}
qn->next = newNode;
return front;
}
QueueNod... | 1,331,558 |
the-stack-v2-dedup | C | //Simple calculator
//Copywright Gregory Soukup 2021. See github license file for full terms.
#include <stdio.h>
int main()
{
float f;
float s;
scanf_s("%d", &f);
scanf_s("%d", &s);
f = root(f, s);
printf("%.6f\n",f);
return 0;
} | 1,331,559 |
the-stack-v2-dedup | C | #include "object-store.h"
#include "thread-utils.h"
#include "pack.h"
struct repository;
#define DEFAULT_DELTA_CACHE_SIZE (256 * 1024 * 1024)
#define OE_DFS_STATE_BITS 2
#define OE_DEPTH_BITS 12
#define OE_IN_PACK_BITS 10
#define OE_Z_DELTA_BITS 20
#define OE_SIZE_BITS 31
#define OE_DELTA_... | 1,331,560 |
the-stack-v2-dedup | C |
//A simple program written in C, opens a shell via execve, so linux only!
//For windows I think system("cmd.exe /c dir c:\\") can be used inside your program
// for example int main(){system("cmd.exe /c dir c:\\")}
#include <stdio.h>
#include <stdlib.h>
int main()
{
char *name[2];
[0] = "/bin/sh";
[1] = 0... | 1,331,561 |
the-stack-v2-dedup | C | void Unscaled_9_1()
{
//=========Macro generated from canvas: c1/c1
//========= (Mon Mar 26 08:25:32 2018) by ROOT version6.08/07
TCanvas *c1 = new TCanvas("c1", "c1",0,0,600,600);
gStyle->SetOptStat(0);
c1->Range(-37.5,-6.68464,37.5,0.1617615);
c1->SetFillColor(0);
c1->SetBorderMode(0);
c1->SetBorde... | 1,331,562 |
the-stack-v2-dedup | C | #include "productos.h"
int cargar_archivo(char * path)
{
FILE *pf = fopen(path, "wb");
if(!pf)
return 0;
t_producto vec_prod[]= {
{1,"BANANAS",70},
{2,"NARANJAS",60},
{3,"MANZADAS",50},
... | 1,331,563 |
the-stack-v2-dedup | C | #ifndef GNSS_SINS_EKF_LOOSE_INTEGRATION_TERMINATE_H
#define GNSS_SINS_EKF_LOOSE_INTEGRATION_TERMINATE_H
#include <math.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "rt_defines.h"
#include "rt_nonfinite.h"
#include "rtwtypes.h"
#include "gnss_sins_ekf_loose_integration_types.h"
extern void gn... | 1,331,564 |
the-stack-v2-dedup | C | #include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/sem.h>
#include <sys/shm.h>
#include <stdbool.h>
#include <errno.h>
#include <stdio.h>
#include "stdlib.h"
#include "sys/wait.h"
//--------KEYS-----------
#define KEY_CUST 0x1111
#defi... | 1,331,565 |
the-stack-v2-dedup | C | #include <stdio.h>
int main(int argc, char *argv[])
{
int c;
printf("Number of command line arguments passed: %d\n",argc );
for (c = 0; i < argc; c++)
{
printf("%d arguments is %s\n",c+1, argv[c] );
}
return 0;
} | 1,331,566 |
the-stack-v2-dedup | C | #include<stdio.h>
#define NMAX 2008
typedef struct student{
char name[NMAX];
double score;
}Student;
| 1,331,567 |
the-stack-v2-dedup | C | int sum2(int x, int y) {
return x + y;
}
int sum3(int x, int y, int z) {
return x + y + z;
}
int sum4(int w, int x, int y, int z) {
return w + x + y + z;
}
| 1,331,568 |
the-stack-v2-dedup | C | #include<stdio.h>
#include<sys/ioctl.h>
void main() {
system("clear");
int i, j, lines;
char spaces[100];
struct winsize w;
ioctl(0, TIOCGWINSZ, &w);
int columns = w.ws_col;
printf("How many rows? ");
scanf("%d", &lines);
for(i = 0; i < (columns/2) - lines ; i++) // To align the last row
spaces... | 1,331,569 |
the-stack-v2-dedup | C | /*
* Copyright (c) 2003-2010 Alexandre Ratchov <alex@caoua.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS I... | 1,331,570 |
the-stack-v2-dedup | C | /*
Aron de Ruijter 12868655, Lars Janssen 12882712
This program searches for prime numbers with the sieve of Eratosthenes.
The basic premise of this algorithm is that it stars with every natural
larger than 1. Then it says the first number in the list is prime and
removes every multiple of it. Then... | 1,331,571 |
the-stack-v2-dedup | C | #ifndef __GAMECNT_H__
#define __GAMECNT_H__
//=======================
//定数・マクロ定義
//=======================
//========================
//構造体宣言
//========================
//========================
//プロトタイプ宣言
//========================
void GetGameCnt(void);
int SetGameCnt(void);
#endif //__GAMECNT_H... | 1,331,572 |
the-stack-v2-dedup | C | /* Stepper Thread Function
* Author: Spencer Lust
*/
#ifndef _STEPPER_H_
#define _STEPPER_H_
#endif | 1,331,573 |
the-stack-v2-dedup | C | /* SPDX-License-Identifier: MIT */
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#include <dirent.h>
#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h... | 1,331,574 |
the-stack-v2-dedup | C | #include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "v1beta2_rolling_update_stateful_set_strategy.h"
v1beta2_rolling_update_stateful_set_strategy_t *v1beta2_rolling_update_stateful_set_strategy_create(
int partition
) {
v1beta2_rolling_update_stateful_set_strategy_t *v1beta2_rolling_update_s... | 1,331,575 |
the-stack-v2-dedup | C | //Bibliotek 3, libcomponent.so, Burleigh HT16
#include <stdio.h>
#include <math.h>
#include "libcomponent.h"
//declarations
int countplaces(float resid);
float* calcE12(float remaining);
//main function, accepts argument (resistor value) from Lib1
//************************************************************... | 1,331,576 |
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,331,577 |
the-stack-v2-dedup | C | void S12_edmFit_noMod_Run-1a_250MeV_BQ()
{
//=========Macro generated from canvas: c/c
//========= (Tue Mar 29 11:18:57 2022) by ROOT version 6.24/06
TCanvas *c = new TCanvas("c", "c",0,0,800,600);
c->SetHighLightColor(2);
c->Range(-20.25953,-5.968671,450.807,6.218829);
c->SetFillColor(0);
c->SetBorderM... | 1,331,578 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.