#ifndef __STDIO_H__ #define __STDIO_H__ #include "bstd.h" #define stderr 1 typedef void *FILE; int fprintf(int* f, const char *format, ...); size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream); size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); FILE *fopen(const char *path, const char *mode); int fclose(FILE *stream); int fseek(FILE *stream, long offset, int whence); long ftell(FILE *stream); int fflush(FILE *stream); #ifndef SEEK_SET # define SEEK_SET 0 /* Seek from beginning of file. */ #endif #ifndef SEEK_CUR # define SEEK_CUR 1 /* Seek from current position. */ #endif #ifndef SEEK_END # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */ #endif #endif /* __STDIO_H__ */