![]() Chapter Contents |
![]() Previous |
![]() Next |
| fegetenv |
| Portability: | C99 |
| SYNOPSIS | |
| DESCRIPTION | |
| RETURN VALUE | |
| CAUTIONS | |
| RELATED FUNCTIONS | |
| SEE ALSO |
| SYNOPSIS |
#include <fenv.h> void fegetenv(fenv_t *envp);
| DESCRIPTION |
fegetenv is used to store
the current floating-point environment in the location addressed by the envp argument. The floating-point environment includes the
exception bits, the rounding mode, and the definition of the exceptions for
which trapping is enabled.
| RETURN VALUE |
fegetenv has no return
value.
| CAUTIONS |
fegetenv stores a dummy
value as the environment when called from a function whose default floating-point
format is hexadecimal, that is, one compiled without the bfp option.
A program which calls fegetenv must use
the standard FENV_ACCESS pragma in an enclosing scope, or the effects are
unpredictable.
| RELATED FUNCTIONS |
feholdexcept, fesetenv,
feupdateenv
| SEE ALSO |
"Mathematical Functions" in Chapter 2, "Function Categories"
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.