Main index | Section 3 | Options |
#include <fenv.h>
The fetestexcept() function determines which flags are currently set, of those specified by excepts.
The fegetexceptflag() function stores the state of the exception flags specified in excepts in the opaque object pointed to by flagp. Similarly, fesetexceptflag() changes the specified exception flags to reflect the state stored in the object pointed to by flagp. Note that the flags restored with fesetexceptflag() must be a (not necessarily proper) subset of the flags recorded by a prior call to fegetexceptflag().
For all of these functions, the possible types of exceptions include those described in fenv(3). Some architectures may define other types of floating-point exceptions.
The fegetexceptflag() and fesetexceptflag() routines are preferred to fetestexcept() and feraiseexcept(), respectively, for saving and restoring exception flags. The latter do not re-raise exceptions and may preserve architecture-specific information such as addresses where exceptions occurred.
FECLEAREXCEPT (3) | May 8, 2004 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | C isn't that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void | ” |