Re: sys_nerr and strerror()

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 27 Jul 1999 07:53:45 +0200

David Luyer wrote:

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

That is entirely fine. The above is a valid return (strerror handled the
unknown error fine without any error, instead it returned a message
describing the unknown errno).

The mess with error checking is to handle those OS:es which doesn't
handle unknown errors.

/Henrik
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