1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
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.
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
14 .\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
15 .\" Translated Mon Oct 18 23:40:56 JST 1999
16 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
18 .TH WCSNCMP 3 2011-09-28 "GNU" "Linux Programmer's Manual"
20 wcsncmp \- 2 つの固定長ワイド文字文字列を比較する
25 .BI "int wcsncmp(const wchar_t *" s1 ", const wchar_t *" s2 ", size_t " n );
32 この関数は、\fIs1\fP が指すワイド文字文字列と \fIs2\fP が指すワイド文
33 字文字列を比較するが、最大でも先頭のワイド文字 \fIn\fP 個までしか比較
34 しない。またいずれかの文字列に NULL ワイド文字 (L\(aq\\0\(aq) が現れたら、
38 関数は、\fIs1\fP と \fIs2\fP がそれぞれ指す文字列を
39 \fIn\fP 文字に収まるように切り詰めたものが等しければ 0 を返す。
40 この関数は、異なる文字が最初に現われた位置 \fIi\fP (\fIi\fP < \fIn\fP)
41 において、その位置にある文字 \fIs1[i]\fP が \fIs2[i]\fP より大きければ
42 正の値を返す。異なる文字が最初に現われた位置 \fIi\fP (\fIi\fP < \fIn\fP)
43 において、その位置にある文字 \fIs1[i]\fP が \fIs2[i]\fP より小さければ