1 /* CCL string compare utilities
5 * Revision 1.1 1995/05/11 14:03:57 adam
6 * Changes in the reading of qualifier(s). New function: ccl_qual_fitem.
7 * New variable ccl_case_sensitive, which controls whether reserved
8 * words and field names are case sensitive or not.
16 static int ccli_toupper (int c)
21 int (*ccl_toupper)(int c) = NULL;
23 int ccl_stricmp (const char *s1, const char *s2)
26 ccl_toupper = ccli_toupper;
30 c1 = (*ccl_toupper)(*s1);
31 c2 = (*ccl_toupper)(*s2);
37 return (*ccl_toupper)(*s1) - (*ccl_toupper)(*s2);
40 int ccl_memicmp (const char *s1, const char *s2, size_t n)
43 ccl_toupper = ccli_toupper;
48 c1 = (*ccl_toupper)(*s1);
49 c2 = (*ccl_toupper)(*s2);
50 if (n <= 1 || c1 != c2)