Function CSTL_string_insert

Source
pub unsafe extern "C" fn CSTL_string_insert(
    instance: CSTL_StringRef,
    where_: *const c_char,
    ptr: *const c_char,
    alloc: *mut CSTL_Alloc,
) -> *mut c_char
Expand description

Inserts the null-terminated string at ptr at the pointer where in instance.

If the length of the resulting string is greater than CSTL_string_max_size() this function has no effect and returns NULL, otherwise it returns a pointer to the first inserted character.

The pointer where must be valid and dereferenceable on instance.