HP-UX Reference (11i v1 05/09) - 3 Library Functions A-M (vol 6)
f
fegetenv(3M) fegetenv(3M)
NAME
fegetenv( ) - get floating-point environment
SYNOPSIS
#include <fenv.h>
void fegetenv(fenv_t *envp);
DESCRIPTION
The fegetenv() function stores the current floating-point environment in the object pointed to by the
argument envp.
The ISO/ANSI C committee has approved the
fegetenv() function for inclusion in the C9X draft stan-
dard.
To use this function, compile either with the default
-Ae option or with the -Aa and -D_HPUX_SOURCE
options. Make sure your program includes <
fenv.h>. Link in the math library by specifying -lm on the
compiler or linker command line.
For more information, see the HP-UX Floating-Point Guide.
RETURN VALUE
None.
ERRORS
No errors are defined.
EXAMPLE
Store the current floating-point environment:
#include <fenv.h>
/*...*/
fenv_t env;
/*...*/
fegetenv(&env);
SEE ALSO
feholdexcept(3M), fesetenv(3M), feupdateenv(3M), fenv(5).
HP-UX 11i Version 1: September 2005 − 1 − Hewlett-Packard Company Section 3−−243