OSDN Git Service

10f3fc97cc206a53163ad9cd0aea0b53410bd545
[linuxjm/LDP_man-pages.git] / draft / man3 / wcsncmp.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
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.
8 .\" %%%LICENSE_END
9 .\"
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
14 .\"   ISO/IEC 9899:1999
15 .\"
16 .\"*******************************************************************
17 .\"
18 .\" This file was generated with po4a. Translate the source file.
19 .\"
20 .\"*******************************************************************
21 .TH WCSNCMP 3 2011\-09\-28 GNU "Linux Programmer's Manual"
22 .SH 名前
23 wcsncmp \- 2 つの固定長ワイド文字文字列を比較する
24 .SH 書式
25 .nf
26 \fB#include <wchar.h>\fP
27 .sp
28 \fBint wcsncmp(const wchar_t *\fP\fIs1\fP\fB, const wchar_t *\fP\fIs2\fP\fB, size_t \fP\fIn\fP\fB);\fP
29 .fi
30 .SH 説明
31 \fBwcsncmp\fP()  関数は、 \fBstrncmp\fP(3)  関数に対応するワイド文字関数である。 この関数は、\fIs1\fP
32 が指すワイド文字文字列と \fIs2\fP が指すワイド文 字文字列を比較するが、最大でも先頭のワイド文字 \fIn\fP 個までしか比較
33 しない。またいずれかの文字列に NULL ワイド文字 (L\(aq\e0\(aq) が現れたら、 比較はその位置で終了する。
34 .SH 返り値
35 The \fBwcsncmp\fP()  function returns zero if the wide\-character strings at
36 \fIs1\fP and \fIs2\fP, truncated to at most length \fIn\fP, are equal.  It returns an
37 integer greater than zero if at the first differing position \fIi\fP (\fIi\fP
38 < \fIn\fP), the corresponding wide\-character \fIs1[i]\fP is greater than
39 \fIs2[i]\fP.  It returns an integer less than zero if at the first differing
40 position \fIi\fP (i < \fIn\fP), the corresponding wide\-character \fIs1[i]\fP is
41 less than \fIs2[i]\fP.
42 .SH 準拠
43 C99.
44 .SH 関連項目
45 \fBstrncmp\fP(3), \fBwcsncasecmp\fP(3)
46 .SH この文書について
47 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
48 である。プロジェクトの説明とバグ報告に関する情報は
49 http://www.kernel.org/doc/man\-pages/ に書かれている。