C-style file input/output
From cppreference.com
The <cstdio> header provides generic file operation support and supplies functions with narrow character input/output capabilities.
The <cwchar> header supplies functions with wide character input/output capabilities.
Contents |
Functions
Types
| Defined in header
<cstdio> | |
| Type | Definition |
| FILE | type, capable of holding all information needed to control a C I/O stream |
| fpos_t | type, capable of uniquely specifying a position in a file |
Macros
| Defined in header
<cstdio> | |
| stdin stdout stderr |
expression of type FILE* associated with the input stream expression of type FILE* associated with the output stream expression of type FILE* associated with the error output stream (macro constant) |
| EOF |
integer constant expression of type int and negative value (macro constant) |
| FOPEN_MAX |
number of files that can be open simultaneously (macro constant) |
| FILENAME_MAX |
size needed for an array of char to hold the longest supported file name (macro constant) |
| BUFSIZ |
size of the buffer used by std::setbuf (macro constant) |
| _IOFBF _IOLBF _IONBF |
argument to std::setbuf indicating fully buffered I/O argument to std::setbuf indicating line buffered I/O argument to std::setbuf indicating unbuffered I/O (macro constant) |
| SEEK_SET SEEK_CUR SEEK_END |
argument to std::fseek indicating seeking from beginning of the file argument to std::fseek indicating seeking from the current file position argument to std::fseek indicating seeking from end of the file (macro constant) |
| TMP_MAX |
maximum number of unique filenames that can be generated by std::tmpnam (macro constant) |
| L_tmpnam |
size needed for an array of char to hold the result of std::tmpnam (macro constant) |