* dirent/tst-seekdir.c (main): fix confusing comment; print
a line to mark point where directory is rewound.
dirp = opendir(".");
for (dp = readdir(dirp); dp != NULL; dp = readdir(dirp))
{
- /* save position 3 (fourth entry) */
+ /* save position 3 (after fourth entry) */
if (i++ == 3)
save3 = telldir(dirp);
break;
}
+ printf("going back past 4-th entry...\n");
+
/* go back to saved entry */
seekdir (dirp, save3);