btck_script_pubkey_copy

Copy a script pubkey.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[nodiscard, __nonnull__]]
btck_ScriptPubkey*
btck_script_pubkey_copy(btck_ScriptPubkey const* script_pubkey);

Return Value

The copied script pubkey.

NOTE

The return value should not be discarded.

Parameters

NameDescription
script_pubkey [in]Non-null.