From 70691f19bd1152ce736fe51323c9a76759f599f9 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Sun, 22 Nov 2020 17:13:43 +0100 Subject: [PATCH] buffet --- cv8/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv8/program.c b/cv8/program.c index 6ab5092..bd6eb94 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -39,7 +39,8 @@ void search(struct tree* this){ char buffer[5]; memset(buffer,0,5); - + char* r = fgets(buffer,5,stdin); + if(fgets(buffer, 5, stdin) == NULL){ printf("Koniec vstupu\n"); exit(0);