Add lh_table_delete_entry_to_tail() and array_list_set_idx() functions.

This commit is contained in:
Eric Hawicz
2026-04-24 12:55:46 -04:00
parent 52ddfb35f1
commit fe30bc7e66
5 changed files with 39 additions and 0 deletions

View File

@@ -68,6 +68,12 @@ extern int array_list_put_idx(struct array_list *al, size_t i, void *data);
extern int array_list_add(struct array_list *al, void *data);
/**
* Set the value at index i. Caller is responsible for freeing the previous value.
* To automatically free the existing value, use array_list_put_idx() instead.
*/
extern int array_list_set_idx(struct array_list *al, size_t i, void *data);
extern size_t array_list_length(struct array_list *al);
extern void array_list_sort(struct array_list *arr, int (*compar)(const void *, const void *));