input.c klein/großschreibung theoretisch

This commit is contained in:
sengpielto106561 committed 2026-10-27 16:09:13 +01:00
1 parent 281e3ad21b
commit b2d4ac22a2
1 file changed
+8
+8
View File
@@ -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);
}
}