feclearexcept() clears the supported floating-point exceptions represented by excepts.
int feclearexcept(int excepts); excepts : Bitmask listing of exception flags to clear
The feclearexcept() function returns zero value if all the exceptions were cleared or if excepts is equal to zero.
It returns nonzero if any error occurs.
For the function to work, you should enable FENV_ACCESS, which will give your program to access the Floating point environment to test the exceptions raised.
sqrt(-1) raises FE_INVALID
- std::allocator() in C++ with Examples
- set_symmetric_difference in C++ with Examples
- mbrtoc16() in C/C++ with Examples
- mbrtoc32() in C/C++ with Examples
- ratio_equal() in C++ with examples
- negative_binomial_distribution in C++ with Examples
- iswgraph() in C/C++ with Examples
- iswprint() in C/C++ with Examples
- wmemset() in C/C++ with Examples
- ratio_not_equal() in C++ with examples
- std::mismatch() with examples in C++
- SDL library in C/C++ with examples
- cauchy_distribution a() in C++ with Examples
- memset() in C with examples
- Pointers in C/C++ with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.