lua-users home
lua-l archive

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

> I never see any platform that NULL is not all-zeroes representation.


The infamous comp.lang.c Frequently Asked Questions at has a subsection on null pointers in C
which I find helpful to clarify some C subtleties.

In particular, there's one entry discussing architectures where the
internal representation of the null pointer isn't zero bytes.

One catchy thing that I discovered with this FAQ is that if you
initialize some data containing pointers by writing zero bytes over
it, well you're not *for these architectures* initializing the
pointers to the null pointer (if you were a hacker in the '80s).

Best regards,

-- Antonin