blob: fcbe98f1085e8a786c67342455faca25ae99d57a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include <assert.h>
#include <wchar.h>
int main() {
assert(!wcsncasecmp(L"foo", L"foo", 3));
assert(!wcsncasecmp(L"foo", L"FOO", 3));
assert(!wcsncasecmp(L"fooa", L"FOOB", 3));
assert(wcsncasecmp(L"foo", L"bar", 3));
assert(!wcsncasecmp(L"fooa", L"FOOA", 4));
assert(!wcsncasecmp(L"123abc", L"123AbC", 6));
}
|