This commit is contained in:
Valér Jakubčo 2021-11-26 03:44:16 +01:00
parent 04596bd224
commit ec62517a4a

View File

@ -57,12 +57,10 @@ void ask(struct node* tree){
return; return;
} }
char buff[SIZE]; char buff[SIZE];
char* r = fgets(buff, SIZE, stdin); char* r = fgets(buff, SIZE, stdin);;
if(r == NULL){ while(r[0] == '\n'){
puts("Koniec vstupu");
return;
}
r = fgets(buff, SIZE, stdin); r = fgets(buff, SIZE, stdin);
}
if(r == NULL){ if(r == NULL){
puts("Koniec vstupu"); puts("Koniec vstupu");
return; return;