tentative correction double.c insert

This commit is contained in:
2026-04-03 16:59:10 +02:00
parent 40d224a8f8
commit 7ae0683809
@@ -28,7 +28,12 @@ int dlist_insert(struct dlist **l, size_t index, int e)
//struct dlist *tmp = *l; //struct dlist *tmp = *l;
if(index == 0){ if(index == 0){
dlist_append(*l, e);
new_node->prev = NULL;
new_node->next = *l;
new_node->data = e;
//dlist_append(*l, e);
return 0; return 0;
} }