fgetpos()

This is a File I/O function. It is not implemented in the Compiler.

Syntax
  #include <stdio.h>

  
  int fgetpos(FILE *f, fpos_t *pos);

  
Description

fgetpos() returns the current file position in *pos. This value can be used to later set the position to this one using fsetpos().

Note: Do not assume the value in *pos to have any particular meaning such as a byte offset from the beginning of the file. The ANSI standard does not require this, and in fact any value may be put into *pos as long as there is a fsetpos() with that value resets the position in the file correctly.
Return

Non-zero, if there was an error; zero otherwise.

See also

fseek() and

ftell()