From 500d264dbd2d4045d91753441d40e51db5457b7a Mon Sep 17 00:00:00 2001 From: bjeanlou Date: Mon, 25 Mar 2019 15:38:47 +0100 Subject: [PATCH] create tree ch Slist ch --- Slist.c | 1 + Slist.h | 23 +++++++++++++++++++++++ tree.c | 1 + tree.h | 31 +++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 0 deletions(-) create mode 100644 Slist.c create mode 100644 Slist.h create mode 100644 tree.c create mode 100644 tree.h 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