Skip to main content

c_path

Function c_path 

Source
fn c_path(path: &Path) -> Result<CString>
Available on Linux and Unix and crate feature pool only.
Expand description

Converts path to the NUL-terminated form libc expects. Fails with InvalidInput if path contains an interior NUL.