1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| static Arbre LitArbre(unsigned char c, unsigned char **Donnees, int *position, int *indice)
{
Arbre new=malloc(sizeof(Noeud_A));
printf("%d\n",c);
if(c==1)
{
c=LitBlock(position, indice, Donnees, 8); /* fonction qui retourne un char */
new->Lettre = c;
return;
}
else if(c==0)
{
new->Lettre = '\0';
/* Bit() est une fonction qui lit un bit */
new->Fils0 = LitArbre(Bit(position, indice, Donnees), Donnees, position, indice);
new->Fils1 = LitArbre(Bit(position, indice, Donnees), Donnees, position, indice);
}
} |
Partager