diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2009-09-05 15:32:31 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2009-09-05 15:32:31 +0200 |
commit | 89fde62a5337c41936902681d488fbe24ec9457a (patch) | |
tree | 4c325ec795e58b54ff0e55ddf5e87ae73e075746 | |
parent | f7fbbc5428d601833168b1d6f60d7ef344f5cc88 (diff) |
Convert characters to lowercase when counting words.
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'; |