feupdateenv Subroutine

Purpose

Updates floating-point environment.

Syntax

#include <fenv.h>

int feupdateenv (envp)
const fenv_t *envp;

Description

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.

Parameters

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.

Return Values

The feupdateenv subroutine returns a zero value if all the required actions were successfully carried out.