array: add function for removing elements

This commit is contained in:
Miroslav Lichvar
2023-03-01 16:02:16 +01:00
parent f99b2f633b
commit caf82b1a45
2 changed files with 18 additions and 0 deletions

View File

@@ -47,6 +47,9 @@ extern void *ARR_GetElements(ARR_Instance array);
/* Add a new element to the end of the array */
extern void ARR_AppendElement(ARR_Instance array, void *element);
/* Remove element with given index */
extern void ARR_RemoveElement(ARR_Instance array, unsigned int index);
/* Set the size of the array */
extern void ARR_SetSize(ARR_Instance array, unsigned int size);