[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1

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

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.

Related Information

fegetenv or fesetenv Subroutine and feholdexcept Subroutine.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]