| WCSCASECMP(3) | Library Functions Manual | WCSCASECMP(3) |
wcscasecmp,
wcsncasecmp — compare
wide-character strings, ignoring case
Standard C Library (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
len);
The
wcscasecmp()
and wcsncasecmp() functions compare the
nul-terminated strings s1 and s2
and return an integer greater than, equal to, or less than 0, according to
whether s1 is lexicographically greater than, equal
to, or less than s2 after translation of each
corresponding character to lower-case. The strings themselves are not
modified.
The
wcsncasecmp()
function compares at most len characters.
The wcscasecmp() and
wcsncasecmp() functions conform to
IEEE Std 1003.1-2008 (“POSIX.1”).
The wcscasecmp() and
wcsncasecmp() functions first appeared in
NetBSD 4.0.
If len is 0,
wcsncasecmp() always returns 0.
| July 13, 2016 | NetBSD 11.0 |