get_path_safe
os
0.1.0
get_
path_
safe
Sections
参数
返回值
In os::
kernel::
syscall::
util
os
::
kernel
::
syscall
::
util
Function
get_
path_
safe
Copy item path
Source
pub fn get_path_safe(path: *const c_char) -> Result<&'static str, &'static str>
Expand description
从用户空间获取路径字符串
§
参数
path
: 指向用户空间路径字符串的指针
§
返回值
成功时返回路径字符串的引用
失败时返回错误字符串