Logo

Programming-Idioms

Exit a program cleanly indicating no error to OS
Implementation
Pascal

Implementation edit is for fixing errors and enhancing with metadata. Please do not replace the code below with a different implementation.

Instead of changing the code of the snippet, consider creating another Pascal 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);
System.exit(0);
exit(0);
import sys
sys.exit(0)
Environment.Exit(0);
import "os"
os.Exit(0)
import "os"
defer os.Exit(0)
use std::process::exit;
exit(0);
import System.Exit
exitSuccess
exit
import kotlin.system.exitProcess
exitProcess(0)
sys.exit(0)
  STOP
process.exit()
Halt;
exit;
require 'os'
os.exit(0)
erlang:exit(0).
import 'dart:io';
exit(0);