standard.C.io.opendir

opendir is available since version 1.0.

Prototype:

number opendir(string filename)

Parameters

filename
The directory to be opened

Description:

The opendir() function opens the directory named by filename, associates a directory stream with it and returns a pointer to be used to identify the directory stream in subsequent operations. The pointer null is returned if filename cannot be accessed, or if it cannot allocate enough memory to hold the whole thing.

Return value:

Returns a number identifying the directory, or null if the directory cannot be accessed.