Difference between char and unsigne

DSTONE at WL9.Prime.COM DSTONE at WL9.Prime.COM
Thu Jul 19 19:59:00 AEST 1990



Karl Heuer writes:

> Now, since all normal% characters are contained within the intersection of
> `char' and `unsigned char', you can safely ignore this botch if you *know*
> you're dealing with the most restrictive kind of text.

> % Besides being true of all ASCII characters, this guarantee is also extended
>   to the entire C source character set in non-ASCII alphabets.  Basically this
>   forbids an EBCDIC implementation from making `char' a signed 8-bit type.

I thought this was true, too:  but where is it in the standard?   I have
RTFS  without  success.   The  only  place  I  can  find  it is in K&R I
Reference Manual section 6.1 ("it is guaranteed that  a  member  of  the
standard character set is non-negative").

David Stone
<dstone at wl9.prime.com>
speaking for myself, and not Prime Computer.



More information about the Comp.lang.c mailing list