LWN.net Logo

NULL v. zero

NULL v. zero

Posted Jul 23, 2004 14:36 UTC (Fri) by vivi48 (subscriber, #6412)
In reply to: NULL v. zero by h.j.thomassen
Parent article: NULL v. zero

> The execl example really *must* have "(const char *)NULL" (or
> (const char *)0) to be theoretically correct in size.

or (void *)NULL or (void *)0 because the spec explicitely says that with va_arg you can read back a void * as a char *.


(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