1REWINDDIR(3) Linux Programmer's Manual REWINDDIR(3)
2
3
4
6 rewinddir - reset directory stream
7
9 #include <sys/types.h>
10 #include <dirent.h>
11
12 void rewinddir(DIR *dirp);
13
15 The rewinddir() function resets the position of the directory stream
16 dirp to the beginning of the directory.
17
19 The rewinddir() function returns no value.
20
22 For an explanation of the terms used in this section, see at‐
23 tributes(7).
24
25 ┌────────────────────────────────────────────┬───────────────┬─────────┐
26 │Interface │ Attribute │ Value │
27 ├────────────────────────────────────────────┼───────────────┼─────────┤
28 │rewinddir() │ Thread safety │ MT-Safe │
29 └────────────────────────────────────────────┴───────────────┴─────────┘
30
32 POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.
33
35 closedir(3), opendir(3), readdir(3), scandir(3), seekdir(3), telldir(3)
36
38 This page is part of release 5.13 of the Linux man-pages project. A
39 description of the project, information about reporting bugs, and the
40 latest version of this page, can be found at
41 https://www.kernel.org/doc/man-pages/.
42
43
44
45 2021-03-22 REWINDDIR(3)