LWN.net Logo

Why learn C? (O'Reilly Radar)

Why learn C? (O'Reilly Radar)

Posted Jul 2, 2012 9:29 UTC (Mon) by nix (subscriber, #2304)
In reply to: Why learn C? (O'Reilly Radar) by juliank
Parent article: Why learn C? (O'Reilly Radar)

Well, if there's only one error, it's easier to use the function if you just return the pointer or NULL.


(Log in to post comments)

Structures and results

Posted Jul 12, 2012 16:44 UTC (Thu) by alex (subscriber, #1355) [Link]

Or to emulate old-school styles return NULL and set the global errno ;-)

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