HOT NONNULL void * algorithms_binary_search_nearby(const void *key, const void *base, size_t nmemb, size_t size, GenericCmpFunc cmp_func, bool return_prev, bool include_equal)
Binary search with the option to find the closest member in a sorted array.