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