Casts a byte slice to a mutable CStr without checking it for validity.
impl CStr {
unsafe fn from_mut_bytes_unchecked(bytes: &mut [u8]) -> &mut CStr
}| Name | Description |
|---|---|
| bytes | The slice to be interpreted as a |
If the slice doesn't have exactly one null byte as its last entry, the behavior is undefined.