Exit Program Rust

[Solved] Exit Program Rust | Rust - Code Explorer | yomemimo.com
Question : exit program rust

Answered by : maou-shimazu

// windows
std::process::exit(0) // 0 for pass exit, and any other value for failure
// linux
std::process::exit(0x0100); // 0x0100 is 0 on linux but 256 on windows

Source : | Last Update : Fri, 25 Mar 22

Answers related to exit program rust

Code Explorer Popular Question For Rust