avr-libc-dev
[Top][All Lists]
Advanced

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

RE: [avr-libc-dev] Re: Request for cbrt() and strdup to be addedtolibc


From: Weddington, Eric
Subject: RE: [avr-libc-dev] Re: Request for cbrt() and strdup to be addedtolibc
Date: Sun, 22 Jun 2008 14:54:59 -0600

 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Joerg Wunsch
> Sent: Sunday, June 22, 2008 2:35 PM
> To: address@hidden
> Subject: Re: [avr-libc-dev] Re: Request for cbrt() and strdup 
> to be addedtolibc
> 
> As Weddington, Eric wrote:
> 
> > Good catch. Regardless whether it generates the same code or not, it
> > should be compared to NULL anyway because one should never rely on
> > NULL being zero.
> 
> In C, the only possible definitions for NULL are "0" or "((void *)0)".
> In C++, IIRC only "0" is possible.

IIRC, there's some other (obscure) backend in GCC where NULL != 0. So I
believe it is possible, though admittedly rare.
 




reply via email to

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