OpenBSD manual page server

Manual Page Search Parameters

WCSCASECMP(3) Library Functions Manual WCSCASECMP(3)

wcscasecmp, wcsncasecmpcompare wide strings, ignoring case

#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 () and wcsncasecmp() functions compare the wide 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 wide character to lower case. The wide strings themselves are not modified.

() compares at most len wide characters.

strcasecmp(3), wcscmp(3), wmemcmp(3)

The wcscasecmp() and wcsncasecmp() functions conform to IEEE Std 1003.1-2008 (“POSIX.1”).

The wcscasecmp() and wcsncasecmp() functions first appeared in OpenBSD 5.0.

The OpenBSD versions of wcscasecmp() and wcsncasecmp() were implemented by Marc Espie <espie@openbsd.org>.

July 16, 2013 OpenBSD-5.6