1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
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.
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
16 .\"*******************************************************************
18 .\" This file was generated with po4a. Translate the source file.
20 .\"*******************************************************************
22 .\" Translated Mon Oct 18 23:40:56 JST 1999
23 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
25 .TH WCSNCMP 3 2011\-09\-28 GNU "Linux Programmer's Manual"
27 wcsncmp \- 2 つの固定長ワイド文字文字列を比較する
30 \fB#include <wchar.h>\fP
32 \fBint wcsncmp(const wchar_t *\fP\fIs1\fP\fB, const wchar_t *\fP\fIs2\fP\fB, size_t \fP\fIn\fP\fB);\fP
35 \fBwcsncmp\fP() 関数は、 \fBstrncmp\fP(3) 関数に対応するワイド文字関数である。 この関数は、\fIs1\fP
36 が指すワイド文字文字列と \fIs2\fP が指すワイド文 字文字列を比較するが、最大でも先頭のワイド文字 \fIn\fP 個までしか比較
37 しない。またいずれかの文字列に NULL ワイド文字 (L\(aq\e0\(aq) が現れたら、 比較はその位置で終了する。
39 \fBwcsncmp\fP() 関数は、\fIs1\fP と \fIs2\fP がそれぞれ指す文字列を \fIn\fP 文字に収まるように切り詰めたものが等しければ 0
40 を返す。 この関数は、異なる文字が最初に現われた位置 \fIi\fP (\fIi\fP < \fIn\fP) において、その位置にある文字 \fIs1[i]\fP が
41 \fIs2[i]\fP より大きければ 正の値を返す。異なる文字が最初に現われた位置 \fIi\fP (\fIi\fP < \fIn\fP)
42 において、その位置にある文字 \fIs1[i]\fP が \fIs2[i]\fP より小さければ 負の値を返す。
46 \fBstrncmp\fP(3), \fBwcsncasecmp\fP(3)
48 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
49 である。プロジェクトの説明とバグ報告に関する情報は
50 http://www.kernel.org/doc/man\-pages/ に書かれている。