Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): > > Something like depending on NULL being all-bits-zero .. like in: > > if (!something) > do_something_else(); > > It would be more correct to write: > > if (something==NULL) > do_something_else(); > > ... just a guess :)
According to the ANSI standard, the operand of ! may be a pointer, and the result is 1 if the operand compares equal to 0, 0 otherwise. Comparison of pointers with the integer value 0 is also explicitly defined by the standard, so I can't see how the first form above could cause a problem. So, I guess we need to seek enlightenment elsewhere. James -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
