fetestexcept

Synopsis

Description

The fetestexcept() function determines which of a specified subset of the floating-point
exception flags are currently set. The excepts argument specifies the floating-point status
flags to be queried.

Return Values

The fetestexcept() function 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.

Errors

No errors are defined.

Examples

Example 1 Example using fetestexcept()

The following example calls function f( ) if an invalid exception is
set, and then function g( ) if an overflow exception is set: