From 4aa43083663a0aa7712f199f7a4fa766c325d755 Mon Sep 17 00:00:00 2001 From: Christian Reum Date: Tue, 6 Feb 2024 20:01:26 +0100 Subject: [PATCH] plain commit --- src/wwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wwm.c b/src/wwm.c index b987eca..2ae4074 100644 --- a/src/wwm.c +++ b/src/wwm.c @@ -39,15 +39,15 @@ void ccheckAnswer(int useranswer) { int ceingabe() { printf("Your answer (1-4):"); - int result = scanf_s("%d", &useranswer); + int result = scanf("%d", &useranswer); if (result == 0) { printf("Please enter a number beetween 1 and 4 to answer or 5 to end the game!\n"); while (getchar() != '\n') return ceingabe(); + } ccheckAnswer(useranswer); return useranswer; } -}; void wwm(){