tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: using the interfaces in ctype.h
On Mon, 21 Apr 2008, Neil Booth wrote:
> > #define _CTYPE_MASK ~(UINT_MAX << CHAR_BIT)
>
> Hoho, if sizeof (char) == sizeof (int).
I believe that that's impossible. The C standard doesn't explicitly
say it's impossible, but the requirement that gets() be able to return
EOF as well as returning any possible character strongly implies that
sizeof(int) > sizeof(char).
--apb (Alan Barrett)
Home |
Main Index |
Thread Index |
Old Index