pub fn safe_cstring(s: &str) -> CString
Helper function to create a CString safely This follows the pattern used in dear-imgui for safe string conversion