fetestexcept Subroutine

The fetestexcept subroutine determines which of a specified subset of the floating-point exception flags are currently set. The excepts parameter specifies the floating-point status flags to be queried.

The fetestexcept subroutine returns the value of the bitwise-inclusive OR of the floating-point exception macros corresponding to the currently set floating-point exceptions included in excepts.

Purpose

Tests floating-point exception flags.

Syntax

#include <fenv.h>

int fetestexcept (excepts)
int excepts;

Description

Parameters

Item Description
excepts Specifies the floating-point status flags to be queried.

Return Values