Borland C++ reference

rewinddir

raw OCR

Resets a directory stream to the first entry.

Defined in header <dirent.h>

Syntax

#include <dirent.h>
void rewinddir(DIR  *dirp);

Portability

DOSUNIXWindowsANSI CC++ only
■■■

Remarks

rewinddir is available on POSIX-compliant UNIX systems.

The rewinddir function repositions the directory stream dirp at the first entry in the directory. It also ensures that the directory stream accurately reflects any directory entries that may have been created or deleted since the last opendir or rewinddir on that directory stream.

Return value

None.

See also

Example

See the example  for opendir.

Differences from modern implementations

Nothing recorded yet.

Modern references

These are search links, not yet checked by hand.