Set the current floating-point environment
#include <fenv.h> int fesetenv( const fenv_t *envp );
The fesetenv() function sets the current floating-point environment from the object that envp points to. If any of the floating-point status flags are set in envp, they're set in the environment (and you can then use fetestexcept() to test for them), but the corresponding floating-point exceptions aren't raised.
0
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |