1rewinddir(3)               Library Functions Manual               rewinddir(3)
2
3
4

NAME

6       rewinddir - reset directory stream
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <sys/types.h>
13       #include <dirent.h>
14
15       void rewinddir(DIR *dirp);
16

DESCRIPTION

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

RETURN VALUE

22       The rewinddir() function returns no value.
23

ATTRIBUTES

25       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
26       tributes(7).
27
28       ┌────────────────────────────────────────────┬───────────────┬─────────┐
29Interface                                   Attribute     Value   
30       ├────────────────────────────────────────────┼───────────────┼─────────┤
31rewinddir()                                 │ Thread safety │ MT-Safe │
32       └────────────────────────────────────────────┴───────────────┴─────────┘
33

STANDARDS

35       POSIX.1-2008.
36

HISTORY

38       POSIX.1-2001, SVr4, 4.3BSD.
39

SEE ALSO

41       closedir(3), opendir(3), readdir(3), scandir(3), seekdir(3), telldir(3)
42
43
44
45Linux man-pages 6.05              2023-07-20                      rewinddir(3)
Impressum