pub fn string_from_c_buf<const N: usize>(buf: &[c_char]) -> Result<String<N>>
Converts a NUL-terminated C char array to a heapless::String<N>.
char
heapless::String<N>