int fegetenv(fenv_t *envp);
This function attempts to store the current floating-point environment in the object pointed to by envp. If the representation was successfully stored, this function returns zero. Otherwise, it returns a non-zero value.