OSDN Git Service

(split) LDP: Update releases based on LDP 3.52 release
[linuxjm/LDP_man-pages.git] / release / man3 / wcsncmp.3
index f7c793b..10f3fc9 100644 (file)
@@ -1,9 +1,11 @@
 .\" 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
@@ -30,15 +32,18 @@ wcsncmp \- 2 つの固定長ワイド文字文字列を比較する
 が指すワイド文字文字列と \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 より小さければ 負の値を返す。
+The \fBwcsncmp\fP()  function returns zero if the wide\-character strings at
+\fIs1\fP and \fIs2\fP, truncated to at most length \fIn\fP, are equal.  It returns an
+integer greater than zero if at the first differing position \fIi\fP (\fIi\fP
+< \fIn\fP), the corresponding wide\-character \fIs1[i]\fP is greater than
+\fIs2[i]\fP.  It returns an integer less than zero if at the first differing
+position \fIi\fP (i < \fIn\fP), the corresponding wide\-character \fIs1[i]\fP is
+less than \fIs2[i]\fP.
 .SH 準拠
 C99.
 .SH 関連項目
 \fBstrncmp\fP(3), \fBwcsncasecmp\fP(3)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。