Bug 124894

Summary: Spelling mistake in strlen(3)
Product: Documentation Reporter: Sam Banks <samb>
Component: Books & ArticlesAssignee: Daniel Gerzo <danger>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Sam Banks 2008-06-23 03:30:04 UTC
NULL is spelled NUL inside strlen(3).

Fix: Attached patch.

Patch attached with submission follows:
How-To-Repeat: man 3 strlen
Comment 1 Diane Bruce 2008-06-23 03:41:23 UTC
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
Comment 2 Sam Banks 2008-06-23 03:43:51 UTC
I was a bit hasty in logging this PR. It appears that NUL is the ASCII
abbreviation for the NULL character and the string functions have many
references to it.

Please cancel this PR :)
Comment 3 Daniel Gerzo freebsd_committer freebsd_triage 2008-06-23 09:19:07 UTC
State Changed
From-To: open->closed

Close this one as it's invalid. Thank you for reporting though.
Comment 4 Daniel Gerzo freebsd_committer freebsd_triage 2008-06-23 09:19:44 UTC
Responsible Changed
From-To: freebsd-doc->danger

Track