Re: [patch] vis(3): NUL terminate -> NUL-terminate

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ted Unangst
Date: Friday, April 23, 2010 - 11:58 am

On Fri, Apr 23, 2010 at 2:20 PM, Jason McIntyre <jmc@kerhand.co.uk> wrote:

I see no reason to prefer hyphenated, but I'm modern like that.
Wikipedia tells me that the Oxford dictionary deleted 16000 hyphens
recently.

As for nul, null, NUL, and NULL, here's my view, as I come up with it.

NULL is the C constant.  It is a noun.
null is an adjective in the English language.

The C standard says nothing at all about nul or NUL.  '\0' is called
the null character.  [Basically, the C standard is written in English
and uses English words to describe things.]

As a practical matter, I think it makes (a tiny bit of) sense to
invent a new constant name NUL different from NULL.  But the
similarity does confuse people.  And nul is a made up word.  It
doesn't exist.  Can't use that.  But always using NUL is too hard on
the eyes.

I doubt changing things is worth the bother, but using
"null-terminated" or "null terminated" would be consistent with the C
standard.  I'd say the standard is pretty close to an unassailable
authority on C termiology.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] vis(3): NUL terminate -&gt; NUL-terminate, Joachim Schipper, (Fri Apr 23, 9:53 am)
Re: [patch] vis(3): NUL terminate -&gt; NUL-terminate, Jason McIntyre, (Fri Apr 23, 11:20 am)
Re: [patch] vis(3): NUL terminate -&gt; NUL-terminate, Paul Janzen, (Fri Apr 23, 11:52 am)
Re: [patch] vis(3): NUL terminate -&gt; NUL-terminate, Jason McIntyre, (Fri Apr 23, 11:58 am)
Re: [patch] vis(3): NUL terminate -> NUL-terminate, Ted Unangst, (Fri Apr 23, 11:58 am)
Re: [patch] vis(3): NUL terminate -&gt; NUL-terminate, Jason McIntyre, (Fri Apr 23, 12:14 pm)
Re: [patch] vis(3): NUL terminate -&gt; NUL-terminate, Paul Janzen, (Fri Apr 23, 12:25 pm)
Re: [patch] vis(3): NUL terminate -&gt; NUL-terminate, Nicholas Marriott, (Fri Apr 23, 1:10 pm)