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(){