1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
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.
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
16 .\"*******************************************************************
18 .\" This file was generated with po4a. Translate the source file.
20 .\"*******************************************************************
21 .TH WCTOB 3 2011\-09\-22 GNU "Linux Programmer's Manual"
23 wctob \- ワイド文字のシングルバイト表現を試みる
26 \fB#include <wchar.h>\fP
28 \fBint wctob(wint_t \fP\fIc\fP\fB);\fP
31 \fBwctob\fP() 関数は、ワイド文字 \fIc\fP のマルチバイト表現(初期状態で開
32 始)がシングルバイト文字だけでできているかどうかを調べる。もしそうであ れば、これを \fIunsigned char\fP 型として返す。
34 この関数は決して使わないこと。この関数は国際化プログラムを書く上では役 に立たない。国際化されたプログラムでは、シングルバイト文字とマルチバイト
37 \fBwctob\fP() 関数は \fIc\fP のシングルバイト表現が存在すれば、その表現 を返す。存在しなければ \fBEOF\fP を返す。
41 \fBwctob\fP() の動作は、現在のロケールの \fBLC_CTYPE\fP カテゴリに依存する。
43 この関数は決して使うべきではない。国際化プログラムでは、シングルバイト 文字とマルチバイト文字を区別してはならない。代わりに、 \fBwctomb\fP(3)
44 か、スレッドセーフな \fBwcrtomb\fP(3) を使うこと。
46 \fBbtowc\fP(3), \fBwcrtomb\fP(3), \fBwctomb\fP(3)
48 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
49 である。プロジェクトの説明とバグ報告に関する情報は
50 http://www.kernel.org/doc/man\-pages/ に書かれている。