BSD 3 development
[unix-history] / usr / man / man3 / puts.3s
CommitLineData
e6817382
BJ
1.TH PUTS 3S
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.I 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(3), gets(3),
36putc(3), printf(3),
37ferror(3)
38.br
39fread(3) for
40.I fwrite
41.SH BUGS
42.I Puts
43appends a newline,
44.I fputs
45does not, all in the name of backward compatibility.