lua-users home
lua-l archive

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


On Tue, Aug 7, 2012 at 6:11 PM, Sean Conner <sean@conman.org> wrote:
>    ;       of a 0.  Even though NULL is 0, using NULL portrays the intent
>    ;       better than a 0.  It also stands out more.

And when using varargs in C, NULL is your friend.  On some 64-bit
systems, it can be the difference in passing a 32-bit zero or a 64-bit
NULL pointer.  Hence the C habit of defining NULL as (void*)0.

steve d.