summaryrefslogtreecommitdiff
path: root/tests/core/test_strcmp_uni.in
blob: 82819dde317e4d0a43de82c9394a6ad4b780f28b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
#include <string.h>
int main() {
#define TEST(func)                                  \
  {                                                 \
    char *word = "WORD";                            \
    char wordEntry[2] = {-61, -126}; /* "Â"; */    \
    int cmp = func(word, wordEntry, 2);             \
    printf("Compare value " #func " is %d\n", cmp); \
  }
  TEST(strncmp);
  TEST(strncasecmp);
  TEST(memcmp);
}