Various functions is...(e.g. isalpha, isdigit) in the ctype.hnot completely predictable. They accept arguments int, but expect signed values in the range unsigned char, so on the platform where it is charsigned, passing the value chardirectly can lead to an undesirable sign extension. I believe a typical approach to handling this is to explicitly specify first unsigned char.
Ok, but what is the right, portable way to solve various isw...functions in wctype.h? wchar_t, like char, can also be signed or unsigned, but since wchar_tit is itself typedef, the file name unsigned wchar_tis illegal.
source
share