OSDN Git Service

67ecfd20a8d0f9c4580e60ec704806fd5a31da4c
[linuxjm/LDP_man-pages.git] / draft / man3 / wctob.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 .TH WCTOB 3 2011\-09\-22 GNU "Linux Programmer's Manual"
22 .SH 名前
23 wctob \- ワイド文字のシングルバイト表現を試みる
24 .SH 書式
25 .nf
26 \fB#include <wchar.h>\fP
27 .sp
28 \fBint wctob(wint_t \fP\fIc\fP\fB);\fP
29 .fi
30 .SH 説明
31 \fBwctob\fP()  関数は、ワイド文字 \fIc\fP のマルチバイト表現(初期状態で開
32 始)がシングルバイト文字だけでできているかどうかを調べる。もしそうであ れば、これを \fIunsigned char\fP 型として返す。
33 .PP
34 この関数は決して使わないこと。この関数は国際化プログラムを書く上では役 に立たない。国際化されたプログラムでは、シングルバイト文字とマルチバイト
35 文字を区別してはならない。
36 .SH 返り値
37 \fBwctob\fP()  関数は \fIc\fP のシングルバイト表現が存在すれば、その表現 を返す。存在しなければ \fBEOF\fP を返す。
38 .SH 準拠
39 C99.
40 .SH 注意
41 \fBwctob\fP()  の動作は、現在のロケールの \fBLC_CTYPE\fP カテゴリに依存する。
42 .PP
43 この関数は決して使うべきではない。国際化プログラムでは、シングルバイト 文字とマルチバイト文字を区別してはならない。代わりに、 \fBwctomb\fP(3)
44 か、スレッドセーフな \fBwcrtomb\fP(3)  を使うこと。
45 .SH 関連項目
46 \fBbtowc\fP(3), \fBwcrtomb\fP(3), \fBwctomb\fP(3)
47 .SH この文書について
48 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
49 である。プロジェクトの説明とバグ報告に関する情報は
50 http://www.kernel.org/doc/man\-pages/ に書かれている。