.TH fgetw() "" "" "STDIO Function (libc)"
.PC "Read integer from stream"
.B "#include <stdio.h>"
\fBint fgetw(\fIfp\^\fB) FILE *\fIfp\^\fB;\fR
.PP
.B fgetw()
reads an integer from the stream \fIfp\fR.
.SH Example
For an example of this function, see the entry for
.BR ferror() .
.SH "See Also"
.Xr "fputw()," fputw
.Xr "libc" libc
.SH Notes
.B fgetw()
returns EOF on errors.
A call to
.B feof()
or
.B ferror()
may be necessary to distinguish this value from a genuine
end-of-file signal.
