Rev | Line | |
---|
[9] | 1 | .\" @(#)puts.3s 6.1 (Berkeley) 5/15/85
|
---|
| 2 | .\"
|
---|
| 3 | .TH PUTS 3 "May 15, 1985"
|
---|
| 4 | .AT 3
|
---|
| 5 | .SH NAME
|
---|
| 6 | puts, fputs \- put a string on a stream
|
---|
| 7 | .SH SYNOPSIS
|
---|
| 8 | .nf
|
---|
| 9 | .ft B
|
---|
| 10 | #include <stdio.h>
|
---|
| 11 |
|
---|
| 12 | int puts(char *\fIs\fP)
|
---|
| 13 | int fputs(char *\fIs\fP, FILE *\fIstream\fP)
|
---|
| 14 | .ft P
|
---|
| 15 | .fi
|
---|
| 16 | .SH DESCRIPTION
|
---|
| 17 | .B Puts
|
---|
| 18 | copies the null-terminated string
|
---|
| 19 | .I s
|
---|
| 20 | to the standard output stream
|
---|
| 21 | .B stdout
|
---|
| 22 | and appends a
|
---|
| 23 | newline character.
|
---|
| 24 | .PP
|
---|
| 25 | .B Fputs
|
---|
| 26 | copies the null-terminated string
|
---|
| 27 | .I s
|
---|
| 28 | to the named output
|
---|
| 29 | .IR stream .
|
---|
| 30 | .PP
|
---|
| 31 | Neither routine copies the terminal null character.
|
---|
| 32 | .SH "SEE ALSO"
|
---|
| 33 | .BR fopen (3),
|
---|
| 34 | .BR gets (3),
|
---|
| 35 | .BR putc (3),
|
---|
| 36 | .BR printf (3),
|
---|
| 37 | .BR ferror (3),
|
---|
| 38 | .BR fread (3).
|
---|
| 39 | .SH BUGS
|
---|
| 40 | .B Puts
|
---|
| 41 | appends a newline,
|
---|
| 42 | .B fputs
|
---|
| 43 | does not, all in the name of backward compatibility.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.