19 #define fclose _fclose
21 #define fwrite _fwrite
23 #define fileno _fileno
25 #define __SIZEOF_FILE sizeof(__FILE)
28 char __size[__SIZEOF_FILE];
43 FILE *
fopen(
const char *pathname,
const char *mode);
61 size_t fread(
void *ptr,
size_t size,
size_t nmemb,
FILE *stream);
73 size_t fwrite(
const void *ptr,
size_t size,
size_t nmemb,
FILE *stream);
100 int printf(
const char *format, ...);
110 int fprintf(
FILE *stream,
const char *format, ...);
120 int dprintf(
int fd,
const char *format, ...);
130 int sprintf(
char *str,
const char *format, ...);
141 int snprintf(
char *str,
size_t size,
const char *format, ...);
150 int vprintf(
const char *format, va_list ap);
160 int vfprintf(
FILE *stream,
const char *format, va_list ap);
170 int vdprintf(
int fd,
const char *format, va_list ap);
181 int vsprintf(
char *str,
const char *format, va_list ap);
193 int vsnprintf(
char *str,
size_t size,
const char *format, va_list ap);
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream)
Read nmemb items of data, each size bytes long, from the stream pointed to by stream,...
int vdprintf(int fd, const char *format, va_list ap)
Format and print data to a file with argument list.
Definition: printf.c:270
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream)
Write nmemb items of data, each size bytes long, to the stream pointed to by stream,...
int vsnprintf(char *str, size_t size, const char *format, va_list ap)
Format and print data to a buffer with limited size and argument list.
int sprintf(char *str, const char *format,...)
Format and print data to a buffer.
FILE * fopen(const char *pathname, const char *mode)
Open the file whose name is the string pointed to by pathname and associate a stream with it.
int fseek(FILE *stream, long offset, int whence)
Set the file position indicator for the stream pointed to by stream.
int dprintf(int fd, const char *format,...)
Format and print data to a file.
Definition: printf.c:281
int fclose(FILE *stream)
Close the given file stream.
int printf(const char *format,...)
Format and print data to the standard output.
Definition: printf.c:297
int vprintf(const char *format, va_list ap)
Format and print data to the standard output with argument list.
Definition: printf.c:292
int vsprintf(char *str, const char *format, va_list ap)
Format and print data to a buffer with argument list.
int snprintf(char *str, size_t size, const char *format,...)
Format and print data to a buffer with limited buffer size.
int vfprintf(FILE *stream, const char *format, va_list ap)
Format and print data to a file with argument list.
Definition: printf.c:308
int fprintf(FILE *stream, const char *format,...)
Format and print data to a file.
Definition: printf.c:320
int fileno(FILE *stream)
Examine the argument stream and returns the integer file descriptor used to implement this stream.