◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── The putw function writes a binary value of type int to the current position of the stream. The putw function does not affect the alignment of items in the stream, nor does it assume any special alignment. The putw function is provided primarily for compatibility with previous libraries. Note that portability problems may occur with putw, since the size of an int and ordering of bytes within an int differ across systems. Return Value The putw function returns the value written. A return value of EOF may indicate an error. Since EOF is also a legitimate integer value, ferror should be used to verify an error. -♦-