diff --git a/Start_Windows/input.c b/Start_Windows/input.c index 51fdec5..775d9ae 100644 --- a/Start_Windows/input.c +++ b/Start_Windows/input.c @@ -15,16 +15,17 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) while(fgets(puffer, MAX_LINE_LEN-1, file) != NULL && counter < maxWordCount) { - puts(".!!!!!"); + puts(".!!!!!"); char *word_parts = strtok(puffer, ",;\n\t/. "); //Wörter aufteilen while(word_parts != NULL && counter < maxWordCount) { - for(i = 0; i < MAX_WORD_LEN -1; i++) + for(i = 0; i < MAX_WORD_LEN -1; i++) //MAX = 100 { words[counter][i] = toupper(word_parts[i]); //Großbuchstaben erzeugen puts("?????????????????"); - if(word_parts[i] == '\0') + printf("%c", word_parts[i+1]); + if(word_parts[i+1] == '\0') break; } diff --git a/Start_Windows/input.o b/Start_Windows/input.o index 04f719d..9cbe042 100644 Binary files a/Start_Windows/input.o and b/Start_Windows/input.o differ diff --git a/Start_Windows/runTests.exe b/Start_Windows/runTests.exe index 6af276f..5fda53e 100644 Binary files a/Start_Windows/runTests.exe and b/Start_Windows/runTests.exe differ