OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man3 / btowc.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
7 .\"
8 .\" References consulted:
9 .\"   GNU glibc-2 source code and manual
10 .\"   Dinkumware C library reference http://www.dinkumware.com/
11 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
12 .\"   ISO/IEC 9899:1999
13 .\"
14 .\"*******************************************************************
15 .\"
16 .\" This file was generated with po4a. Translate the source file.
17 .\"
18 .\"*******************************************************************
19 .TH BTOWC 3 2011\-09\-22 GNU "Linux Programmer's Manual"
20 .SH 名前
21 btowc \- シングルバイトをワイド文字にコンバートする
22 .SH 書式
23 .nf
24 \fB#include <wchar.h>\fP
25 .sp
26 \fBwint_t btowc(int \fP\fIc\fP\fB);\fP
27 .fi
28 .SH 説明
29 \fBbtowc\fP()  関数は初期シフト状態から始まる長さ 1 のマルチバイトのシーケンスとして 解釈され、\fIc\fP をワイド文字にコンバートして返す。
30 \fIc\fP が \fBEOF\fP もしくは長さ 1 の無効なマルチバイトシーケンスの場合、 \fBbtowc\fP()  関数は \fBWEOF\fP を返す。
31 .SH 返り値
32 \fBbtowc\fP()  関数はシングルバイト \fIc\fP からコンバートされたワイド文字を返す。 \fIc\fP が \fBEOF\fP もしくは長さ 1
33 の無効なマルチバイトシーケンスの場合、 \fBbtowc\fP()  関数は \fBWEOF\fP を返す。
34 .SH 準拠
35 C99, POSIX.1\-2001.
36 .SH 注意
37 \fBbtowc\fP()  の振る舞いは、現在のロケールの \fBLC_CTYPE\fP カテゴリーに依存する。
38 .PP
39 この関数は使用されるべきではない。状態(state)を持ったエンコードには使えず、 マルチバイトシーケンスとは違い、必ずしもシングルバイト
40 を取り扱えるとは限らない。代わりに \fBmbtowc\fP()  か、スレッドセーフな \fBmbrtowc\fP()  を使用すること。
41 .SH 関連項目
42 \fBmbrtowc\fP(3), \fBmbtowc\fP(3), \fBwctob\fP(3)