input.c klein/großschreibung theoretisch
This commit is contained in:
1 parent
281e3ad21b
commit
b2d4ac22a2
1 file changed
+8
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user