You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
use std::ffi;
|
|
|
|
/// Free a String owned by librir.
|
|
#[no_mangle]
|
|
pub extern "C" fn ffi_free_string(s: *mut libc::c_char) {
|
|
unsafe {
|
|
if s.is_null() {
|
|
return;
|
|
}
|
|
ffi::CString::from_raw(s)
|
|
}
|
|
}
|