Resets the position of the specified directory stream to the
beginning of a directory.
Format
#include <dirent.h>
void rewinddir (DIR *dir_pointer);
Arguments
- dir_pointer
- A pointer to the dir structure of an open directory.
Description
This function resets the position of the specified directory
stream to the beginning of the directory. It also causes the
directory stream to refer to the current state of the corresonding
directory, the same as using the opendir function. If the dir_
pointer argument does not refer to a directory stream, the
effect is undefined.
The type DIR, defined in the <dirent.h> header file, represents a
directory stream. A directory stream is an ordered sequence of all
the directory entries in a particular directory. Directory entries
represent files.
See also opendir in this section.
Previous Page | Next Page | Table of Contents | Index