This commit is contained in:
Maryna Kravtsova 2020-11-22 17:12:10 +01:00
parent b54643650e
commit 37b53ba884

View File

@ -42,15 +42,13 @@ void search(struct tree* this){
if(fgets(buffer, 5, stdin) == NULL){ if(fgets(buffer, 5, stdin) == NULL){
printf("Koniec vstupu\n"); printf("Koniec vstupu\n");
return; exit(0);
} }
if(buffer[0] == '\n'){
printf("Koniec vstupu\n");
return;
}
if(buffer[0] == '\n'){ if(buffer[0] == '\n'){
char* r = fgets(buffer,5,stdin); char* r = fgets(buffer,5,stdin);
} }
if(buffer[0] == 'a'){ if(buffer[0] == 'a'){
if(this->left->value[0] == '*'){ if(this->left->value[0] == '*'){
printf("%s\n", this->left->value); printf("%s\n", this->left->value);