#include <dirent.h> void seekdir(DIR *dir, long loc);
This function sets the location pointer in dir to the specified
loc. Note that the value used for loc should be either zero
or a value returned by telldir
(see section telldir). The next call
to readdir
(see section readdir) will read whatever entry follows that
point in the directory.
None.
not ANSI, not POSIX
int q = telldir(dir); do_stuff(); seekdir(dir, q);
Go to the first, previous, next, last section, table of contents.