Installing an Abort Function

To install your own abort function, use the set environment abort function function, se_abortfp():

void se_abortfp(funcp)

ISVRP funcp();        /* Function to call on receipt of abort key        */

se_abortfp() sets the global function pointer that Vermont Views checks on receipt of an abort key. Vermont Views will invoke this function if one is installed. is #defined in vv_sys.h as a pointer to a service interrupt routine. To avoid compiler warnings, you may need to cast your function pointer to be of type ISVRP, like this:

se_abortfp((ISVRP) my_abort_func);

If you have installed another abort function and want to reinstall the system abort function, call:

se_abortfp(vv_abort);

Note that the system abort function is not installed by default under PCDOS or OS/2.


Home Contents Previous Next