From acff3629568741492c0ce4533fef963453f315e1 Mon Sep 17 00:00:00 2001 From: Peter Wiebe Date: Tue, 6 Feb 2024 18:25:15 +0100 Subject: [PATCH] Commit 18 - Erweiterung der Funktion add_guessed_letter --- src/main/c/hangman.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/c/hangman.c b/src/main/c/hangman.c index 4a8045d..dd978ec 100644 --- a/src/main/c/hangman.c +++ b/src/main/c/hangman.c @@ -258,4 +258,6 @@ void add_guessed_letter(char* guessed_letters, char guessed_letter){ return; } } + guessed_letters[strlen(guessed_letters)] = guessed_letter; + guessed_letters[strlen(guessed_letters) + 1] = '\0'; } \ No newline at end of file