diff options
author | eadler <eadler@FreeBSD.org> | 2012-12-01 15:25:41 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-12-01 15:25:41 +0000 |
commit | 242dabb510e96151dfa1c14d7e2ffd1db8fc882a (patch) | |
tree | 0cd21de0bdeb63b67f3722d58aa19bfea91f2e59 /lib/libc | |
parent | 991e942bf20fdf0e5d8ef3a6a152c146e904a93a (diff) | |
download | FreeBSD-src-242dabb510e96151dfa1c14d7e2ffd1db8fc882a.zip FreeBSD-src-242dabb510e96151dfa1c14d7e2ffd1db8fc882a.tar.gz |
The getline function returns the number of characters read, not
written. Use clearer text for this.
PR: docs/174023
Submitted by: Paul Procacci <pprocacci@gmail.com>
Approved by: bcr (mentor)
MFC after: 1 week
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/getline.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/getline.3 b/lib/libc/stdio/getline.3 index 6061bfc..2161999 100644 --- a/lib/libc/stdio/getline.3 +++ b/lib/libc/stdio/getline.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 30, 2010 +.Dd November 30, 2012 .Dt GETLINE 3 .Os .Sh NAME @@ -76,7 +76,7 @@ The .Fn getdelim and .Fn getline -functions return the number of characters written, excluding the +functions return the number of characters stored in the buffer, excluding the terminating .Dv NUL character. |