TELLDIR(3) Library Functions Manual TELLDIR(3)

telldircurrent location of a named directory stream


#include <dirent.h>

long telldir(DIR *dirp);

The telldir () function shall obtain the current location associated with the directory stream specified by .

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

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

No errors are defined.

None.

None.

None.

None.

fdopendir(3) , readdir(3) , seekdir(3)

XBD <dirent.h>

First released in Issue 2.

January 1, 2008 posix.fail