TP6 Correction list.c

This commit is contained in:
Geoffrey Frogeye 2017-03-29 11:59:21 +02:00
parent 04bb2bec3a
commit f7e3478fce
2 changed files with 2 additions and 1 deletions

View file

@ -19,6 +19,7 @@ void insertinList(Liste* mylist, int el)
{ {
Cell* newCell=(Cell*) malloc(sizeof(Cell)); Cell* newCell=(Cell*) malloc(sizeof(Cell));
newCell->key=el; newCell->key=el;
newCell->nextC=*mylist;
*mylist=newCell; *mylist=newCell;
} }

View file

@ -3,7 +3,7 @@
#include<stdlib.h> #include<stdlib.h>
#include<string.h> #include<string.h>
#include <listechaines.h> #include "listechaines.h"
//Affichage de la liste en ligne //Affichage de la liste en ligne
void afficher_liste(Liste l) { void afficher_liste(Liste l) {