File: fputwc.3

package info (click to toggle)
manpages-ja 0.5.0.0.20120606-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 25,964 kB
  • sloc: perl: 161; makefile: 116
file content (60 lines) | stat: -rw-r--r-- 3,027 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" References consulted:
.\"   GNU glibc-2 source code and manual
.\"   Dinkumware C library reference http://www.dinkumware.com/
.\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
.\"   ISO/IEC 9899:1999
.\"
.\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH FPUTWC 3 1999\-07\-25 GNU "Linux Programmer's Manual"
.SH 名前
fputwc, putwc \- ワイド文字を FILE ストリームに書き込む
.SH 書式
.nf
\fB#include <stdio.h>\fP
.br
\fB#include <wchar.h>\fP
.sp
\fBwint_t fputwc(wchar_t \fP\fIwc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
\fBwint_t putwc(wchar_t \fP\fIwc\fP\fB, FILE *\fP\fIstream\fP\fB);\fP
.fi
.SH 説明
\fBfputwc\fP()  関数は、 \fBfputc\fP(3)  に対応するワイド文字関数である。この 関数は、ワイド文字 \fIwc\fP を
\fIstream\fP に書き込む。 \fIferror(stream)\fP が真になると、この関数は \fBWEOF\fP を返す。
ワイド文字変換でエラーが発生した場合は、 \fIerrno\fP に \fBEILSEQ\fP をセットし、 \fBWEOF\fP を返す。
それ以外の場合では、この関数は \fIwc\fP を返す。
.PP
\fBputwc\fP()  関数あるいはマクロは、 \fBfputwc\fP()  と全く同じ動作をする。
この関数はマクロとして実装されるかもしれないので、引き数が複数回評価さ れるかもしれない。この関数を使う理由はもはや存在しない。
.PP
これらの処理を停止せずに行いたいときは、 \fBunlocked_stdio\fP(3)  を参照のこと。
.SH 返り値
\fBfputwc\fP()  関数は、エラーが起きなければ \fIwc\fP を返す。エラーの場合には \fBWEOF\fP を返す。
.SH エラー
通常のエラーに加えて、以下のエラーがある:
.TP 
\fBEILSEQ\fP
\fIwc\fP からストリームの符号への変換に失敗した。
.SH 準拠
C99, POSIX.1\-2001.
.SH 注意
\fBfputwc\fP()  の動作は現在のロケールの \fBLC_CTYPE\fP カテゴリに依存する。
.PP
\fBfopen\fP(3)  システムコールに渡す追加情報がない場合には、 \fBfputwc\fP()  は 実際にはワイド文字 \fIwc\fP
に対応するマルチバイトシーケンスを書き込むと 期待してよい。
.SH 関連項目
\fBfgetwc\fP(3), \fBfputws\fP(3), \fBunlocked_stdio\fP(3)
.SH この文書について
この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部
である。プロジェクトの説明とバグ報告に関する情報は
http://www.kernel.org/doc/man\-pages/ に書かれている。