title: “EXCEPTION::EXIT Function” date: 2024-03-23 author: “laplante@plcb.ca” version: “1.0.0”
exception::exit — terminate the current program with a given status code
The exception::exit
function terminates the current program immediately with the given status code.
This can be used to signal success (0
) or different types of errors (non-zero codes).
exit(-1);