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.

opendir(3), readdir(3), seekdir(3), the Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <dirent.h>

First released in Issue 2.

footer end

January 1, 2004 posix.fail