|
|
|
|
|
by emmelaich
2256 days ago
|
|
I remember that the various is* man pages noted that most of them are only defined if isascii() is true. So I always used e.g. (isascii(x) && ispunct()) FWIW, just looked at the man page (macos) and iswdigit() and isnumber() are mentioned. |
|
I see that POSIX explicitly says that isascii(x) is "defined on all integer values" (it should have said "all int values").
Personally I'd rather cast to unsigned char.