Logo

Programming-Idioms

Exit a program cleanly indicating no error to OS
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
#include <stdlib.h>
exit(EXIT_SUCCESS);
Environment.Exit(0);
import 'dart:io';
exit(0);
erlang:exit(0).
  STOP
import "os"
os.Exit(0)
import "os"
defer os.Exit(0)
import System.Exit
exitSuccess
process.exit()
System.exit(0);
import kotlin.system.exitProcess
exitProcess(0)
require 'os'
os.exit(0)
exit(0);
Halt;
Application.Terminate;
exit;
import sys
sys.exit(0)
exit
use std::process::exit;
exit(0);
sys.exit(0)