ftell()

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

Syntax
  #include <stdio.h>

  
  long ftell(FILE *f);

  
Description

ftell() returns the current file position. For binary files, this is the byte offset from the beginning of the file; for text files, do not use this value except as an argument to fseek().

Return

-1, if an error occurred; otherwise the current file position.

See also

fgetpos() and

fsetpos()