Writing an Abort Function

An abort function is passed no arguments and should return no value. The call for the function is as follows:

void ISVR abort_func(void)

Your abort function should terminate the program after completing the desired cleanup processing. Follow the format:

void ISVR abort_func()

{
 
    int retval;    

    ...
/* Desired exit status
*/
    ...
/* Your code



*/
    vv_exit()
/* Exit Vermont Views
*/
    exit(retval)
/* Exit to operating system
*/
}
   

Cautions: An abort function should exit with exit() and not return.


Home Contents Previous Next