Function show_notes::e031::concat_strings

source ·
#[no_mangle]
pub unsafe extern "C" fn concat_strings(
    first: *const c_char,
    second: *const c_char,
) -> *mut c_char
Expand description

Take two strings in and concatentate them without mutating either.

This allocates a new string, which must be deallocated by calling the free_rust_string type exposed in this module.

§Safety

This is only valid when the first and second pointers are not null (which is checked) and when the char strings pointed to by the two pointers do not overlap!