wcscmpのヘルプ・マニュアル
日本語 英語
wcscmp --help
man wcscmp
WCSCMP(3) Linux Programmer’s Manual WCSCMP(3)
名前
wcscmp - 2 つのワイド文字文字列を比較する
書式
#include
int wcscmp(const wchar_t *s1, const wchar_t *s2);
説明
wcscmp() 関数は、 strcmp(3) 関数に対応するワイド文字関数である。この関
数は、s1 が指すワイド文字文字列と s2 が指すワイド文字文字列を比較する。
返り値
wcscmp() 関数は、s1 と s2 がそれぞれ指すワイド文字文字列が同じであれば
0 を返す。異なる文字が最初に現われた位置において、その位置にあるワイ ド
文 字 s1[i] が s2[i] より大きければ正の値を返す。異なる文字が最初に現わ
れた位置において、その位置にあるワイド文字 s1[i] が s2[i] より小さけ れ
ば負の値を返す。
準拠
C99.
関連項目
strcmp(3), wcscasecmp(3), wmemcmp(3)
GNU 1999-07-25 WCSCMP(3)
WCSCMP(3) Linux Programmer’s Manual WCSCMP(3)
NAME
wcscmp - compare two wide-character strings
SYNOPSIS
#include
int wcscmp(const wchar_t *s1, const wchar_t *s2);
DESCRIPTION
The wcscmp() function is the wide-character equivalent of the strcmp(3)
function. It compares the wide-character string pointed to by s1 and
the wide-character string pointed to by s2.
RETURN VALUE
The wcscmp() function returns zero if the wide-character strings at s1
and s2 are equal. It returns an integer greater than zero if at the
first differing position i, 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, the corresponding wide-character s1[i] is
less than s2[i].
CONFORMING TO
C99.
SEE ALSO
strcmp(3), wcscasecmp(3), wmemcmp(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 WCSCMP(3)