2018-10-22 14:57:25 +03:00
|
|
|
#pragma once
|
|
|
|
|
2018-10-31 04:09:11 +03:00
|
|
|
#include <sys/cdefs.h>
|
2018-10-31 19:50:43 +03:00
|
|
|
#include <sys/types.h>
|
2018-10-22 14:57:25 +03:00
|
|
|
|
2018-10-31 04:09:11 +03:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
#ifndef EOF
|
|
|
|
#define EOF (-1)
|
|
|
|
#endif
|
|
|
|
|
2018-10-31 19:50:43 +03:00
|
|
|
#define SEEK_SET 0
|
|
|
|
#define SEEK_CUR 1
|
|
|
|
#define SEEK_END 2
|
|
|
|
|
2018-10-31 04:09:11 +03:00
|
|
|
struct __STDIO_FILE {
|
|
|
|
int fd;
|
2018-10-31 19:50:43 +03:00
|
|
|
int eof;
|
2018-10-31 04:09:11 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct __STDIO_FILE FILE;
|
|
|
|
|
|
|
|
extern FILE* stdin;
|
|
|
|
extern FILE* stdout;
|
|
|
|
extern FILE* stderr;
|
|
|
|
|
2018-10-31 19:50:43 +03: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*);
|
|
|
|
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 04:09:11 +03:00
|
|
|
int fprintf(FILE*, const char* fmt, ...);
|
2018-10-22 14:57:25 +03:00
|
|
|
int printf(const char* fmt, ...);
|
|
|
|
int sprintf(char* buffer, const char* fmt, ...);
|
|
|
|
int putchar(int ch);
|
2018-10-26 15:56:21 +03:00
|
|
|
void perror(const char*);
|
2018-10-31 19:50:43 +03:00
|
|
|
int sscanf (const char* buf, const char* fmt, ...);
|
2018-10-22 14:57:25 +03:00
|
|
|
|
2018-10-31 04:09:11 +03:00
|
|
|
__END_DECLS
|
2018-10-22 14:57:25 +03:00
|
|
|
|