![]() Chapter Contents |
![]() Previous |
![]() Next |
| fesetexceptflag |
| Portability: | C99 |
| SYNOPSIS | |
| DESCRIPTION | |
| RETURN VALUE | |
| CAUTIONS | |
| RELATED FUNCTIONS | |
| SEE ALSO |
| SYNOPSIS |
#include <fenv.h> void fesetexceptflag(const fexcept_t *flags, int excepts);
| DESCRIPTION |
fesetexceptflag is used
to set the exception flag settings in the current floating-point environment.
The excepts argument is the sum of one or
more floating-point exception names indicating which flags are to be set.
The flags argument addresses the location from
which the new settings of the flags should be taken. In normal usage, the
memory addressed by flags will have been initialized by a previous call to fegetexceptflag.
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 |
fesetexceptflag has no
return value.
| CAUTIONS |
fesetexceptflag 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 fesetexceptflag
must use the standard FENV_ACCESS pragma in an enclosing scope, or the effects
are unpredictable.
| RELATED FUNCTIONS |
feclearexcept, fegetexceptflag,
feraiseexcept, 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.