2
0

wcscasecmp.c 366 B

1234567891011
  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("wcscasecmp(s1, s1) = %d\n", wcscasecmp(s1, s1));
  7. printf("wcscasecmp(s1, s2) = %d\n", wcscasecmp(s1, s2));
  8. printf("wcscasecmp(s2, s1) = %d\n", wcscasecmp(s2, s1));
  9. printf("wcscasecmp(s2, s2) = %d\n", wcscasecmp(s2, s2));
  10. }