From 70f5583d2320aec03aba29d7647c362d042cc360 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 14 Feb 2006 03:33:40 +0000 Subject: document why the ftell() should be 5 and not 14 --- test/misc/fdopen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/misc/fdopen.c b/test/misc/fdopen.c index 11681cfe3..8842d0583 100644 --- a/test/misc/fdopen.c +++ b/test/misc/fdopen.c @@ -35,6 +35,8 @@ main (int argc, char *argv[]) fp = fdopen (fd, "a"); assert (fp != NULL); + /* SuSv3 says that doing a fdopen() does not reset the file position, + * thus the '5' here is correct, not '14'. */ assert (ftell (fp) == 5); the_end: -- cgit v1.2.3