xref: /386bsd/usr/share/man/cat3/puts.0 (revision a2142627)
1FPUTS(3)                  386BSD Programmer's Manual                  FPUTS(3)
2
3NNAAMMEE
4     ffppuuttss, ppuuttss - output a line to a stream
5
6SSYYNNOOPPSSIISS
7     ##iinncclluuddee <<ssttddiioo..hh>>
8
9     _i_n_t
10     ffppuuttss(_c_o_n_s_t _c_h_a_r *_s_t_r, _F_I_L_E *_s_t_r_e_a_m)
11
12     _i_n_t
13     ppuuttss(_c_o_n_s_t _c_h_a_r *_s_t_r)
14
15DDEESSCCRRIIPPTTIIOONN
16     The function ffppuuttss() writes the string pointed to by _s_t_r to the stream
17     pointed to by _s_t_r_e_a_m.
18
19     The function ppuuttss() writes the string _s_t_r, and a terminating newline
20     character, to the stream _s_t_d_o_u_t.
21
22RREETTUURRNN VVAALLUUEESS
23     The ffppuuttss() function returns 0 on success and EOF on error; ppuuttss()
24     returns a nonnegative integer on success and EOF on error.
25
26EERRRROORRSS
27     [EBADF]  The _s_t_r_e_a_m supplied is not a writable stream.
28
29     The functions ffppuuttss() and ppuuttss() may also fail and set _e_r_r_n_o for any of
30     the errors specified for the routines write(2).
31
32SSEEEE AALLSSOO
33     putc(3),  ferror(3),  stdio(3)
34
35SSTTAANNDDAARRDDSS
36     The functions ffppuuttss() and ppuuttss() conform to ANSI C3.159-1989 (``ANSI
37     C'').
38
39BSD Experimental                 June 29, 1991                               1
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
65
66
67