Andrea Arcangeli wrote:

> > But for testing null pointers, I use `!'. In this context, it seems
> 
> BAD. I worked in envinronments where NULL is ((void *)-1UL).

That's _really bad_. ANSI C requires stdio.h to define NULL as being
equivalent to zero.

> If you use ! to check for a NULL pointer you make your code not
> portable.

Using ! to check for a NULL pointer is entirely portable.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to