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
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 ライブラリに含まれる出力関数と、同じ出力ストリームに結びつけられた
185 その結果は定義されておらず、望む結果が得られない可能性が高い。
198 .BR unlocked_stdio (3)