Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
Select your favorite languages :
  • Or search :

Idiom #87 Stop program

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

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

New implementation...
deleplace