LWN.net Logo

NULL v. zero

NULL v. zero

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

Yeah, but unfortunately you can't pass plain NULL either (though it works
on almost any system). You have to cast it to the correct pointer type.
(Of course using 0 is even worse.)


(Log in to post comments)

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