www.delorie.com/djgpp/doc/libc/libc_664.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

rewinddir

Syntax

 
#include <dirent.h>

void rewinddir(DIR *dir);

Description

This function resets the position of the dir so that the next call to readdir (see section readdir) starts at the beginning again.

Return Value

None.

Portability

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001

Example

 
DIR *d = opendir(".");
rewinddir(d);


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004