feupdateenv

int feupdateenv (const fenv_t* envp);

Update floating-point environment

Attempts to establish the state of the floating-point environment as represented by the object pointed by envp. It then attempts to raise the exceptions that were set in the floating-point environment before the call.

Programs calling this function shall ensure that pragma FENV_ACCESS is enabled for the call.

Parameters

envp

Either a pointer to a fenv_t value (filled by a previous call to fegetenv or feholdexcept), or one of the floating-point environment macro values: