Go to the first, previous, next, last section, table of contents.


rewinddir

Syntax

#include <dirent.h>

void rewinddir(DIR *dir);

Description

This function resets the position of the dir so that the next call to readdir (see section readdir) starts at the beginning again.

Return Value

None.

Portability

not ANSI, POSIX

Example

DIR *d = opendir(".");
rewinddir(d);


Go to the first, previous, next, last section, table of contents.