Subject: Re: CVS commit: src/lib/libc/string
To: None <email@example.com>
From: Ben Harris <firstname.lastname@example.org>
Date: 10/16/2006 11:34:52
In article <20061016084845.E7B80211CA@cvs.netbsd.org> you write:
>when talking about characters/bytes, use "nul" and "nul-terminate"
I think this is wrong. The C standard uses the phrase "null character"
to mean a character with all bits zero. POSIX uses the phrase
"null-terminated". "NUL" is the ISO 6429 mnemonic for the "NULL"
control function, which is coded as 00/00 in the default C0 set. The
OED lists "nul" as a rare variant spelling of "null".
I think in the context of the C language, the most correct terminology
would be "null character" and "null-terminate". "NUL" should strictly
only be used when referring to the character as part of the content of a
string, rather than as a terminator. I think "nul" should be avoided
I could, of course, be wrong.