Function CSTL_wstring_assign_n

Source
pub unsafe extern "C" fn CSTL_wstring_assign_n(
    instance: CSTL_WideStringRef,
    ptr: *const wchar_t,
    count: usize,
    alloc: *mut CSTL_Alloc,
) -> bool
Expand description

Replaces the contents of instance with the first count characters of the string at ptr.

If n is greater than CSTL_wstring_max_size() this function has no effect and returns false, otherwise it returns true.