From 80f56467ef1e57d933afe814de4c546379742ea0 Mon Sep 17 00:00:00 2001 From: KaffeeMaus Date: Fri, 26 Jan 2024 12:00:07 +0100 Subject: [PATCH] bugfix: no console output during debugging --- src/main/c/Georg/tictactoe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/c/Georg/tictactoe.c b/src/main/c/Georg/tictactoe.c index 4e0ee11..c62338a 100644 --- a/src/main/c/Georg/tictactoe.c +++ b/src/main/c/Georg/tictactoe.c @@ -12,6 +12,7 @@ struct command COMMANDS[MAX_COMMANDS] = { }; void startTicTacToe(){ + setbuf(stdout, 0); printf( "%s\n", getWelcomeMessageTicTacToe() ); printf( "%s\n\n", getRulesMessageTicTacToe() );