Returns the current value of the file position indicator for a stream.
#include <stdio.h> long ftell ( FILE *fp);
(IN) Points to the file.
If successful, returns the current read/write position of the file specified by fp. Otherwise, returns -1 and sets errno to one of the following:
The ftell function returns the current read/write position of the file specified by fp. This position defines the character to be read or written by the next I/O operation on the file. You can use the value returned by ftell in a subsequent call to fseek in order to set the file to the same position.