Add List_delete() definition

main
Hammy 3 years ago
parent 58822a8565
commit 17c58eb90c

@ -111,6 +111,23 @@ int List_insert(List *list, int index, int element);
*/ */
int List_remove(List *list, int element); int List_remove(List *list, int element);
/*
*
* Description
* ----------------------------
* Delete the element at the given index of the given list
*
* Params
* ----------------------------
* *list the list to remove the element at given index
* index the index to delete within the given list
*
* Returns
* ----------------------------
* int (The deleted element)
*/
int List_delete(List *list, int index);
/* /*
* *
* Description * Description

Loading…
Cancel
Save