putw() STDIO putw() Write word into stream #include <stdio.h> int putw(word, fp) int word; FILE *fp; The macro putw writes word into the file stream pointed to by fp. It returns the value written. putw differs from the related macro putc in that putw writes an int, whereas putc writes a char that is promoted to an int. ***** See Also ***** ferror(), STDIO ***** Diagnostics ***** putw returns EOF when an error occurs. You may need to call fer- ror to distinguish this value from a genuine end-of-file flag. ***** Notes ***** Because putw is a macro, arguments with side effects may not work as expected. The bytes of word are written in the natural byte order of the machine. COHERENT Lexicon Page 1