_tell

Returns the position of a file.

long _tell (int handle);

long tell (int handle);

Required Header
<io.h>

Return Value

Each of these functions returns the current file position within the file. -1 indicates an error.

Parameters

handle

  A handle to the open file

Remarks

The _tell function returns the internal character counter for handle which may not represent the number of bytes used by the file when text translation mode has been chosen. Any padding added, to complete records, is not counted in the return value. When the file remains in the same mode, the result returned will reposition to the correct location when used with the _lseek function.

Low Level I/O

See Also    fgetpos, fseek, fsetpos, ftell, _lseek, rewind