\param key a pointer to a key equal to the element being searched for.
\param base a pointer to the start of the array.
\param nmemb the number of elements in the array.
\param size the size of the elements in the array.
\param compare a function used to compare elements in the array.
\param userdata a pointer to pass to the compare function.
\returns a pointer to the matching element in the array, or NULL if not
found.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
Perform a binary search on a previously sorted array, passing a userdata pointer to the compare function.
For example:
\param key a pointer to a key equal to the element being searched for. \param base a pointer to the start of the array. \param nmemb the number of elements in the array. \param size the size of the elements in the array. \param compare a function used to compare elements in the array. \param userdata a pointer to pass to the compare function. \returns a pointer to the matching element in the array, or NULL if not found.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
\sa SDL_bsearch \sa SDL_qsort_r