Go to the first, previous, next, last section, table of contents.


seekdir

Syntax

#include <dirent.h>

void seekdir(DIR *dir, long loc);

Description

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.

Return Value

None.

Portability

not ANSI, not POSIX

Example

int q = telldir(dir);
do_stuff();
seekdir(dir, q);


Go to the first, previous, next, last section, table of contents.