VMS Help  —  CRTL  fgetc
    Returns the next character from a specified file.

    Format

      #include  <stdio.h>

      int fgetc  (FILE *file_ptr);

1  –  Argument

 file_ptr

    A pointer to the file to be accessed.

2  –  Description

    The fgetc function returns the next character from the specified
    file.

    Compiling with the __UNIX_PUTC macro defined enables an
    optimization that uses a faster, inlined version of this
    function.

    See also the fgetc_unlocked function and the getc macro.

3  –  Return Values

    x                  The returned character.
    EOF                Indicates the end-of-file or an error.
Close Help