diff --git a/Start_Windows/game.o b/Start_Windows/game.o deleted file mode 100644 index 1db69c1..0000000 Binary files a/Start_Windows/game.o and /dev/null differ diff --git a/Start_Windows/input.c b/Start_Windows/input.c index a96ff01..7e77039 100644 --- a/Start_Windows/input.c +++ b/Start_Windows/input.c @@ -20,17 +20,16 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) while(word_parts != NULL && counter < maxWordCount) { - // Kopiere das Wort sicher in das words-Array + // Kopiere das Wort in words-Array strncpy(words[counter], word_parts, MAX_WORD_LEN - 1); words[counter][MAX_WORD_LEN - 1] = '\0'; // Alles in Großbuchstaben umwandeln - for(int i = 0; words[counter][i] != '\0'; i++) + for(i = 0; words[counter][i] != '\0'; i++) + { words[counter][i] = toupper(words[counter][i]); - - - - + printf("%c",words[counter][i]) + } /* for(i = 0; i < MAX_WORD_LEN -1; i++) //MAX = 100 @@ -45,7 +44,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) */ counter++; // Wort eingelesen, Wortzähler erhöhen word_parts = strtok(NULL, ",;\n\t/. "); //NULL für Zeiger angeben - } + } } return counter; diff --git a/Start_Windows/input.o b/Start_Windows/input.o deleted file mode 100644 index ffe67fe..0000000 Binary files a/Start_Windows/input.o and /dev/null differ diff --git a/Start_Windows/runTests.exe b/Start_Windows/runTests.exe deleted file mode 100644 index 6994fcf..0000000 Binary files a/Start_Windows/runTests.exe and /dev/null differ