Hui Zhou wrote:

I always frowns at statements such as    if (fopen(...))...
I prefer the usage:
   if (NULL != fopen(...))...

This is bad, bad, BAD.

Never, ever, ever use NULL to compare to anything that is not a pointer. If you are checking for zero, use zero.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to