Installing a Simpler Error Reporting Function

Vermont Views also provides a simpler error reporting function, SYS_ERRF(). This function pops up a window and writes the message associated with the error code value of VV_ERR. If there is no message associated with the error code, the number of the error code is displayed.

To install this error reporting function:

Step 1: Enable the installation of another error reporting function by #including the vv_errf.h header file. By #including this header file, you disable the VCS error reporting system.

Step 2: Set the system to use this error reporting function with the set environment error function function, se_errfp():

void se_errfp(err_fp)

PFV err_fp();    /* Error reporting function to install        */

Thus, a program using the simpler system error reporting function would start as follows:

#include <vv_errf.h>

#include <vv_main.h>

int main(void)

{

    vv_init();

    se_errfp(SYS_ERRF);

    ...

    ...

}


Home Contents Previous Next