VMS Help  —  CRTL  getchar
    Reads a single character from the standard input (stdin).

    Format

      #include  <stdio.h>

      int getchar  (void);

1  –  Description

    The getchar function is identical to fgetc(stdin).

    See also getchar_unlocked.

2  –  Return Values

    x                  The next character from stdin, converted to
                       int.
    EOF                Indicates the end-of-file or an error.
Close Help