Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Standard C Library Functionstelldir(3C)


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

RETURN VALUES

 

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

ERRORS

 

The telldir() function will fail if:

EOVERFLOW
The current location of the directory cannot be stored in an object of type long.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelSafe

SEE ALSO

 

opendir(3C), readdir(3C), seekdir(3C), attributes(5)


SunOS 5.9Go To TopLast Changed 19 Mar 1999

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.