isdigit (Tom Miller)

This commit is contained in:
rsc 2005-11-01 15:01:00 +00:00
parent 24d5692977
commit 604ad4d8ff
7 changed files with 10 additions and 7 deletions

View file

@ -52,7 +52,7 @@ static char *parse(char *s, int typeit) /* convert \0, etc to nroff driving tabl
if (isdigit((uchar)s[0]) && isdigit((uchar)s[1]) && isdigit((uchar)s[2])) {
*t++ = (s[0]-'0')<<6 | (s[1]-'0')<<3 | s[2]-'0';
s += 2;
} else if (isdigit(s[0])) {
} else if (isdigit((uchar)s[0])) {
*t++ = *s - '0';
} else if (*s == 'b') {
*t++ = '\b';