tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Suggested change of ctype.h



On Sat, 13 Jun 2009 20:41:17 +0100
David Laight <david%l8s.co.uk@localhost> wrote:

> More particularly the domain of all the ctype functions is clearly
> stated in all the documentation as EOF plus the values of 'unsigned char',
> the behaviour (not the result) for other values is 'undefined'.

You got me here. I didn't even know that I should pass unsigned char to
the ctype.h functions. The "int tolower(int c);" man page for example
somehow suggested to me that it would just sign extend the char.

I learned something new again. Thank you!

Juergen


Home | Main Index | Thread Index | Old Index