Logo

Programming-Idioms

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

Idiom #87 Stop program

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

process.exit()
#include <stdlib.h>
exit (EXIT_SUCCESS);
return 0;
#include <stdlib.h>
abort();
(System/exit 0)
IDENTIFICATION DIVISION.
PROGRAM-ID. date format.
PROCEDURE DIVISION.
STOP RUN.
exit(1);
Environment.Exit(0)
import core.stdc.stdlib;
exit(0);
import 'dart:io';
exit(0);
System.halt()
erlang:halt(0).
stop
import "os"
os.Exit(0)
import System.Exit
exitSuccess
throw new RuntimeException();
System.exit(0);
import kotlin.system.exitProcess
exitProcess(0)
(exit)
return
os.exit()
exit();
die();
halt(0);
exit 0;
import sys
sys.exit(1)
exit
std::process::exit(0);
(exit)
End()

New implementation...