diff --git a/arbre.c b/arbre.c index 7aac3ea..d10d8b9 100644 --- a/arbre.c +++ b/arbre.c @@ -82,12 +82,34 @@ void charger_arbre(FILE *fp, struct dico **pt_dico) return ; } +void free_arbre(struct dico **pt_dico){ + if (*pt_dico-> +} +void affiche_dico(struct dico *dico){ + if(dico==NULL){ + return ; + } + for(int i=0;i<26;i++){ + affiche_arbre(dico->alpha[i]); + } +} + +void affiche_arbre(struct arbre *arbre){ + if(arbre==NULL){ + return ; + } + printf("%c\n",arbre->val); + for(int i=0;i<26;i++){ + affiche_arbre(arbre->suite[i]); + } +} int main (){ - + Dico *mondico=malloc(sizeof(struct dico)); + charger_arbre("dicotest.txt",mondico); -- libgit2 0.21.2