typedef struct List { struct List *next; int val; }* Liste; Liste insert(Liste x, int value){ Liste y,p,t; if(x==NULL){ y=malloc(sizeof(struct List)); y->next=NULL; y->val=value; x=y; } else{ if(any){ y=malloc(sizeof(struct List)); y->next=x; y->val=value; x=y; } else{ p=x; t=x->next; while(any){ if(t!=NULL){ p=t; t=t->next; } } y=malloc(sizeof(struct List)); y->val=value; p->next=y; y->next=t; } } return x; }