From 7dc3f6277d936549ca4173865c6c9032d0e1ce01 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Wed, 1 Nov 2023 13:34:59 +0100 Subject: [PATCH] Utilisation du nouveau module io --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index 364adc2..14c038f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,6 +14,10 @@ fn main() { let mut bytes_read_result: stdio::Result; let mut bytes_read: usize = 1; + let last_exit_code: i32 = io::run(); + + exit(last_exit_code); + while bytes_read != 0 { buffer.clear();