2022-11-12 21:04:47 +02:00
|
|
|
#pragma once
|
|
|
|
|
2023-04-05 23:58:40 +03:00
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdarg.h>
|
2022-11-12 21:04:47 +02:00
|
|
|
#include <sys/cdefs.h>
|
2023-04-05 23:58:40 +03:00
|
|
|
#include <sys/types.h>
|
2022-11-12 21:04:47 +02:00
|
|
|
|
|
|
|
#define EOF (-1)
|
|
|
|
|
2023-04-05 23:58:40 +03:00
|
|
|
#define stdin stdin
|
|
|
|
#define stdout stdout
|
|
|
|
#define stderr stderr
|
|
|
|
|
|
|
|
#define SEEK_CUR 0
|
|
|
|
#define SEEK_END 1
|
|
|
|
#define SEEK_SET 2
|
|
|
|
|
2023-04-12 17:53:02 +03:00
|
|
|
#define EXIT_FAILURE 1
|
|
|
|
#define EXIT_SUCCESS 0
|
|
|
|
|
2022-11-14 00:27:11 +02:00
|
|
|
__BEGIN_DECLS
|
2022-11-12 21:04:47 +02:00
|
|
|
|
2023-04-05 23:58:40 +03:00
|
|
|
struct FILE;
|
|
|
|
typedef struct FILE FILE;
|
|
|
|
|
|
|
|
extern FILE* stdin;
|
|
|
|
extern FILE* stdout;
|
|
|
|
extern FILE* stderr;
|
|
|
|
|
|
|
|
FILE* fopen(const char* __restrict__, const char* __restrict__);
|
|
|
|
int fclose(FILE*);
|
|
|
|
int fflush(FILE*);
|
|
|
|
int fprintf(FILE* __restrict__, const char* __restrict__, ...);
|
|
|
|
int fseek(FILE*, long, int);
|
|
|
|
int printf(const char* __restrict__, ...);
|
2022-11-12 21:04:47 +02:00
|
|
|
int putchar(int);
|
|
|
|
int puts(const char*);
|
2023-04-05 23:58:40 +03:00
|
|
|
int vfprintf(FILE* __restrict__, const char* __restrict__, va_list);
|
|
|
|
long ftell(FILE*);
|
|
|
|
size_t fread(void* __restrict__, size_t, size_t, FILE*);
|
|
|
|
size_t fwrite(void const* __restrict__, size_t, size_t, FILE*);
|
|
|
|
void setbuf(FILE* __restrict__, char* __restrict__);
|
|
|
|
int sprintf(char* __restrict__, const char* __restrict__, ...);
|
2022-11-12 21:04:47 +02:00
|
|
|
|
2023-04-05 23:58:40 +03:00
|
|
|
__END_DECLS
|