OSDN Git Service

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