System Grab Bag

View all man pages from Linux (or from all projects)

Name

rewinddir - reset directory stream

Library

Standard C library ( libc ", " -lc )

Synopsis

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

Description

The rewinddir() function resets the position of the directory stream dirp to the beginning of the directory.

Return Value

The rewinddir() function returns no value.

Attributes

For an explanation of the terms used in this section, see attributes(7). allbox; lbx lb lb T{ rewinddir()
InterfaceAttributeValue
T}Thread safetyMT-Safe

Standards

POSIX.1-2008.

History

POSIX.1-2001, SVr4, 4.3BSD.

See Also

  1. closedir(3),
  2. opendir(3),
  3. readdir(3),
  4. scandir(3),
  5. seekdir(3),
  6. telldir(3)