wmemcmpのヘルプ・マニュアル
日本語 英語
wmemcmp --help
man wmemcmp
WMEMCMP(3) Linux Programmer’s Manual WMEMCMP(3)
名前
wmemcmp - ワイド文字の配列 2 つを比較する
書式
#include
int wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n);
説明
wmemcmp() 関数は、 memcmp(3) 関数に対応するワイド文字関数である。この関
数は、s1 を先頭とする n 個のワイド文字と s2 を先頭とする n 個のワイド文
字を比較する。
返り値
wmemcmp() 関数は、s1 と s2 を先頭とする大きさが n の 2 つの配列が等しけ
れば 0 を返す。最初に異なる文字が現われた位置 i (i < n)において、その位
置 にあるワイド文字 s1[i] が s2[i] より大きければ正の整数を返す。最初に
異なる文字が現われた位置 i (i < n)において、その位置にあるワイ ド 文 字
s1[i] が s2[i] より小さければ負の整数を返す。
準拠
C99.
関連項目
memcmp(3), wcscmp(3)
GNU 1999-07-25 WMEMCMP(3)
WMEMCMP(3) Linux Programmer’s Manual WMEMCMP(3)
NAME
wmemcmp - compare two arrays of wide-characters
SYNOPSIS
#include
int wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n);
DESCRIPTION
The wmemcmp() function is the wide-character equivalent of the mem-
cmp(3) function. It compares the n wide-characters starting at s1 and
the n wide-characters starting at s2.
RETURN VALUE
The wmemcmp() function returns zero if the wide-character arrays of
size n at s1 and s2 are equal. It returns an integer greater than zero
if at the first differing position i (i < n), the corresponding wide-
character s1[i] is greater than s2[i]. It returns an integer less than
zero if at the first differing position i (i < n), the corresponding
wide-character s1[i] is less than s2[i].
CONFORMING TO
C99.
SEE ALSO
memcmp(3), wcscmp(3)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 1999-07-25 WMEMCMP(3)