OPENSSL_sk_new_reserve

Allocate a stack with comparison function c and room for n elements.

Synopsis

Declared in <openssl/stack.h>

OPENSSL_STACK*
OPENSSL_sk_new_reserve(
    OPENSSL_sk_compfunc c,
    int n);

Return Value

New stack, or NULL on failure; free with OPENSSL_sk_free().

Parameters

NameDescription
cComparison callback, or NULL for an unordered stack.
nNumber of element slots to reserve up front.