matherr()

handles exceptions in the math library 

Function


SYNOPSIS

#include <math.h>

int matherr(struct exception *x);


DESCRIPTION

The matherr() function is invoked by certain functions in the math libraries when errors are detected. You may define your own mechanism for handling exceptions, by including a function named matherr() in your program.

When an exception occurs, a pointer to the exception structure x is passed to your matherr() function.


PARAMETERS

x 

Points to an exception structure.


RETURN VALUES

The matherr() function returns 0 to indicate an error, and a non-zero value to indicate successful corrective action.


CONFORMANCE

SVR4.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
exp(), log(), log10(), pow(), sqrt()


PTC MKS Toolkit 10.4 Documentation Build 39.