final
This commit is contained in:
parent
052f0216b1
commit
36b5a782a7
@ -18,7 +18,11 @@ struct node* read_tree(int* count, int* leafs){
|
||||
char buffer[SIZE];
|
||||
memset(buffer,0,SIZE);
|
||||
char* r = fgets(buffer,SIZE,stdin);
|
||||
assert(r);
|
||||
if(r == NULL){
|
||||
puts("Expert z bufetu to vie.");
|
||||
puts("Chybna databaza");
|
||||
exit(0);
|
||||
}
|
||||
struct node* node = calloc(1,sizeof(struct node));
|
||||
memcpy(node->data,buffer,SIZE);
|
||||
if(r[0]!='*'){
|
||||
|
Loading…
Reference in New Issue
Block a user