signed vs unsigned pointer warning
Paul Jarc
prj@po.cwru.edu
Fri Oct 8 17:28:00 GMT 2004
Joe Buck <Joe.Buck@synopsys.COM> wrote:
> Why can't an implementation define isxxx(c) to return something like
> table_lookup[(unsigned)(c)]
> ?
Assuming EOF==-1, that fails to distinguish between EOF and character
255 (as does the 384-element table in the case where a signed char is
passed). The ctype macros are supposed to accept EOF as well as
unsigned char values.
paul
More information about the Gcc
mailing list