From f7f7f29a593da9496b993b3efa5c84dd86e54dd8 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sun, 18 Sep 2011 10:41:35 -0400 Subject: [PATCH] printing alnum and not just alpha --- ex14.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex14.c b/ex14.c index 403769b..23292e1 100644 --- a/ex14.c +++ b/ex14.c @@ -20,7 +20,7 @@ void print_letters(char arg[], int nchars) for (i = 0; i < nchars; i++) { char ch = arg[i]; - if(isalpha(ch) || isblank(ch)) { + if(isalnum(ch) || isblank(ch)) { printf("'%c' == %d ", ch, ch); } }