back to printing alpha and blanks

This commit is contained in:
Dan Buch 2011-09-18 10:41:52 -04:00
parent f7f7f29a59
commit 1e1ffb3f9d

2
ex14.c
View File

@ -20,7 +20,7 @@ void print_letters(char arg[], int nchars)
for (i = 0; i < nchars; i++) { for (i = 0; i < nchars; i++) {
char ch = arg[i]; char ch = arg[i];
if(isalnum(ch) || isblank(ch)) { if(isalpha(ch) || isblank(ch)) {
printf("'%c' == %d ", ch, ch); printf("'%c' == %d ", ch, ch);
} }
} }