diff --git a/Slist.c b/Slist.c new file mode 100644 index 0000000..f5571c8 --- /dev/null +++ b/Slist.c @@ -0,0 +1 @@ +#include "Slist.h" diff --git a/Slist.h b/Slist.h new file mode 100644 index 0000000..6f15421 --- /dev/null +++ b/Slist.h @@ -0,0 +1,23 @@ +#ifndef SLIST_H +#define SLIST_H + +#include "tree.h" + +typedef + struct cell{ + node* letter; + cell* next;} +//defs + cell, *List; + + +//function +List* make_empty_List(); +int is_empty(List); +tree* head(List); +List* Queue(List); + + + + +#endif //SLIST_H diff --git a/tree.c b/tree.c new file mode 100644 index 0000000..bc9531c --- /dev/null +++ b/tree.c @@ -0,0 +1 @@ +#include "tree.h" diff --git a/tree.h b/tree.h new file mode 100644 index 0000000..f3c4236 --- /dev/null +++ b/tree.h @@ -0,0 +1,31 @@ +#ifndef TREE_H +#define TREE_H + +#include +#include +#include +#include "Slist.h" + +typedef + struct node{ + char val; + cell* next;} +//defs + node, *tree; + + +//functions +tree* make_empty_tree(); +tree* cons_tree(); +tree* load_tree(FILE*,tree*); +int is_empty(tree); +char value(tree); +//char*? values(tree); +void print_all(tree); +int isIn(tree,string); + + + + + +#endif //TREE_H -- libgit2 0.21.2