use ;
/// Converts a Rust `&str` to a null-terminated C string (`*const c_char`).
///
/// # Safety
///
/// The returned pointer is allocated on the heap and the caller **must eventually
/// reclaim it** using `CString::from_raw()`. Failing to do so will leak memory.
///
/// The caller must **not use the pointer after reclaiming** it.
pub unsafe
/// Converts a null-terminated C string (`*const c_char`) into a Rust `String`.
///
/// # Safety
///
/// - The `text` pointer **must be valid** and point to a null-terminated string.
/// - Passing a dangling or non-null-terminated pointer **may cause undefined behavior**.
/// - Passing `NULL` is safe; it returns an empty string.
pub unsafe