From 4bbd9c87a59e5840287a0d05e76236bec4324dde Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Tue, 13 Sep 2011 22:51:00 -0400 Subject: [PATCH] switching on non-ascii value --- ex13.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex13.c b/ex13.c index dd086fb..10c6789 100644 --- a/ex13.c +++ b/ex13.c @@ -11,7 +11,7 @@ int main(int argc, char *argv[]) for(i = 0; argv[1][i] != '\0'; i++) { char letter = argv[1][i]; - switch(letter) { + switch(127 + (int)letter) { case 'a': case 'A': printf("%d: 'A'\n", i);