get_path_safe

Function get_path_safe 

Source
pub fn get_path_safe(path: *const c_char) -> Result<&'static str, &'static str>
Expand description

从用户空间获取路径字符串

§参数

  • path: 指向用户空间路径字符串的指针

§返回值

  • 成功时返回路径字符串的引用
  • 失败时返回错误字符串