Subject: Re: isspace and compiler warnings
To: None <tech-userlevel@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: tech-userlevel
Date: 10/18/2006 20:01:57
On Wed, 18 Oct 2006, Joerg Sonnenberger wrote:
> On Wed, Oct 18, 2006 at 11:13:28AM -0400, der Mouse wrote:
> > (The API design is slightly broken in that it cannot work
> > right on architectures where char and int are the same, but
> > that's not a problem for NetBSD.)
> 
> I don't think such platforms exist. IIRC sizeof(char) == 1 and INT_MAX
> >= 32767 by ISO C :-)

AFAIK, nothing in ISO C precents an implementation from having
sizeof(char) = 1; sizeof(int) = 1; CHAR_MAX = 32767, INT_MAX = 32767.
(This was certainly true in C89; I haven't checked the C99 standard, but
I would be surprised if they changed this aspect.)

--apb (Alan Barrett)