1TELLDIR(3) Linux Programmer's Manual TELLDIR(3)
2
3
4
6 telldir - return current location in directory stream
7
9 #include <dirent.h>
10
11 off_t telldir(DIR *dir);
12
14 The telldir() function returns the current location associated with the
15 directory stream dir.
16
18 On success, the telldir() function returns the current location in the
19 directory stream. On error, -1 is returned, and errno is set appropriā
20 ately.
21
23 EBADF Invalid directory stream descriptor dir.
24
26 4.3BSD, POSIX.1-2001.
27
29 closedir(3), opendir(3), readdir(3), rewinddir(3), scandir(3),
30 seekdir(3)
31
32
33
34 1993-03-31 TELLDIR(3)