C++ Programming/Code/Standard C Library/Functions/ftell

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

ftell[edit | edit source]

Syntax
#include <cstdio>
long ftell( FILE *stream );

The ftell() function returns the current file position for stream, or -1 if an error occurs.

Related topics
fgetpos - fseek - fsetpos