rewinddir

rewinddir 
dirhandle

Sets the current position to the beginning of the directory for the readdir routine on dirhandle . The function may not be available on all machines that support readdir .