mirror of
https://github.com/json-c/json-c.git
synced 2026-04-26 15:49:06 +08:00
Add lh_table_delete_entry_to_tail() and array_list_set_idx() functions.
This commit is contained in:
@@ -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 *));
|
||||
|
||||
Reference in New Issue
Block a user