Function libmimalloc_sys::mi_strndup[][src]

pub unsafe extern "C" fn mi_strndup(s: *const c_char, n: usize) -> *mut c_char

Allocate and duplicate a nul-terminated C string, up to n bytes.

This can be useful for Rust code when interacting with the FFI.