Function nstd_sys::string::nstd_string_clone
source · #[no_mangle]
pub extern "C" fn nstd_string_clone(string: &NSTDString) -> NSTDStringAvailable on crate feature
nstd_string only.Expand description
Creates a deep copy of a string.
Parameters:
const NSTDString *string- The string to create a deep copy of.
Returns
NSTDString cloned - A new deep copy of string.
Panics
This function will panic if allocating for the new string fails.