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; }