Function CSTL_string_data

Source
pub unsafe extern "C" fn CSTL_string_data(
    instance: CSTL_StringRef,
) -> *mut c_char
Expand description

Returns a pointer to the underlying null-terminated array serving as character storage.

If CSTL_string_empty(instance) == true the pointer is still valid and points to a single null character.

The range [CSTL_string_data(instance), CSTL_string_data(instance) + size] is always valid.

The array may be mutated through the returned pointer excluding the past-the-end null terminator.