standard.C.io.closedir

closedir is available since version 1.0.

Prototype:

number closedir(number dir_descriptor);

Parameters

dir_descriptor
a valid directory identifier returned by the opendir function.

Description:

The closedir function closes the named directory stream.

Return value:

Returns 0 on success; on failure, -1 is returned.