the use of the exit() function is to end my programm at the place where i put the function.
have i understood this right?