1. Home
  2. Computing & Technology
  3. Focus on Linux
Linux / Unix Command: telldir
Command Library

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)


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Explore Focus on Linux

More from About.com

  1. Home
  2. Computing & Technology
  3. Focus on Linux

©2008 About.com, a part of The New York Times Company.

All rights reserved.