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, Apr 21, 2008 at 11:03:03PM +0900, Neil Booth wrote:
> 
> Hoho, if sizeof (char) == sizeof (int).

Well, there do exist C compilers for such systems.
With the borked ansi C integer promotion rules, 'unsigned char'
then promotes to 'unsigned int' (rather than the usual 'signed int')
whenever it is used in an arithmetic expression.
This tends to break code that might otherwise be portable.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index