Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4 |
both |
#define _XOPEN_SOURCE
#include <dirent.h>
long 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(), then the directory position returned from telldir() is the same as that supplied as a loc argument to seekdir().
If successful, telldir() returns the current location of the specified directory stream.