This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR libc/4755: Invalid code, not a bug


[Roland McGrath]
> 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.

Exactly.  Someone should close the problem report.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]