FEGETENV 3CW "17 April 2006" "mathcw-1.00"

Table of contents


NAME

fegetenv - get current floating-point environment

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <fenvcw.h>

extern int fegetenv (fenv_t *fenvp);


DESCRIPTION

Store the current floating-point environment in the object pointed to by the envp object, which is an opaque data type that should not be directly accessed by user code. The object can be subsequently used in calls to feholdexcept(), fesetenv(), and feupdateenv().

RETURN VALUES

Return zero on success, and a negative value on failure.

ERRORS

None.

SEE ALSO

feclearexcept(3CW), fegetexceptflag(3CW), fegetprec(3CW), fegetround(3CW), feholdexcept(3CW), feraiseexcept(3CW), fesetenv(3CW), fesetexceptflag(3CW), fesetprec(3CW), fesetround(3CW), fetestexcept(3CW), feupdateenv(3CW).