wctobのヘルプ・マニュアル
日本語 英語
wctob --help
man wctob
WCTOB(3) Linux Programmer’s Manual WCTOB(3)
名前
wctob - ワイド文字のシングルバイト表現を試みる
書式
#include
int wctob(wint_t c);
説明
wctob() 関数は、ワイド文字 c のマルチバイト表現(初期状態で開始)がシング
ルバイト文字だけでできているかどうかを調べる。もしそうであれば、これ を
unsigned char 型として返す。
こ の関数は決して使わないこと。この関数は国際化プログラムを書く上では役
に立たない。国際化されたプログラムでは、シングルバイト文字とマルチバ イ
ト文字を区別してはならない。
返り値
wctob() 関数は c のシングルバイト表現が存在すれば、その表現を返す。存在
しなければ EOF を返す。
準拠
C99.
注意
wctob() の動作は、現在のロケールの LC_CTYPE カテゴリに依存する。
この関数は決して使うべきではない。国際化プログラムでは、シングルバイ ト
文 字とマルチバイト文字を区別してはならない。この関数ではなく wctomb(3)
関数を使うこと。
関連項目
btowc(3), wctomb(3)
GNU 2009-02-04 WCTOB(3)
WCTOB(3) Linux Programmer’s Manual WCTOB(3)
NAME
wctob - try to represent a wide character as a single byte
SYNOPSIS
#include
int wctob(wint_t c);
DESCRIPTION
The wctob() function tests whether the multi-byte representation of the
wide character c, starting in the initial state, consists of a single
byte. If so, it is returned as an unsigned char.
Never use this function. It cannot help you in writing international-
ized programs. Internationalized programs must never distinguish sin-
gle-byte and multi-byte characters.
RETURN VALUE
The wctob() function returns the single-byte representation of c, if it
exists, of EOF otherwise.
CONFORMING TO
C99.
NOTES
The behavior of wctob() depends on the LC_CTYPE category of the current
locale.
This function should never be used. Internationalized programs must
never distinguish single-byte and multi-byte characters. Use the func-
tion wctomb(3) instead.
SEE ALSO
btowc(3), wctomb(3)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 2009-02-04 WCTOB(3)