NULL v. zero
Posted Jul 16, 2004 22:59 UTC (Fri) by
jabcslwn (guest, #11815)
Parent article:
NULL v. zero
I agree that NULL is not used enough for assignments, but throw another hat into the ring with the syntax
if(!someptr) instead of if(someptr == NULL) or
if(!someboolean) instead of if(someboolean==0).
After all, the C language values were designed to allow for this, thus
simplifying the language expression. Anybody want to shoot me down?
(
Log in to post comments)