feenableexcept

Name

feenableexcept -- enable floating point exceptions

Synopsis

#include <fenv.h>

int feenableexcept(int excepts);

Description

The feenableexcept() function enables traps for each of the exceptions represented by the mask excepts.

Return Value

The feenableexcept() function returns the previous set of enabled exceptions on success. On error, -1 is returned.

Errors

No errors are defined, but the function will fail if not supported on the architecture.