//! String lifecycle helpers for the FFI layer.
use CString;
use c_char;
/// Converts a Rust `&str` to a caller-owned C string.
///
/// Returns null if the string contains interior null bytes.
pub
/// Frees a string previously returned by an xmloxide FFI function.
///
/// Passing null is safe and does nothing.
///
/// # Safety
///
/// The pointer must have been returned by an xmloxide FFI function,
/// or be null.
pub unsafe extern "C"