FTELL

Portability Function: Returns the current position of a file.

Module: USE DFPORT

Syntax

result = FTELL (lunit)

lunit
(Input) INTEGER(4). External unit number of a file.

Results:

The result is of type INTEGER(4). The result is the offset, in bytes, from the beginning of the file. A negative value indicates an error, which is the negation of the IERRNO error code. The following is an example of an error code:

EINVAL: lunit is not a valid unit number, or is not open.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB