bug-gnulib
[Top][All Lists]
Advanced

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

Re: 0 vs. NULL


From: Bruno Haible
Subject: Re: 0 vs. NULL
Date: Sun, 14 Oct 2007 03:48:22 +0200
User-agent: KMail/1.5.4

Micah Cowan wrote:
> it is not safe to assume that using NULL, addresses those
> argument-passing problems .... To be
> portable, it must be cast when passed as a vararg param.

Indeed! Good point. Compilers such as Sun C++ really define NULL to 0
(in both C and C++ mode!), and misinterpret NULL in varargs and sizeof.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]