2.12.3.11 fsetpos

Declaration:

int fsetpos(FILE *stream, const fpos_t *pos);

Sets the file position of the given stream to the given position. The argument pos is a position given by the function fgetpos. The end-of-file indicator is cleared.

On success zero is returned. On error a nonzero value is returned and the variable errno is set.