From ec62517a4a4a10c083b42cc39d503093f7d438f4 Mon Sep 17 00:00:00 2001 From: vj586da Date: Fri, 26 Nov 2021 03:44:16 +0100 Subject: [PATCH] test --- cv8/program.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cv8/program.c b/cv8/program.c index 3a55f0a..b5db246 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -57,13 +57,11 @@ void ask(struct node* tree){ return; } char buff[SIZE]; - char* r = fgets(buff, SIZE, stdin); - if(r == NULL){ - puts("Koniec vstupu"); - return; - } + char* r = fgets(buff, SIZE, stdin);; + while(r[0] == '\n'){ r = fgets(buff, SIZE, stdin); - if(r == NULL){ + } + if(r == NULL){ puts("Koniec vstupu"); return; }