fgetpos(3s)fgetpos(3s)Name
fgetpos, fsetpos - save and restore stream position
Syntax
#include <stdio.h>
int fgetpos (stream, pos)
FILE *stream;
fpos_t *pos;
int fsetpos (stream, pos)
FILE *stream;
fpos_t *pos;
Description
The function stores the current position of stream in pos.
The function restores stream to the position returned by an earlier
call.
Return Values
If successful, the return value is zero; on failure, a nonzero value is
returned and errno is set to the appropriate value.
See Alsofseek(3s)fgetpos(3s)