Utilisation du nouveau module io
This commit is contained in:
parent
c972102a38
commit
7dc3f6277d
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,10 @@ fn main() {
|
||||||
let mut bytes_read_result: stdio::Result<usize>;
|
let mut bytes_read_result: stdio::Result<usize>;
|
||||||
let mut bytes_read: usize = 1;
|
let mut bytes_read: usize = 1;
|
||||||
|
|
||||||
|
let last_exit_code: i32 = io::run();
|
||||||
|
|
||||||
|
exit(last_exit_code);
|
||||||
|
|
||||||
while bytes_read != 0 {
|
while bytes_read != 0 {
|
||||||
buffer.clear();
|
buffer.clear();
|
||||||
|
|
||||||
|
|
Reference in a new issue