Next: fesetenv, Previous: feholdexcept, Up: Fenv [Contents][Index]

### 3.6 `feraiseexcept`—raise floating-point exception

Synopsis

    #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.