Logo

Programming-Idioms

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

Idiom #87 Stop program

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

import core.stdc.stdlib;
exit(0);

exit(return_code).
0 means normal termination.
#include <stdlib.h>
abort();

Terminates the process immediatly, without executing exit handlers or flushing streams.

New implementation...