Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>seekdir</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
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' (telldir:.).  The next call to `readdir'   
(readdir:.) will read whatever entry follows that point in the   
directory.

Return Value
------------

None.

Example
-------

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


See Also: telldir readdir

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson