From fbf6bc755d9348f8fdac7ce114675df2c9424cee Mon Sep 17 00:00:00 2001 From: matteo Date: Wed, 16 Dec 2009 04:19:23 +0000 Subject: --- lib/libc/stdio/getline.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc/stdio') diff --git a/lib/libc/stdio/getline.3 b/lib/libc/stdio/getline.3 index 0465f93..a5b39da 100644 --- a/lib/libc/stdio/getline.3 +++ b/lib/libc/stdio/getline.3 @@ -78,7 +78,8 @@ and .Fn getline functions return the number of characters written, excluding the terminating -.Dv NUL . +.Dv NUL +character. The value \-1 is returned if an error occurs, or if end-of-file is reached. .Sh EXAMPLES The following code fragment reads lines from a file and -- cgit v1.1