COHERENT manpages

This page displays the COHERENT manpage for fgetw() [Read integer from stream].

List of available manpages
Index


fgetw() -- STDIO Function (libc)

Read integer from stream
#include <stdio.h>
int fgetw(fp) FILE *fp;

fgetw() reads an integer from the stream fp.

Example

For an example of this function, see the entry for ferror().

See Also

fputw(),
libc

Notes

fgetw()  returns EOF  on  errors.  A  call  to feof()  or  ferror() may  be
necessary to distinguish this value from a genuine end-of-file signal.