ftell function — Returns current file position
long int ftell(FILE* stream)
The ftell
function returns
the current file position in stream
. This position can be used (with an
origin of SEEK_SET
) in a
subsequent call to fseek
. If
ftell
fails, it returns -1L
(which may be, but is not necessarily,
the same value as EOF
).