On 03/13/2017 04:34 PM, Bruce Korb wrote:
On 03/13/17 15:02, Gerald Pfeifer wrote:
On Mon, 13 Mar 2017, Joseph Myers wrote:
I am currently translating GCC into German. During that, I noticed that
in some places the term "zero character" means '\0'. The official term
though is "null character", as per the C standard.
Joseph, do you also agree (and with the patch below to document this)?
Yes.

Cool; I committed the change to codingconventions.html .

I'm likely late to the party, but what's wrong with the traditional
"NUL"?  Googling "NUL vs. NULL" yields up:

NULL is a macro defined in <stddef.h> for the null pointer. NUL is the
name of the first character in the ASCII character set. It corresponds
to a zero value. There s no standard macro NUL in C, but some people
like to define it.

Personally, I think the term "NUL character" is fine.  It's
the abbreviation for the null character in both ASCII and EBCDIC,
and it's used widely by POSIX, and interchangeably with the "null
character."  The C and C++ standards use the term "null character"
exclusively, so if the GCC documentation should adopt one of them
for consistency, it makes sense to go with "null."

Martin

Reply via email to