Binary-search a sorted object table with optional flags (internal helper).
Declared in <openssl/objects.h>
void const*
OBJ_bsearch_ex_(
void const* key,
void const* base,
int num,
int size,
int(* cmp)(void const*, void const*),
int flags);
Pointer to the matching element, or NULL / a related pointer depending on flags.
| Name | Description |
|---|---|
| key | Pointer to the search key. |
| base | Pointer to the first element of the sorted array. |
| num | Number of elements in the array. |
| size | Size of each element in bytes. |
| cmp | Comparison function returning negative, zero, or positive. |
| flags | Search flags such as OBJ_BSEARCH_VALUE_ON_NOMATCH. |