free_c_string

Function free_c_string 

Source
pub unsafe fn free_c_string(ptr: *const c_char)
Expand description

Free a C string created by string_to_c.

ยงSafety

The pointer must have been created by string_to_c and not freed yet.