1rewinddir(3) Library Functions Manual rewinddir(3)
2
3
4
6 rewinddir - reset directory stream
7
9 Standard C library (libc, -lc)
10
12 #include <sys/types.h>
13 #include <dirent.h>
14
15 void rewinddir(DIR *dirp);
16
18 The rewinddir() function resets the position of the directory stream
19 dirp to the beginning of the directory.
20
22 The rewinddir() function returns no value.
23
25 For an explanation of the terms used in this section, see at‐
26 tributes(7).
27
28 ┌────────────────────────────────────────────┬───────────────┬─────────┐
29 │Interface │ Attribute │ Value │
30 ├────────────────────────────────────────────┼───────────────┼─────────┤
31 │rewinddir() │ Thread safety │ MT-Safe │
32 └────────────────────────────────────────────┴───────────────┴─────────┘
33
35 POSIX.1-2008.
36
38 POSIX.1-2001, SVr4, 4.3BSD.
39
41 closedir(3), opendir(3), readdir(3), scandir(3), seekdir(3), telldir(3)
42
43
44
45Linux man-pages 6.04 2023-03-30 rewinddir(3)