clucstr 1.2.0

Safe and efficient creation of "CStr" with zero-byte checking and support for concatenating multiple values.
Documentation
1
2
3
4
5
6
7
8
use cluCStr::cstr;
use core::ffi::CStr;

fn main() {
	let cstr = cstr!(b"Test Custom cstr");

	assert_eq!(cstr.to_bytes_with_nul(), b"Test Custom cstr\0");
}