Function CSTL_string_assign_n

Source
pub unsafe extern "C" fn CSTL_string_assign_n(
    instance: CSTL_StringRef,
    ptr: *const c_char,
    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_string_max_size() this function has no effect and returns false, otherwise it returns true.