macro_rules! cstr {
($s:expr) => { ... };
() => { ... };
}Available on non-crate feature
lock only.Expand description
Kept for use with the unsafe C API. The string is leaked: it has to outlive the C call,
and there is no way for the macro to know when that is. Prefer
ffi::to_cstring, which hands back an owned std::ffi::CString.
ยงPanics
Panics if the string contains an interior null byte.