Topic: null pointers again


Author: olsen@verdix.com (David Olsen)
Date: 13 Jan 94 01:25:04 GMT
Raw View
In article <2h1sm0INN67s@umbc7.umbc.edu> squire@umbc.edu (Mr. Jon S. Squire) writes:
>>'if (p != NULL) *p = q;' gives me the impression that the coder doesn't
>>understand the concept of zero is false and non-zero is true.
>
>But, but, but! You do not seem to understand that null pointers may be
>non zero. This is implementation dependent, as every 'coder' should
>understand.

AAAAAAAAAAAAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGHHHHH!!!!!

Please read the first 14 questions of the FAQ for comp.lang.c
(available by anonymous ftp from rtfm.mit.edu in
/pub/usenet/news.answers/C-faq/faq), which explain the null pointer in
excrutiating detail.  A full explanation of what is wrong with the
above statement and all its implecations is too long to put here and
is not appropriate for this newsgroup, and the comp.lang.c FAQ says it
better than I ever could.

--
David Olsen
olsen@verdix.com