MicrOS
feholdexcept.c File Reference
#include "../fenv.h"

Functions

int feholdexcept (fenv_t *envp)
 Hold floating-point exceptions. More...
 

Function Documentation

◆ feholdexcept()

int feholdexcept ( fenv_t envp)

Hold floating-point exceptions.

Function saves the current floating-point environment in the object pointed to by envp, clears the floating-point status flags, and then installs a non-stop (continue on floating-point exceptions) mode, if available, for all floating-point exceptions.

Parameters
envpPointer to struct where environment will be saved.
Returns
Function returns zero if and only if non-stop floating-point exception handling was successfully installed.