Mail Archives: djgpp/1994/11/03/22:03:29
pjones AT acs DOT bu DOT edu writes:
> > Charles Sandmann says:
> >
> > Probably the easiest fix would be to change the NULL pointer to
> > something way out of range, like maybe: 0xffffffff. It may break some
>
> Hmm... I would guess that having NULL != (void *) 0, even if it's not
> supposed to be guaranteed to be that in the first place, would break more code
> than we'd all like to imagine.
Actually the above cast, and (char *)0, (int *)0 etc. would still work.
Something like: long l = 0; void * p = (void *)l would break, but that is
seriously buggy code anyway.
Null pointers to vararg functions would probably be the greatest problem.
-Dag Nummedal
- Raw text -