OSDN Git Service

(split) LDP: Update drafts based on LDP v3.40.
[linuxjm/LDP_man-pages.git] / draft / man3 / wcsncmp.3
index e051ea0..f7c793b 100644 (file)
@@ -8,70 +8,37 @@
 .\" 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
 .\"
-.\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
-.\" Translated Mon Oct 18 23:40:56 JST 1999
-.\"           by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
+.\"*******************************************************************
 .\"
-.TH WCSNCMP 3 1999-07-25 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O wcsncmp \- compare two fixed-size wide-character strings
-wcsncmp \- 2 ¤Ä¤Î¸ÇÄêĹ¥ï¥¤¥Éʸ»úʸ»úÎó¤òÈæ³Ó¤¹¤ë
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH WCSNCMP 3 2011\-09\-28 GNU "Linux Programmer's Manual"
+.SH 名前
+wcsncmp \- 2 つの固定長ワイド文字文字列を比較する
+.SH 書式
 .nf
-.B #include <wchar.h>
+\fB#include <wchar.h>\fP
 .sp
-.BI "int wcsncmp(const wchar_t *" s1 ", const wchar_t *" s2 ", size_t " n );
+\fBint wcsncmp(const wchar_t *\fP\fIs1\fP\fB, const wchar_t *\fP\fIs2\fP\fB, size_t \fP\fIn\fP\fB);\fP
 .fi
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O The
-.\"O .BR wcsncmp ()
-.\"O function is the wide-character equivalent of the
-.\"O .BR strncmp (3)
-.\"O function.
-.\"O It compares the wide-character string pointed to by \fIs1\fP and the
-.\"O wide-character string pointed to by \fIs2\fP, but at most \fIn\fP wide
-.\"O characters from each string.
-.\"O In each string, the comparison extends only up
-.\"O to the first occurrence of a L\(aq\\0\(aq character, if any.
-.BR wcsncmp ()
-´Ø¿ô¤Ï¡¢
-.BR strncmp (3)
-´Ø¿ô¤ËÂбþ¤¹¤ë¥ï¥¤¥Éʸ»ú´Ø¿ô¤Ç¤¢¤ë¡£
-¤³¤Î´Ø¿ô¤Ï¡¢\fIs1\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ»úʸ»úÎó¤È \fIs2\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ
-»úʸ»úÎó¤òÈæ³Ó¤¹¤ë¤¬¡¢ºÇÂç¤Ç¤âÀèƬ¤Î¥ï¥¤¥Éʸ»ú \fIn\fP ¸Ä¤Þ¤Ç¤·¤«Èæ³Ó
-¤·¤Ê¤¤¡£¤Þ¤¿¤¤¤º¤ì¤«¤Îʸ»úÎó¤Ë L\(aq\\0\(aq Ê¸»ú¤¬¸½¤ì¤¿¤é¡¢Èæ³Ó¤Ï
-¤½¤Î°ÌÃ֤ǽªÎ»¤¹¤ë¡£
-.\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
-.\"O The
-.\"O .BR wcsncmp ()
-.\"O function returns zero if the wide-character strings at
-.\"O \fIs1\fP and \fIs2\fP, truncated to at most length \fIn\fP, are equal.
-.\"O It returns an integer greater than zero if at the first differing position
-.\"O \fIi\fP (\fIi\fP < \fIn\fP),
-.\"O the corresponding wide-character \fIs1[i]\fP is
-.\"O greater than \fIs2[i]\fP.
-.\"O It returns an integer less than zero if at the first
-.\"O differing position \fIi\fP (\fIi\fP < \fIn\fP), the corresponding
-.\"O wide-character \fIs1[i]\fP is less than \fIs2[i]\fP.
-.BR wcsncmp ()
-´Ø¿ô¤Ï¡¢\fIs1\fP ¤È \fIs2\fP ¤¬¤½¤ì¤¾¤ì»Ø¤¹Ê¸»úÎó¤ò
-\fIn\fP Ê¸»ú¤Ë¼ý¤Þ¤ë¤è¤¦¤ËÀÚ¤êµÍ¤á¤¿¤â¤Î¤¬Åù¤·¤±¤ì¤Ð 0 ¤òÊÖ¤¹¡£
-¤³¤Î´Ø¿ô¤Ï¡¢°Û¤Ê¤ëʸ»ú¤¬ºÇ½é¤Ë¸½¤ï¤ì¤¿°ÌÃÖ \fIi\fP (\fIi\fP < \fIn\fP)
-¤Ë¤ª¤¤¤Æ¡¢¤½¤Î°ÌÃ֤ˤ¢¤ëʸ»ú \fIs1[i]\fP ¤¬ \fIs2[i]\fP ¤è¤êÂ礭¤±¤ì¤Ð
-Àµ¤ÎÃͤòÊÖ¤¹¡£°Û¤Ê¤ëʸ»ú¤¬ºÇ½é¤Ë¸½¤ï¤ì¤¿°ÌÃÖ \fIi\fP (\fIi\fP < \fIn\fP)
-¤Ë¤ª¤¤¤Æ¡¢¤½¤Î°ÌÃ֤ˤ¢¤ëʸ»ú \fIs1[i]\fP ¤¬ \fIs2[i]\fP ¤è¤ê¾®¤µ¤±¤ì¤Ð
-Éé¤ÎÃͤòÊÖ¤¹¡£
-.\"O .SH "CONFORMING TO"
-.SH ½àµò
+.SH 説明
+\fBwcsncmp\fP()  関数は、 \fBstrncmp\fP(3)  関数に対応するワイド文字関数である。 この関数は、\fIs1\fP
+が指すワイド文字文字列と \fIs2\fP が指すワイド文 字文字列を比較するが、最大でも先頭のワイド文字 \fIn\fP 個までしか比較
+しない。またいずれかの文字列に NULL ワイド文字 (L\(aq\e0\(aq) が現れたら、 比較はその位置で終了する。
+.SH 返り値
+\fBwcsncmp\fP()  関数は、\fIs1\fP と \fIs2\fP がそれぞれ指す文字列を \fIn\fP 文字に収まるように切り詰めたものが等しければ 0
+を返す。 この関数は、異なる文字が最初に現われた位置 \fIi\fP (\fIi\fP < \fIn\fP)  において、その位置にある文字 \fIs1[i]\fP が
+\fIs2[i]\fP より大きければ 正の値を返す。異なる文字が最初に現われた位置 \fIi\fP (\fIi\fP < \fIn\fP)
+において、その位置にある文字 \fIs1[i]\fP が \fIs2[i]\fP より小さければ 負の値を返す。
+.SH 準拠
 C99.
-.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
-.BR strncmp (3),
-.BR wcsncasecmp (3)
+.SH 関連項目
+\fBstrncmp\fP(3), \fBwcsncasecmp\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。