#include #include struct TMaillon { int val; struct TMaillon *Suivant; } Maillon; void AjouterDebut(int x,struct TMaillon **Debut) { struct TMaillon *P; P=(struct TMaillon *)malloc(sizeof(struct TMaillon)); P->val=x; P->Suivant=*Debut; *Debut=P; } void Afficher(struct TMaillon *Debut) { struct TMaillon *P; P=Debut; while (P!=NULL) { printf("%d,\n",P->val); P=P->Suivant; } } int main() { struct TMaillon *Tete; Tete=NULL; int i; for(i=0;i<10;i++) { AjouterDebut(i,&Tete); } Afficher(Tete); printf("Hello world!\n"); return 0; }