Namespaces
Variants
Actions

Standard library header <cstdio>

From cppreference.com
< cpp‎ | header
 
 
Standard library headers
 

This header was originally in the C standard library as <stdio.h>.

This header is part of the C-style input/output library.

Contents

Types

object type, capable of holding all information needed to control a C I/O stream
(typedef) [edit]
complete non-array object type, capable of uniquely specifying a position in a file, including its multibyte parse state
(typedef) [edit]
unsigned integer type returned by the sizeof operator
(typedef) [edit]

Macros

implementation-defined null pointer constant
(macro constant) [edit]
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) [edit]
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_SETSEEK_CURSEEK_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)

Functions

File access
opens a file
(function) [edit]
open an existing stream with a different name
(function) [edit]
closes a file
(function) [edit]
synchronizes an output stream with the actual file
(function) [edit]
sets the buffer for a file stream
(function) [edit]
sets the buffer and its size for a file stream
(function) [edit]
Direct input/output