[#OPENSSL_sk_deep_copy]
= OPENSSL&lowbar;sk&lowbar;deep&lowbar;copy
:mrdocs:

Deep&hyphen;copy a stack by duplicating each element with `c&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:OPENSSL_STACK.adoc[OPENSSL&lowbar;STACK]*
OPENSSL&lowbar;sk&lowbar;deep&lowbar;copy(
    xref:OPENSSL_STACK.adoc[OPENSSL&lowbar;STACK] const* st,
    xref:OPENSSL_sk_copyfunc.adoc[OPENSSL&lowbar;sk&lowbar;copyfunc] c,
    xref:OPENSSL_sk_freefunc.adoc[OPENSSL&lowbar;sk&lowbar;freefunc] f);
----

== Return Value

Newly allocated stack, or NULL on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *st*
| Source stack&period;
| *c*
| Element copy callback&period;
| *f*
| Element free callback used to clean up on failure (and by callers later)&period;
|===


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