standard.C.io.readdir

readdir is available since version 1.0.

Prototype:

number readdir(number dir_descriptor)

Parameters

dir_descriptor
a valid directory identifier returned by the opendir function.

Description:

The readdir function returns an identifier to the next directory entry. It returns null upon reaching the end of the directory or detecting an invalid seekdir operation. You can apply the dirname function to obtain the directory name.

Return value:

Returns an identifier to the next directory entry or null.