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 Functionsseekdir(3C)


NAME

 seekdir - set position of directory stream

SYNOPSIS

 
#include <sys/types.h>
#include <dirent.h>
void seekdir(DIR *dirp, long int loc);

DESCRIPTION

 

The seekdir() function sets the position of the next readdir(3C) operation on the directory stream specified by dirp to the position specified by loc. The value of loc should have been returned from an earlier call to telldir(3C). The new position reverts to the one associated with the directory stream when telldir() was performed.

If the value of loc was not obtained from an earlier call to telldir() or if a call to rewinddir(3C) occurred between the call to telldir () and the call to seekdir(), the results of subsequent calls to readdir() are unspecified.

RETURN VALUES

 

The seekdir() function returns no value.

ERRORS

 

No errors are defined.

ATTRIBUTES

 

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

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelSafe

SEE ALSO

 

opendir(3C), readdir(3C), rewinddir(3C), telldir(3C), attributes(5)


SunOS 5.9Go To TopLast Changed 6 Mar 1997

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