Skip to main content

siglus_string_free

Function siglus_string_free 

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

Free a string returned by the display metadata functions. A null pointer is ignored.

§Safety

If non-null, ptr must be an allocation returned by one of this module’s metadata functions, with its original NUL terminator and length preserved. It must not have been freed. No other access may overlap this call, and the pointer must not be used after this call.