Function sequoia_octopus_librnp::utils::cstr_to_pathbuf
source · pub fn cstr_to_pathbuf(path: *const c_char) -> Result<PathBuf>
Expand description
Converts a C string to a PathBuf.
XXX: Currently, if the given string is not encoded using UTF-8, this will fail with RNP_ERROR_BAD_PARAMETERS.