Macro kernel::c_str[][src]

macro_rules! c_str {
    ($str:literal) => { ... };
}
Expand description

Creates a new CStr from a string literal.

The string literal should not contain any NUL bytes.

Examples

const MY_CSTR: &'static CStr = c_str!("My awesome CStr!");