.\" Copyright (c) Bruno Haible .\" .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA) .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" %%%LICENSE_END .\" .\" References consulted: .\" GNU glibc-2 source code and manual .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Translated Sat Oct 23 19:35:47 JST 1999 .\" by FUJIWARA Teruyoshi .\" .TH WCTOB 3 2017\-09\-15 GNU "Linux Programmer's Manual" .SH 名前 wctob \- ワイド文字のシングルバイト表現を試みる .SH 書式 .nf \fB#include \fP .PP \fBint wctob(wint_t \fP\fIc\fP\fB);\fP .fi .SH 説明 \fBwctob\fP() 関数は、ワイド文字 \fIc\fP のマルチバイト表現(初期状態で開 始)がシングルバイト文字だけでできているかどうかを調べる。もしそうであ れば、これを \fIunsigned char\fP 型として返す。 .PP この関数は決して使わないこと。この関数は国際化プログラムを書く上では役 に立たない。国際化されたプログラムでは、シングルバイト文字とマルチバイト 文字を区別してはならない。 .SH 返り値 \fBwctob\fP() 関数は、 \fIc\fP のシングルバイト表現が存在すれば、その表現を返す。存在しなければ \fBEOF\fP を返す。 .SH 属性 この節で使用されている用語の説明については、 \fBattributes\fP(7) を参照。 .TS allbox; lb lb lb l l l. インターフェース 属性 値 T{ \fBwctob\fP() T} Thread safety MT\-Safe .TE .sp 1 .SH 準拠 POSIX.1\-2001, POSIX.1\-2008, C99. .SH 注意 \fBwctob\fP() の動作は、現在のロケールの \fBLC_CTYPE\fP カテゴリーに依存する。 .PP この関数は決して使うべきではない。国際化プログラムでは、シングルバイト 文字とマルチバイト文字を区別してはならない。代わりに、 \fBwctomb\fP(3) か、スレッドセーフな \fBwcrtomb\fP(3) を使うこと。 .SH 関連項目 \fBbtowc\fP(3), \fBwcrtomb\fP(3), \fBwctomb\fP(3) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は \%https://www.kernel.org/doc/man\-pages/ に書かれている。