PRODUCT : Borland C++ NUMBER : 723 VERSION : 2.0 OS : DOS DATE : October 19, 1993 PAGE : 1/1 TITLE : matherr and signal Handlers /************************************************************** This program illustrates how to use matherr and signal. ***************************************************************/ #include #include #include #include /* New matherr function. */ int matherr(struct exception *s) { puts("matherr!! \n"); return 1; } /* New signal handler. */ void catcher(void) { puts("catcher!!\n"); } int main(void) { int x; signal(SIGFPE,catcher); x = log(-1); return 0; } DISCLAIMER: You have the right to use this technical information subject to the terms of the No-Nonsense License Statement that you received with the Borland product to which this information pertains.