Updates floating-point environment.
#include <fenv.h>
int feupdateenv (envp)
const fenv_t *envp;
The feupdateenv subroutine attempts to save the currently raised floating-point exceptions in its automatic storage, attempts to install the floating-point environment represented by the object pointed to by the envp parameter, and attempts to raise the saved floating-point exceptions. The envp parameter point to an object set by a call to feholdexcept or fegetenv, or equal a floating-point environment macro.
Item | Description |
---|---|
envp | Points to an object set by a call to the feholdexcept or the fegetenv subroutine, or equal a floating-point environment macro. |
The feupdateenv subroutine returns a zero value if all the required actions were successfully carried out.