Crate zstr[][src]

Zero-terminated C string literals.

Macros

zstr

Given a Rust string or byte string literal, this macro generates an expression of type &'static CStr that is properly 0-terminated and ensured not to contain any internal NUL (0) bytes. The conversion is zero-cost and it may even become const in the future, provided that CStr::from_bytes_with_nul_unchecked() becomes const.