![]() Chapter Contents |
![]() Previous |
![]() Next |
| fegetexceptflag |
| Portability: | C99 |
| SYNOPSIS | |
| DESCRIPTION | |
| RETURN VALUE | |
| CAUTIONS | |
| RELATED FUNCTIONS | |
| SEE ALSO |
| SYNOPSIS |
#include <fenv.h> void fegetexceptflag(fexcept_t *flags, int excepts);
| DESCRIPTION |
fegetexceptflag is used
to extract the exception flag settings in the current floating-point environment.
The flags argument points to the location where the flags should be stored;
the excepts argument is the sum of one or more
floating-point exception names indicating which flags are to be extracted.
For SAS/C, the flags pointer addresses a character which contains the sum of the requested flags which were set in the current environment. If you depend on this format, it will make your program non-portable.
| RETURN VALUE |
fegetexceptflag has no
return value.
| CAUTIONS |
fegetexceptflag has no
effect when called from a function whose default floating-point format is
hexadecimal, that is, one compiled without the bfp
option.
A program which calls fegetexceptflag
must use the standard FENV_ACCESS pragma in an enclosing scope, or the effects
are unpredictable.
| RELATED FUNCTIONS |
feclearexcept, feraiseexcept,
fesetexceptflag, fetestexcept
| 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.