home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1994 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1994.iso
/
win3
/
nt
/
source.exe
/
POSIX
/
BSDPSX
/
SEEKDIR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-17
|
268b
|
17 lines
#include <sys/types.h>
#include <dirent.h>
void seekdir(DIR *dirp, long loc)
{
int
i,
offset;
printf("in new seekdir loc X%ldX\n", loc);
rewinddir(dirp);
offset = loc / sizeof(struct dirent);
for(i = 0; i < offset; i++)
readdir(dirp);
}