Logo

Programming-Idioms

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

Idiom #186 Exit program cleanly

Exit a program cleanly indicating no error to OS

System.exit(0);
#include <stdlib.h>
exit(EXIT_SUCCESS);

New implementation...