feclearexcept Subroutine

Purpose

Clears floating-point exceptions.

Syntax

#include <fenv.h>

int feclearexcept (excepts)
int excepts;

Description

The feclearexcept subroutine attempts to clear the supported floating-point exceptions represented by the excepts parameter.

Parameters

Item Description
excepts Specifies the supported floating-point exception to be cleared.

Return Values

If the excepts parameter is zero or if all the specified exceptions were successfully cleared, the feclearexcept subroutine returns zero. Otherwise, it returns a nonzero value.