generated from freudenreichan/info2Praktikum-Wortsalat
first version
This commit is contained in:
1 parent
74c3415bae
commit
849d48aafa
1 file changed
+2
-2
+2
-2
@@ -21,7 +21,7 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
|||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return wordCount;
|
return i; //wordCount
|
||||||
}
|
}
|
||||||
|
|
||||||
static int createSingleWords(char text[MAX_LINE_LEN], char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
static int createSingleWords(char text[MAX_LINE_LEN], char words[][MAX_WORD_LEN], unsigned int maxWordCount)
|
||||||
@@ -38,7 +38,7 @@ static int createSingleWords(char text[MAX_LINE_LEN], char words[][MAX_WORD_LEN]
|
|||||||
strncpy(words[i], token, MAX_WORD_LEN - 1);
|
strncpy(words[i], token, MAX_WORD_LEN - 1);
|
||||||
//kleinbuchstaben --> GROßBUCHSTABEN
|
//kleinbuchstaben --> GROßBUCHSTABEN
|
||||||
int length = strlen(words[i]);
|
int length = strlen(words[i]);
|
||||||
for(int j = 0; j < length; i++)
|
for(int j = 0; j < length; j++)
|
||||||
{
|
{
|
||||||
if(islower(words[i][j]))
|
if(islower(words[i][j]))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user