Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jun 2008 03:00:14 GMT
From:      Diane Bruce <db@db.net>
To:        freebsd-doc@FreeBSD.org
Subject:   Re: docs/124894: Spelling mistake in strlen(3)
Message-ID:  <200806230300.m5N30EjE037410@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/124894; it has been noted by GNATS.

From: Diane Bruce <db@db.net>
To: Sam Banks <samb@catalyst.net.nz>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: docs/124894: Spelling mistake in strlen(3)
Date: Sun, 22 Jun 2008 22:41:23 -0400

 On Mon, Jun 23, 2008 at 02:27:58AM +0000, Sam Banks wrote:
 >
 > >Number:         124894
 ...
 > >Description:
 > NULL is spelled NUL inside strlen(3).
 
 That is correct. NULL is syntactic sugar for 0 in c, a NULL pointer;
 i.e. a pointer pointing to NULL. However, NUL is the ASCII
 char nul, it is not NULL.
 
 >  terminating
 > -.Dv NUL
 > +.Dv NULL
 
 NULL is not a character, NUL is.
 
 --
 - db@FreeBSD.org db@db.net http://www.db.net/~db



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