Function libmimalloc_sys::mi_strdup
source ยท pub unsafe extern "C" fn mi_strdup(s: *const c_char) -> *mut c_char
Expand description
Allocate and duplicate a nul-terminated C string.
This can be useful for Rust code when interacting with the FFI.