[#OPENSSL_sk_reserve]
= OPENSSL&lowbar;sk&lowbar;reserve
:mrdocs:

Ensure a stack&apos;s internal array can hold at least `n` elements without reallocating&period;

== Synopsis

Declared in `&lt;openssl&sol;stack&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OPENSSL&lowbar;sk&lowbar;reserve(
    xref:OPENSSL_STACK.adoc[OPENSSL&lowbar;STACK]* st,
    int n);
----

== Return Value

1 on success, or 0 on allocation failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *st*
| Stack to resize&period;
| *n*
| Desired capacity&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
