15 for (dp
= readdir(dirp
); dp
!= NULL
; dp
= readdir(dirp
))
17 /* save position 3 (fourth entry) */
19 save3
= telldir(dirp
);
21 printf("%s\n", dp
->d_name
);
23 /* stop at 400 (just to make sure dirp->__offset and dirp->__size are
29 /* go back to saved entry */
30 seekdir (dirp
, save3
);
33 /* print remaining files (3-last) */
34 for (dp
= readdir(dirp
); dp
!= NULL
; dp
= readdir(dirp
))
35 printf("%s\n", dp
->d_name
);