Function nstd_sys::string::nstd_string_clone
source · #[no_mangle]
pub extern "C" fn nstd_string_clone<'a>(
string: &NSTDString<'a>
) -> NSTDOptionalString<'a>Available on crate feature
string only.Expand description
Creates a deep copy of a string.
Parameters:
const NSTDString *string- The string to create a deep copy of.
Returns
NSTDOptionalString cloned - A new deep copy of string on success, or an uninitialized
“none” variant if allocating fails.