fgetpos [C++ Reference]
Keywords: c,io,fgetpos
Date: 2008-10-14T15:42:01-0700

[[fgetpos]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## fgetpos

Syntax:

        #include <cstdio>
        int fgetpos( FILE *stream, fpos_t *position );

The fgetpos() function stores the file position indicator of the given file stream in the given position variable. The position variable is of type fpos_t (which is defined in cstdio) and is an object that can hold every possible position in a FILE. fgetpos() returns zero upon success, and a non-zero value upon failure.

Related Topics: fseek, fsetpos, ftell

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •