| I/O manipulators | ||||
| Print functions(C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++20) | ||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
| Synchronized Output | ||||
(C++20) | ||||
| Types | ||||
| Error category interface | ||||
(C++11) | ||||
(C++11) |
| Types and objects | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Functions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <cstdio> | ||
int fgetpos(std::FILE* stream,std::fpos_t* pos); | ||
Obtains the file position indicator and the current parse state (if any) for the file streamstream and stores them in the object pointed to bypos. The value stored is only meaningful as the input tostd::fsetpos.
Contents |
| stream | - | file stream to examine |
| pos | - | pointer to afpos_t object to store the file position indicator to |
0 upon success, nonzero value otherwise. Also setserrno on failure.
| This section is incomplete Reason: no example |
| returns the current file position indicator (function)[edit] | |
| moves the file position indicator to a specific location in a file (function)[edit] | |
| moves the file position indicator to a specific location in a file (function)[edit] | |
C documentation forfgetpos | |