OSDN Git Service

98754048fd54c12e22246579d16160e79d4fd667
[linuxjm/LDP_man-pages.git] / release / man3 / fputwc.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\" %%%LICENSE_END
9 .\"
10 .\" References consulted:
11 .\"   GNU glibc-2 source code and manual
12 .\"   Dinkumware C library reference http://www.dinkumware.com/
13 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
14 .\"   ISO/IEC 9899:1999
15 .\"
16 .\"*******************************************************************
17 .\"
18 .\" This file was generated with po4a. Translate the source file.
19 .\"
20 .\"*******************************************************************
21 .\"
22 .\" Translated Sun Aug 29 15:03:11 JST 1999
23 .\"           by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
24 .\" Updated Sat Jan  8 JST 2000 by Kentaro Shirakata <argrath@ub32.org>
25 .\" Updated Fri Nov  2 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
26 .\"
27 .TH FPUTWC 3 2013\-04\-19 GNU "Linux Programmer's Manual"
28 .SH 名前
29 fputwc, putwc \- ワイド文字を FILE ストリームに書き込む
30 .SH 書式
31 .nf
32 \fB#include <stdio.h>\fP
33 .br
34 \fB#include <wchar.h>\fP
35 .sp
36 \fBwint_t fputwc(wchar_t \fP\fIwc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
37 \fBwint_t putwc(wchar_t \fP\fIwc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
38 .fi
39 .SH 説明
40 \fBfputwc\fP()  関数は、 \fBfputc\fP(3)  に対応するワイド文字関数である。この 関数は、ワイド文字 \fIwc\fP を
41 \fIstream\fP に書き込む。 \fIferror(stream)\fP が真になると、この関数は \fBWEOF\fP を返す。
42 ワイド文字変換でエラーが発生した場合は、 \fIerrno\fP に \fBEILSEQ\fP をセットし、 \fBWEOF\fP を返す。
43 それ以外の場合では、この関数は \fIwc\fP を返す。
44 .PP
45 \fBputwc\fP()  関数あるいはマクロは、 \fBfputwc\fP()  と全く同じ動作をする。
46 この関数はマクロとして実装されるかもしれないので、引き数が複数回評価さ れるかもしれない。この関数を使う理由はもはや存在しない。
47 .PP
48 これらの処理を停止せずに行いたいときは、 \fBunlocked_stdio\fP(3)  を参照のこと。
49 .SH 返り値
50 \fBfputwc\fP()  関数は、エラーが起きなければ \fIwc\fP を返す。エラーの場合には \fBWEOF\fP が返り、 \fIerrno\fP
51 にエラーの原因を示す値が設定される。
52 .SH エラー
53 通常のエラーに加えて、以下のエラーがある:
54 .TP 
55 \fBEILSEQ\fP
56 \fIwc\fP からストリームの符号への変換に失敗した。
57 .SH 準拠
58 C99, POSIX.1\-2001.
59 .SH 注意
60 \fBfputwc\fP()  の動作は現在のロケールの \fBLC_CTYPE\fP カテゴリに依存する。
61 .PP
62 \fBfopen\fP(3)  システムコールに渡す追加情報がない場合には、 \fBfputwc\fP()  は 実際にはワイド文字 \fIwc\fP
63 に対応するマルチバイトシーケンスを書き込むと 期待してよい。
64 .SH 関連項目
65 \fBfgetwc\fP(3), \fBfputws\fP(3), \fBunlocked_stdio\fP(3)
66 .SH この文書について
67 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.65 の一部
68 である。プロジェクトの説明とバグ報告に関する情報は
69 http://www.kernel.org/doc/man\-pages/ に書かれている。