Important: The information in this document is obsolete and should not be used for new development.
fesetexcept
You can use thefesetexceptfunction to restore the values of the floating-point exception flags previously saved by a call tofegetexcept.
void fesetexcept (const fexcept_t *flagp, int excepts);
flagp- A pointer to the values the floating-point exception flags should have.
excepts- A mask indicating which exception flags should have their values changed.
DESCRIPTION
Thefesetexceptfunction sets the floating-point exception flags indicated by the argumentexceptsto the values indicated by the argumentflagp. Theexceptsargument may be one of the constants in Table 8-2 on page 8-6, two or more of these constants ORed together, or the constantFE_ALL_EXCEPT.You must call
fegetexceptbefore this function to set theflagpargument. This argument cannot be set in any other way.EXAMPLES
fesetexcept(flagp, FE_INVALID); /* restores the invalid flag */ fesetexcept(flagp, FE_INVALID|FE_OVERFLOW|FE_DIVBYZERO); /* restores the invalid, overflow, and divide-by-zero flags */ fesetexcept(flagp, FE_ALL_EXCEPT); /* restores all flags */
 
  
  
 