This commit is contained in:
maxgrf 2025-11-06 16:12:26 +01:00
parent 9e172b664f
commit bbad6afd45

View File

@ -27,12 +27,13 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
printf("%c", word_parts[i+1]);
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
}
}
return counter;
}