feholdexcept Subroutine

The feholdexcept subroutine returns zero if non-stop floating-point exception handling was successfully installed.

Purpose

Saves current floating-point environment.

Syntax

#include <fenv.h>

int feholdexcept (envp)
fenv_t *envp;

Description

The feholdexcept subroutine saves the current floating-point environment in the object pointed to by envp, clears the floating-point status flags, and installs a non-stop (continue on floating-point exceptions) mode for all floating-point exceptions.

Parameters

Item Description
envp Points to the current floating-point environment.

Return Values