devela::sys::os::linux::io

Function linux_get_utf8_bytes

Source
pub fn linux_get_utf8_bytes() -> Option<[u8; 4]> 
Available on crate features unsafe_syscall and linux only.
Expand description

Gets a utf-8 encoded byte sequence from stdin representing a char.

Returns None if the bytes does not form a valid unicode scalar.

§Error Handling

If the read fails, it prints an error message and exits with status code 11.