M
Mark McIntyre
On the off chance
that this is not a rhetorical question, I think it highly unlikely that they
would change the spelling of NUL though.
They won't and they haven't. Its still spelled NUL.
On the off chance
that this is not a rhetorical question, I think it highly unlikely that they
would change the spelling of NUL though.
osmium said:I really dislike threads such as this, on the various meanings of nul, null,
NUL and NULL. But your reference is specious, the *official;* ASCII chart
lists the character with a value of binary zero as NUL. Not NULL, as your
link above says.
osmium said:the *official;* ASCII chart
lists the character with a value of binary zero as NUL.
pete said:When using terms defined by the C standard,
in a discussion about C in the C newsgroup,
it seems obvious to me that the definition in the standard
is the one to use.
:Maybe there are some other non C documents
:which have amusing definitions of NULL.
:When using terms defined by the C standard,
:in a discussion about C in the C newsgroup,
:it seems obvious to me that the definition in the standard
:is the one to use.
Ah, well, the C89 standard makes no reference to NUL, but
does refer to the character with all 0 bits as "the null character".
The macro NULL expands to an implimentation defined
"null pointer constant".
So... any reference to "the null character" or "the NULL character" is
consistant with the C89 standard, but "the NUL character" is an
ANSI/ASCII/Unicode construct that lies outside the standard.
Certainly, though, if one just writes NULL with a qualifying
"character" or "pointer constant" then it would be best resolved in
favour of the "pointer constant" interpretation.
pete said:When using terms defined by the C standard,
in a discussion about C in the C newsgroup,
it seems obvious to me that the definition in the standard
is the one to use.
[snip]:Which is precisely what started this thread!!
:Someone used NULL when talking about a _character_. Roberson objected to
:that usage since NULL has already been defined by the standard to mean
:something else.
That's a rather ahistorical interpretation of the thread.
I (presumably the person you refer to as 'Roberson') used the phrase
"NULL character". Ken suggested that the name of the character is
s/Ken/Keith/
NUL, not NULL, and that NULL should not be used because it refers
to the NULL pointer constant. I pointed out that Unicode refers to
the character as NULL. More recently, I pointed out [in response to
a message of yours, if I recall correctly] that the C standard
never refers to NUL, but does refer to "null character" and
"null pointer constant", and defines a macro named NULL to expand
to a null pointer constant.
Along the way there were digressions into
> osmium wrote:
>
>
> That would matter if C was even constrained by ASCII.
>
> Maybe there are some other non C documents
> which have amusing definitions of NULL.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.