Tests floating-point exception flags.
#include <fenv.h> int fetestexcept (excepts) int excepts;
The fetestexcept subroutine determines which of a specified subset of the floating-point exception flags are currently set. The excepts parameter specifies the floating-point status flags to be queried.
excepts | Specifies the floating-point status flags to be queried. |
The fetestexcept subroutine returns the value of the bitwise-inclusive OR of the floating-point exception macros corresponding to the currently set floating-point exceptions included in excepts.
feclearexcept Subroutine, fegetexceptflag or fesetexceptflag Subroutine, and feraiseexcept Subroutine