[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1

fetestexcept Subroutine

Purpose

Tests floating-point exception flags.

Syntax

#include <fenv.h>

int fetestexcept (excepts)
int excepts;

Description

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.

Parameters

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

Return Values

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.

Related Information

feclearexcept Subroutine, fegetexceptflag or fesetexceptflag Subroutine, and feraiseexcept Subroutine

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]