Find the first stack element that compares equal to data.

Synopsis

Declared in <openssl/stack.h>

int
OPENSSL_sk_find(
    OPENSSL_STACK* st,
    void const* data);

Return Value

Zero‐based index of the match, or ‐1 if not found.

Parameters

Name

Description

st

Stack to search (uses its comparison function when set).

data

Value to locate.

Created with MrDocs