Search for data; if absent, return the insertion index of the nearest greater element.

Synopsis

Declared in <openssl/stack.h>

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

Return Value

Matching index, or a negative encoding of the insertion point when not found.

Parameters

Name

Description

st

Stack to search (sorted when a comparison function is set).

data

Key passed to the comparison function.

Created with MrDocs