MCPcopy Create free account
hub / github.com/chyyuu/os_kernel_lab / getchar

Function getchar

user/src/console.rs:35–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35pub fn getchar() -> u8 {
36 let mut c = [0u8; 1];
37 read(STDIN, &mut c);
38 c[0]
39}

Callers 3

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

readFunction · 0.85

Tested by

no test coverage detected