Open martaga2 opened 3 months ago
void set_remove(t_set *set, void data) { t_set aux; t_set prev;
if (!set_contains(*set, data)) return ; aux = *set; prev = NULL; while (aux) { if (aux->data == data) { if (prev) prev->next = aux->next; else *set = aux->next; free(aux); return ; } prev = aux; aux = aux->next; }
}
void set_remove(t_set *set, void data) { t_set aux; t_set prev;
}