1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
.\"
.\" %%%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.
.\"
.\"*******************************************************************
.\"
.\" Japanese Version Copyright (c) 1999 HAYAKAWA Hitoshi
.\" all rights reserved.
.\" Translated Sep 11 1999, HAYAKAWA Hitoshi <cz8cb01@linux.or.jp>
.\"
.TH BTOWC 3 2011\-09\-22 GNU "Linux Programmer's Manual"
.SH 名前
btowc \- シングルバイトをワイド文字にコンバートする
.SH 書式
.nf
\fB#include <wchar.h>\fP
.sp
\fBwint_t btowc(int \fP\fIc\fP\fB);\fP
.fi
.SH 説明
\fBbtowc\fP() 関数は初期シフト状態から始まる長さ 1 のマルチバイトのシーケンスとして 解釈され、\fIc\fP をワイド文字にコンバートして返す。
\fIc\fP が \fBEOF\fP もしくは長さ 1 の無効なマルチバイトシーケンスの場合、 \fBbtowc\fP() 関数は \fBWEOF\fP を返す。
.SH 返り値
\fBbtowc\fP() 関数はシングルバイト \fIc\fP からコンバートされたワイド文字を返す。 \fIc\fP が \fBEOF\fP もしくは長さ 1
の無効なマルチバイトシーケンスの場合、 \fBbtowc\fP() 関数は \fBWEOF\fP を返す。
.SH 準拠
C99, POSIX.1\-2001.
.SH 注意
\fBbtowc\fP() の振る舞いは、現在のロケールの \fBLC_CTYPE\fP カテゴリーに依存する。
.PP
この関数は使用されるべきではない。状態(state)を持ったエンコードには使えず、 マルチバイトシーケンスとは違い、必ずしもシングルバイト
を取り扱えるとは限らない。代わりに \fBmbtowc\fP() か、スレッドセーフな \fBmbrtowc\fP() を使用すること。
.SH 関連項目
\fBmbrtowc\fP(3), \fBmbtowc\fP(3), \fBwctob\fP(3)
.SH この文書について
この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
である。プロジェクトの説明とバグ報告に関する情報は
http://www.kernel.org/doc/man\-pages/ に書かれている。
|