str_to_cstring

Function str_to_cstring 

Source
pub fn str_to_cstring(s: &str) -> Result<CString, NulError>
Expand description

Convert a Rust &str to a C-compatible string