From 506c3ab8c6d2bc60db704ae846d6a338c6e2c969 Mon Sep 17 00:00:00 2001 From: rsSimonin Date: Fri, 5 Apr 2019 11:59:21 +0200 Subject: [PATCH] creation .h --- arbre.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+), 0 deletions(-) create mode 100644 arbre.h diff --git a/arbre.h b/arbre.h new file mode 100644 index 0000000..ada30a5 --- /dev/null +++ b/arbre.h @@ -0,0 +1,44 @@ +#include +#include +#include +#include +#define TAILLE 27 + + + +typedef struct arbre{ + char val; + struct arbre *suite[TAILLE]; + bool finmot; //1 si fin de mot +}Arbre; + +typedef struct dico { + Arbre *alpha[TAILLE]; +}Dico; + + +int calculcase(char c); + +bool est_vide(struct arbre *arbre); + +bool fin_de_mot(struct arbre *arbre); + +void ini_dico(struct dico *pt_dico); + +void creation_arbre(Arbre **ppt_arbre,char c); + +void ajout_mot(struct arbre **arbrecourant,char *mot,int i); + +void charger_arbre(FILE *fp, struct dico **ppt_dico); + + +void free_arbre(struct arbre *pt_arbre); + +void free_dico(struct dico *pt_dico); + +void affiche_arbre(struct arbre *arbre); + +void affiche_dico(struct dico *dico); + + + -- libgit2 0.21.2