File:  [MW Coherent from dump] / coherent / a / usr / man / ALL / putw
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



putw()                        STDIO                        putw()




Write word into stream

#include <stdio.h>
iinntt ppuuttww(_w_o_r_d, _f_p) iinntt _w_o_r_d; FFIILLEE *_f_p;

The macro ppuuttww writes _w_o_r_d into the file stream pointed to by _f_p.
It returns the value written.

putw differs  from the related macro putc in  that putw writes an
iinntt, whereas ppuuttcc writes a cchhaarr that is promoted to an iinntt.

***** 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



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.