C Programming/C Reference/stdio.h/ftell

From Wikibooks, open books for an open world
Jump to: navigation, search

The function ftell returns the current offset in a stream in relation to the first byte. It returns the current file position for stream, or -1 if an error occurs.

 long ftell ( FILE * stream );