Macro terminated::ntstr [] [src]

macro_rules! ntstr {
    ($e:expr) => { ... };
}

Creates a static NulTerminatedStr from a string literal.

Example

let s = ntstr!("Hello, World!");
assert_eq!(s.as_str_with_nul(), "Hello, World!\0");