VMS Help
CRTL, getw
*Conan The Librarian
|
Returns characters from a specified file.
Format
#include <stdio.h>
int getw (FILE *file_ptr);
file_ptr
A pointer to the file to be accessed.
The getw function returns the next four characters from the
specified input file as an int.
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.