Everything

getchar


Inputs one character from the standard input file (stdin).

[Format]

#include <stdio.h>

long getchar (void);

[Return values]

Normal: End-of-file: EOF

Otherwise: Input character

Abnormal: EOF

[Remarks]

When a read error occurs, the error indicator for that file is set.

The getchar function inputs one character from the standard input file (stdin).

The getchar function normally returns the input character, but returns EOF at end-of-file or when an error occurs. At end-of-file, the end-of-file indicator for that file is set.