[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:00:31PM +0000, Kurt Roeckx wrote:
> 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)

Well, I read it that way:

  An integer constant expression with the value 0 (or such an
  expression) cast to type void *, is called a null pointer constant.55)

IOW, a null pointer constant is similar to (void *)0.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

Attachment: pgpQA8MrzI13t.pgp
Description: PGP signature


Reply to: