Chapter Contents

Previous

Next
fegettrapenable

fegettrapenable



Extract floating point trap enablement flags

Portability: C99


SYNOPSIS
DESCRIPTION
RETURN VALUE
CAUTIONS
RELATED FUNCTIONS
SEE ALSO


SYNOPSIS

   #include <fenvtrap.h>

   int fegettrapenable(void);


DESCRIPTION

fegettrapenable is used to extract the trap enablement flags from the current floating-point environment.


RETURN VALUE

fegettrapenable returns an integer, which is the sum of the floating-point flags for which traps are enabled.


CAUTIONS

fegettrapenable returns -1 when called from a function whose default floating-point format is hexadecimal, that is, one compiled without the bfp option.

A program which calls fegettrapenable must use the standard FENV_ACCESS pragma in an enclosing scope, or the effects are unpredictable.


RELATED FUNCTIONS

fesettrapenable


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.