HP C/iX Library Reference Manual (30026-90004)
150 Chapter5
HP C/iX Library Function Descriptions
fgetpos
fgetpos
Returns the current file position of an open stream.
Syntax
#include <stdio.h>
int fgetpos (FILE *
stream
, fpos_t *
pos
);
Parameters
stream
A pointer to an open stream.
pos
A pointer to an object of type fpos_t, where the current file position
indicator is returned.
Return Values
0 Success.
≠0 An error occurred, and errno is set to indicate the error condition.
Description
The fgetpos function gets the current value of the file position indicator of the open
stream and returns it to the object pointed to by
pos
. The value returned in
pos
contains
unspecified data usable by fsetpos().
See Also
ftell(), fsetpos(), rewind(), ANSI C 4.9.9.1