Namespaces
Variants
Views
Actions

getchar

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

 
 
File input/output


Functions
File access
Direct input/output
Unformatted input/output
getchar
(until C11)(since C11)
(C95)(C95)
(C95)
(C95)(C95)
(C95)
(C95)
Formatted input
Formatted output
File positioning
Error handling
Operations on files
 
Defined in header <stdio.h>
int getchar();

Reads the next character from stdin.

Parameters

(none)

Return value

the obtained character or EOF if an error has occurred or the end of file reached

See also

Template:c/io/dcl list fgetc
C++ documentation for getchar