Re: !foo vs foo == nil
Re: !foo vs foo == nil
- Subject: Re: !foo vs foo == nil
- From: "Clark Cox" <email@hidden>
- Date: Wed, 20 Aug 2008 20:27:25 -0700
On Wed, Aug 20, 2008 at 7:44 PM, mm w <email@hidden> wrote:
> NULL does not have to be 0, 0 could be a valid pointer value
This is not true, the C standard guarantees that 0, converted to any
pointer type is a NULL pointer constant. It is not possible to convert
0 to a non-NULL pointer.
--
Clark S. Cox III
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden