Function libyml::string::yaml_string_duplicate

source ·
pub unsafe fn yaml_string_duplicate(str: *const u8) -> *mut u8
Expand description

Duplicate a null-terminated string.

§Safety

  • This function is unsafe because it involves memory allocation.