Commit | Line | Data |
---|---|---|
c59b38ab C |
1 | .TH PUTS 3S "19 January 1983" |
2 | .SH NAME | |
3 | puts, 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 | |
20 | copies the null-terminated string | |
21 | .I s | |
22 | to the standard output stream | |
23 | .B stdout | |
24 | and appends a | |
25 | newline character. | |
26 | .PP | |
27 | .I Fputs | |
28 | copies the null-terminated string | |
29 | .I s | |
30 | to the named output | |
31 | .IR stream . | |
32 | .PP | |
33 | Neither routine copies the terminal null character. | |
34 | .SH "SEE ALSO" | |
35 | fopen(3S), | |
36 | gets(3S), | |
37 | putc(3S), | |
38 | printf(3S), | |
39 | ferror(3S) | |
40 | .br | |
41 | fread(3S) for | |
42 | .I fwrite | |
43 | .SH BUGS | |
44 | .I Puts | |
45 | appends a newline, | |
46 | .I fputs | |
47 | does not, all in the name of backward compatibility. |