Set the file position indicator.
#include <stdio.h> int fsetpos(FILE *stream, const fpos_t *pos);
stream
A pointer to a stream.
pos
A pointer to a file-positioning type.
The fsetpos() function sets the file position indicator for stream using the value pointed to by pos. The function is used in conjunction with fgetpos() when dealing with files having sizes greater than what can be represented by the long int argument used by fseek().
fsetpos() undoes the previous call to ungetc() and clears the end-of-file status.
This facility may not be available on configurations of the EWL that run on platforms without file systems.
fsetpos() returns zero if it is successful and returns a nonzero value if it fails.