The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

telldir - current location of a named directory stream

 SYNOPSIS



#include <dirent.h>

long int telldir(DIR *dirp);

 DESCRIPTION

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(), the directory position returned from the telldir() is the same as that supplied as a loc argument for seekdir().

 RETURN VALUE

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

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

opendir(), readdir(), seekdir(), <dirent.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]