nautilus_core::ffi::string

Function cstr_drop

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

Drops the C string memory at the pointer.

§Safety

  • Assumes ptr is a valid C string pointer.

§Panics

This function panics:

  • If ptr is null.