|
|
1.1 root 1:
2:
3: putw() STDIO putw()
4:
5:
6:
7:
8: Write word into stream
9:
10: #include <stdio.h>
11: iinntt ppuuttww(_w_o_r_d, _f_p) iinntt _w_o_r_d; FFIILLEE *_f_p;
12:
13: The macro ppuuttww writes _w_o_r_d into the file stream pointed to by _f_p.
14: It returns the value written.
15:
16: putw differs from the related macro putc in that putw writes an
17: iinntt, whereas ppuuttcc writes a cchhaarr that is promoted to an iinntt.
18:
19: ***** See Also *****
20:
21: ferror(), STDIO
22:
23: ***** Diagnostics *****
24:
25: putw returns EOF when an error occurs. You may need to call fer-
26: ror to distinguish this value from a genuine end-of-file flag.
27:
28: ***** Notes *****
29:
30: Because putw is a macro, arguments with side effects may not work
31: as expected. The bytes of word are written in the natural byte
32: order of the machine.
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.