1#include <fenv.h> 2 3int fesetexceptflag(const fexcept_t *fp, int mask) 4{ 5 feclearexcept(~*fp & mask); 6 feraiseexcept(*fp & mask); 7 return 0; 8}