www.delorie.com/djgpp/doc/libc/libc_687.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

seekdir

Syntax

 
#include <dirent.h>

void seekdir(DIR *dir, long loc);

Description

This function sets the location pointer in dir to the specified loc. Note that the value used for loc should be either zero or a value returned by telldir (see section telldir). The next call to readdir (see section readdir) will read whatever entry follows that point in the directory.

Return Value

None.

Portability

ANSI/ISO C No
POSIX No

Example

 
int q = telldir(dir);
do_stuff();
seekdir(dir, q);


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004