Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

exit program rust

// 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
 
PREVIOUS NEXT
Tagged: #exit #program #rust
ADD COMMENT
Topic
Name
7+6 =