Function libmimalloc_sys::mi_strndup

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

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

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