back to printing alpha and blanks
This commit is contained in:
parent
f7f7f29a59
commit
1e1ffb3f9d
2
ex14.c
2
ex14.c
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user