1telldir(3C)              Standard C Library Functions              telldir(3C)
2
3
4

NAME

6       telldir - current location of a named directory stream
7

SYNOPSIS

9       #include <dirent.h>
10
11       long int telldir(DIR *dirp);
12
13

DESCRIPTION

15       The telldir() function obtains the current location associated with the
16       directory stream specified by dirp.
17
18
19       If the most recent operation on the directory stream was a seekdir(3C),
20       the  directory position returned from the telldir() is the same as that
21       supplied as a loc argument for seekdir().
22

RETURN VALUES

24       Upon successful completion, telldir() returns the current  location  of
25       the specified directory stream.
26

ERRORS

28       The telldir() function will fail if:
29
30       EOVERFLOW    The  current location of the directory cannot be stored in
31                    an object of type long.
32
33

ATTRIBUTES

35       See attributes(5) for descriptions of the following attributes:
36
37
38
39
40       ┌─────────────────────────────┬─────────────────────────────┐
41       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
42       ├─────────────────────────────┼─────────────────────────────┤
43       │Interface Stability          │Standard                     │
44       ├─────────────────────────────┼─────────────────────────────┤
45       │MT-Level                     │Safe                         │
46       └─────────────────────────────┴─────────────────────────────┘
47

SEE ALSO

49       opendir(3C), readdir(3C), seekdir(3C), attributes(5), standards(5)
50
51
52
53SunOS 5.11                        14 Aug 2002                      telldir(3C)
Impressum