Subject: Re: CVS commit: src/lib/libc/string
To: None <>
From: Ben Harris <>
List: tech-userlevel
Date: 10/16/2006 11:34:52
In article <> you write:
>Log Message:
>nul/null/NULL cleanup:
>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.

Ben Harris