Go to the documentation of this file.
16 static void array_insert_next(
t_array *array,
size_t j)
36 while (i < array->size - 1)
39 array_insert_next(array, i + 1);
void * array_get(const t_array *array, size_t index)
Returns the item at the specified position in this list.
int(* cmp)(const void *, const void *)
(optional) A function ponter used to compare members of this data type
void array_insertion_sort(t_array *array)
Sorts this array using insertion sort.
void array_swap(t_array *array, size_t ind1, size_t ind2)
Swaps elements at the two specified positions in the array.
const t_type * type
The type of items in this array.
void ds_exit_set(int err)
Set errno to the specified value, print the error message, and exit the process.