diff options
Diffstat (limited to 'dirent')
-rw-r--r-- | dirent/tst-seekdir.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dirent/tst-seekdir.c b/dirent/tst-seekdir.c index fc282468fe..3022783e54 100644 --- a/dirent/tst-seekdir.c +++ b/dirent/tst-seekdir.c @@ -14,7 +14,7 @@ main () 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); @@ -26,6 +26,8 @@ main () break; } + printf("going back past 4-th entry...\n"); + /* go back to saved entry */ seekdir (dirp, save3); |