Sets the position of a directory stream.
#include <dirent.h> void seekdir (DIR *dir_pointer, long int location);
If the value of location was not returned by a call to the telldir function, or if there was an intervening call to the rewinddir function on this directory stream, the effect is unspecified.
The type DIR, defined in the <dirent.h> header file, represents a directory stream. A directory stream is an ordered sequence of all the directory entries in a particular directory. Directory entries represent files. You can remove files from or add files to a directory asynchronously to the operation of the readdir function.
See readdir, rewinddir, and telldir in this section.