#[unsafe(no_mangle)]pub extern "C" fn ket_string_delete(ptr: *mut c_char) -> i32Expand description
Frees a heap-allocated C string that was previously written by Libket.
Every const char ** output parameter written by Libket functions
(ket_error_message, ket_process_gates_json, ket_process_dump, etc.)
points to memory that must be released through this function. Passing a
pointer that was not produced by Libket, or freeing the same pointer twice,
is undefined behaviour.
ยงReturns
Always returns 0.