libyml::string

Function 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.