Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Dec 2009 23:06:06 GMT
From:      Jeremy Huddleston <jeremyhu@apple.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/141125: Typo of "NUL" in getline.3 man page
Message-ID:  <200912022306.nB2N66YS028216@www.freebsd.org>
Resent-Message-ID: <200912022310.nB2NA1Io080319@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         141125
>Category:       docs
>Synopsis:       Typo of "NUL" in getline.3 man page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 02 23:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Jeremy Huddleston
>Release:        8.0
>Organization:
Apple
>Environment:
NA
>Description:
"NUL" was written where it should've been "NULL" in getline.3

>How-To-Repeat:

>Fix:
Index: getline.3
===================================================================
RCS file: /home/ncvs/src/lib/libc/stdio/getline.3,v
retrieving revision 1.2
diff -u -p -r1.2 getline.3
--- getline.3	6 Apr 2009 13:50:04 -0000	1.2
+++ getline.3	2 Dec 2009 23:05:48 -0000
@@ -78,7 +78,7 @@ and
 .Fn getline
 functions return the number of characters written, excluding the
 terminating
-.Dv NUL .
+.Dv NULL .
 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


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912022306.nB2N66YS028216>