void delete(int x, LIST L) { position
p, tmp_cell; p
= L; while((p->next
!= NULL) && (p->element != x))
p
= p->next;
/* Find pointer of previous element */
if(p->next !=
NULL) {
tmp_cell
= p->next; /*
¨ç */ p->next
= tmp_cell->next; /*
¨è */ free(
tmp_cell); /*
¨é */ } }
|

|