Hey folks,
Russell Nelson wrote:
Even if there was a good reason to change it, there's way too
much code that does this kind of thing:
foo = malloc(10); if (!foo) exit(1);
Which is a really bad programming practice. After all, ain't unary
logical operations with pointers illegal? Better way would be:
if (foo == NULL)
Which gives nice int value to if for evaluation in C (bool in C++).
Indrek
--
Indrek Rebane | Borthwick-Pignon
Electronics Engineer | Tartu Science Park
Phone: (+372) 7 302 641 | Riia 185, 51014 Tartu
Fax: (+372) 7 383 041 | Estonia
ind...@bps.co.ee | www.bps.co.ee