Re: RFC: booleans and the kernel

Jamie Lokier (lk@tantalophile.demon.co.uk)
Sun, 27 Jan 2002 19:58:05 +0000


Mark Zealey wrote:
> > Just to break that rule, however, if p were a pointer and x were an
> > integer, I would write:
> >
> > x = (p != 0);
>
> Heard about NULL ?

I prefer 0, thanks. NULL has header file portability problems.

-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/