BSD 4_2 development
[unix-history] / usr / man / man3 / puts.3s
CommitLineData
c59b38ab
C
1.TH PUTS 3S "19 January 1983"
2.SH NAME
3puts, fputs \- put a string on a stream
4.SH SYNOPSIS
5.B #include <stdio.h>
6.PP
7.B puts(s)
8.br
9.B char *s;
10.PP
11.B fputs(s, stream)
12.br
13.B char *s;
14.br
15.SM
16.B FILE
17.B *stream;
18.SH DESCRIPTION
19.I Puts
20copies the null-terminated string
21.I s
22to the standard output stream
23.B stdout
24and appends a
25newline character.
26.PP
27.I Fputs
28copies the null-terminated string
29.I s
30to the named output
31.IR stream .
32.PP
33Neither routine copies the terminal null character.
34.SH "SEE ALSO"
35fopen(3S),
36gets(3S),
37putc(3S),
38printf(3S),
39ferror(3S)
40.br
41fread(3S) for
42.I fwrite
43.SH BUGS
44.I Puts
45appends a newline,
46.I fputs
47does not, all in the name of backward compatibility.