getchar()

#include <stdio.h>

int getchar( void );

This function returns the next character read from the standard input, or, if the end of the file is reached or an error occurs, it returns EOF.

See also: fgetc().


Back to Essential C Functions.