James Thornton logo
James Thornton
Google
Web jamesthornton.com
Internet Business Consultant
Home Blog Bio Projects Contact
JamesThornton.com -> Archive -> Linux -> Man -> One Page

Name

telldir - return current location in directory stream.

Synopsis


#include <dirent.h>
off_t telldir(DIR *dir);

Description

The telldir() function returns the current location associated with the directory stream dir.

Return Value

The telldir() function returns the current location in the directory stream or -1 if an error occurs.

Errors

EBADF
Invalid directory stream descriptor dir.

Conforming to

BSD 4.3

See Also

opendir(3) , readdir(3) , closedir(3) , rewinddir(3) , seekdir(3) , scandir(3)


Follow espeed on Twitter