pub fn into_c<S: AsRef<str>>(string: S) -> CString
Expand description
Converts a String
into a CString
This function will also work with other, similar inputs like &str
literals or
String
references. Use the as_ptr
method to pass a pointer to a C function.