fgetws

Defined in header <wchar.h> wchar_t *fgetws( wchar_t *str, int count, FILE *stream ); (since C95) Reads at most count - 1 wide characters from the given file stream and stores them in str. The produced wide string is always null-terminated. Parsing stops if end-of-file occurs or a newline wide character is found, in which case str will contain that wide newline character. Parameters str - wide string to read the characters to count - the length of str stream

fgetwc

Defined in header <wchar.h> wint_t fgetwc( FILE *stream ); (since C95) wint_t getwc( FILE *stream ); (since C95) Reads the next wide character from the given input stream. getwc() may be implemented as a macro and may evaluate stream more than once. Parameters stream - to read the wide character from Return value The next wide character from the stream or WEOF if an error has occurred or the end of file has been reached. If an encoding error occurred, er

fgets

Defined in header <stdio.h> char *fgets( char *str, int count, FILE *stream ); (until C99) char *fgets( char *restrict str, int count, FILE *restrict stream ); (since C99) Reads at most count - 1 characters from the given file stream and stores them in str. The produced character string is always null-terminated. Parsing stops if end-of-file occurs or a newline character is found, in which case str will contain that newline character. Parameters

fgetpos

Defined in header <stdio.h> int fgetpos( FILE *stream, fpos_t *pos ); (until C99) int fgetpos( FILE *restrict stream, fpos_t *restrict pos ); (since C99) Obtains the file position indicator and the current parse state (if any) for the file stream stream and stores them in the object pointed to by pos. The value stored is only meaningful as the input to fsetpos. Parameters stream - file stream to examine pos - pointer to a fpos_t object

fgetc

Defined in header <stdio.h> int fgetc( FILE *stream ); int getc( FILE *stream ); Reads the next character from the given input stream. getc() may be implemented as a macro. Parameters stream - to read the character from Return value The obtained character on success or EOF on failure. If the failure has been caused by end-of-file condition, additionally sets the eof indicator (see feof()) on stream. If the failure has been caused by some other error, set

fflush

Defined in header <stdio.h> int fflush( 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 directl

FE_DOWNWARD

Defined in header <<fenv.h>> #define FE_DOWNWARD /*implementation defined*/ (since C99) #define FE_TONEAREST /*implementation defined*/ (since C99) #define FE_TOWARDZERO /*implementation defined*/ (since C99) #define FE_UPWARD /*implementation defined*/ (since C99) Each of these macro constants expands to a nonnegative integer constant expression, which can be used with fesetround and fegetround to indicate one of the supported floatin

FE_DIVBYZERO

Defined in header <<fenv.h>> #define FE_DIVBYZERO /*implementation defined power of 2*/ (since C99) #define FE_INEXACT /*implementation defined power of 2*/ (since C99) #define FE_INVALID /*implementation defined power of 2*/ (since C99) #define FE_OVERFLOW /*implementation defined power of 2*/ (since C99) #define FE_UNDERFLOW /*implementation defined power of 2*/ (since C99) #define FE_ALL_EXCEPT FE_DIVBYZERO | FE_INEXACT |

FE_DFL_ENV

Defined in header <<fenv.h>> #define FE_DFL_ENV /*implementation defined*/ (since C99) The macro constant FE_DFL_ENV expands to an expression of type const fenv_t*, which points to a full copy of the default floating-point environment, that is, the environment as loaded at program startup. Additional macros that begin with FE_ followed by uppercase letters, and have the type const fenv_t*, may be supported by an implementation. Example #include <stdio.h> #

feupdateenv

Defined in header <<fenv.h>> int feupdateenv( const fenv_t* envp ); (since C99) First, remembers the currently raised floating-point exceptions, then restores the floating-point environment from the object pointed to by envp (similar to 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 feholdexcept. Parameters envp - pointer to the object of type fenv_t set