Raises the floating-point exception.
#include <fenv.h> int feraiseexcept (excepts) int excepts;
The feraiseexcept subroutine attempts to raise the supported floating-point exceptions represented by the excepts parameter. The order in which these floating-point exceptions are raised is unspecified.
excepts | Points to the floating-point exceptions. |
If the argument is zero or if all the specified exceptions were successfully raised, the feraiseexcept subroutine returns a zero. Otherwise, it returns a nonzero value.
feclearexcept Subroutine, fegetexceptflag or fesetexceptflag Subroutine, fetestexcept Subroutine.