News for hackers. Stuff that matters.
Re:How can C Programs be so Reliable? by sausagefeet on Thursday September 22, 2011 @11:28AM (#3026378)
Note, open is not part of C. A better comparison would be fopen which, according to the C99 draft I have, just returns NULL on failure.
Re:How can C Programs be so Reliable? by JoachimSchipper on Thursday September 22, 2011 @12:41PM (#3026663)
You're technically correct, but that's not the "C" being discussed in this article. Also, fopen(3) on OpenBSD does document values errno after failure (by reference to the malloc(3) and open(2) man pages), and I expect that any reasonable system does likewise.