fix 2 for the linked list
This commit is contained in:
parent
26c9fe99ca
commit
72b597b1fc
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ void ajoute_liste(Liste *liste, Element *nouveau) {
|
||||||
while (ptr) {
|
while (ptr) {
|
||||||
ptr = ptr->suivant;
|
ptr = ptr->suivant;
|
||||||
}
|
}
|
||||||
|
nouveau->suivant = liste->premier;
|
||||||
liste->premier = nouveau;
|
liste->premier = nouveau;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue