1 .\" Copyright (C) 1993 David Metcalfe (david@prism.demon.co.uk)
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\" References consulted:
6 .\" Linux libc source code
7 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
9 .\" Modified Sat Jul 24 18:29:11 1993 by Rik Faith (faith@cs.unc.edu)
10 .\" Modified 11 June 1995 by Andries Brouwer (aeb@cwi.nl)
11 .TH REWINDDIR 3 2021-03-22 GNU "Linux Programmer's Manual"
13 rewinddir \- reset directory stream
16 .RI ( libc ", " \-lc )
19 .B #include <sys/types.h>
20 .B #include <dirent.h>
22 .BI "void rewinddir(DIR *" dirp );
27 function resets the position of the directory
30 to the beginning of the directory.
34 function returns no value.
36 For an explanation of the terms used in this section, see
44 Interface Attribute Value
47 T} Thread safety MT-Safe
53 POSIX.1-2001, POSIX.1-2008, SVr4, 4.3BSD.