Name
fgetc function — Reads a character
Synopsis
int fgetc(FILE* stream)
The fgetc
function reads a
single character from stream
. It
returns the character as an unsigned
char
converted to int
or EOF
for an error or end-of-file.
See Also
feof function, ferror function, getc macro, fputc function, fwgetc
in <cwchar>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.