#include <dirent.h> void rewinddir(DIR *dir);
This function resets the position of the dir so that the next call
to readdir
(see section readdir) starts at the beginning again.
None.
not ANSI, POSIX
DIR *d = opendir("."); rewinddir(d);
Go to the first, previous, next, last section, table of contents.