SEEKDIR(3) Library Functions Manual SEEKDIR(3)

seekdirset position of directory stream

#include <sys/types.h>
#include <dirent.h>

void seekdir(DIR *dirp, long int loc);

The seekdir() function sets the position of the next readdir(3) operation on the directory stream specified by dirp to the position specified by loc . The value of loc should have been returned from an earlier call to telldir (). The new position reverts to the one associated with the directory stream when telldir(3) was performed.

If the value of was not obtained from an earlier call to telldir() or if a call to occurred between the call to telldir() and the call to , the results of subsequent calls to are unspecified.

The seekdir() function returns no value.

No errors are defined.

None.

None.

None.

opendir(3) , readdir(3) , telldir(3) , <dirent.h> <stdio.h> , <sys/types.h> .

February 1997 posix.fail