diff options
Diffstat (limited to '6.3/tree.h')
-rw-r--r-- | 6.3/tree.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/6.3/tree.h b/6.3/tree.h new file mode 100644 index 0000000..c6ebc53 --- /dev/null +++ b/6.3/tree.h @@ -0,0 +1,18 @@ +#ifndef TREE_H + +#define MAXLINES 1000 + +struct tnode { + char *word; + int lc; + int lines[MAXLINES]; + struct tnode *left; + struct tnode *right; +}; + +#define TREE_H +#endif + +struct tnode *addtree(struct tnode *p, char *w, int line); +void tprint(struct tnode *p); +void tfree(struct tnode *p); |