summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2009-09-05 15:32:31 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2009-09-05 15:32:31 +0200
commit89fde62a5337c41936902681d488fbe24ec9457a (patch)
tree4c325ec795e58b54ff0e55ddf5e87ae73e075746
parentf7fbbc5428d601833168b1d6f60d7ef344f5cc88 (diff)
Convert characters to lowercase when counting words.
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6bed126..8aab7b5 100644
--- a/main.c
+++ b/main.c
@@ -94,7 +94,7 @@ int main(int argc, char **argv) {
len = 0;
*word = '\0';
} else if(iswalpha(*pos)) {
- word[len++] = *pos;
+ word[len++] = towlower(*pos);
} else {
len = 0;
*word = '\0';