Oprava otazok

This commit is contained in:
Valér Jakubčo 2021-11-26 03:45:45 +01:00
parent ec62517a4a
commit 55dad663a4

View File

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