Stores the current file position of a stream in an object.
#include <stdio.h> int fgetpos ( FILE *fp, fpos_t *pos);
(IN) Points to the file.
(OUT) Points to the object into which the position of the file is stored.
If successful, returns 0. Otherwise, returns a nonzero value and sets errno to one of the following:
The fgetpos function stores the current position of the file pointed to by fp in the object pointed to by pos. The value stored in pos is usable by the fsetpos function for repositioning the file to the position it had at the time of the call to fgetpos.