readwords() korrigiert und getestet

This commit is contained in:
Harun Faizi 2025-11-02 15:50:03 +01:00
parent 476887d5ab
commit 16ab4a59ab

View File

@ -42,12 +42,6 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
strncpy(words[wordCount], token, MAX_WORD_LEN -1);
words[wordCount][MAX_WORD_LEN -1] = '\0';
words[wordCount][end] = '\0';
end--;
}
wordCount++;
token = strtok(NULL, ",;\n");
}