[#OPENSSL_sk_unshift]
= OPENSSL&lowbar;sk&lowbar;unshift
:mrdocs:

Insert `data` at the front of a generic OPENSSL&lowbar;STACK&period;

== Synopsis

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

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

== Return Value

Number of elements after the insert, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *st*
| Stack to modify&period;
| *data*
| Element pointer to store at index 0&period;
|===


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