PR libc/4755: Invalid code, not a bug

Roland McGrath roland@redhat.com
Tue Apr 15 21:03:00 GMT 2003


You are correct.  That code is invalid (using unspecified or undefined
behavior).  The spec is clear.  It so happens that EOF is -1, so if toupper
behaved any differently than it does now for -1, it would be in error.



More information about the Libc-alpha mailing list