Koniec vstupu

This commit is contained in:
Valér Jakubčo 2021-11-26 03:03:26 +01:00
parent d8944aeaae
commit cf06b0818f

View File

@ -59,6 +59,10 @@ void ask(struct node* tree){
}
char buff[SIZE];
char* r = fgets(buff, SIZE, stdin);
if(r == NULL){
puts("Koniec vstupu");
return;
}
r = fgets(buff, SIZE, stdin);
if(r[0] == 'a' && tree->left != NULL){
tree = tree->left;