Re: sys_nerr and strerror()

From: David Luyer <luyer@dont-contact.us>
Date: Tue, 27 Jul 1999 13:24:05 +0800

> undefined, Up to the implementation.

BTW, on Linux:

typhaon; cat blah.c
main() { extern int errno; printf("%s\n", strerror(666)); printf("%d\n", errno); }
typhaon; make blah
cc blah.c -o blah
typhaon; ./blah
Unknown error 666
0
typhaon;

So not everyone returns NULL on unknown errno values or sets errno on
errors.

David.
Received on Tue Jul 29 2003 - 13:15:59 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:12:16 MST