[#btck_witness_stack_copy]
= btck&lowbar;witness&lowbar;stack&lowbar;copy
:mrdocs:

Copy a witness stack&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, &lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
xref:btck_WitnessStack-0e.adoc[btck&lowbar;WitnessStack]*
btck&lowbar;witness&lowbar;stack&lowbar;copy(xref:btck_WitnessStack-0e.adoc[btck&lowbar;WitnessStack] const* witness&lowbar;stack);
----

== Return Value

The copied witness stack&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *witness&lowbar;stack* [in]
| Non&hyphen;null&period;
|===


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