TELLDIR(3) Library Functions Manual TELLDIR(3)

telldircurrent location of a named directory stream

#include <dirent.h>

long int telldir(DIR *dirp);

The telldir() function obtains the current location associated with the directory stream specified by dirp .

If the most recent operation on the directory stream was a seekdir(), the directory position returned from the is the same as that supplied as a argument for seekdir().

Upon successful completion, telldir() returns the current location of the specified directory stream.

No errors are defined.

None.

None.

None.

opendir(3) , readdir(3) , seekdir(3) , <dirent.h> .

February 1997 posix.fail