2
0

wcsncasecmp.c 473 B

123456789101112
  1. #include <stdio.h>
  2. #include <wchar.h>
  3. int main() {
  4. wchar_t *s1 = L"This is string 1.";
  5. wchar_t *s2 = L"This is string 2.";
  6. printf("wcsncasecmp(s1, s1, 17) = %d\n", wcsncasecmp(s1, s1, 17));
  7. printf("wcsncasecmp(s1, s2, 17) = %d\n", wcsncasecmp(s1, s2, 17));
  8. printf("wcsncasecmp(s2, s1, 17) = %d\n", wcsncasecmp(s2, s1, 17));
  9. printf("wcsncasecmp(s2, s1, 15) = %d\n", wcsncasecmp(s2, s1, 15));
  10. printf("wcsncasecmp(s1, s2, 0) = %d\n", wcsncasecmp(s1, s2, 0));
  11. }