[clucstr]
( Safe and efficient creation of "CStr" with zero-byte checking and support for concatenating multiple values. )
Note:
You can use c"wow" since Rust 1.77.0 instead of cstr!("wow") from this crate. This new feature provides more concise code and faster compilation. If you are using an older Rust API (like 1.66), this crate will still be relevant for some time.
Usage:
Add this to your Cargo.toml:
[]
= "1.2.0"
and this to your source code:
use cstr;
use CStr;
Example:
use cstr;
use CStr;
License:
This project has a single license (LICENSE-APACHE-2.0).
(Denis Kotlyarov).