Monday, October 31, 2016

C Library Function – fenv

The <fenv.h> header shall define the following function(s).

Floating-point Exceptions Functions:
*flagp - pointer to an fexcept_t object where the flags will be stored or read from  
excepts - bitmask listing the exception flags to clear/raise/get/set/test
feclearexcept(C99) int feclearexcept(int excepts);
feraiseexcept(C99) int feraiseexcept(int excepts);
fegetexceptflag(C99) int fegetexceptflag(fexcept_t *flagp, int excepts);
fesetexceptflag(C99) int fesetexceptflag(const fexcept_t *flagp, int excepts);
fetestexcept(C99) int fetestexcept(int excepts);

Floating-point Rounding Functions:
fegetround(C99) int fegetround(void);
fesetround(C99) int fesetround(int rounding_direction);

Floating-point Environment Functions:
*envp - pointer to the object of type fenv_t which holds the status of the floating-point environment
fegetenv(C99) int fegetenv(fenv_t *envp);
fesetenv(C99) int fesetenv(const fenv_t *envp);
feholdexcept(C99) int feholdexcept(fenv_t *envp);
feupdateenv(C99) int feupdateenv(const fenv_t *envp);



Related topics:
Library Functions in C   |   Standard Library in C   |   Header Files in C   |   Functions in C   |   Keywords in C   |   Data Types in C   |   Pointers in C

List of topics: C Programming

No comments:

Post a Comment