[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:48:41PM +0100, Kurt Roeckx wrote:
> 6.3.2.3 Pointers
> [...]
>     3  An integer constant expression with the value 0, or
>        such an expression cast to type void *, is called a null
>        pointer constant.55) If a null pointer constant is assigned
>        to or compared for equality to a pointer, the constant is
>        converted to a pointer of that type.  Such a pointer, called
>        a null pointer, is guaranteed to compare unequal to a
>        pointer to any object or function.

That's not really want the C99 version said.  It says:
      3  An integer constant expression with the value 0, or
         such an expression cast to type void *, is called a null
         pointer constant.55) If a null pointer constant is converted
         to a pointer type, the resulting pointer, called
         a null pointer, is guaranteed to compare unequal to a
         pointer to any object or function.


Kurt


Reply to: