OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / man3 / wctomb.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 WCTOMB 3 1999\-07\-25 GNU "Linux Programmer's Manual"
20 .SH 名前
21 wctomb \- ワイド文字をマルチバイト列に変換する。
22 .SH 書式
23 .nf
24 \fB#include <stdlib.h>\fP
25 .sp
26 \fBint wctomb(char *\fP\fIs\fP\fB, wchar_t \fP\fIwc\fP\fB);\fP
27 .fi
28 .SH 説明
29 \fIs\fP が NULL でなければ、 \fBwctomb\fP()  関数はワイド文字 \fIwc\fP を マルチバイト表現に変換して \fIs\fP
30 の指す文字配列に格納する。 同時に wctomb 関数のみが使用する静的で名前のないシフト状態を更新する。 この関数はマルチバイト表現の長さ、すなわち
31 \fIs\fP に書き込まれた バイト数を返す。
32 .PP
33 プログラマーは \fIs\fP に少なくとも \fBMB_CUR_MAX\fP バイトの空きがあることを保証しなければならない。
34 .PP
35 .\" The Dinkumware doc and the Single UNIX specification say this, but
36 .\" glibc doesn't implement this.
37 \fIs\fP が NULL ならば、 \fBwctomb\fP()  関数は自分のみが使用するシフト状態を
38 初期状態に戻して、文字符号がシフト状態に依存しているならばゼロ以外を シフト状態に依存しない場合にはゼロを返す。
39 .SH 返り値
40 \fIs\fP が NULL でない場合 \fBwctomb\fP()  関数はバイト配列 \fIs\fP に 書き込まれたバイト数を返す。\fIwc\fP
41 が(現在のロケールにおいて)  マルチバイト列で表現できない場合には \-1 を返す。
42 .PP
43 \fIs\fP が NULL の場合 \fBwctomb\fP()  関数は文字符号がシフト状態に
44 依存している場合にはゼロ以外、シフト状態に依存しない場合はゼロを返す。
45 .SH 準拠
46 C99.
47 .SH 注意
48 \fBwctomb\fP()  関数の動作は現在のロケールの \fBLC_CTYPE\fP カテゴリに依存している。
49 .PP
50 この関数はマルチスレッドでは安全ではない。 \fBwcrtomb\fP(3)  関数は 同じ機能のより良いインターフェースを提供する。
51 .SH 関連項目
52 \fBMB_CUR_MAX\fP(3), \fBwcrtomb\fP(3), \fBwcstombs\fP(3)