From 8d1574921466d2fa3e378480a621630c68d6ba31 Mon Sep 17 00:00:00 2001 From: Bohdan Kapliuk Date: Mon, 11 Nov 2024 18:58:44 +0200 Subject: [PATCH] cv7 --- cv7/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv7/program.c b/cv7/program.c index 60c0280..da58af4 100644 --- a/cv7/program.c +++ b/cv7/program.c @@ -15,7 +15,8 @@ struct tree* read_tree(int* counter) { memset(buffer, 0, SIZE); char* r = fgets(buffer, SIZE, stdin); if (buffer[0] == '\n') { - return NULL; + printf("Chybna databaza\n"); + return 0; } struct tree* tree = calloc(1, sizeof(struct tree)); tree->value = malloc(strlen(buffer) + 1);