From: Jerry Coffin
JC> Not so -- the macro NULL is required by the standard to have
JC> the value zero -- the only part that's implementation defined
JC> is what type it is (e.g. char, short, int, long, void *, etc.)
Hmmm... I thought that was the case, but I couldn't find it in
the standard. Maybe I should have looked at 6.2.2.3 as well as at
7.1.6. Where else is it mentioned? I remembered that there was
a difinitive statement to that effect made once upon a time in a
C_ECHO thread, but I can't remember the exact reference. I know
that I made it a habit to assume NULL==0, but not why.
Okay... further reading along this thread indicates that I may
safely assume NULL==0. I also found out that my standard is the
old standard. (annotated by Schildt!)
> kkuzba{at}centurytel.net http://home.centurytel.net/kkuzba
> 'I looked out to see the dawn,' said Aragorn.
From: Jerry Coffin
JC> Not so -- the macro NULL is required by the
standard to
haveJC> the value zero -- the only part that's
implementation
definedJC> is what type it is (e.g. char, short,
int, long, void *,
etc.) Hmmm... I
thought that was the case, but I
couldn't find it in the standard. Maybe I
should have looked at
6.2.2.3 as well as at 7.1.6. Where else is it
mentioned? I
remembered that there was a difinitive statement to that
effect made
once upon a time in a C_ECHO thread, but I can't
remember the exact
reference. I know that I made it a habit to
assume NULL==0, but
not why.
Okay... further
reading along this thread indicates that I may
safely assume NULL==0. I
also found out that my standard is the
old standard. (annotated
by Schildt!)
> mailto:kkuzba{at}centurytel.net">
face="Courier New"
color=#000080>kkuzba{at}centurytel.net ">http://home.centurytel.net/kkuzba">
face="Courier New"
color=#000080>http://home.centurytel.net/kkuzba
face="Courier New" color=#000080>> 'I looked
out to see the dawn,' said
Aragorn.
Yahoo! Groups
Sponsor
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.
don't click this!
|