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

Find the first stack element that compares equal to `data&period;`

== Synopsis

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

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

== Return Value

Zero&hyphen;based index of the match, or &hyphen;1 if not found&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *st*
| Stack to search (uses its comparison function when set)&period;
| *data*
| Value to locate&period;
|===


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