getw [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation
HP C/iX Library Reference Manual
getw
Reads a word from an open stream.
Syntax
#include <stdio.h>
int getw (FILE *stream);
Parameters
stream A pointer to an open stream.
Return Values
x The word read, expressed as an integer.
EOF No more data, or an error occurred.
Description
The getw function returns the next word (int in C) from the named input
stream. The getw function increments the associated file pointer, if
defined, to point to the next word. The size of a word is the size of an
integer and varies from machine to machine. The getw function assumes no
special alignment in the file.
See Also
fgetc(), ferror(), getc(), getchar()
MPE/iX 5.0 Documentation