From cb5facbed0a87134b78698b2adfd82ce172c7997 Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 18 Oct 2015 00:47:31 +0200 Subject: [PATCH] Flush stdout before getting the user's response (otherwise the user never sees anything). --- Applications/V7/games/arithmetic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Applications/V7/games/arithmetic.c b/Applications/V7/games/arithmetic.c index 331e7624..acf292cb 100644 --- a/Applications/V7/games/arithmetic.c +++ b/Applications/V7/games/arithmetic.c @@ -25,6 +25,7 @@ void getline(char *s) rs = s; + fflush(stdout); while ((*rs = getchar()) == ' '); while (*rs != '\n') if (*rs == 0) -- 2.34.1