LWN.net Logo

NULL v. zero

NULL v. zero

Posted Jul 15, 2004 19:25 UTC (Thu) by knobunc (subscriber, #4678)
In reply to: NULL v. zero by kamil
Parent article: NULL v. zero

Sorry, I don't see why you would need to cast NULL to conform to the spec as summarized above since it is says "implementation-defined null pointer constant" so it must provide something that is a 64-bit pointer.

-ben


(Log in to post comments)

NULL v. zero

Posted Jul 15, 2004 19:34 UTC (Thu) by Ross (subscriber, #4065) [Link]

I think the other person mean (const char *)NULL, but maybe not.

Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.