diff options
author | sinanmohd <sinan@firemail.cc> | 2023-05-08 16:59:02 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-05-09 10:26:15 +0530 |
commit | 3f761f64d02480c81177e39af2f00f0e76b6f113 (patch) | |
tree | 5df4e643cce5e626fc00af16935616ea0df40927 /6.4/tree.h | |
parent | 2bc5c4c55b979af164c0bf7539e4f0bae6c263e8 (diff) |
6.4: initial comiit
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); |