rcstring::cstr! [] [src]

macro_rules! cstr {
    ($arg:expr) => ($crate::CString::new(concat!($arg, "\0")).unwrap());
}

Constructs a new CString from a string literal

Examples

let cs = cstr!("foo");