From db4587945825cdc3e04bacfe00cca83be4f91467 Mon Sep 17 00:00:00 2001 From: Maryna Kravtsova Date: Sun, 22 Nov 2020 16:44:57 +0100 Subject: [PATCH] buffet --- cv8/program.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cv8/program.c b/cv8/program.c index e457fcf..46611d0 100644 --- a/cv8/program.c +++ b/cv8/program.c @@ -19,18 +19,19 @@ struct tree* read_tree(){ assert(r); if(buffer[0] == '\n'){ - return; - } - + return; + } if(buffer[0] != '\0'){ struct tree* node = calloc(1,sizeof(struct tree)); memcpy(node->value, buffer,50); if(buffer[0] != '*'){ if(node->left == NULL){ + printf("bvbv"); node->left = read_tree(); } - if(node->right == NULL){ + if(node->right == NULL){ + printf("bbdf"); node->right = read_tree(); } }