[#OPENSSL_sk_find_ex]
= OPENSSL&lowbar;sk&lowbar;find&lowbar;ex
:mrdocs:

Search for `data&semi;` if absent, return the insertion index of the nearest greater element&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OPENSSL&lowbar;sk&lowbar;find&lowbar;ex(
    xref:OPENSSL_STACK.adoc[OPENSSL&lowbar;STACK]* st,
    void const* data);
----

== Return Value

Matching index, or a negative encoding of the insertion point when not found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *st*
| Stack to search (sorted when a comparison function is set)&period;
| *data*
| Key passed to the comparison function&period;
|===


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