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.
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.
Tests floating-point exception flags.
#include <fenv.h>
int fetestexcept (excepts)
int excepts;
Item | Description |
---|---|
excepts | Specifies the floating-point status flags to be queried. |