From 72e5b20347189c73c68d8ed1c2c29d1274461e38 Mon Sep 17 00:00:00 2001 From: Kozar Date: Tue, 12 Nov 2024 12:09:54 +0000 Subject: [PATCH] Initializacia --- cv7/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv7/program.c b/cv7/program.c index 9ef112d..5f06f21 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -55,7 +55,7 @@ void run_tree(struct tree* tree) { printf("Koniec vstupu\n"); return; }else if (response != 'a' && response != 'n') { - if (scanf(" %c", &response) != 1) { + if (feof(stdin)) { printf("Chybna databaza\n"); } else { printf("Nerozumiem\n");