9 extern int fclose(FILE * stream);
15 extern int fflush(FILE * stream);
22 extern FILE *
fopen(
const char * filename,
const char * mode);
31 extern FILE *
freopen(
const char * filename,
const char * mode, FILE * stream);
37 extern void setbuf(FILE * stream,
char * buf);
49 extern int setvbuf(FILE * stream,
char * buf,
int mode,
size_t size);
57 extern int fprintf(FILE * stream,
const char * format, ...);
64 extern int fscanf(FILE * stream,
const char * format, ...);
70 extern int vfscanf(FILE * stream,
const char * format, va_list arg);
76 extern int vfprintf(FILE * stream,
const char * format, va_list arg);
84 extern int fgetc(FILE * stream);
93 extern char *
fgets(
char * s,
int n, FILE * stream);
101 extern int fputc(
int c, FILE * stream);
109 extern int fputs(
const char * s, FILE * stream);
116 extern int getc(FILE * stream);
125 extern int putc(
int c, FILE * stream);
134 extern int ungetc(
int c, FILE * stream);
145 extern size_t fread(
void * ptr,
size_t size,
size_t nmemb, FILE * stream));
154 extern size_t fwrite(
const void * ptr,
size_t size,
size_t nmemb, FILE * stream));
164 extern int fgetpos(FILE * stream, fpos_t * pos);
173 extern int fseek(FILE * stream,
long int offset,
int whence);
183 extern int fsetpos(FILE * stream,
const fpos_t * pos);
190 extern long int ftell(FILE * stream);
195 extern void rewind(FILE * stream);
201 extern void clearerr(FILE * stream);
208 extern int feof(FILE * stream);
215 extern int ferror(FILE * stream);
int fscanf(FILE *stream, const char *format,...)
Read formatted string from file stream.
FILE * freopen(const char *filename, const char *mode, FILE *stream)
Reopen file stream.
int getc(FILE *stream)
Read character from file stream (unsafe).
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream))
Write number of bytes to file stream.
int fprintf(FILE *stream, const char *format,...)
Write formatted string to file stream.
int fputc(int c, FILE *stream)
Write character to file stream.
char * fgets(char *s, int n, FILE *stream)
Read string from file stream.
int fgetpos(FILE *stream, fpos_t *pos)
Store current value of file position indicator.
int vfscanf(FILE *stream, const char *format, va_list arg)
int feof(FILE *stream)
Report whether end of stream has been reached.
int setvbuf(FILE *stream, char *buf, int mode, size_t size)
Buffer stream.
int fseek(FILE *stream, long int offset, int whence)
Move file stream's in-file pointer to new location.
int fgetc(FILE *stream)
Read character from file stream.
int fsetpos(FILE *stream, const fpos_t *pos)
Set file position indicator.
long int ftell(FILE *stream)
Get current location of stream's in-file pointer.
int vfprintf(FILE *stream, const char *format, va_list arg)
FILE * fopen(const char *filename, const char *mode)
Open file stream.
int putc(int c, FILE *stream)
Write character to file stream (unsafe).
int fflush(FILE *stream)
Flush file stream.
void rewind(FILE *stream)
Move file stream's in-file pointer to beginning of file.
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream))
Read number of bytes from file stream.
int fputs(const char *s, FILE *stream)
Write string to file stream.
int ungetc(int c, FILE *stream)
Stores a character into an input file stream.
int ferror(FILE *stream)
Report whether there is an error in file stream.
int fclose(FILE *stream)
Close file stream.
void clearerr(FILE *stream)
Clear end-of-file and error indicators.
void setbuf(FILE *stream, char *buf)
Buffer stream.