blob: e619127d0ef1810754d43e142695a2f480ae3d7b (
plain) (
tree)
|
|
#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);
|