OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man3 / wctomb.3
index 161b792..8c2aa11 100644 (file)
 .\" 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
+.\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
 .\"   ISO/IEC 9899:1999
 .\"
-.\" Japanese Version Copyright (c) 1999 HANATAKA Shinya
-.\"         all rights reserved.
-.\" Translated Tue Jan 11 00:55:39 JST 2000
-.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
+.\"*******************************************************************
 .\"
-.TH WCTOMB 3 1999-07-25 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O wctomb \- convert a wide character to a multibyte sequence
-wctomb \- ¥ï¥¤¥Éʸ»ú¤ò¥Þ¥ë¥Á¥Ð¥¤¥ÈÎó¤ËÊÑ´¹¤¹¤ë¡£
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH WCTOMB 3 1999\-07\-25 GNU "Linux Programmer's Manual"
+.SH 名前
+wctomb \- ワイド文字をマルチバイト列に変換する。
+.SH 書式
 .nf
-.B #include <stdlib.h>
+\fB#include <stdlib.h>\fP
 .sp
-.BI "int wctomb(char *" s ", wchar_t " wc );
+\fBint wctomb(char *\fP\fIs\fP\fB, wchar_t \fP\fIwc\fP\fB);\fP
 .fi
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O If \fIs\fP is not NULL,
-.\"O the
-.\"O .BR wctomb ()
-.\"O function converts the wide character
-.\"O \fIwc\fP to its multibyte representation and stores it at the beginning of
-.\"O the character array pointed to by \fIs\fP.
-.\"O It updates the shift state, which
-.\"O is stored in a static anonymous variable
-.\"O only known to the wctomb function,
-.\"O and returns the length of said multibyte representation,
-.\"O that is, the number of
-.\"O bytes written at \fIs\fP.
+.SH 説明
+\fIs\fP が NULL でなければ、 \fBwctomb\fP()  関数はワイド文字 \fIwc\fP を マルチバイト表現に変換して \fIs\fP
+の指す文字配列に格納する。 同時に wctomb 関数のみが使用する静的で名前のないシフト状態を更新する。 この関数はマルチバイト表現の長さ、すなわち
+\fIs\fP に書き込まれた バイト数を返す。
 .PP
-.\"O The programmer must ensure that there is
-.\"O room for at least \fBMB_CUR_MAX\fP
-.\"O bytes at \fIs\fP.
-\fIs\fP ¤¬ NULL ¤Ç¤Ê¤±¤ì¤Ð¡¢
-.BR wctomb ()
-´Ø¿ô¤Ï¥ï¥¤¥Éʸ»ú \fIwc\fP ¤ò
-¥Þ¥ë¥Á¥Ð¥¤¥Èɽ¸½¤ËÊÑ´¹¤·¤Æ \fIs\fP ¤Î»Ø¤¹Ê¸»úÇÛÎó¤Ë³ÊǼ¤¹¤ë¡£
-Ʊ»þ¤Ë wctomb ´Ø¿ô¤Î¤ß¤¬»ÈÍѤ¹¤ëÀÅŪ¤Ç̾Á°¤Î¤Ê¤¤¥·¥Õ¥È¾õÂÖ¤ò¹¹¿·¤¹¤ë¡£
-¤³¤Î´Ø¿ô¤Ï¥Þ¥ë¥Á¥Ð¥¤¥Èɽ¸½¤ÎŤµ¡¢¤¹¤Ê¤ï¤Á \fIs\fP ¤Ë½ñ¤­¹þ¤Þ¤ì¤¿
-¥Ð¥¤¥È¿ô¤òÊÖ¤¹¡£¥×¥í¥°¥é¥Þ¡¼¤Ï \fIs\fP ¤Ë¾¯¤Ê¤¯¤È¤â \fBMB_CUR_MAX\fP
-¥Ð¥¤¥È¤Î¶õ¤­¤¬¤¢¤ë¤³¤È¤òÊݾڤ·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
+プログラマーは \fIs\fP に少なくとも \fBMB_CUR_MAX\fP バイトの空きがあることを保証しなければならない。
 .PP
-.\"O If \fIs\fP is NULL, the
-.\"O .BR wctomb ()
-.\"O function
-.\"O .\" The Dinkumware doc and the Single Unix specification say this, but
-.\"O .\" glibc doesn't implement this.
-.\"O resets the shift state, only known to this function,
-.\"O to the initial state, and
-.\"O returns nonzero if the encoding has nontrivial shift state,
-.\"O or zero if the encoding is stateless.
-\fIs\fP ¤¬ NULL ¤Ê¤é¤Ð¡¢
-.BR wctomb ()
-´Ø¿ô¤Ï¼«Ê¬¤Î¤ß¤¬»ÈÍѤ¹¤ë¥·¥Õ¥È¾õÂÖ¤ò
-½é´ü¾õÂÖ¤ËÌᤷ¤Æ¡¢Ê¸»úÉä¹æ¤¬¥·¥Õ¥È¾õÂ֤˰͸¤·¤Æ¤¤¤ë¤Ê¤é¤Ð¥¼¥í°Ê³°¤ò
-¥·¥Õ¥È¾õÂ֤˰͸¤·¤Ê¤¤¾ì¹ç¤Ë¤Ï¥¼¥í¤òÊÖ¤¹¡£
-.\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
-.\"O If \fIs\fP is not NULL, the
-.\"O .BR wctomb ()
-.\"O function
-.\"O returns the number of bytes
-.\"O that have been written to the byte array at \fIs\fP.
-.\"O If \fIwc\fP can not be
-.\"O represented as a multibyte sequence (according
-.\"O to the current locale), \-1 is returned.
-\fIs\fP ¤¬ NULL ¤Ç¤Ê¤¤¾ì¹ç
-.BR wctomb ()
-´Ø¿ô¤Ï¥Ð¥¤¥ÈÇÛÎó \fIs\fP ¤Ë
-½ñ¤­¹þ¤Þ¤ì¤¿¥Ð¥¤¥È¿ô¤òÊÖ¤¹¡£\fIwc\fP ¤¬(¸½ºß¤Î¥í¥±¡¼¥ë¤Ë¤ª¤¤¤Æ)
-¥Þ¥ë¥Á¥Ð¥¤¥ÈÎó¤Çɽ¸½¤Ç¤­¤Ê¤¤¾ì¹ç¤Ë¤Ï \-1 ¤òÊÖ¤¹¡£
+.\" The Dinkumware doc and the Single UNIX specification say this, but
+.\" glibc doesn't implement this.
+\fIs\fP が NULL ならば、 \fBwctomb\fP()  関数は自分のみが使用するシフト状態を
+初期状態に戻して、文字符号がシフト状態に依存しているならばゼロ以外を シフト状態に依存しない場合にはゼロを返す。
+.SH 返り値
+\fIs\fP が NULL でない場合 \fBwctomb\fP()  関数はバイト配列 \fIs\fP に 書き込まれたバイト数を返す。\fIwc\fP
+が(現在のロケールにおいて)  マルチバイト列で表現できない場合には \-1 を返す。
 .PP
-.\"O If \fIs\fP is NULL, the
-.\"O .BR wctomb ()
-.\"O function returns nonzero if the
-.\"O encoding has nontrivial shift state, or zero if the encoding is stateless.
-\fIs\fP ¤¬ NULL ¤Î¾ì¹ç
-.BR wctomb ()
-´Ø¿ô¤Ïʸ»úÉä¹æ¤¬¥·¥Õ¥È¾õÂÖ¤Ë
-°Í¸¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¥¼¥í°Ê³°¡¢¥·¥Õ¥È¾õÂ֤˰͸¤·¤Ê¤¤¾ì¹ç¤Ï¥¼¥í¤òÊÖ¤¹¡£
-.\"O .SH "CONFORMING TO"
-.SH ½àµò
+\fIs\fP が NULL の場合 \fBwctomb\fP()  関数は文字符号がシフト状態に
+依存している場合にはゼロ以外、シフト状態に依存しない場合はゼロを返す。
+.SH 準拠
 C99.
-.\"O .SH NOTES
-.SH Ãí°Õ
-.\"O The behavior of
-.\"O .BR wctomb ()
-.\"O depends on the
-.\"O .B LC_CTYPE
-.\"O category of the
-.\"O current locale.
-.BR wctomb ()
-´Ø¿ô¤ÎÆ°ºî¤Ï¸½ºß¤Î¥í¥±¡¼¥ë¤Î
-.B LC_CTYPE
-¥«¥Æ¥´¥ê¤Ë°Í¸¤·¤Æ¤¤¤ë¡£
+.SH 注意
+\fBwctomb\fP()  関数の動作は現在のロケールの \fBLC_CTYPE\fP カテゴリに依存している。
 .PP
-.\"O This function is not multithread safe.
-.\"O The function
-.\"O .BR wcrtomb (3)
-.\"O provides
-.\"O a better interface to the same functionality.
-¤³¤Î´Ø¿ô¤Ï¥Þ¥ë¥Á¥¹¥ì¥Ã¥É¤Ç¤Ï°ÂÁ´¤Ç¤Ï¤Ê¤¤¡£
-.BR wcrtomb (3)
-´Ø¿ô¤Ï
-Ʊ¤¸µ¡Ç½¤Î¤è¤êÎɤ¤¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤òÄ󶡤¹¤ë¡£
-.SH ´ØÏ¢¹àÌÜ
-.BR MB_CUR_MAX (3),
-.BR wcrtomb (3),
-.BR wcstombs (3)
+この関数はマルチスレッドでは安全ではない。 \fBwcrtomb\fP(3)  関数は 同じ機能のより良いインターフェースを提供する。
+.SH 関連項目
+\fBMB_CUR_MAX\fP(3), \fBwcrtomb\fP(3), \fBwcstombs\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。