Search for data and report how many matching elements exist.
Declared in <openssl/stack.h>
int
OPENSSL_sk_find_all(
OPENSSL_STACK* st,
void const* data,
int* pnum);
Zero-based index of a match, or -1 if not found.
| Name | Description |
|---|---|
| st | Stack to search (sorted when a comparison function is set). |
| data | Value to locate. |
| pnum | Optional address updated to the number of matches (1 or 0 when no comparison function is set). |