exit function that immediately terminates the program

exit is a function that immediately terminates the program. Make sure to flush and close any open files and networking sockets you are using before exiting the program.

#import "Basic";

main :: () {
  exit(0); // exits the program
}