Subject: Re: lib/19638: isalpha (3) bug
To: Mike Cheponis <mac@Wireless.Com>
From: Jason R Thorpe <>
List: netbsd-bugs
Date: 01/03/2003 18:02:23
On Fri, Jan 03, 2003 at 05:03:54PM -0800, Mike Cheponis wrote:

 > It's hard enough to write robust code in C, why have libc make it even
 > harder?

We haven't made it any harder since, by definition, the behavior is
undefined and users of the interface must avoid passing invalid arguments
in order for the behavior to remain defined.

No matter what system you have, you CANNOT RELY on "undefined behavior",
and doing so makes your program LESS ROBUST by definition.

        -- Jason R. Thorpe <>