2.12.3.6 fgetpos
Declaration:
int fgetpos(FILE *
stream, fpos_t *
pos);
Gets the current file position of the stream and writes it to pos.
If successful, it returns zero. On error it returns a nonzero value and stores the error number in the variable errno
.