rewinddir is available since version 1.0.
Prototype:
null-returned rewinddir(number dir_descriptor);
Parameters
dir_descriptor
a valid directory identifier returned by the
opendir function.
Description:
The rewinddir() function resets the position of the named directory stream to the beginning of the directory.
Return value:
This function returns nothing.