Chapter Contents

Previous

Next
fesettrapenable

fesettrapenable



Define floating point trap enablement

Portability: C99


SYNOPSIS
DESCRIPTION
RETURN VALUE
CAUTIONS
RELATED FUNCTIONS
SEE ALSO


SYNOPSIS

   #include <fenvtrap.h>

   int fesettrapenable(int traps);


DESCRIPTION

fesettrapenable is used to define which floating-point exceptions will cause trapping. The traps argument should be zero for no trapping or the sum of one or more of the exception names defined in fenv.h.


RETURN VALUE

fesettrapenable has no return value.


CAUTIONS

fesettrapenable 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 fesettrapenable must use the standard FENV_ACCESS pragma in an enclosing scope, or the effects are unpredictable.


RELATED FUNCTIONS

fegettrapenable


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.