seekdir()

set position for next read of directory stream 

Function


SYNOPSIS

#include <dirent.h>

void seekdir(DIR *dirp, long loc);


DESCRIPTION

The seekdir() function sets the position of the next readdir() 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(). 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() occurred between the call to telldir() and the call to seekdir(), the subsequent calls to readdir() could return unexpected results.


PARAMETERS

dirp 

Points to the directory stream, for which the current location is to be set.

loc 

Is the location to which directory stream is to be set.


RETURN VALUES

None.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
closedir(), opendir(), readdir(), readdir_r(), rewinddir(), telldir()


PTC MKS Toolkit 10.4 Documentation Build 39.