Everything

feupdateenv


Sets the floating-point environment with the previously generated exceptions retained.

[Format]

#include <fenv.h>

long feupdateenv(const fenv_t *f);

[Parameters]

f Pointer to the floating-point environment to be set

[Return values]

Normal: 0

Abnormal: Nonzero

[Remarks]

For the argument of this function, specify the object stored or saved by the fegetenv or feholdexcept function call, or the floating-point environment equal to the floating-point environment macro.

Do not use this function when compiler option nofpu is selected. If used, the function returns a nonzero value, which indicates an abnormality.