Function demes::ffi::demes_c_char_deallocate

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

Free the memory for a C-style string that was allocated by this module.

§Safety

  • ptr must not be NULL.
  • ptr must point to a c_char.
  • ptr must have been allocated by a function in this crate.
  • This function must be called at most once on a single allocation.
  • The input value must satisfy the safety criteria of CString::from_raw.