FERAISEEXCEPT(3M) Mathematical Library Functions FERAISEEXCEPT(3M)
feraiseexcept - raise floating-point exception
c99 [ flag... ] file... -lm [ library... ]
#include <fenv.h>
int feraiseexcept(int excepts);
The feraiseexcept() function attempts to raise the supported
floating-point exceptions represented by the excepts argument. The
order in which these floating-point exceptions are raised is
unspecified.
If excepts is 0 or if all the specified exceptions were successfully
raised, feraiseexcept() returns 0. Otherwise, it returns a non-zero
value.
No errors are defined.
The effect is intended to be similar to that of floating-point
exceptions raised by arithmetic operations. Hence, enabled traps for
floating-point exceptions raised by this function are taken.
See attributes(7) for descriptions of the following attributes:
+----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+----------------------------+-----------------------------+
|Interface Stability | Standard |
+----------------------------+-----------------------------+
|MT-Level | MT-Safe |
+----------------------------+-----------------------------+
fenv.h(3HEAD), feclearexcept(3M), fegetexceptflag(3M),
fetestexcept(3M), attributes(7), standards(7)
SunOS 5.11 July 12, 2006 FERAISEEXCEPT(3M)
NAME
feraiseexcept - raise floating-point exception
SYNOPSIS
c99 [ flag... ] file... -lm [ library... ]
#include <fenv.h>
int feraiseexcept(int excepts);
DESCRIPTION
The feraiseexcept() function attempts to raise the supported
floating-point exceptions represented by the excepts argument. The
order in which these floating-point exceptions are raised is
unspecified.
RETURN VALUES
If excepts is 0 or if all the specified exceptions were successfully
raised, feraiseexcept() returns 0. Otherwise, it returns a non-zero
value.
ERRORS
No errors are defined.
USAGE
The effect is intended to be similar to that of floating-point
exceptions raised by arithmetic operations. Hence, enabled traps for
floating-point exceptions raised by this function are taken.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+----------------------------+-----------------------------+
|Interface Stability | Standard |
+----------------------------+-----------------------------+
|MT-Level | MT-Safe |
+----------------------------+-----------------------------+
SEE ALSO
fenv.h(3HEAD), feclearexcept(3M), fegetexceptflag(3M),
fetestexcept(3M), attributes(7), standards(7)
SunOS 5.11 July 12, 2006 FERAISEEXCEPT(3M)