Closed LeonorMalaga closed 3 months ago
t_dlist dll_replace(t_dlist elem, void data) { t_dlist new;
new = dll_new(data); if (!new) return (NULL); if (elem->prev) elem->prev->next = new; if (elem->next) elem->next->prev = new; new->prev = elem->prev; new->next = elem->next; free(elem); return (new);
}
t_dlist dll_replace(t_dlist elem, void data) { t_dlist new;
}