Next: fesetenv
—set current floating-point environment, Previous: feholdexcept
—save current floating-point environment, Up: Floating-Point Environment (fenv.h) [Contents][Index]
feraiseexcept
—raise floating-point exceptionSynopsis
#include <fenv.h> int feraiseexcept(int excepts); Link with -lm.
Description
This method attempts to raise the floating-point exceptions specified
in excepts.
Returns
If the excepts argument is zero or all requested exceptions were
successfully raised, this method returns zero. Otherwise, a non-zero
value is returned.
Portability
ANSI C requires feraiseexcept
.
Not all Newlib targets have a working implementation. Refer to
the file sys/fenv.h
to see the status for your target.