HP C/iX Library Reference Manual (30026-90004)

Chapter 5 205
HP C/iX Library Function Descriptions
getw
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()