[#OBJ_bsearch_ex_]
= OBJ&lowbar;bsearch&lowbar;ex&lowbar;
:mrdocs:

Binary&hyphen;search a sorted object table with optional flags (internal helper)&period;

== Synopsis

Declared in `&lt;openssl&sol;objects&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void const*
OBJ&lowbar;bsearch&lowbar;ex&lowbar;(
    void const* key,
    void const* base,
    int num,
    int size,
    int(* cmp)(void const*, void const*),
    int flags);
----

== Return Value

Pointer to the matching element, or NULL &sol; a related pointer depending on `flags&period;`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| Pointer to the search key&period;
| *base*
| Pointer to the first element of the sorted array&period;
| *num*
| Number of elements in the array&period;
| *size*
| Size of each element in bytes&period;
| *cmp*
| Comparison function returning negative, zero, or positive&period;
| *flags*
| Search flags such as OBJ&lowbar;BSEARCH&lowbar;VALUE&lowbar;ON&lowbar;NOMATCH&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
