|
libft
|
Sorting utility functions and comparators. More...
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | QSORT_THRESHOLD 10 |
Functions | |
| int | double_cmp (const void *a, const void *b) |
| Comparison function for two doubles. | |
| void | ft_qsort (void *base, size_t nmemb, size_t size, int(*cmp)(const void *, const void *)) |
| Sorts an array using quicksort and insertion sort fallback. | |
| int | int_cmp (const void *a, const void *b) |
| Comparison function for two integers. | |
Sorting utility functions and comparators.
This header defines general-purpose sorting functions and comparators including a flexible ft_qsort implementation and integer/double comparison helpers.