signed vs unsigned pointer warning
Paul Koning
pkoning@equallogic.com
Fri Oct 8 22:34:00 GMT 2004
>>>>> "Matthias" == Matthias B <msbREMOVE-THIS@winterdrache.de> writes:
Matthias> On Fri, 8 Oct 2004 13:31:53 -0400 (EDT) terra@gnome.org
Matthias> (Morten Welinder) wrote:
>> Why can't an implementation define isxxx(c) to return something
>> like table_lookup[(unsigned)(c)] ?
>>
>> Because isxxx needs to work with EOF, typically -1.
Matthias> So what? On my system all the is* calls return the same
Matthias> thing for EOF as they do for 255, namely 0. Is there an
Matthias> actual locale where any of the is*() calls returns non-zero
Matthias> for 255? In any case, for the usual western locales, your
Matthias> argument is invalid.
Not true! Character code 255 is a lowecase letter. Certainly it is
in iso-8859-1 (western europe) and probably in many of the other 8859
flavors.
paul
More information about the Gcc
mailing list