OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / puts.3
index 0dd6864..950dd43 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
-.\" License.
+.\" %%%LICENSE_END
+.\"
 .\" Modified Sat Jul 24 18:42:59 1993 by Rik Faith (faith@cs.unc.edu)
-.TH PUTS 3  2011-09-28 "GNU" "Linux Programmer's Manual"
+.TH PUTS 3  2014-01-11 "GNU" "Linux Programmer's Manual"
 .SH NAME
 fputc, fputs, putc, putchar, puts \- output of characters and strings
 .SH SYNOPSIS
@@ -61,9 +63,9 @@ except that it may be implemented as a macro which evaluates
 .I stream
 more than once.
 .PP
-.BI "putchar(" c );
+.BI "putchar(" c )
 is equivalent to
-.BI "putc(" c , stdout ).
+.BI "putc(" c ", " stdout ).
 .PP
 .BR puts ()
 writes the string
@@ -79,7 +81,7 @@ library for the same output stream.
 .PP
 For nonlocking counterparts, see
 .BR unlocked_stdio (3).
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 .BR fputc (),
 .BR putc ()
 and
@@ -98,7 +100,7 @@ and
 return a nonnegative number on success, or
 .B EOF
 on error.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
 C89, C99.
 .SH BUGS
 It is not advisable to mix calls to output functions from the
@@ -107,15 +109,24 @@ library with low-level calls to
 .BR write (2)
 for the file descriptor associated with the same output stream; the results
 will be undefined and very probably not what you want.
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR write (2),
 .BR ferror (3),
+.BR fgets (3),
 .BR fopen (3),
 .BR fputwc (3),
 .BR fputws (3),
 .BR fseek (3),
 .BR fwrite (3),
-.BR gets (3),
 .BR putwchar (3),
 .BR scanf (3),
 .BR unlocked_stdio (3)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.