[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg semi-hijack - an announcement (also, triggers)

On Sun, Mar 09, 2008 at 06:34:48PM +0100, Pierre Habouzit wrote:
> Here is the relevant C99 quote:
>     § 7.17 Common definitions <stddef.h>
>     [...]
>     3 The macros are
> 	      NULL
>       which expands to an implementation-defined null pointer constant; and
> 0 is not a pointer, hence disqualifies.

Just to confirm Kurt's point, 0 is a "null pointer constant" in C.
But it is not necessarily a pointer.  You can't terminate a varargs
list of pointers (e.g. execl) with NULL unless you cast it.

Daniel Jacobowitz

Reply to: