>Hmmm ... we've hit this one in Apache - the problem is >that casting to
>int doesn't actually fix it: if the char is -ve, then >you get a -ve
>offset,
It's platform dependent; some require an "isascii"
test first, some required ">0" test first, and
some require no test at all.
In INN I used
#define CTYPE(c, isXXXXX)
as in
if (CTYPE(c, isalpha)) ...
and depending on config parameters, the value was one of
## What predicate, if any, the <ctype.h> macros need
#### =()<CTYPE @<CTYPE>@>()=
#CTYPE (isascii((c)) && isXXXXX((c)))
#CTYPE ((c) > 0 && isXXXXX((c)))
CTYPE isXXXXX((c))
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]