Update 'cv8/program.c'
This commit is contained in:
parent
fbf9870e24
commit
13a0bde2d3
@ -25,6 +25,11 @@ struct tree* read_tree(int* counter) {
|
||||
char* r = fgets(buffer, SIZE, stdin);
|
||||
assert(r);
|
||||
|
||||
if(r == NULL){
|
||||
printf("Koniec vstupu\n");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
struct tree* node = calloc(1, sizeof(struct tree));
|
||||
memcpy(node->v, buffer, SIZE);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user