wcscasecmp

Section: C Library Functions (3)
Updated: 2026-02-08
Index JM Home Page roff page
 

名前

wcscasecmp, wcsncasecmp - compare two wide-character strings, ignoring case  

ライブラリ

標準 C ライブラリ (libc,~-lc)  

書式

#include <wchar.h>

int wcscasecmp(const wchar_t *s1, const wchar_t *s2);
int wcsncasecmp(const wchar_t s1[], const wchar_t s2[], size_t n);

glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):

wcscasecmp(), wcsncasecmp():

    Since glibc 2.10:
        _POSIX_C_SOURCE >= 200809L
    Before glibc 2.10:
        _GNU_SOURCE
 

説明

wcscasecmp() 関数は、 strcasecmp(3) 関数に対応するワイド文字関数 である。この関数は、s1 が指すワイド文字文字列と s2 が指す ワイド文字文字列を、大文字と小文字の違い (towupper(3), towlower(3)) を無視して比較する。

The wcsncasecmp() function is similar (the wide-character equivalent of strncasecmp(3)), except that it compares no more than n wide characters of s1 and s2.  

返り値

The wcscasecmp() and wcsncasecmp() functions return an integer less than, equal to, or greater than zero if s1 is, after ignoring case, found to be less than, to match, or be greater than s2, respectively.  

属性

この節で使用されている用語の説明については、 attributes(7) を参照。
インターフェース属性値
wcscasecmp(), wcsncasecmp() Thread safetyMT-Safe locale
 

標準規格

POSIX.1-2008.  

歴史

glibc 2.1.  

注意

wcscasecmp() の動作は、現在のロケールの LC_CTYPE に依存する。  

関連項目

strcasecmp(3), wcscmp(3)


 

Index

名前
ライブラリ
書式
説明
返り値
属性
標準規格
歴史
注意
関連項目

This document was created by man2html, using the manual pages.