diff options
Diffstat (limited to '6.4/tree.h')
-rw-r--r-- | 6.4/tree.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/6.4/tree.h b/6.4/tree.h new file mode 100644 index 0000000..e619127 --- /dev/null +++ b/6.4/tree.h @@ -0,0 +1,17 @@ +#ifndef TREE_H + +struct tnode { + char *word; + int count; + struct tnode *left; + struct tnode *right; +}; + +#define TREE_H +#endif + +struct tnode *addtree(struct tnode *p, char *w); +int tlstore(struct tnode *p, struct tnode *l[], int lim); +void tlsort(struct tnode *l[], int lim); +void printtl(struct tnode *l[], int lim); +void tfree(struct tnode *p); |