Skip to main content

get_exit_name

Function get_exit_name 

Source
pub fn get_exit_name(code: i32) -> Option<&'static str>
Expand description

Get the symbolic name for an exit code.

ยงExample

use rsfulmen::foundry::exit_codes::get_exit_name;

assert_eq!(get_exit_name(0), Some("EXIT_SUCCESS"));
assert_eq!(get_exit_name(1), Some("EXIT_FAILURE"));