Namespaces
Variants
Views
Actions

std::fgetc, std::getc

From cppreference.com
< cpp‎ | io‎ | c
Revision as of 19:25, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
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.

Parameters

stream - to read the character from

Return value

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

See also

Template:cpp/io/c/dcl list getsTemplate:cpp/io/c/dcl list fputcTemplate:cpp/io/c/dcl list ungetc
C documentation for fgetc, getc