> to (is_digit(c)||c=='!'||c=='#'||c=='$'||c=='*'||c=='-'). How about: strchr("!@$%#$0123456789", c) or is_digit(c)||strchr("!@$%#$", c) Regards, I.Q.