diff options
author | Will Estes <wlestes@users.sourceforge.net> | 2012-02-03 22:21:37 +0000 |
---|---|---|
committer | Will Estes <wlestes@users.sourceforge.net> | 2012-02-03 22:21:37 +0000 |
commit | c895eea08085604b785ac29e7bf4f6772b03ccc0 (patch) | |
tree | 4001f155dbefed5a2ff46d2d8603b69b86c83e0d | |
parent | accb35a7ae87bdf95a67a904a05d85901192afa8 (diff) |
more careful/paranoia
-rw-r--r-- | misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -184,7 +184,7 @@ int all_lower (str) register char *str; { while (*str) { - if (!isascii ((Char) * str) || !islower (*str)) + if (!isascii ((Char) * str) || !islower ((Char) * str)) return 0; ++str; } @@ -199,7 +199,7 @@ int all_upper (str) register char *str; { while (*str) { - if (!isascii ((Char) * str) || !isupper (*str)) + if (!isascii ((Char) * str) || !isupper ((Char) * str)) return 0; ++str; } @@ -675,7 +675,7 @@ Char myesc (array) int sptr = 2; while (isascii (array[sptr]) && - isxdigit ((char) array[sptr])) + isxdigit (array[sptr])) /* Don't increment inside loop control * because if isdigit() is a macro it might * expand into multiple increments ... |