docs/141125: Typo of "NUL" in getline.3 man page
Christian Brueffer
brueffer at FreeBSD.org
Thu Dec 3 07:50:03 UTC 2009
The following reply was made to PR docs/141125; it has been noted by GNATS.
From: Christian Brueffer <brueffer at FreeBSD.org>
To: Jeremy Huddleston <jeremyhu at apple.com>
Cc: freebsd-gnats-submit at FreeBSD.org
Subject: Re: docs/141125: Typo of "NUL" in getline.3 man page
Date: Thu, 3 Dec 2009 08:33:32 +0100
On Wed, Dec 02, 2009 at 11:06:06PM +0000, Jeremy Huddleston wrote:
>
> >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
>
>
Hi Jeremy,
I don't feel this change is needed. NUL is the common name for \0,
as written in every ASCII table. Maybe "NUL character" would be clearer
though.
- Christian
--
Christian Brueffer chris at unixpages.org brueffer at FreeBSD.org
GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc
GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D
More information about the freebsd-doc
mailing list