blob: 46503eda88fa5b318ac0f68c5120ff4ad90fb75a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
pub use butchunker::ctx::ffi::*;
#[unsafe(no_mangle)]
#[allow(nonstandard_style)]
pub extern "C" fn Butck_FreeString(ptr: *mut libc::c_char) {
if ptr.is_null() {
return;
}
unsafe {
drop(std::ffi::CString::from_raw(ptr));
}
}
|