This commit is contained in:
@@ -53,9 +53,12 @@ int list_insert(struct list **l, size_t index, int e){
|
||||
|
||||
if(index == 0){
|
||||
|
||||
*l = list_append(*l, e);
|
||||
/*
|
||||
new_node->data = e;
|
||||
new_node->next = *l;
|
||||
*l = new_node;
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user