1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Modified Sat Jul 24 18:42:59 1993 by Rik Faith (faith@cs.unc.edu)
25 .\" Japanese Version Copyright (c) 1997 HIROFUMI Nishizuka
26 .\" all rights reserved.
27 .\" Translated Wed Dec 24 12:33:40 JST 1997
28 .\" by HIROFUMI Nishizuka <nishi@rpts.cl.nec.co.jp>
29 .\" Updated Fri Nov 2 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
31 .TH PUTS 3 2011-09-28 "GNU" "Linux Programmer's Manual"
34 .\"O fputc, fputs, putc, putchar, puts \- output of characters and strings
35 fputc, fputs, putc, putchar, puts \- ʸ»ú¤Èʸ»úÎó¤Î½ÐÎÏ
41 .BI "int fputc(int " c ", FILE *" stream );
43 .BI "int fputs(const char *" "s" ", FILE *" "stream" );
45 .BI "int putc(int " c ", FILE *" stream );
47 .BI "int putchar(int " c );
49 .BI "int puts(const char *" "s" );
54 .\"O writes the character
57 .\"O .IR "unsigned char" ,
70 .\"O writes the string
74 .\"O without its terminating null byte (\(aq\e0\(aq).
81 ʸ»úÎó½ªÃ¼¤Î NULL ¥Ð¥¤¥È (\(aq\e0\(aq) ¤Ï½ÐÎϤ·¤Ê¤¤¡£
86 .\"O except that it may be implemented as a macro which evaluates
92 ¤ò°ìÅٰʾåɾ²Á¤¹¤ë¥Þ¥¯¥í¤È¤·¤Æ¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¤«¤âÃΤì¤Ê¤¤¤È¤¤¤¦ÅÀ¤ò½ü¤¡¢
96 .\"O .BI "putchar(" c );
98 .\"O .BI "putc(" c , stdout ).
101 .BI "putc(" c , stdout )
105 .\"O writes the string
107 .\"O and a trailing newline
117 .\"O Calls to the functions described here can be mixed with each other and with
118 .\"O calls to other output functions from the
120 .\"O library for the same output stream.
121 ¤³¤³¤ÇÀâÌÀ¤µ¤ì¤¿´Ø¿ô¤Ï¤ª¸ß¤¤¤Ëº®ºß¤·¤Æ»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤¡¢¤Þ¤¿¡¢
123 ¥é¥¤¥Ö¥é¥ê¤Ë´Þ¤Þ¤ì¤ë¾¤Î½ÐÎÏ´Ø¿ô¤òƱ¤¸½ÐÎÏ¥¹¥È¥ê¡¼¥à¤ËÂФ·¤Æ
126 .\"O For nonlocking counterparts, see
127 .\"O .BR unlocked_stdio (3).
128 ¤³¤ì¤é¤Î½èÍý¤ò¥í¥Ã¥¯¤»¤º¤Ë¹Ô¤¤¤¿¤¤¤È¤¤Ï¡¢
129 .BR unlocked_stdio (3)
131 .\"O .SH "RETURN VALUE"
137 .\"O return the character written as an
138 .\"O .I unsigned char
149 ¤È¤·¤Æ½ñ¤¹þ¤Þ¤ì¤¿Ê¸»ú¤ò
152 ¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï
159 .\"O return a nonnegative number on success, or
165 ¤Ï¡¢À®¸ù¤¹¤ë¤ÈÉé¤Ç¤Ï¤Ê¤¤¿ô¤ò¡¢¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï
168 .\"O .SH "CONFORMING TO"
173 .\"O It is not advisable to mix calls to output functions from the
175 .\"O library with low-level calls to
177 .\"O for the file descriptor associated with the same output stream; the results
178 .\"O will be undefined and very probably not what you want.
180 ¥é¥¤¥Ö¥é¥ê¤Ë´Þ¤Þ¤ì¤ë½ÐÎÏ´Ø¿ô¤È¡¢Æ±¤¸½ÐÎÏ¥¹¥È¥ê¡¼¥à¤Ë·ë¤Ó¤Ä¤±¤é¤ì¤¿
181 ¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤ËÂФ¹¤ë
183 ¤ÎÄã¥ì¥Ù¥ë¸Æ¤Ó½Ð¤·¤òº®ºß¤·¤Æ
184 »ÈÍѤ¹¤ë¤³¤È¤Ï¸ÌÀ¤Ç¤Ï¤Ê¤¤¡£
185 ¤½¤Î·ë²Ì¤ÏÄêµÁ¤µ¤ì¤Æ¤ª¤é¤º¡¢Ë¾¤à·ë²Ì¤¬ÆÀ¤é¤ì¤Ê¤¤²ÄǽÀ¤¬¹â¤¤¡£
198 .BR unlocked_stdio (3)