Subject: Re: Type coersion long->int ?
To: None <current-users@netbsd.org>
From: Peter Seebach <seebs@plethora.net>
List: current-users
Date: 02/02/2000 12:40:53
In message <200002021824.NAA06838@grosse.manhattan.fugue.com>, Ted Lemon writes
:
>You should say (isascii (c) && isalpha (c)). isalpha is only defined
>for values zero through 128.
No, it's defined for the entire range of unsigned char.
Note that 'isascii' probably has the same range limit, although it's not a
"C" funcation (it's POSIX) so I don't have the spec handy. I expect it has
the same problem. Hmm. Not in our macro version, anyway:
#define isascii(c) ((unsigned)(c) <= 0177)
I still wouldn't count on it. :)
-s