Quote:
Originally Posted by Sane
It's C99. But I need things to be as compatible as possible.
|
It isn't, AFAIK. But even if it was (and I'm wrong), you could just do
isalpha(ch) || isdigit(ch)
According to my man-pages, all of the functions in
ctype.h are actually macros that do table lookups. They're fairly efficient (probably more so than your function), and I don't see any reason to not use them.
