tree.h
504 Bytes
#ifndef TREE_H
#define TREE_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Slist.h"
typedef
struct node{
char val;
cell* next;}
//defs
node, *tree;
//functions
tree make_empty_tree();
tree make_tree(char);
int is_empty(tree);
int is_leaf(tree);
int is_end(tree);
tree* cons_tree();
tree* load_tree(FILE*,tree*);
//char*? values(tree);
void print_all(tree);
int isIn_tree(tree,char);
int strIsIn_tree(tree,string);
/*
words end with '\0' and
*/
#endif //TREE_H