Module Name:    src
Committed By:   roy
Date:           Mon Nov 30 23:23:29 UTC 2009

Modified Files:
        src/lib/libc/stdio: getdelim.3

Log Message:
Note that callers should use feof(3) or ferror(3) to distinguish between
EOF or an error.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/stdio/getdelim.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/stdio/getdelim.3
diff -u src/lib/libc/stdio/getdelim.3:1.4 src/lib/libc/stdio/getdelim.3:1.5
--- src/lib/libc/stdio/getdelim.3:1.4	Mon Nov 30 22:51:46 2009
+++ src/lib/libc/stdio/getdelim.3	Mon Nov 30 23:23:29 2009
@@ -1,4 +1,4 @@
-.\"     $NetBSD: getdelim.3,v 1.4 2009/11/30 22:51:46 roy Exp $
+.\"     $NetBSD: getdelim.3,v 1.5 2009/11/30 23:23:29 roy Exp $
 .\"
 .\" Copyright (c) 2009 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -91,6 +91,13 @@
 If an error occurs, the functions return \-1 and the global variable
 .Va errno
 is set to indicate the error.
+.Pp
+The functions do not distinguish between end-of-file and error,
+and callers must use
+.Xr feof 3
+and
+.Xr ferror 3
+to determine which occurred.
 .Sh EXAMPLE
 The following code fragment reads lines from a file and writes them to
 standard output.

Reply via email to