MicrOS
fegetexceptflag.c File Reference
#include "../fenv.h"

Functions

int fegetexceptflag (fexcept_t *flagp, int excepts)
 Get exception flags. More...
 

Function Documentation

◆ fegetexceptflag()

int fegetexceptflag ( fexcept_t flagp,
int  excepts 
)

Get exception flags.

Function attempts to store an implementation-defined representation of the states of the floating-point status flags indicated by the argument excepts in the object pointed to by the argument flagp.

Parameters
flagpPointer to structure where expection flags will be stored.
exceptsDefines which excepts will be checked.
Returns
Function returns zero if the representation was successfully stored. Otherwise, it returns a nonzero value.