Add new json_object_array_sort function
- uses libc's qsort to sort the arraylist - add test in test1.c
This commit is contained in:
1 parent
a8ffbe97b0
commit
c43871c866
6 files changed
+83
No files matched your search
@@ -46,6 +46,9 @@ array_list_add(struct array_list *al, void *data);
|
||||
extern int
|
||||
array_list_length(struct array_list *al);
|
||||
|
||||
extern void
|
||||
array_list_sort(struct array_list *arr, int(*compar)(const void *, const void *));
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user