#include "List.h" void freeList(List L) /* pre: L is a `proper' NULL-terminated List */ /* Beware: L must not share with any List still in use! -- L.Allison */ { List temp; while(L != NULL) { temp = L; L = L->tl; free(temp); } } /* Free All Cells of a List */