#include "list.h" #include "memoire.h" list list_cons (void *element, list l) { list temp = mem_malloc (sizeof (struct cell)); temp->element = element; temp->next = l; return temp; } list list_cdr_and_free (list l) { list temp = l->next; mem_free (l); return temp; }