cstring_free

Function cstring_free 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn cstring_free(ptr: *mut c_char)
Expand description

After using any other function, pass the output pointer into cstring_free(ptr: *mut c_char) to clear memory. ALWAYS use this in combination with any other function. Failure to do so can lead to memory bugs.

ยงSafety

  • This function is unsafe because it deferences a raw pointer.