From 242dabb510e96151dfa1c14d7e2ffd1db8fc882a Mon Sep 17 00:00:00 2001 From: eadler Date: Sat, 1 Dec 2012 15:25:41 +0000 Subject: The getline function returns the number of characters read, not written. Use clearer text for this. PR: docs/174023 Submitted by: Paul Procacci Approved by: bcr (mentor) MFC after: 1 week --- lib/libc/stdio/getline.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdio') 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. -- cgit v1.1