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 .\"*******************************************************************
22 .\" Translated Sat Oct 23 19:35:47 JST 1999
23 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
25 .TH WCTOB 3 2011\-09\-22 GNU "Linux Programmer's Manual"
27 wctob \- ワイド文字のシングルバイト表現を試みる
30 \fB#include <wchar.h>\fP
32 \fBint wctob(wint_t \fP\fIc\fP\fB);\fP
35 \fBwctob\fP() 関数は、ワイド文字 \fIc\fP のマルチバイト表現(初期状態で開
36 始)がシングルバイト文字だけでできているかどうかを調べる。もしそうであ れば、これを \fIunsigned char\fP 型として返す。
38 この関数は決して使わないこと。この関数は国際化プログラムを書く上では役 に立たない。国際化されたプログラムでは、シングルバイト文字とマルチバイト
41 \fBwctob\fP() 関数は \fIc\fP のシングルバイト表現が存在すれば、その表現 を返す。存在しなければ \fBEOF\fP を返す。
45 \fBwctob\fP() の動作は、現在のロケールの \fBLC_CTYPE\fP カテゴリーに依存する。
47 この関数は決して使うべきではない。国際化プログラムでは、シングルバイト 文字とマルチバイト文字を区別してはならない。代わりに、 \fBwctomb\fP(3)
48 か、スレッドセーフな \fBwcrtomb\fP(3) を使うこと。
50 \fBbtowc\fP(3), \fBwcrtomb\fP(3), \fBwctomb\fP(3)
52 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
53 である。プロジェクトの説明とバグ報告に関する情報は
54 http://www.kernel.org/doc/man\-pages/ に書かれている。