ProAnswers.org

What is the purpose of ftell ?

The function ftell() is used to get the current file represented by the file pointer.

ftell(fp);

returns a long integer value representing the current file position of the file pointed by the

file pointer fp.If an error occurs ,-1 is returned.