COHERENT manpages

This page displays the COHERENT manpage for fputw() [Write an integer into a stream].

List of available manpages
Index


fputw() -- STDIO Function (libc)

Write an integer into a stream
#include <stdio.h>
int fputw(word, fp)
int word; FILE *fp;

fputw() writes word into the file  stream pointed to by fp, and returns the
value written.

Example

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

See Also

fgetw(),
libc

Diagnostics

fputw() returns EOF when an error occurs.  A call to ferror() or feof() may
be needed to distinguish this value from a valid end-of-file signal.