cformat

Macro cformat 

Source
macro_rules! cformat {
    ($($arg:tt)*) => { ... };
}
Expand description

Creates a CString using interpolation of runtime expressions. Basically a format! that produces a CString.

Because data can come from untrusted sources, it will check the interior for null bytes and replace them with \u0000.