Logo

Programming-Idioms

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

Idiom #186 Exit program cleanly

Exit a program cleanly indicating no error to OS

Application.Terminate;
Halt;

Halt is equivalent to Halt(0), setting the OS exitcode of the program to 0, indicating no error.
#include <stdlib.h>
exit(EXIT_SUCCESS);

New implementation...