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

Search for `data` and report how many matching elements exist&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;all(
    xref:OPENSSL_STACK.adoc[OPENSSL&lowbar;STACK]* st,
    void const* data,
    int* pnum);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *st*
| Stack to search (sorted when a comparison function is set)&period;
| *data*
| Value to locate&period;
| *pnum*
| Optional address updated to the number of matches (1 or 0 when no comparison function is set)&period;
|===


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