AMS_Set_exit_func
Sets the AMS exit function. By default the C function exit is called. The user can alter this by providing a pointer to a function that has the same prototype as exit: void func(int).
Synopsis
int AMS_Set_exit_func(void (* exit_func)(int))
Input Parameters
exit_func - A pointer to the user exit
functionLocation:accpub.c