Namespaces
Variants
Views
Actions

fgetc, getc

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

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

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

See also

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