Logo

Programming-Idioms

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

Idiom #186 Exit program cleanly

Exit a program cleanly indicating no error to OS

import kotlin.system.exitProcess
exitProcess(0)
#include <stdlib.h>
exit(EXIT_SUCCESS);

New implementation...