OPENSSL_sk_reserve

Ensure a stack's internal array can hold at least n elements without reallocating.

Synopsis

Declared in <openssl/stack.h>

int
OPENSSL_sk_reserve(
    OPENSSL_STACK* st,
    int n);

Return Value

1 on success, or 0 on allocation failure.

Parameters

NameDescription
stStack to resize.
nDesired capacity.