1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef _STDIO_H
#define _STDIO_H 1
#include <stdarg.h>
#include <stddef.h>
#define SEEK_SET 0
typedef struct { int unused; } FILE;
extern FILE *stderr;
#define stderr stderr
int fclose(FILE *file);
int fflush(FILE *file);
FILE *fopen(const char *path, const char *flags);
size_t fread(void *buf, size_t size, size_t nmemb, FILE* file);
int fseek(FILE *file, long offset, int whence);
long ftell(FILE *file);
size_t fwrite(const void *buf, size_t size, size_t nmemb, FILE *file);
void setbuf(FILE *file, char *buf);
int fprintf(FILE *file, const char *fmt, ...);
int vfprintf(FILE *file, const char *fmt, va_list ap);
int sprintf(char *restrict str, const char *restrict format, ...);
int vsprintf(char *restrict str, const char *restrict format, va_list ap);
int snprintf(char *restrict str, size_t size, const char *restrict format, ...);
int vsnprintf(char *restrict str, size_t size, const char *restrict format, va_list ap);
#endif
|