Macro cstr
Source macro_rules! cstr {
($s:expr) => { ... };
}
Expand description
Converts a Rust &str into a null-terminated C-style string pointer (*const u8) at compile time..
§Arguments
$s - A string slice (&str) to convert.
§Returns
*const u8 — A raw pointer to a null-terminated buffer.