generated from freudenreichan/info2Praktikum-Wortsalat
Compare commits
No commits in common. "9b54d8913e2103e6bd250fe3698a6e7adb233b62" and "ace90fe687138616ebba06568d7ad9be047da964" have entirely different histories.
9b54d8913e
...
ace90fe687
@ -59,7 +59,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
|||||||
//Edge case: If the last word ends on a '\0', right after the last letter
|
//Edge case: If the last word ends on a '\0', right after the last letter
|
||||||
if (wordIndex > 0 && wordcount < maxWordCount) {
|
if (wordIndex > 0 && wordcount < maxWordCount) {
|
||||||
word[wordIndex] = '\0';
|
word[wordIndex] = '\0';
|
||||||
strcpy(words[wordcount], word);
|
strcp(words[wordcount], word);
|
||||||
wordcount++;
|
wordcount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user