Function putw

Top 

Declaration:

int putw(int c, unsigned long stream);

Description

Puts an integer on a stream.

putw outputs integer c to the given . putw neither expects nor causes special alignment in the file.

Returned Value

On success, putw returns integer c. On error, putw returns EOF. Because EOF is the allowed integer, use ferror to detect errors with putw.