Guardian C Library Calls Reference Manual
Reference to Library Calls
Guardian TNS C Library Calls Reference Manual—128833 3-43
fgetpos
fgetpos
The fgetpos function gets the current value of the file-position indicator for the file
associated with stream and stores it in the variable pointed to by pos. The stored value
can be used later by the fsetpos function to reset the file-position indicator.
stream
points to the file of which the fgetpos function ascertains the current value of the
file-position indicator.
pos
contains the current value of the file-position indicator
Return Value
is zero if the call is successful. Otherwise, a nonzero value is returned.
Usage Guidelines
•
The type fpos_t is an object type capable of recording all the information needed to
specify uniquely every position within a file.
#include <stdioh>
int fgetpos(FILE *stream, fpos_t *pos);