#[unsafe(no_mangle)]pub unsafe extern "C" fn lv_strndup(
string: *const c_char,
size: usize,
) -> *mut c_charExpand description
Duplicate a string up to a given size
The copy is released with lv_free(), so it comes from LVGL’s heap.
§Safety
This function is unsafe because it dereferences raw pointers.