2018-10-22 13:57:25 +02:00
|
|
|
#pragma once
|
|
|
|
|
2018-10-31 02:09:11 +01:00
|
|
|
#include <sys/cdefs.h>
|
2018-10-31 17:50:43 +01:00
|
|
|
#include <sys/types.h>
|
2018-10-22 13:57:25 +02:00
|
|
|
|
2018-10-31 02:09:11 +01:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
#ifndef EOF
|
|
|
|
#define EOF (-1)
|
|
|
|
#endif
|
|
|
|
|
2018-10-31 17:50:43 +01:00
|
|
|
#define SEEK_SET 0
|
|
|
|
#define SEEK_CUR 1
|
|
|
|
#define SEEK_END 2
|
|
|
|
|
2018-10-31 02:09:11 +01:00
|
|
|
struct __STDIO_FILE {
|
|
|
|
int fd;
|
2018-10-31 17:50:43 +01:00
|
|
|
int eof;
|
2018-10-31 02:09:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct __STDIO_FILE FILE;
|
|
|
|
|
|
|
|
extern FILE* stdin;
|
|
|
|
extern FILE* stdout;
|
|
|
|
extern FILE* stderr;
|
|
|
|
|
2018-10-31 17:50:43 +01:00
|
|
|
char* fgets(char* buffer, int size, FILE*);
|
|
|
|
int fileno(FILE*);
|
|
|
|
int fgetc(FILE*);
|
|
|
|
int getc(FILE*);
|
|
|
|
int getchar();
|
|
|
|
FILE* fopen(const char* pathname, const char* mode);
|
|
|
|
int fclose(FILE*);
|
2018-10-31 19:49:22 +01:00
|
|
|
void rewind(FILE*);
|
|
|
|
void clearerr(FILE*);
|
|
|
|
int feof(FILE*);
|
2018-11-05 14:56:05 +01:00
|
|
|
int fflush(FILE*);
|
2018-10-31 17:50:43 +01:00
|
|
|
size_t fread(void* ptr, size_t size, size_t nmemb, FILE*);
|
|
|
|
size_t fwrite(const void* ptr, size_t size, size_t nmemb, FILE*);
|
2018-10-31 02:09:11 +01:00
|
|
|
int fprintf(FILE*, const char* fmt, ...);
|
2018-10-22 13:57:25 +02:00
|
|
|
int printf(const char* fmt, ...);
|
|
|
|
int sprintf(char* buffer, const char* fmt, ...);
|
|
|
|
int putchar(int ch);
|
2018-10-26 14:56:21 +02:00
|
|
|
void perror(const char*);
|
2018-10-31 17:50:43 +01:00
|
|
|
int sscanf (const char* buf, const char* fmt, ...);
|
2018-10-22 13:57:25 +02:00
|
|
|
|
2018-10-31 02:09:11 +01:00
|
|
|
__END_DECLS
|
2018-10-22 13:57:25 +02:00
|
|
|
|