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::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::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::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::fegetexceptflag

Defined in header <cfenv> int fegetexceptflag( std::fexcept_t* flagp, int excepts ); (1) (since C++11) int fesetexceptflag( const std::fexcept_t* flagp, int excepts ); (2) (since C++11) 1) Attempts to obtain the full contents of the floating-point exception flags that are listed in the bitmask argument excepts, which is a bitwise OR of the floating point exception macros. 2) Attempts to copy the full contents of the floating-point exception flags that are listed in ex

std::fegetenv

Defined in header <cfenv> int fegetenv( std::fenv_t* envp ) (1) (since C++11) int fesetenv( const std::fenv_t* envp ); (2) (since C++11) Manages the status of the floating-point environment. 1) Attempts to store the status of the floating-point environment in the object pointed to by envp. 2) Attempts to establish the floating-point environment from the object pointed to by envp. The value of that object must be previously obtained by a call to std::feholdexcept or