OSDN Git Service

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