diff --git a/Start_Windows/input.c b/Start_Windows/input.c index 49231f0..f605449 100644 --- a/Start_Windows/input.c +++ b/Start_Windows/input.c @@ -25,10 +25,10 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) words[counter][i] = toupper(word_parts[i]); //Großbuchstaben erzeugen puts("?????????????????"); printf("%c", word_parts[i+1]); + words[counter][i] = '\0'; //Stringdefinition vervollständigen if(word_parts[i+1] == '\0') break; } - words[counter][i] = '\0'; //Stringdefinition vervollständigen counter++; // Wort eingelesen, Wortzähler erhöhen word_parts = strtok(NULL, ",;\n\t/. "); //NULL für Zeiger angeben diff --git a/Start_Windows/input.o b/Start_Windows/input.o index 9cbe042..c259dce 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 5fda53e..e773bb1 100644 Binary files a/Start_Windows/runTests.exe and b/Start_Windows/runTests.exe differ diff --git a/Start_Windows/testwords_delims.txt b/Start_Windows/testwords_delims.txt deleted file mode 100644 index e721fce..0000000 --- a/Start_Windows/testwords_delims.txt +++ /dev/null @@ -1 +0,0 @@ -Hund,Katze; Maus diff --git a/Start_Windows/testwords_empty.txt b/Start_Windows/testwords_empty.txt deleted file mode 100644 index e69de29..0000000 diff --git a/Start_Windows/testwords_simple.txt b/Start_Windows/testwords_simple.txt deleted file mode 100644 index 37d7524..0000000 --- a/Start_Windows/testwords_simple.txt +++ /dev/null @@ -1,3 +0,0 @@ -Apfel -Banane -Kiwi \ No newline at end of file