fix print of linked list
This commit is contained in:
parent
7e00f37208
commit
8653ef4d83
1 changed files with 2 additions and 2 deletions
|
@ -63,9 +63,9 @@ void supprime_liste(Element *act, Jeton *data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void affiche_liste(Element *element) {
|
void affiche_liste(Element *element) {
|
||||||
if (element->suivant) {
|
if (element) {
|
||||||
affiche_liste(element->suivant);
|
affiche_liste(element->suivant);
|
||||||
printf("%c%d ", element->jeton->pos_i + 'A', element->jeton->pos_j + 1);
|
printf("%c%d ", element->jeton->pos_j + 'A', element->jeton->pos_i + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue