Logo

Programming-Idioms

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

Idiom #186 Exit program cleanly

Exit a program cleanly indicating no error to OS

require 'os'
os.exit(0)
#include <stdlib.h>
exit(EXIT_SUCCESS);

New implementation...