Logo

Programming-Idioms

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

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating material.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
return 0;
#include <stdlib.h>
exit (EXIT_SUCCESS);
#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
process.exit()
throw new RuntimeException();
System.exit(0);
throw new Error();
import kotlin.system.exitProcess
exitProcess(0)
(exit)
os.exit()
return
die();
exit();
halt(0);
exit 0;
import sys
sys.exit(1)
exit
std::process::exit(0);
(exit)
End()