#include int fesetexceptflag(const fexcept_t *fp, int mask) { feclearexcept(~*fp & mask); feraiseexcept(*fp & mask); return 0; }