diff --git a/cv8/program.c b/cv8/program.c index c620766..6ab5092 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -42,15 +42,13 @@ void search(struct tree* this){ if(fgets(buffer, 5, stdin) == NULL){ printf("Koniec vstupu\n"); - return; - } - if(buffer[0] == '\n'){ - printf("Koniec vstupu\n"); - return; - } + exit(0); + } + if(buffer[0] == '\n'){ char* r = fgets(buffer,5,stdin); } + if(buffer[0] == 'a'){ if(this->left->value[0] == '*'){ printf("%s\n", this->left->value);