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

Name

Description

script_pubkey [in]

Non‐null.

Created with MrDocs