Skip to main content

read_c_string

Function read_c_string 

Source
pub fn read_c_string<R: Read>(reader: &mut R, size: usize) -> Result<String>
Expand description

Reads a C-style null-terminated string of known buffer size.

The buffer is size bytes, but the string ends at the first null byte.