kommentare input.c

This commit is contained in:
John Neumeier 2025-11-07 08:19:08 +01:00
parent 493c659ea2
commit 1a68c9389f
6 changed files with 5 additions and 6 deletions

View File

@ -26,9 +26,8 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="432ce3b0-b2f5-4014-a4f8-364cc5adc8af" name="Changes" comment=""> <list default="true" id="432ce3b0-b2f5-4014-a4f8-364cc5adc8af" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/game.c" beforeDir="false" afterPath="$PROJECT_DIR$/game.c" afterDir="false" /> <change beforePath="$PROJECT_DIR$/runTests.exe" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/game.o" beforeDir="false" afterPath="$PROJECT_DIR$/game.o" afterDir="false" /> <change beforePath="$PROJECT_DIR$/wordsalad_myversion.exe" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/runTests.exe" beforeDir="false" afterPath="$PROJECT_DIR$/runTests.exe" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -194,7 +193,7 @@
<workItem from="1761847486479" duration="154000" /> <workItem from="1761847486479" duration="154000" />
<workItem from="1761893964767" duration="5024000" /> <workItem from="1761893964767" duration="5024000" />
<workItem from="1762085631333" duration="887000" /> <workItem from="1762085631333" duration="887000" />
<workItem from="1762498814624" duration="435000" /> <workItem from="1762498814624" duration="907000" />
</task> </task>
<servers /> <servers />
</component> </component>

Binary file not shown.

View File

@ -22,8 +22,8 @@ int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
{ {
strncpy(words[wordCount], token, MAX_WORD_LEN -1); //kopiert das Wort von token in das array words strncpy(words[wordCount], token, MAX_WORD_LEN -1); //kopiert das Wort von token in das array words
words[wordCount][MAX_WORD_LEN-1] = '\0'; words[wordCount][MAX_WORD_LEN-1] = '\0';
// Konvertiere jedes Zeichen zu Großbuchstaben
for (int i = 0; words[wordCount][i] != '\0'; i++) for (int i = 0; words[wordCount][i] != '\0'; i++) // Konvertiere jedes Zeichen zu Großbuchstaben
words[wordCount][i] = toupper(words[wordCount][i]); words[wordCount][i] = toupper(words[wordCount][i]);
wordCount++; wordCount++;

Binary file not shown.

Binary file not shown.