HELPLIB.HLB  —  CRTL  getw
    Returns characters from a specified file.

    Format

      #include  <stdio.h>

      int getw  (FILE *file_ptr);

1  –  Argument

 file_ptr

    A pointer to the file to be accessed.

2  –  Description

    The getw function returns the next four characters from the
    specified input file as an int.

3  –  Return Values

    x                  The next four characters, in an int.
    EOF                Indicates that the end-of-file was encountered
                       during the retrieval of any of the four
                       characters and all four characters were
                       lost. Since EOF is an acceptable integer,
                       use feof and ferror to check the success of
                       the function.
Close Help