forked from freudenreichan/info2Praktikum-Wortsalat
und befehl verbessert & --> &&
created new branch
This commit is contained in:
1 parent
f8ca49c9c6
commit
c3195e0e3d
3 files changed
+2
-1
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ unsigned int count = 0;
|
||||
|
||||
while (fgets(line, sizeof(line), file) != NULL && count < maxWordCount) {
|
||||
char *token = strtok(line, " ,;\n\r\t");
|
||||
while (token != NULL & count < maxWordCount) {
|
||||
while (token != NULL && count < maxWordCount) {
|
||||
if (strlen(token) > 0) {
|
||||
strncpy(words[count], token, MAX_WORD_LEN - 1);
|
||||
words[count][MAX_WORD_LEN - 1] = '\0';
|
||||
|
||||
Reference in new issue
Block a user