generated from freudenreichan/info2Praktikum-Wortsalat
test5
This commit is contained in:
parent
bbad6afd45
commit
b34074233d
@ -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
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@
|
||||
Hund,Katze; Maus
|
||||
@ -1,3 +0,0 @@
|
||||
Apfel
|
||||
Banane
|
||||
Kiwi
|
||||
Loading…
x
Reference in New Issue
Block a user