Expand description
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 the resulting expression can be used inconst
context.