File System Component  
MDK Middleware for Devices with Flash File System
 
Loading...
Searching...
No Matches
stdio.h File Reference

Functions

int fclose (FILE *stream)
 Close file stream.
 
int fflush (FILE *stream)
 Flush file stream.
 
FILE * fopen (const char *filename, const char *mode)
 Open file stream.
 
FILE * freopen (const char *filename, const char *mode, FILE *stream)
 Reopen file stream.
 
void setbuf (FILE *stream, char *buf)
 Buffer stream.
 
int setvbuf (FILE *stream, char *buf, int mode, size_t size)
 Buffer stream.
 
int fprintf (FILE *stream, const char *format,...)
 Write formatted string to file stream.

 
int fscanf (FILE *stream, const char *format,...)
 Read formatted string from file stream.
 
int vfscanf (FILE *stream, const char *format, va_list arg)
 
int vfprintf (FILE *stream, const char *format, va_list arg)
 
int fgetc (FILE *stream)
 Read character from file stream.

 
char * fgets (char *s, int n, FILE *stream)
 Read string from file stream.
 
int fputc (int c, FILE *stream)
 Write character to file stream.
 
int fputs (const char *s, FILE *stream)
 Write string to file stream.
 
int getc (FILE *stream)
 Read character from file stream (unsafe).

 
int putc (int c, FILE *stream)
 Write character to file stream (unsafe).
 
int ungetc (int c, FILE *stream)
 Stores a character into an input file stream.
 
size_t fread (void *ptr, size_t size, size_t nmemb, FILE *stream))
 Read number of bytes from file stream.
 
size_t fwrite (const void *ptr, size_t size, size_t nmemb, FILE *stream))
 Write number of bytes to file stream.

 
int fgetpos (FILE *stream, fpos_t *pos)
 Store current value of file position indicator.

 
int fseek (FILE *stream, long int offset, int whence)
 Move file stream's in-file pointer to new location.
 
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.
 
void rewind (FILE *stream)
 Move file stream's in-file pointer to beginning of file.
 
void clearerr (FILE *stream)
 Clear end-of-file and error indicators.
 
int feof (FILE *stream)
 Report whether end of stream has been reached.
 
int ferror (FILE *stream)
 Report whether there is an error in file stream.