Function getw

Top 

Declaration:

int getw(unsigned long stream);

Description

Gets integer from stream.

getw returns the next integer in the specified input stream. It assumes no special alignment in the file. getw should not be used, when the stream is opened in the text mode.

Returned Value

getw returns the next integer on the input stream. On the end-of-file or error, getw returns EOF.

Note. Because EOF is the allowed value for getw to return, feof or ferror should be used to detect the end-of-file or error.