This language bar is your friend. Select your favorite languages!

Idiom #87 Stop program

Exit immediatly.
If some extra cleanup work is executed by the program runtime (not by the OS itself), describe it.

System.exit(0);
import core.stdc.stdlib;
exit(0);
erlang:halt(0).
import "os"
os.Exit(0)
import System.Exit
exitSuccess
os.exit()
exit();
halt(0);
exit 0;
import sys
sys.exit(1)
exit
std::process::exit(0);

Do you know the best way to do this in your language ?
New implementation...

Idiom created by

deleplace