typedef struct List { struct List *next; int val; }* Liste; Liste deleteAll(Liste x){ Liste y; while(x!=NULL){ y=x; x=x->next; free(y); } return x; }