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

Functions

int fesetenv (const fenv_t *envp)
 Set entire environment. More...
 

Function Documentation

◆ fesetenv()

int fesetenv ( const fenv_t envp)

Set entire environment.

The fesetenv function attempts to establish the floating-point environment represented by the object pointed to by envp. The argument envp shall point to an object set by a call to fegetenv or feholdexcept, or equal a floating-point environment macro. Note that fesetenv merely installs the state of the floating-point status flags represented through its argument, and does not raise these floating-point exceptions.

Parameters
envpPointer to struct from where environment will read environment.
Returns
Function returns zero if the environment was successfully wrote. Otherwise, it returns a nonzero value.