standard.C.io.telldir

telldir is available since version 1.0.

Prototype:

number telldir(number dir_descriptor)

Parameters

dir_descriptor
a valid directory identifier returned by the opendir function.

Description:

The telldir function returns the current location associated with the named directory stream. Values returned by telldir are good only for the lifetime of the current directory identifier opened with opendir, from which they are derived. If the directory is closed and then reopened, prior values returned by telldir will no longer be valid.

Return value:

Returns the current position in the directory.