1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" References consulted:
9 .\" GNU glibc-2 source code and manual
10 .\" Dinkumware C library reference http://www.dinkumware.com/
11 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
14 .\"*******************************************************************
16 .\" This file was generated with po4a. Translate the source file.
18 .\"*******************************************************************
19 .TH WCTOB 3 2011\-09\-22 GNU "Linux Programmer's Manual"
21 wctob \- ワイド文字のシングルバイト表現を試みる
24 \fB#include <wchar.h>\fP
26 \fBint wctob(wint_t \fP\fIc\fP\fB);\fP
29 \fBwctob\fP() 関数は、ワイド文字 \fIc\fP のマルチバイト表現(初期状態で開
30 始)がシングルバイト文字だけでできているかどうかを調べる。もしそうであ れば、これを \fIunsigned char\fP 型として返す。
32 この関数は決して使わないこと。この関数は国際化プログラムを書く上では役 に立たない。国際化されたプログラムでは、シングルバイト文字とマルチバイト
35 \fBwctob\fP() 関数は \fIc\fP のシングルバイト表現が存在すれば、その表現 を返す。存在しなければ \fBEOF\fP を返す。
39 \fBwctob\fP() の動作は、現在のロケールの \fBLC_CTYPE\fP カテゴリに依存する。
41 この関数は決して使うべきではない。国際化プログラムでは、シングルバイト 文字とマルチバイト文字を区別してはならない。代わりに、 \fBwctomb\fP(3)
42 か、スレッドセーフな \fBwcrtomb\fP(3) を使うこと。
44 \fBbtowc\fP(3), \fBwcrtomb\fP(3), \fBwctomb\fP(3)