Share via


EOF, WEOF

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at EOF, WEOF.

Syntax

  
#include <stdio.h>  

Remarks

EOF is returned by an I/O routine when the end-of-file (or in some cases, an error) is encountered.

WEOF yields the return value, of type wint_t, used to signal the end of a wide stream, or to report an error condition.

See Also

putc, putwc
ungetc, ungetwc
scanf, _scanf_l, wscanf, _wscanf_l
fflush
fclose, _fcloseall
_ungetch, _ungetwch, _ungetch_nolock, _ungetwch_nolock
_putch, _putwch
isascii, __isascii, iswascii
Global Constants