tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: tolower()/islower() and char



On Thu, Jan 14, 2021 at 12:52:06PM +0100, Martin Husemann wrote:
> On Thu, Jan 14, 2021 at 12:28:57PM +0100, Manuel Bouyer wrote:
> > Does the standard explicitely state that the value should either be
> > EOF or >= 0 ?
> 
> Yes, Section 7.4 paragrah 1 second sentence (ISO C 2018):
> 
> > In all cases the argument is an int, the value of which shall be
> > representable as an unsigned char or shall equal the value of the
> > macro EOF.  If the argument has any other value, the behavior is
> > undefined.
> 

thanks. I have enough to reply to Xen's devs.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index