From 37b53ba884ec3c2de0d03c9c092fefc29c8b67f3 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Sun, 22 Nov 2020 17:12:10 +0100 Subject: [PATCH] buffet --- cv8/program.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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);