diff --git a/Startcode/input.c b/Startcode/input.c index 39eca79..e0c883b 100644 --- a/Startcode/input.c +++ b/Startcode/input.c @@ -29,6 +29,14 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) words[count][len] = '\0'; count++; + //schaue ob auch alles groß geschrieben ist + for(int i = 0; i < len; i++){ + if(words[count][i] <= 122 && words[count][i] >= 97){ + //mache Kleinbuchstaben zu Großbuchstaben //ASCII A = 65, a = 97, z = 122 + words[count][i] -= 32; + } + } + token = strtok(NULL, delimit); } }