OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / puts.3
1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
2 .\"
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.
6 .\"
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.
11 .\"
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
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\" License.
23 .\" Modified Sat Jul 24 18:42:59 1993 by Rik Faith (faith@cs.unc.edu)
24 .\"*******************************************************************
25 .\"
26 .\" This file was generated with po4a. Translate the source file.
27 .\"
28 .\"*******************************************************************
29 .TH PUTS 3 2011\-09\-28 GNU "Linux Programmer's Manual"
30 .SH 名前
31 fputc, fputs, putc, putchar, puts \- 文字と文字列の出力
32 .SH 書式
33 .nf
34 \fB#include <stdio.h>\fP
35 .sp
36 \fBint fputc(int \fP\fIc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
37
38 \fBint fputs(const char *\fP\fIs\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
39
40 \fBint putc(int \fP\fIc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
41
42 \fBint putchar(int \fP\fIc\fP\fB);\fP
43
44 \fBint puts(const char *\fP\fIs\fP\fB);\fP
45 .fi
46 .SH 説明
47 \fBfputc\fP()  は、キャラクタ \fIc\fP を \fIunsigned char\fP にキャストし、 \fIstream\fP に書き込む。
48 .PP
49 \fBfputs\fP()  は、文字列 \fIs\fP を \fIstream\fP に書き込む。 文字列終端の NULL バイト (\(aq\e0\(aq)
50 は出力しない。
51 .PP
52 \fBputc\fP()  は、 \fIstream\fP を一度以上評価するマクロとして実装されているかも知れないという点を除き、 \fBfputc\fP()
53 と同じである。
54 .PP
55 \fBputchar(\fP\fIc\fP\fB);\fP は、 \fBputc(\fP\fIc\fP\fB,\fP\fIstdout\fP\fB)\fP と同じである。
56 .PP
57 \fBputs\fP()  は、文字列 \fIs\fP と改行を \fIstdout\fP に書き込む。
58 .PP
59 ここで説明された関数はお互いに混在して使用することができ、また、 \fIstdio\fP ライブラリに含まれる他の出力関数を同じ出力ストリームに対して
60 呼び出す事が出来る。
61 .PP
62 これらの処理を停止せずに行いたいときは、 \fBunlocked_stdio\fP(3)  を参照のこと。
63 .SH 返り値
64 \fBfputc\fP(), \fBputc\fP(), \fBputchar\fP()  は \fIunsigned char\fP として書き込まれた文字を \fIint\fP
65 にキャストして返す。 エラーが発生した場合は \fBEOF\fP を返す。
66 .PP
67 \fBputs\fP()  と \fBfputs\fP()  は、成功すると負ではない数を、エラーが発生した場合は \fBEOF\fP を返す。
68 .SH 準拠
69 C89, C99.
70 .SH バグ
71 \fIstdio\fP ライブラリに含まれる出力関数と、同じ出力ストリームに結びつけられた ファイルディスクリプタに対する \fBwrite\fP(2)
72 の低レベル呼び出しを混在して 使用することは賢明ではない。 その結果は定義されておらず、望む結果が得られない可能性が高い。
73 .SH 関連項目
74 \fBwrite\fP(2), \fBferror\fP(3), \fBfopen\fP(3), \fBfputwc\fP(3), \fBfputws\fP(3),
75 \fBfseek\fP(3), \fBfwrite\fP(3), \fBgets\fP(3), \fBputwchar\fP(3), \fBscanf\fP(3),
76 \fBunlocked_stdio\fP(3)