Update cv7/program.c

This commit is contained in:
Viktor Daniv 2024-11-15 01:10:01 +00:00
parent a834424976
commit 54a5bc8c07

View File

@ -82,7 +82,7 @@ struct tree* read_tree() {
// Read a line from stdin
char* r = fgets(buffer, SIZE, stdin);
if (r == NULL) {
fprintf(stderr, "Error: Failed to read input\n");
fprintf(stderr, "Chybna databaza\n");
exit(1); // Exit the program if reading fails
}