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