generated from freudenreichan/info2Praktikum-Wortsalat
fixed small errors
This commit is contained in:
1 parent
9967eb3b09
commit
259fe28f33
1 file changed
+2
-2
+2
-2
@@ -24,14 +24,14 @@ unsigned int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxW
|
||||
|
||||
static int createSingleWords(char text[MAX_LINE_LEN], char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
||||
{
|
||||
char *teiler = " ;,.\n";
|
||||
char *teiler = " ;,.\r\n";
|
||||
char *token;
|
||||
|
||||
int i = 0;
|
||||
|
||||
token = strtok(text, teiler);
|
||||
|
||||
while(token != NULL && i < maxWordCount)
|
||||
while(token != NULL && i < (int)maxWordCount)
|
||||
{
|
||||
strncpy(words[i], token, MAX_WORD_LEN - 1);
|
||||
//kleinbuchstaben --> GROßBUCHSTABEN
|
||||
|
||||
Reference in new issue
Block a user