devela::all

Function linux_get_byte

Source
pub fn linux_get_byte() -> u8 
Available on crate features unsafe_syscall and linux only.
Expand description

Gets a single byte from stdin.

This function makes use of the linux_sys_read syscall to read a byte.

§Error Handling

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