docs/124894: Spelling mistake in strlen(3)

Diane Bruce db at db.net
Mon Jun 23 03:00:15 UTC 2008


The following reply was made to PR docs/124894; it has been noted by GNATS.

From: Diane Bruce <db at db.net>
To: Sam Banks <samb at catalyst.net.nz>
Cc: freebsd-gnats-submit at 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 at FreeBSD.org db at db.net http://www.db.net/~db



More information about the freebsd-doc mailing list