Is there a line of code that will terminate the program?
Something like python\'s sys.exit()?
sys.exit()
simple enough..
exit ( 0 ); }//end of function
Make sure there is a space on both sides of the 0. Without spaces, the program will not stop.