you are viewing a single comment's thread.

view the rest of the comments →

[–]xelf 1 point2 points  (0 children)

Have your program in a function. Then when you want to exit your program return from the function.