From 695f0c087c246bda0cd3a037667ea79349537c13 Mon Sep 17 00:00:00 2001 From: Timo Hertel Date: Tue, 14 Oct 2025 18:43:23 +0200 Subject: [PATCH] Code sichten --- I2_Wortsalat/Start_Linux/input.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/I2_Wortsalat/Start_Linux/input.c b/I2_Wortsalat/Start_Linux/input.c index ed77805..b7f59c4 100644 --- a/I2_Wortsalat/Start_Linux/input.c +++ b/I2_Wortsalat/Start_Linux/input.c @@ -1,12 +1,18 @@ #include "input.h" -#include #include +#include // TODO: -// eine Funktion implementieren, die ein einzelnes Wort aus einer Textdatei (words.txt) einliest und als C-String zurückgibt. +// eine Funktion implementieren, die ein einzelnes Wort aus einer Textdatei +// (words.txt) einliest und als C-String zurückgibt. + +// Bedingungen, die in main.c geprüft werden: +// - existiert die angegebene Datei // Read words from file and store in 'words' array int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) { + int wordCount = 0; -} \ No newline at end of file + return wordCount; +}