/* * Rewind directory stream to beginning. */ static void rewinddir( DIR* dirp) { /* Rewind wide-character string directory stream */ _wrewinddir (dirp->wdirp); }
/** * g_dir_rewind: * @dir: a #GDir* created by g_dir_open() * * Resets the given directory. The next call to g_dir_read_name() * will return the first entry again. **/ void g_dir_rewind (GDir *dir) { g_return_if_fail (dir != NULL); #ifdef G_OS_WIN32 _wrewinddir (dir->wdirp); #else rewinddir (dir->dirp); #endif }