[#OPENSSL_sk_insert]
= OPENSSL&lowbar;sk&lowbar;insert
:mrdocs:

Insert `data` before index `where` (appending if `where` is out of range)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OPENSSL&lowbar;sk&lowbar;insert(
    xref:OPENSSL_STACK.adoc[OPENSSL&lowbar;STACK]* sk,
    void const* data,
    int where);
----

== Return Value

New number of elements, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sk*
| Stack to modify&period;
| *data*
| Element pointer to store (not copied)&period;
| *where*
| Insertion index&period;
|===


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