#include <dirent.h> long telldir(DIR *dir);
This function returns a value which indicates the position of the
pointer in the given directory. This value is only useful as an
argument to seekdir
(see section seekdir).
The directory pointer.
not ANSI, not POSIX
DIR *dir; long q = telldir(dir); do_something(); seekdir(dir, q);
Go to the first, previous, next, last section, table of contents.