I have a linked list defined like this
typedef struct Elem Elem; struct Elem { int val; Elem *next; };
and i wrote two list delete funct