40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
static inline int
memcasecmp(const char *s1, const char *s2, size_t len)
{
size_t i;
for (i = 0; i < len; i++) {
if (tolower(s1[i]) > tolower(s2[i]))
return OF_ORDERED_DESCENDING;
if (tolower(s1[i]) < tolower(s2[i]))
return OF_ORDERED_ASCENDING;
}
return OF_ORDERED_SAME;
}
/* References for static linking */
|
|
|
|
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
static inline int
memcasecmp(const char *s1, const char *s2, size_t len)
{
size_t i;
for (i = 0; i < len; i++) {
if (tolower((int)s1[i]) > tolower((int)s2[i]))
return OF_ORDERED_DESCENDING;
if (tolower((int)s1[i]) < tolower((int)s2[i]))
return OF_ORDERED_ASCENDING;
}
return OF_ORDERED_SAME;
}
/* References for static linking */
|