program.c
This commit is contained in:
parent
f806441c6e
commit
bf296751bb
@ -25,7 +25,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct node* read_tree(){
|
struct node* read_tree(){
|
||||||
return NULL;
|
char buffer[SIZE];
|
||||||
|
memset(buffer,0,SIZE);
|
||||||
|
char * r = fgets(buffer,SIZE,stdin);
|
||||||
|
assert(r);
|
||||||
|
struct tree* node = calloc(1,sizeof(struct node));
|
||||||
|
memcpy(node->value,buffer,SIZE);
|
||||||
|
return node->value;
|
||||||
}
|
}
|
||||||
|
|
||||||
void traverse(struct node* tree){
|
void traverse(struct node* tree){
|
||||||
|
Loading…
Reference in New Issue
Block a user