Name
fetestexcept
Synopsis
Tests the status flags in the floating-point environment against a bit mask
#include <fenv.h> intfetestexcept
( intexcepts
);
The fetestexcept()
function
takes as its argument a bitwise OR of the values of macros defined
in fenv.h to represent the
floating-point exception flags. The macros are listed under feraiseexcept()
in this chapter.
fetestexcept()
returns the
bitwise AND of the values representing the exception flags that were
set in the argument and the exception flags that are currently set
in the floating-point environment.
Example
See the examples at feclearexcept()
and
feholdexcept()
in this
chapter.
See Also
feclearexcept()
,
feraisexcept()
, feholdexcept()
,
fesetexceptflag()
,
feupdateenv()
, fegetenv()
, fesetenv()
Get C in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.