std::fflush

Defined in header <cstdio> int fflush( std::FILE* stream ); For output streams (and for update streams on which the last operation was output), writes any unwritten data from the stream's buffer to the associated output device. For input streams (and for update streams on which the last operation was input), the behavior is undefined. If stream is a null pointer, all open output streams are flushed, including the ones manipulated within library packages or otherwise not dir

std::feupdatedenv

Defined in header <cfenv> int feupdateenv( const std::fenv_t* envp ) (since C++11) First, remembers the currently raised floating-point exceptions, then restores the floating-point environment from the object pointed to by envp (similar to std::fesetenv), then raises the floating-point exceptions that were saved. This function may be used to end the non-stop mode established by an earlier call to std::feholdexcept. Parameters envp - pointer to the object of type std

std::fetestexcept

Defined in header <cfenv> int fetestexcept( int excepts ); (since C++11) Determines which of the specified subset of the floating point exceptions are currently set. The argument excepts is a bitwise OR of the floating point exception macros. Parameters excepts - bitmask listing the exception flags to test Return value Bitwise OR of the floating-point exception macros that are both included in excepts and correspond to floating-point exceptions currently set.

std::ferror

Defined in header <cstdio> int ferror( std::FILE* stream ); Checks the given stream for errors. Parameters stream - the file stream to check Return value Nonzero value if the file stream has errors occurred, ​0​ otherwise. Example #include <cstdio> #include <cstdlib> int main() { FILE* fp = std::fopen("test.txt", "r"); if(!fp) { std::perror("File opening failed"); return EXIT_FAILURE; } int c; // note: int,

std::feholdexcept

Defined in header <cfenv> int feholdexcept( std::fenv_t* envp ) (since C++11) First, saves the current floating-point environment to the object pointed to by envp (similar to std::fegetenv), then clears all floating-point status flags, and then installs the non-stop mode: future floating-point exceptions will not interrupt execution (will not trap), until the floating-point environment is restored by std::feupdateenv or std::fesetenv. This function may be used in the beginn

std::feraiseexcept

Defined in header <cfenv> int feraiseexcept( int excepts ); (since C++11) Attempts to raise all floating point exceptions listed in excepts (a bitwise OR of the floating point exception macros). If one of the exceptions is FE_OVERFLOW or FE_UNDERFLOW, this function may additionally raise FE_INEXACT. The order in which the exceptions are raised is unspecified, except that FE_OVERFLOW and FE_UNDERFLOW are always raised before FE_INEXACT. Parameters excepts - bitmask l

std::feof

Defined in header <cstdio> int feof( std::FILE* stream ); Checks if the end of the given file stream has been reached. Parameters stream - the file stream to check Return value Nonzero value if the end of the stream has been reached, otherwise ​0​. Notes This function only reports the stream state as reported by the most recent I/O operation, it does not examine the associated data source. For example, if the most recent I/O was a std::fgetc, which returned

std::fegetround

Defined in header <cfenv> int fesetround( int round ) (1) (since C++11) int fegetround() (2) (since C++11) Manages the floating-point rounding direction. 1) Attempts to establish the floating-point rounding direction equal to the argument round, which is expected to be one of the floating point rounding macros. 2) Returns the value of the floating point rounding macro that corresponds to the current rounding direction. Parameters round - rounding direction

std::fdim

Defined in header <cmath> float fdim( float x, float y ); (1) (since C++11) double fdim( double x, double y ); (2) (since C++11) long double fdim( long double x, long double y ); (3) (since C++11) Promoted fdim( Arithmetic1 x, Arithmetic2 y ); (4) (since C++11) 1-3) Returns the positive difference between x and y, that is, if x>y, returns x-y, otherwise (if x≤y), returns +0. 4) A set of overloads or a function template for all combinatio

std::feclearexcept

Defined in header <cfenv> int feclearexcept( int excepts ); (since C++11) Attempts to clear the floating-point exceptions that are listed in the bitmask argument excepts, which is a bitwise OR of the floating point exception macros. Parameters excepts - bitmask listing the exception flags to clear Return value ​0​ if all indicated exceptions were successfully cleared or if excepts is zero. Returns a non-zero value on error. Example #include <iostream&g