std::fgetc, std::getc

From Cppreference

< cpp | io | c
Jump to: navigation, search
Defined in header <cstdio>

int fgetc( FILE *stream );
int getc( FILE *stream );

Reads the next character from the given input stream. getc() may be implemented as a macro.

[edit] Parameters

stream - to read the character from

[edit] Return value

next character from the stream or EOF if an error has occurred or the end of file has been reached.

[edit] See also

gets
reads a character string from stdin
(function)
fputc
putc
writes a character to a file stream
(function)
ungetc
puts a character back into a file stream
(function)