Function show_notes::e031::free_rust_string

source ·
#[no_mangle]
pub unsafe extern "C" fn free_rust_string(to_free: *mut c_char)
Expand description

Free any string allocated by Rust.

§Safety

This shows how you could allow an outside caller to free a Rust string. It is only safe to do if you guarantee there are no other references to it!