home *** CD-ROM | disk | FTP | other *** search
- #include <math.h>
- #include <stdefs.h>
- #include <errno.h>
-
- #ifndef _EXCEPTION_DEFINED
- struct exception {
- long type;
- double arg1,arg2,retval;
- };
- #endif
-
- math_err_control(x)
- struct exception *x;
- {
- if ((x->type & 7) < 3) errno=EDOM; else errno=ERANGE;
- }
-