Currently At: Programming Reference > C Reference > Stndard C I/O > fgetpos()

fgetpos()


Syntax:
#include <stdio.h>
int fgetpos( FILE *stream, fpos_t *position );


Description:
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 stdio.h) 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:
fsetpos(), fseek(), ftell()


Web Standards & Support:

Link to and support eLook.org Powered by LoadedWeb Web Hosting
Valid XHTML 1.0! Valid CSS! eLook.org FireFox Extensions