pub unsafe extern "C" fn ch_free_scratch(
    scratch: *mut ch_scratch_t
) -> ch_error_t
Expand description

Free a scratch block previously allocated by @ref ch_alloc_scratch() or @ref ch_clone_scratch().

The free callback set by @ref ch_set_scratch_allocator() or @ref ch_set_allocator() will be used by this function.

@param scratch The scratch block to be freed. NULL may also be safely provided.

@return @ref CH_SUCCESS on success, other values on failure.