COHERENT manpages
This page displays the COHERENT manpage for putw() [Write word into stream].
List of available manpages
Index
putw() -- STDIO Function (libc) Write word into stream #include <stdio.h> int putw(word, fp) int word; FILE *fp; putw() writes word into the file stream to which fp points. putw() differs from the related routine putc() in that putw() writes an int, whereas putc() writes a char that is promoted to an int. By default, putw() returns the value written. If an error occurs, it returns EOF. You may need to call ferror() to distinguish this value from a genuine end-of-file flag. See Also ferror(), libc Notes Because putw() is implemented as a macro as well as a function, arguments with side effects may not work as expected. The bytes of word are written in the natural byte order of the machine.